Skip to content

Commit

Permalink
ceph-volume: fix raw list for lvm devices
Browse files Browse the repository at this point in the history
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 <gabrioux@ibm.com>
  • Loading branch information
guits committed Jul 19, 2023
1 parent b3fd5b5 commit e5e4296
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ceph-volume/ceph_volume/devices/raw/list.py
Expand Up @@ -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:
Expand Down

0 comments on commit e5e4296

Please sign in to comment.