From dd2202c3da8a2739be1c2a7cad1d25602a4b7c18 Mon Sep 17 00:00:00 2001 From: pilem94 Date: Tue, 3 Oct 2023 16:09:48 -0400 Subject: [PATCH] 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) --- src/ceph-volume/ceph_volume/devices/lvm/listing.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.5