mirror of https://github.com/ceph/ceph-ansible.git
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: Dimitri Savineau <dsavinea@redhat.com>pull/5552/head
parent
d3b3c8948e
commit
0c3a2b72ff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue