]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: handle idempotency with batch and explicit scenarios 35880/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 24 Apr 2020 17:11:52 +0000 (12:11 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 1 Jul 2020 21:01:23 +0000 (16:01 -0500)
commitf244e3e68ed176ff6636894a67e5c08fbbaeaefc
treeb92f3267464bb47cd88424596dba1c48eec77341
parentcd2bc7b340400a759590a7339919bebe2817e781
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