]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: fix a bug in get_all_devices_vgs()
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 2 Nov 2022 15:03:17 +0000 (16:03 +0100)
committerYuri Weinstein <yweinste@redhat.com>
Wed, 5 Apr 2023 22:33:02 +0000 (22:33 +0000)
commitd9036fea5ce4f74443057a971ddc80e8913f486a
tree9d04901c7cf7f5b6c50ac00be2f3eeb8508a83e2
parent3cf40e2dca667f68c6ce3ff5cd94f01e711af894
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)
(cherry picked from commit bd9b1c8eb5d0f1708d7fae50e85d6bf0b52f38c7)
src/ceph-volume/ceph_volume/api/lvm.py