After adopting a monitor we need to wait that monitor to join back
the quorum before moving to the next node.
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit
0c3a2b72ff1efe7c5a1592b12bd2d6690b6096a7)
state: absent
when: not containerized_deployment | bool
+ - name: waiting for the monitor to join the quorum...
+ command: "cephadm shell --fsid {{ fsid }} -- ceph --cluster {{ cluster }} -s --format json"
+ changed_when: false
+ register: ceph_health_raw
+ until: >
+ ansible_hostname in (ceph_health_raw.stdout | from_json)["quorum_names"]
+ retries: "{{ health_mon_check_retries }}"
+ delay: "{{ health_mon_check_delay }}"
+ environment:
+ CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}'
+
- name: adopt ceph mgr daemons
hosts: "{{ mgr_group_name|default('mgrs') }}"
serial: 1