summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Still <mikal@stillhq.com>2012-04-12 11:40:28 +1000
committerMichael Still <mikal@stillhq.com>2012-04-27 11:58:30 +1000
commitc94011fba47277a88d7eb8dd33b11db66f6ac0d4 (patch)
treec78d5504a398ca992e273e189c7d757131e5f66a
parent9978dcb90570b330fe32aa4f0ef6d9eb7b1c47e6 (diff)
Add instance to several log messages.
Change-Id: I6e073effc628b1192c5289de224b3c36e61fdf39
-rw-r--r--nova/api/openstack/compute/contrib/volumes.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/api/openstack/compute/contrib/volumes.py b/nova/api/openstack/compute/contrib/volumes.py
index bc9e6a0d2..129b181c7 100644
--- a/nova/api/openstack/compute/contrib/volumes.py
+++ b/nova/api/openstack/compute/contrib/volumes.py
@@ -308,7 +308,8 @@ class VolumeAttachmentController(object):
instance = vol['instance']
if instance is None or str(instance['uuid']) != server_id:
- LOG.debug("instance_id != server_id")
+ LOG.debug("Instance not found (server_id=%(server_id)s)",
+ {'server_id': server_id}, instance=instance)
raise exc.HTTPNotFound()
return {'volumeAttachment': _translate_attachment_detail_view(context,
@@ -372,7 +373,8 @@ class VolumeAttachmentController(object):
instance = vol['instance']
if instance is None or str(instance['uuid']) != server_id:
- LOG.debug("instance_id != server_id")
+ LOG.debug("Instance not found (server_id=%(server_id)s)",
+ {'server_id': server_id}, instance=instance)
raise exc.HTTPNotFound()
self.compute_api.detach_volume(context,