ScaleIO could connect wrong volume to VM
When running multiple attach volume operations with multiple volumes and multiple VMs, a wrong volume could end up being attached to a VM. To fix this, connect_volume and disconnect_volume should be locked. Change-Id: I47e94a945938123a913aee9d52d36f8ee088955a Closes-Bug: #1524989
This commit is contained in:
parent
26caabfc9d
commit
e6d94fe0b0
@ -2413,6 +2413,7 @@ class ScaleIOConnector(InitiatorConnector):
|
||||
'path': self.volume_path}
|
||||
return device_info
|
||||
|
||||
@lockutils.synchronized('scaleio', 'scaleio-')
|
||||
def connect_volume(self, connection_properties):
|
||||
"""Connect the volume.
|
||||
|
||||
@ -2541,6 +2542,7 @@ class ScaleIOConnector(InitiatorConnector):
|
||||
|
||||
return device_info
|
||||
|
||||
@lockutils.synchronized('scaleio', 'scaleio-')
|
||||
def disconnect_volume(self, connection_properties, device_info):
|
||||
"""Disconnect the ScaleIO volume.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user