Updated openstack/openstack
Project: openstack/cinder  4ee48a69b8f2398e9eb7ae9b9ab9d9320a647638

Fix race condition in ISCSIConnector _disconnect_volume_multipath_iscsi

This is a similar issue as seen in 
https://bugs.launchpad.net/cinder/+bug/1375382

The list of devices returned by driver.get_all_block_devices() in
_disconnect_volume_multipath_iscsi will potentially contain broken 
symlinks as the SCSI devices have been deleted from calling
self._linuxscsi.remove_multipath_device(device_realpath) right before
_disconnect_volume_multipath_iscsi but the udev rule for the symlink 
may not yet have completed.

Adding in a check to os.path.exists() will ensure that we will not 
consider the broken symlinks as an “in use” device.

Change-Id: I79c9627e9b47127d3765fcec5b7e3bacef179630
Closes-Bug: #1375946