os-brick/os_brick
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
..
encryptors Make close on cryptsetup volumes idempotent 2017-11-18 00:19:42 +00:00
initiator rbd: Use showmapped to find the root RBD device during disconnect_volume 2020-04-15 11:38:23 +01:00
local_dev Remove the unnecessary pv_list assign during LVM object init 2018-01-11 00:59:31 +00:00
privileged Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
remotefs Fix NFS "already mounted" detection 2018-12-06 11:08:00 -05:00
tests rbd: Use showmapped to find the root RBD device during disconnect_volume 2020-04-15 11:38:23 +01:00
__init__.py doc: Remove cruft from conf.py 2017-08-08 15:44:29 +01:00
exception.py Refactor iSCSI connect 2017-06-16 16:09:35 +02:00
executor.py iSCSI multipath: improve logging on connect 2017-06-26 20:31:59 +02:00
i18n.py Update and replace http with https for doc links 2017-07-26 02:18:44 +00:00
utils.py Mask passwords in utils.trace for func params 2016-11-08 12:55:46 -05:00
version.py Add reno for release notes management 2016-01-20 19:19:36 -06:00