diff options
author | Igor Fedotov <igor.fedotov@croit.io> | 2023-03-09 14:29:55 +0100 |
---|---|---|
committer | Igor Fedotov <igor.fedotov@croit.io> | 2023-07-25 17:51:14 +0200 |
commit | d8f163d1f55d8234824e57fc6f851db9292fa972 (patch) | |
tree | cb79f7059f5b06a2c978ec535e591b1c0168b76d /src/ceph-volume/ceph_volume/devices | |
parent | test/ceph-volume: add UT for adding encrypted DB/WAL lvm. (diff) | |
download | ceph-d8f163d1f55d8234824e57fc6f851db9292fa972.tar.xz ceph-d8f163d1f55d8234824e57fc6f851db9292fa972.zip |
ceph-volume: close encrypted volumes on deactivate
Fixes: https://tracker.ceph.com/issues/58943
Signed-off-by: Igor Fedotov <igor.fedotov@croit.io>
Diffstat (limited to 'src/ceph-volume/ceph_volume/devices')
-rw-r--r-- | src/ceph-volume/ceph_volume/devices/lvm/deactivate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ceph-volume/ceph_volume/devices/lvm/deactivate.py b/src/ceph-volume/ceph_volume/devices/lvm/deactivate.py index 46846a1dcbe..0cc8d71ae64 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/deactivate.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/deactivate.py @@ -28,7 +28,7 @@ def deactivate_osd(osd_id=None, osd_uuid=None): for lv in lvs: if lv.tags.get('ceph.encrypted', '0') == '1': - encryption.dmcrypt_close(lv.lv_uuid) + encryption.dmcrypt_close(mapping=lv.lv_uuid, skip_path_check=True) class Deactivate(object): |