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
Fix proposed to branch: master /review. openstack. org/51601
Review: https:/