]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
shrink-mon: search mon in the quorum_names list
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 12 Sep 2019 15:51:37 +0000 (11:51 -0400)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 18 Sep 2019 14:47:40 +0000 (14:47 +0000)
commita5775be7c47f40996ae1bd9d4507e77ecbfc6518
treebc9cdd641a488f3a59c9222710cae88098388cae
parentb50fa236304737812e0a15329f2ddd0752e3bf92
shrink-mon: search mon in the quorum_names list

If we're looking at the mon hostname in the ceph status output then
there's some scenarios where this could be true.
If we collocate some services (mons, mgrs, etc..) then the hostname of
the monitor to shrink will still be present in the ceph status (like
in mgrs or other).
Instead we should check the hostame only in the mon part of the output.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 734c0dc3106a14a0bacd952d1fd91e3d8856bac6)
infrastructure-playbooks/shrink-mon.yml