]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix a bug in get_all_devices_vgs() 49453/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 2 Nov 2022 15:03:17 +0000 (16:03 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 15 Dec 2022 07:04:41 +0000 (08:04 +0100)
commit717c998b0ffc8d01e4674ed8be1f590634bc13ee
tree1d0ee2724c0f1e27bf711a31f097c848598000f0
parentf0f7c50f7b0d1d1769eeda0b8247e88ba35d7793
ceph-volume: fix a bug in get_all_devices_vgs()

When a physical volume isn't a member of any volume group,
the function `get_all_devices_vgs()` in `ceph_volume.api.lvm`
shouldn't try to return an `VolumeGroup()` object against this
device.

Fixes: https://tracker.ceph.com/issues/57918
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 770cd09412f933eeb93426a8acfc4f4666c99024)
src/ceph-volume/ceph_volume/api/lvm.py