From 4064035a54d37c5753acaff8f6533bb7fc4c3017 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 11 Feb 2019 11:20:30 +0100 Subject: [PATCH] switch_to_containers: use ceph binary from container use the ceph binary from the container instead of the host. If the ceph CLI version isn't compatible between host and container image, it can cause the CLI to hang. Signed-off-by: Guillaume Abrioux --- ...rom-non-containerized-to-containerized-ceph-daemons.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml index b0c49d84c..987cc1b42 100644 --- a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml +++ b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml @@ -129,16 +129,13 @@ name: ceph-mon post_tasks: - # We don't do a container test by running 'docker exec ...' since not all the monitors have switched to containers yet. - # Thus, we continue to use the 'ceph' binary from the host, there is no issue with that. - - name: non container | waiting for the monitor to join the quorum... - command: ceph --cluster "{{ cluster }}" -s --format json + - name: waiting for the monitor to join the quorum... + command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} -s --format json" register: ceph_health_raw until: > hostvars[mon_host]['ansible_hostname'] in (ceph_health_raw.stdout | from_json)["quorum_names"] retries: "{{ health_mon_check_retries }}" delay: "{{ health_mon_check_delay }}" - delegate_to: "{{ mon_host }}" - name: switching from non-containerized to containerized ceph mgr -- 2.39.5