]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix a bug in get_all_devices_vgs() 49454/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:05:13 +0000 (08:05 +0100)
commitbd9b1c8eb5d0f1708d7fae50e85d6bf0b52f38c7
treec17052d4b61c5ce272e3f43fab35ba5a435cd9ae
parent5cf50246231ae01322b8b44824d92fefa331e6db
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