From: Andrew Schoen Date: Wed, 17 Jan 2018 18:58:50 +0000 (-0600) Subject: ceph-volume: expose vg_name in api.lvm.get_api_pvs X-Git-Tag: v13.0.2~453^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b7f24ec451e167d81a83c1e21597a9fece4f0684;p=ceph.git ceph-volume: expose vg_name in api.lvm.get_api_pvs Signed-off-by: Andrew Schoen --- diff --git a/src/ceph-volume/ceph_volume/api/lvm.py b/src/ceph-volume/ceph_volume/api/lvm.py index df1ec48cd1ab2..b39a71d1d255b 100644 --- a/src/ceph-volume/ceph_volume/api/lvm.py +++ b/src/ceph-volume/ceph_volume/api/lvm.py @@ -122,7 +122,7 @@ def get_api_pvs(): /dev/sdv;;07A4F654-4162-4600-8EB3-88D1E42F368D """ - fields = 'pv_name,pv_tags,pv_uuid' + fields = 'pv_name,pv_tags,pv_uuid,vg_name' # note the use of `pvs -a` which will return every physical volume including # ones that have not been initialized as "pv" by LVM @@ -707,6 +707,7 @@ class PVolume(object): setattr(self, k, v) self.pv_api = kw self.name = kw['pv_name'] + self.vg_name = kw['vg_name'] self.tags = parse_tags(kw['pv_tags']) def __str__(self):