Commit 0c3a2b72 authored by Dimitri Savineau's avatar Dimitri Savineau Committed by Dimitri Savineau
Browse files

cephadm-adopt: wait for monitor in quorum



After adopting a monitor we need to wait that monitor to join back
the quorum before moving to the next node.
Signed-off-by: default avatarDimitri Savineau <dsavinea@redhat.com>
parent d3b3c894
......@@ -346,6 +346,17 @@
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment