]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: skip internal raid mirror LVs in inventory 69569/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 18 Jun 2026 05:19:43 +0000 (07:19 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Fri, 19 Jun 2026 06:27:04 +0000 (08:27 +0200)
commitdaec7e125a167bb8fd0fb9faaa04879f0bb215d2
tree037aa0583c4649e3aa2469c7160be7381ea2ef59
parentda8d57b9818e3992a50d7e81851c29abc6025ce1
ceph-volume: skip internal raid mirror LVs in inventory

ceph-volume inventory started including all LVM mapper devices after
c06bee965f1. On hosts with raid mirrored system volumes, that pulls in
hidden legs like var_rmeta_0 which have no /dev/vg/lv node and makes
cephadm's ceph-volume inventory call fail.

Skip those internal LVs in get_devices() and avoid rewriting the device
path to a missing lv_path in Device._parse().

Fixces: https://tracker.ceph.com/issues/77486

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-volume/ceph_volume/tests/util/test_device.py
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/util/device.py
src/ceph-volume/ceph_volume/util/disk.py