From e5e429617c1c27dcd631171f65d30571e32f7266 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 13 Jul 2023 12:26:58 +0000 Subject: [PATCH] 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 --- src/ceph-volume/ceph_volume/devices/raw/list.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ceph-volume/ceph_volume/devices/raw/list.py b/src/ceph-volume/ceph_volume/devices/raw/list.py index b1a5215b7eb64..0f801701b8065 100644 --- a/src/ceph-volume/ceph_volume/devices/raw/list.py +++ b/src/ceph-volume/ceph_volume/devices/raw/list.py @@ -89,6 +89,9 @@ def generate(self, devs=None): # determine whether a parent is bluestore, we should err on the side of not reporting # the child so as not to give a false negative. info_device = [info for info in info_devices if info['NAME'] == dev][0] + if info_device['TYPE'] == 'lvm': + # lvm devices are not raw devices + continue if 'PKNAME' in info_device and info_device['PKNAME'] != "": parent = info_device['PKNAME'] try: