]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: add --all flag to simple activate 26655/head
authorJan Fajerski <jfajerski@suse.com>
Thu, 31 Jan 2019 12:45:46 +0000 (13:45 +0100)
committerJan Fajerski <jfajerski@suse.com>
Tue, 26 Feb 2019 16:52:13 +0000 (17:52 +0100)
commit98d36d388d7104d96c840675b4948d1d971dc49d
treedf5bab81c443c6c61a96d3a6128f4cb61a116459
parent4b9c1da23e67a85dbcfcc081f339d2877222e85a
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>
(cherry picked from commit 05af94c6fca66083107e96e9aa1db87619e77e66)

 Conflicts:
src/ceph-volume/ceph_volume/tests/functional/simple/centos7/filestore/activate/test.yml
        resolved by removing everything after conflict marker
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