]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: api/lvm create or reuse a vg
authorJan Fajerski <jfajerski@suse.com>
Tue, 22 Oct 2019 12:32:11 +0000 (14:32 +0200)
committerJan Fajerski <jfajerski@suse.com>
Tue, 11 Feb 2020 12:28:41 +0000 (13:28 +0100)
commit670351a9d51cf89c0c4ddc254381ebc47b4ee04f
treeacdc479ee2767001985034f1b4f18b8dae471f97
parent1b0aa07b28ec134d485f1f260cc5815a1c0f539a
ceph-volume: api/lvm create or reuse a vg

This changes create_lv so one can pass the desired device and either a
VG with a name starting with ceph is re-used or a new one is created.
This commit also adds two new lvm primitives, making use of lvm's select
feature. The goal is to eventually avoid keeping a full list of lv's (or
vg's) around and query the lvm system as needed.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit bb4de1a3fc238eaf9f717dc59c6bdf338ef6d657)
src/ceph-volume/ceph_volume/api/lvm.py
src/ceph-volume/ceph_volume/devices/lvm/activate.py
src/ceph-volume/ceph_volume/devices/lvm/create.py
src/ceph-volume/ceph_volume/devices/lvm/prepare.py
src/ceph-volume/ceph_volume/devices/lvm/strategies/bluestore.py
src/ceph-volume/ceph_volume/devices/lvm/strategies/filestore.py
src/ceph-volume/ceph_volume/tests/api/test_lvm.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py