Consolidate locking mechanisms

Bug #739763 reported by Vish Ishaya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Soren Hansen

Bug Description

We're currently using a couple of different locking mechanisms to prevent race conditions:

semaphores (linux_net and libvirt_conn)
utils.synchronized

They should be combined into one strategy, either using file locks for everything, or by allowing a parameer to synchronized telling it whether to use a semaphore or a file lock.

It may be useful to check all the places we are using threadpools to make sure that they shouldn't also be using a shared locking mechanism instead.

Related branches

Soren Hansen (soren)
Changed in nova:
status: New → Triaged
assignee: nobody → Soren Hansen (soren)
Soren Hansen (soren)
Changed in nova:
status: Triaged → In Progress
importance: Undecided → Medium
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.