]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: remove api.lvm.get_api_pvs()
authorRishabh Dave <ridave@redhat.com>
Mon, 3 Aug 2020 14:13:24 +0000 (19:43 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 10 Aug 2020 08:09:41 +0000 (13:39 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
src/ceph-volume/ceph_volume/api/lvm.py

index 3ca99167ce3d2a6ca0d44869b66f36a15e25292b..2a3a5e73b7417e26a1b969737b269d90f879f982 100644 (file)
@@ -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