]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-volume: be idempotent when the batch strategy changes
authorAndrew Schoen <aschoen@redhat.com>
Tue, 20 Nov 2018 20:28:58 +0000 (14:28 -0600)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 26 Nov 2018 23:23:50 +0000 (23:23 +0000)
commite13f32c1c5be2e4007714f704297827b16488ec6
tree44ec27859eb0780c6a8c4da56b88b7a0aec87d41
parent997667a8734eddaa616fe642e57f6378408736a9
ceph-volume: be idempotent when the batch strategy changes

If you deploy with 2 HDDs and 1 SDD then each subsequent deploy both
HDD drives will be filtered out, because they're already used by ceph.
ceph-volume will report this as a 'strategy change' because the device
list went from a mixed type of HDD and SDD to a single type of only SDD.

This situation results in a non-zero exit code from ceph-volume. We want
to handle this situation gracefully and report that nothing will be changed.
A similar json structure to what would have been given by ceph-volume is
returned in the 'stdout' key.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1650306
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
library/ceph_volume.py