]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: handle idempotency with batch and explicit scenarios 34744/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 24 Apr 2020 17:11:52 +0000 (12:11 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 24 Apr 2020 19:18:52 +0000 (14:18 -0500)
commit9b8254edc8ee6c91809119120970b722edb100b7
treea8cc516cde963702f96941d0fd5e781a3d1ea40b
parent9a3aecbaf3c42b48ba1dc1fdf670c3da01c14956
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>
src/ceph-volume/ceph_volume/devices/lvm/batch.py
src/ceph-volume/ceph_volume/tests/devices/lvm/test_batch.py