Merge "Stop logging traceback when skipping quiesce"

This commit is contained in:
Zuul 2019-05-17 00:34:55 +00:00 committed by Gerrit Code Review
commit ed5b7c7fc3
1 changed files with 7 additions and 2 deletions

View File

@ -3135,10 +3135,15 @@ class API(base.Base):
if strutils.bool_from_string(instance.system_metadata.get(
'image_os_require_quiesce')):
raise
else:
if isinstance(err, exception.NovaException):
LOG.info('Skipping quiescing instance: %(reason)s.',
{'reason': err},
{'reason': err.format_message()},
instance=instance)
else:
LOG.info('Skipping quiescing instance because the '
'operation is not supported by the underlying '
'compute driver.', instance=instance)
# NOTE(tasker): discovered that an uncaught exception could occur
# after the instance has been frozen. catch and thaw.
except Exception as ex: