]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: handle idempotency with batch and explicit scenarios 35881/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 24 Apr 2020 17:11:52 +0000 (12:11 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 30 Jul 2020 21:13:11 +0000 (16:13 -0500)
commit11621b850a1f9aee066c30d12c548dc51e609632
treead346cf93c74caf3138bfe02337147e4ba9dfd43
parent32a68f5aa1ec5b0f4f15e291fe895c144b7900c6
ceph-volume: handle idempotency with batch and explicit scenarios

If you used --wal-devices or --db-devices with batch and too
many devices are filtered out then a RuntimeError was raised.

However, if --report and --format=json is used then we
should return valid json indicating that no OSDS will be created
so that ceph-ansible and other systems can use that for idempotency checks.

Resolves: rhbz#1827349

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 9b8254edc8ee6c91809119120970b722edb100b7)
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_batch.py