Revert "Don't revert Migrate action"

Whether to revert migrate action when the action_plan fails is determained by 'rollback_actionplan' option.

This reverts commit c522e881b1.

Change-Id: I5379018b7838dff4caf0ee0ce06cfa32e7b37b12
This commit is contained in:
suzhengwei
2020-06-22 09:26:46 +00:00
parent c522e881b1
commit 57f55190ff
2 changed files with 24 additions and 1 deletions

View File

@@ -186,7 +186,7 @@ class Migrate(base.BaseAction):
return self.migrate(destination=self.destination_node)
def revert(self):
LOG.info('Migrate action do not revert!')
return self.migrate(destination=self.source_node)
def abort(self):
nova = nova_helper.NovaHelper(osc=self.osc)