]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: add --all flag to simple activate 26656/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:55:41 +0000 (17:55 +0100)
commitbc58b5f3c17dad6b9c750be992f7326ebcb0b7f4
tree8a3da215d7ef3bb7f664b75b7e3b8564f97434b7
parentb1bf7408d04d0a634bebeeb374b925d3fdb66c4a
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 deleting 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