From: pilem94 Date: Tue, 3 Oct 2023 20:09:48 +0000 (-0400) Subject: src/ceph-volume/ceph_volume/devices/lvm/listing.py : lvm list filters also on vg... X-Git-Tag: v18.2.5~481^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F58998%2Fhead;p=ceph.git src/ceph-volume/ceph_volume/devices/lvm/listing.py : lvm list filters also on vg name This commit fix the listing of LVs with the same name on multiple VG Fixes: https://tracker.ceph.com/issues/62320 Signed-off-by: Pierre Lemay (cherry picked from commit b2c4e62afac32edda142a51eb601420a1a79bb2f) --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/listing.py b/src/ceph-volume/ceph_volume/devices/lvm/listing.py index c16afdaa76728..8fb9d8ddcf876 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/listing.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/listing.py @@ -153,7 +153,9 @@ class List(object): elif arg[0] == '/': lv = api.get_lvs_from_path(arg) else: - lv = [api.get_single_lv(filters={'lv_name': arg.split('/')[1]})] + vg_name, lv_name = arg.split('/') + lv = [api.get_single_lv(filters={'lv_name': lv_name, + 'vg_name': vg_name})] report = self.create_report(lv)