Skip to content

Commit e5e4296

Browse files
committed
ceph-volume: fix raw list for lvm devices
raw list shouldn't list lvm OSDs. This confuses the generic activate process given that it relies on the raw list to detect which kind of OSD is being activated. Fixes: https://tracker.ceph.com/issues/62002 Signed-off-by: Guillaume Abrioux <[email protected]>
1 parent b3fd5b5 commit e5e4296

File tree

1 file changed

+3
-0
lines changed
  • src/ceph-volume/ceph_volume/devices/raw

1 file changed

+3
-0
lines changed

src/ceph-volume/ceph_volume/devices/raw/list.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ def generate(self, devs=None):
8989
# determine whether a parent is bluestore, we should err on the side of not reporting
9090
# the child so as not to give a false negative.
9191
info_device = [info for info in info_devices if info['NAME'] == dev][0]
92+
if info_device['TYPE'] == 'lvm':
93+
# lvm devices are not raw devices
94+
continue
9295
if 'PKNAME' in info_device and info_device['PKNAME'] != "":
9396
parent = info_device['PKNAME']
9497
try:

0 commit comments

Comments
 (0)