From: Michał Nasiadka Date: Tue, 12 Jan 2021 14:21:51 +0000 (+0100) Subject: ceph-volume: Fix usage of is_lv X-Git-Tag: v14.2.17~52^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F39221%2Fhead;p=ceph.git ceph-volume: Fix usage of is_lv In commit e09d3cd1a5bcfb42972b6958fb7e6c42a645549d is_lv method was removed from api/lvm.py. This change fixes util/disk.py to not use this missing method. Fixes: https://tracker.ceph.com/issues/48784 Signed-off-by: Michał Nasiadka (cherry picked from commit 5050a88e7a85bb1aa6cd5473c9083a186e2264d5) --- diff --git a/src/ceph-volume/ceph_volume/util/disk.py b/src/ceph-volume/ceph_volume/util/disk.py index 7325a25580ce9..2cf18cb524974 100644 --- a/src/ceph-volume/ceph_volume/util/disk.py +++ b/src/ceph-volume/ceph_volume/util/disk.py @@ -760,7 +760,7 @@ def get_devices(_sys_block_path='/sys/block'): # If the mapper device is a logical volume it gets excluded if is_mapper_device(diskname): - if lvm.is_lv(diskname): + if lvm.get_device_lvs(diskname): continue # all facts that have no defaults