dellcloudedge/barclamp-crowbar — pull request #252 by VictorLowther (2012-10-25 20:02:59+00:00)
Title: Make locking more debuggable, and start reworking smoketests. [1/6]

* Replace acquire_lock and release_lock with a single try_lock function.
* Convert all users of acquire_lock and release_lock to use try_lock.
* Add instrumentation to try_lock to blow up informativey on deadlock.
* Chop out parts of openstack smoketests that are not applicable.

crowbar_framework/app/models/crowbar_service.rb | 13 +-
crowbar_framework/app/models/crowbar_utils.rb | 65 ++++--
crowbar_framework/app/models/proposal_queue.rb | 213 ++++++++++----------
crowbar_framework/app/models/service_object.rb | 108 +++-------
.../spec/models/crowbar_utils_spec.rb | 60 +++---
.../spec/models/proposal_queue_spec.rb | 9 +-
6 files changed, 213 insertions(+), 255 deletions(-)

Crowbar-Pull-ID: 0007483fe1414a718d9d6de4c89b95020d7b4f05

Crowbar-Release: development