]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: remove class Volumes from api/lvm.py
authorRishabh Dave <ridave@redhat.com>
Fri, 3 Jul 2020 06:17:50 +0000 (11:47 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 13 Aug 2020 13:46:43 +0000 (19:16 +0530)
commitd48791f666eb98377dad26b80ecd4a493c1d41a4
tree62cdb3f69ea03b760e3eca0249c8a9bb32d23107
parent954095408fa978174ce91b4370b2cd93da05515f
ceph-volume: remove class Volumes from api/lvm.py

And remove methods is_lv(), get_lv() and get_lv_from_argument() since
these methods uses class Volumes and get_first_lv() or get_lv() can be
easily used instead when needed in future.

Also, update tests and comments accordingly.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit e09d3cd1a5bcfb42972b6958fb7e6c42a645549d)

 Conflicts:
src/ceph-volume/ceph_volume/tests/util/test_device.py
Test "test_is_member_lsblk" has a slightly different signature
than master.
src/ceph-volume/ceph_volume/api/lvm.py
src/ceph-volume/ceph_volume/devices/lvm/activate.py
src/ceph-volume/ceph_volume/exceptions.py
src/ceph-volume/ceph_volume/tests/api/test_lvm.py
src/ceph-volume/ceph_volume/tests/conftest.py
src/ceph-volume/ceph_volume/tests/devices/lvm/strategies/test_filestore.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_activate.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_listing.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_zap.py
src/ceph-volume/ceph_volume/tests/util/test_device.py