Skip to content

Commit ed5b7c7

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Stop logging traceback when skipping quiesce"
2 parents 344e175 + 6607041 commit ed5b7c7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

nova/compute/api.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3135,10 +3135,15 @@ def snapshot_volume_backed(self, context, instance, name,
31353135
if strutils.bool_from_string(instance.system_metadata.get(
31363136
'image_os_require_quiesce')):
31373137
raise
3138-
else:
3138+
3139+
if isinstance(err, exception.NovaException):
31393140
LOG.info('Skipping quiescing instance: %(reason)s.',
3140-
{'reason': err},
3141+
{'reason': err.format_message()},
31413142
instance=instance)
3143+
else:
3144+
LOG.info('Skipping quiescing instance because the '
3145+
'operation is not supported by the underlying '
3146+
'compute driver.', instance=instance)
31423147
# NOTE(tasker): discovered that an uncaught exception could occur
31433148
# after the instance has been frozen. catch and thaw.
31443149
except Exception as ex:

0 commit comments

Comments
 (0)