cinder/cinder/volume/drivers/ibm/storwize_svc
Avishay Traeger 5ba26c8aa5 Storwize/SVC: Fix races in host-related functions
In the Storwize/SVC driver, initialize_connection checks if a host
object exists on the storage, and if not, creates one. Similarly,
terminate_connection checks if there are any more mappings for this
host, and deletes the host object if there are none. Consequently, there
exist races between two initialize_connection calls, two
terminate_connection calls, or one and one.

The easy solution here is to use locks. Because locks are files on the
local machine, this implies that all cinder-volume processes managing a
given Storwize/SVC contoller run on the same machine.

Change-Id: I62cd992e7150e7d16f1a2b2be6ef61c64b638858
Closes-Bug: #1274123
2014-02-09 11:23:16 +02:00
..
__init__.py Storwize/SVC: Fix races in host-related functions 2014-02-09 11:23:16 +02:00
helpers.py Storwize driver cleanup 2014-01-23 13:49:19 +02:00
ssh.py Allow spaces in host names in the storwize driver 2014-02-02 09:31:12 +02:00