mirror of https://github.com/ceph/ceph-ansible.git
switch2container: fix mon quorum check
This was reverted byhotfix-bz20143047ddbe74
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1990733 Signed-off-by: Dimitri Savineau <dsavinea@redhat.com> (cherry picked from commit712a9c4403
)
parent
bc9f2017db
commit
998dda7fdf
|
@ -143,7 +143,7 @@
|
||||||
command: "{{ container_binary }} run --rm -v /etc/ceph:/etc/ceph:z --entrypoint=ceph {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} --cluster {{ cluster }} quorum_status --format json"
|
command: "{{ container_binary }} run --rm -v /etc/ceph:/etc/ceph:z --entrypoint=ceph {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} --cluster {{ cluster }} quorum_status --format json"
|
||||||
register: ceph_health_raw
|
register: ceph_health_raw
|
||||||
changed_when: false
|
changed_when: false
|
||||||
until: hostvars[mon_host]['ansible_facts']['hostname'] in (ceph_health_raw.stdout | from_json)["quorum_names"]
|
until: ansible_facts['hostname'] in (ceph_health_raw.stdout | trim | from_json)["quorum_names"]
|
||||||
retries: "{{ health_mon_check_retries }}"
|
retries: "{{ health_mon_check_retries }}"
|
||||||
delay: "{{ health_mon_check_delay }}"
|
delay: "{{ health_mon_check_delay }}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue