Merge "Add exception log when migrate action failed"

This commit is contained in:
Zuul 2017-10-03 17:06:20 +00:00 committed by Gerrit Code Review
commit e6c06c1bdf

View File

@ -124,7 +124,8 @@ class Migrate(base.BaseAction):
LOG.debug("Nova client exception occurred while live "
"migrating instance %s.Exception: %s" %
(self.instance_uuid, e))
except Exception:
except Exception as e:
LOG.exception(e)
LOG.critical("Unexpected error occurred. Migration failed for "
"instance %s. Leaving instance on previous "
"host.", self.instance_uuid)