Skip to content

Commit

Permalink
Log uuid when instances fail to spawn.
Browse files Browse the repository at this point in the history
Update xenapi/vmops.py so it logs the UUID instead of the instance ID
when instances fail to spawn. Fixes LP bug #918497.

Change-Id: Id7f41ccb79d22df5d10a5d6d9822ff65dd459056
  • Loading branch information
Dan Prince committed Jan 19, 2012
1 parent a444e8f commit c51c68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/virt/xenapi/vmops.py
Expand Up @@ -232,7 +232,7 @@ def spawn(self, context, instance, image_meta, network_info):

except (self.XenAPI.Failure, OSError, IOError) as spawn_error:
LOG.exception(_("instance %s: Failed to spawn"),
instance.id, exc_info=sys.exc_info())
instance.uuid, exc_info=sys.exc_info())
LOG.debug(_('Instance %s failed to spawn - performing clean-up'),
instance.id)
self._handle_spawn_error(vdis, spawn_error)
Expand Down

0 comments on commit c51c68c

Please sign in to comment.