From: Sébastien Han Date: Mon, 4 Sep 2017 20:13:17 +0000 (+0200) Subject: shrink-mon: wait a little bit for the mon to be out X-Git-Tag: v3.0.0rc7~20^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=579b95fd8a7d5cadd29de65f16615ffe420d51c5;p=ceph-ansible.git shrink-mon: wait a little bit for the mon to be out Monitor removal from the monmap is not immediate, so let's wait a little bit and then fail if the monitor is still in the monmap. We try twice in total with 10 sec intervals. Signed-off-by: Sébastien Han --- diff --git a/infrastructure-playbooks/shrink-mon.yml b/infrastructure-playbooks/shrink-mon.yml index 087a12ae6..365f5b2b2 100644 --- a/infrastructure-playbooks/shrink-mon.yml +++ b/infrastructure-playbooks/shrink-mon.yml @@ -118,7 +118,11 @@ shell: | ceph --cluster {{ cluster }} -s -f json | python -c 'import sys, json; print(json.load(sys.stdin)["quorum_names"])' delegate_to: "{{ mon_host }}" + failed_when: false register: result + until: mon_to_kill_hostname not in result.stdout + retries: 2 + delay: 10 - name: please remove the monitor from your ceph configuration file debug: