]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: Fix usage of is_lv 39221/head
authorMichał Nasiadka <mnasiadka@gmail.com>
Tue, 12 Jan 2021 14:21:51 +0000 (15:21 +0100)
committerJan Fajerski <jfajerski@suse.com>
Tue, 2 Feb 2021 09:54:24 +0000 (10:54 +0100)
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 <mnasiadka@gmail.com>
(cherry picked from commit 5050a88e7a85bb1aa6cd5473c9083a186e2264d5)

src/ceph-volume/ceph_volume/util/disk.py

index 7325a25580ce902cb44a8cb083e72809cc3bfcea..2cf18cb5249748a675c34d7de7b9520c85bb1112 100644 (file)
@@ -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