summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2012-07-26 13:58:06 +0100
committerMark McLoughlin <markmc@redhat.com>2012-07-26 16:52:41 +0100
commit1dab66327368dab8271ee68db0c0bbb97c8d0555 (patch)
treede39b7f538a975ffc12aaf6797cad3362c51269e /nova
parente238e07692c747ddcb0c70452578a812836cea67 (diff)
Reinstate instance locked error logging
Commit eebc64f removed some error logging, presumably by mistake. If checks_instance_state fails, and the action blocked, users aren't notified but the error is logged for admins. Changing this behavior clearly wasn't the intent of the no-db-messaging commit. Change-Id: I14581171c201770b03cecc77d4a2933c9687ef11
Diffstat (limited to 'nova')
-rw-r--r--nova/compute/manager.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py
index 339dbcb5f..836d33452 100644
--- a/nova/compute/manager.py
+++ b/nova/compute/manager.py
@@ -186,6 +186,8 @@ def checks_instance_lock(function):
if admin or not locked:
cb(self, context, *args, **kwargs)
else:
+ LOG.error(_("check_instance_lock: not executing |%s|"),
+ function, context=context, instance_uuid=instance_uuid)
return False
@functools.wraps(function)