os-brick/os_brick/initiator
Lee Yarwood 9e30e5155d rbd: Use showmapped to find the root RBD device during disconnect_volume
The original method of unmapping the higher level RBD device found under
/dev/rbd/{pool}/{volume} fails when an encryptor has been attached to
the volume locally. This is due to a symlink being created that points
to the the decrypted dm-crypt device, breaking any attempt to unmap the
RBD volume.

To avoid this we can simply find and unmap the lower level RBD device of
/dev/rbd*.

Change-Id: Id507109df80391699074773f4787f74507c4b882
(cherry picked from commit 9415b3b41f)
(cherry picked from commit 36b207239b)
(cherry picked from commit 3ce686a9fa)
(cherry picked from commit fcff1e0cb2)
2020-04-15 11:38:23 +01:00
..
connectors rbd: Use showmapped to find the root RBD device during disconnect_volume 2020-04-15 11:38:23 +01:00
windows Refactor iSCSI disconnect 2017-05-31 15:31:20 +02:00
__init__.py Add the StorPool brick connector 2017-12-01 23:06:15 +02:00
connector.py adding iSER connector for PPC64 2018-01-18 12:16:00 -06:00
host_driver.py Fix race in check and access of /dev/disk/by-path/ 2015-07-28 18:30:06 +02:00
initiator_connector.py Refactor iSCSI disconnect 2017-05-31 15:31:20 +02:00
linuxfc.py Fix FC scan too broad 2019-11-27 19:32:09 +01:00
linuxrbd.py Merge "Add attribute 'name' to class RBDVolume." 2017-10-10 03:41:31 +00:00
linuxscsi.py linuxscsi: Stop waiting for multipath devices during extend_volume 2019-12-11 17:19:58 +00:00
linuxsheepdog.py Remove unused LOG to keep code clean 2016-07-09 10:17:48 +08:00