← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1239679] Re: The lockutils synchronised decorator does not log lock released message

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1239679

Title:
  The lockutils synchronised decorator does not log lock released
  message

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  The synchronised decorator method logs a message to indicate that a
  semaphore / lock has been claimed, but does not log a message to say
  it has been released. The log message is there in the code but it is
  in unreachable code, due to the wrapped function being returned.

  Example claim message:
  2013-09-16 20:38:00.844 DEBUG nova.openstack.common.lockutils [-] Got semaphore / lock "update_available_resource" from (pid=19079) inner /opt/stack/nova/nova/openstack/common/lockutils.py:246

  The missing release message should be:
  2013-09-16 20:38:01.085 DEBUG nova.openstack.common.lockutils [-] Semaphore / lock released "update_available_resource" from (pid=19079) inner /opt/stack/nova/nova/openstack/common/lockutils.py:251

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1239679/+subscriptions