Merge "fixing taskmanager exception after migration is complete"
This commit is contained in:
commit
1228d99075
@ -578,7 +578,7 @@ class MigrateAction(ResizeActionBase):
|
||||
|
||||
def _record_action_success(self):
|
||||
LOG.debug("Successfully finished Migration to %s: %s" %
|
||||
(self.hostname, self.instance.id))
|
||||
(self.instance.hostname, self.instance.id))
|
||||
|
||||
def _start_mysql(self):
|
||||
self.instance.guest.restart()
|
||||
|
@ -199,7 +199,14 @@ class MigrateTests(ResizeTestBase):
|
||||
|
||||
def tearDown(self):
|
||||
super(MigrateTests, self).tearDown()
|
||||
self._teardown()
|
||||
try:
|
||||
self.instance.update_db(task_status=InstanceTasks.NONE)
|
||||
self.mock.ReplayAll()
|
||||
self.assertEqual(None, self.action.execute())
|
||||
self.mock.VerifyAll()
|
||||
finally:
|
||||
self.mock.UnsetStubs()
|
||||
self.db_info.delete()
|
||||
|
||||
def _start_mysql(self):
|
||||
self.guest.restart()
|
||||
|
Loading…
x
Reference in New Issue
Block a user