From 93bae7afdd881fe345e0001a6c02975979ab188c Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Mon, 3 Aug 2020 19:43:24 +0530 Subject: [PATCH] ceph-volume: remove api.lvm.get_api_pvs() Signed-off-by: Rishabh Dave --- src/ceph-volume/ceph_volume/api/lvm.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/ceph-volume/ceph_volume/api/lvm.py b/src/ceph-volume/ceph_volume/api/lvm.py index 3ca99167ce3d2..2a3a5e73b7417 100644 --- a/src/ceph-volume/ceph_volume/api/lvm.py +++ b/src/ceph-volume/ceph_volume/api/lvm.py @@ -286,29 +286,6 @@ def is_ceph_device(lv): PV_FIELDS = 'pv_name,pv_tags,pv_uuid,vg_name,lv_uuid' -def get_api_pvs(): - """ - Return the list of physical volumes configured for lvm and available in the - system using flags to include common metadata associated with them like the uuid - - This will only return physical volumes set up to work with LVM. - - Command and delimited output should look like:: - - $ pvs --noheadings --readonly --separator=';' -o pv_name,pv_tags,pv_uuid - /dev/sda1;; - /dev/sdv;;07A4F654-4162-4600-8EB3-88D1E42F368D - - """ - stdout, stderr, returncode = process.call( - ['pvs', '--no-heading', '--readonly', '--separator=";"', '-o', - PV_FIELDS], - verbose_on_failure=False - ) - - return _output_parser(stdout, PV_FIELDS) - - class PVolume(object): """ Represents a Physical Volume from LVM, with some top-level attributes like -- 2.39.5