cinder/cinder/tests/brick
Patrick East c566767d6a 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
(cherry picked from commit 4541521de5)
2014-10-08 12:28:28 +02:00
..
__init__.py Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
fake_lvm.py Volume manage/unmanage support 2014-03-04 19:54:19 +02:00
test_brick_connector.py Fix race condition in ISCSIConnector _disconnect_volume_multipath_iscsi 2014-10-08 12:28:28 +02:00
test_brick_exception.py Brick fix BrickException message formatting 2014-02-07 13:33:13 -08:00
test_brick_linuxfc.py Remove vim header 2013-12-30 18:53:02 -06:00
test_brick_linuxscsi.py General cleanup of unused objects 2014-08-07 12:14:50 -07:00
test_brick_lvm.py Can't force-create snapshot by an non-exist error volume 2014-03-19 06:52:47 -07:00
test_brick_remotefs.py Use oslo.i18n 2014-08-08 17:26:41 -05:00