From e5d5dffeb52e28fdedd54eb0898b526c0e89105e Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Thu, 22 Nov 2018 17:32:25 +0100 Subject: [PATCH] shrink-osd: add missing CEPH_BINARY MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We need to add the right binary to do the docker exec. Signed-off-by: Sébastien Han --- infrastructure-playbooks/shrink-osd.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/infrastructure-playbooks/shrink-osd.yml b/infrastructure-playbooks/shrink-osd.yml index 1d31525bf..6bead567e 100644 --- a/infrastructure-playbooks/shrink-osd.yml +++ b/infrastructure-playbooks/shrink-osd.yml @@ -63,7 +63,7 @@ # post-task for preceding import - name: set_fact docker_exec_cmd build docker exec command (containerized) set_fact: - docker_exec_cmd: "docker exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }}" + docker_exec_cmd: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }}" when: containerized_deployment - name: exit playbook, if can not connect to the cluster @@ -91,6 +91,7 @@ environment: CEPH_VOLUME_DEBUG: 1 CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else None }}" + CEPH_CONTAINER_BINARY: "{{ container_binary }}" with_items: "{{ osd_hosts }}" delegate_to: "{{ item }}" register: osd_volumes @@ -135,6 +136,7 @@ environment: CEPH_VOLUME_DEBUG: 1 CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else None }}" + CEPH_CONTAINER_BINARY: "{{ container_binary }}" delegate_to: "{{ item.host }}" with_items: "{{ osd_host_volumes_to_kill_non_container }}" -- 2.47.3