Merge "Nova compute: add in log exception to help debug failures" into stable/rocky

This commit is contained in:
Zuul 2019-11-30 19:16:57 +00:00 committed by Gerrit Code Review
commit d575890399
1 changed files with 2 additions and 0 deletions

View File

@ -2334,6 +2334,8 @@ class ComputeManager(manager.Manager):
raise exception.BuildAbortException(instance_uuid=instance.uuid, raise exception.BuildAbortException(instance_uuid=instance.uuid,
reason=e.format_message()) reason=e.format_message())
except Exception as e: except Exception as e:
LOG.exception('Failed to build and run instance',
instance=instance)
self._notify_about_instance_usage(context, instance, self._notify_about_instance_usage(context, instance,
'create.error', fault=e) 'create.error', fault=e)
tb = traceback.format_exc() tb = traceback.format_exc()