]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Wed, 20 Nov 2019 10:53:59 +0000 (11:53 +0100)
commitbb4de1a3fc238eaf9f717dc59c6bdf338ef6d657
treecbf688e5de823afeb92bd087eb60e9d8b4180631
parent2fbe8267b62d6afe9a7f7c743d0f05a2348bab4f
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>
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