]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: refactor strategies for explicit device arguments
authorJan Fajerski <jfajerski@suse.com>
Tue, 27 Nov 2018 14:49:01 +0000 (15:49 +0100)
committerJan Fajerski <jfajerski@suse.com>
Fri, 19 Jul 2019 10:52:13 +0000 (12:52 +0200)
commit75d1a836418b061c6cc88f5fdfb9c2c162257ddf
treedbcbc49ffe62832df65fd8103c6158eee005605f
parent0c645faa845b978d28aebbf1c270fab5d750437d
ceph-volume: refactor strategies for explicit device arguments

This commit refactors lvm strategies to:
a) change the constructor to receive usage specific device lists
b) add classmethod with_auto_devices of automatic splitting by the
rotational flag (keep backwards compatible behavior)
c) rename ssds and hdds member variables to wal_devs and block_devs
d) add db_devs member variable

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 60dec8b1dfdd056662ba6a030de291f93b2f3650)
src/ceph-volume/ceph_volume/devices/lvm/batch.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/devices/lvm/strategies/strategies.py