]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-volume: pick strategy for batch with only the unused devices
authorAndrew Schoen <aschoen@redhat.com>
Thu, 27 Sep 2018 20:22:17 +0000 (15:22 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 10 Oct 2018 19:30:26 +0000 (15:30 -0400)
commit4529f2d6053b0b07583a3d7501f4e05e08cad385
tree550dd11c98560ee966456f36672df8fc6656c04e
parent10f1d577d4c4e66c77046fc3b274d6653af99586
ceph-volume: pick strategy for batch with only the unused devices

This will pick a strategy, filter out any devices already been used by
ceph and then pick a strategy again. If the strategy has changed the
call should error, if the strategy is the same proceed. If there are no
unused devices then the command is a noop.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/devices/lvm/strategies/filestore.py
src/ceph-volume/ceph_volume/util/device.py