]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: add --all flag to simple activate
authorJan Fajerski <jfajerski@suse.com>
Thu, 31 Jan 2019 12:45:46 +0000 (13:45 +0100)
committerJan Fajerski <jfajerski@suse.com>
Tue, 19 Feb 2019 17:24:04 +0000 (18:24 +0100)
commit05af94c6fca66083107e96e9aa1db87619e77e66
tree6954aca390954090d6f4cfb97ea3db5b73c64d57
parent3fb2d726012c4bf8c3a6013ca9eb9594b881352d
ceph-volume: add --all flag to simple activate

This is intended to behave similarly to the lvm activate --all argument.
When passed, c-v will scan /etc/ceph/osd/ (or the location specified by
CEPH_VOLUME_SIMPLE_JSON_DIR) for json files (glob *.json) and call activate
for each file.  This should greatly ease the take-over of ceph-disk OSDs
with manual commands and deployment tools like DeepSea and ceph-ansible.
Also adds a simple unit test and modifies the
simple/centos7/filestore/activate functional test to use --all.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/ceph-volume/ceph_volume/devices/simple/activate.py
src/ceph-volume/ceph_volume/tests/devices/simple/test_activate.py
src/ceph-volume/ceph_volume/tests/functional/simple/centos7/filestore/activate/test.yml