def test_migration_abort(self, mock_run_job): # Test simple call mig.migrate_abort(self.lpar_w) self.adpt.read.assert_called_once_with('LogicalPartition', '1234', suffix_parm='MigrateAbort', suffix_type='do') mock_run_job.assert_called_once_with( '1234', job_parms=None, timeout=1800)
def test_migration_abort(self, mock_run_job): # Test simple call mig.migrate_abort(self.lpar_w) self.adpt.read.assert_called_once_with('LogicalPartition', '1234', suffix_parm='MigrateAbort', suffix_type='do') mock_run_job.assert_called_once_with('1234', job_parms=None, timeout=1800)
def migration_abort(self): """Abort the migration if the operation exceeds the configured timeout. """ LOG.debug("Abort migration.", instance=self.instance) try: mig.migrate_abort(self.lpar_w) except Exception as ex: LOG.error(_LE("Abort of live migration has failed. " "This is non-blocking. " "Exception is logged below.")) LOG.exception(ex)
def migration_abort(self): """Abort the migration. Invoked if the operation exceeds the configured timeout. """ LOG.debug("Abort migration.", instance=self.instance) try: mig.migrate_abort(self.lpar_w) except Exception: LOG.exception("Abort of live migration has failed. This is " "non-blocking.", instance=self.instance)