From c51c68c0163af9ae3e5795435a240589597c9648 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Wed, 18 Jan 2012 22:01:24 -0500 Subject: [PATCH] Log uuid when instances fail to spawn. 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 --- nova/virt/xenapi/vmops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py index 65c38112a50..73ed79badf5 100644 --- a/nova/virt/xenapi/vmops.py +++ b/nova/virt/xenapi/vmops.py @@ -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)