mirror of https://github.com/ceph/ceph-ansible.git
docker: fix monitor addition on kraken
Probably not the best fix but useful for testing. We will remove this once we find a better workaround. Signed-off-by: Sébastien Han <seb@redhat.com>pull/1278/head
parent
631e6d0fbb
commit
e6541e39e2
|
@ -62,13 +62,21 @@
|
||||||
|
|
||||||
- include: start_docker_monitor.yml
|
- include: start_docker_monitor.yml
|
||||||
|
|
||||||
# NOTE: if we don't wait we will attempt to copy config to ansible host
|
- name: wait for monitor socket to exist
|
||||||
# before admin key is ready, preventing future daemons e.g. ceph-mds from
|
command: docker exec {{ ansible_hostname }} stat /var/run/ceph/{{ cluster }}-mon.{{ ansible_hostname }}.asok
|
||||||
# properly retrieving key
|
register: monitor_socket
|
||||||
- name: "wait for {{ cluster }}.client.admin.keyring exists"
|
retries: 5
|
||||||
wait_for:
|
delay: 10
|
||||||
path: /etc/ceph/{{ cluster }}.client.admin.keyring
|
until: monitor_socket.rc == 0
|
||||||
when: cephx
|
|
||||||
|
- name: force peer addition as potential bootstrap peer for cluster bringup
|
||||||
|
command: docker exec {{ ansible_hostname }} ceph --admin-daemon /var/run/ceph/{{ cluster }}-mon.{{ ansible_hostname }}.asok add_bootstrap_peer_hint {{ hostvars[item]['ansible_' + ceph_mon_docker_interface].ipv4.address }}
|
||||||
|
with_items: "{{ groups.mons }}"
|
||||||
|
changed_when: false
|
||||||
|
failed_when: false
|
||||||
|
when:
|
||||||
|
- inventory_hostname == groups.mons[0]
|
||||||
|
- not mon_containerized_deployment_with_kv
|
||||||
|
|
||||||
- include: copy_configs.yml
|
- include: copy_configs.yml
|
||||||
when: not mon_containerized_deployment_with_kv
|
when: not mon_containerized_deployment_with_kv
|
||||||
|
|
Loading…
Reference in New Issue