Merge "Add exception log when migrate action failed"
This commit is contained in:
commit
e6c06c1bdf
@ -124,7 +124,8 @@ class Migrate(base.BaseAction):
|
|||||||
LOG.debug("Nova client exception occurred while live "
|
LOG.debug("Nova client exception occurred while live "
|
||||||
"migrating instance %s.Exception: %s" %
|
"migrating instance %s.Exception: %s" %
|
||||||
(self.instance_uuid, e))
|
(self.instance_uuid, e))
|
||||||
except Exception:
|
except Exception as e:
|
||||||
|
LOG.exception(e)
|
||||||
LOG.critical("Unexpected error occurred. Migration failed for "
|
LOG.critical("Unexpected error occurred. Migration failed for "
|
||||||
"instance %s. Leaving instance on previous "
|
"instance %s. Leaving instance on previous "
|
||||||
"host.", self.instance_uuid)
|
"host.", self.instance_uuid)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user