]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: strip _dmcrypt suffix in simple scan json output
authorJan Fajerski <jfajerski@suse.com>
Wed, 5 Feb 2020 05:01:16 +0000 (06:01 +0100)
committerJan Fajerski <jfajerski@suse.com>
Fri, 7 Feb 2020 07:02:47 +0000 (08:02 +0100)
commit2ddf76d118d77659c590ea076d34ce9a8e351a86
treec900485d513877db6ee63dbe934a56f3ff287bb2
parent29d850fb7ea69130f35ec1dca0d45dd07de5abd9
ceph-volume: strip _dmcrypt suffix in simple scan json output

LUKS encrypted OSDs name their block* files with a _dmcrypt suffix.
activate fails on json files like this. Stripping this suffix in scan
fixes this.

Fixes: https://tracker.ceph.com/issues/43966
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/ceph-volume/ceph_volume/devices/simple/scan.py