From c7aae7f965758eb08a806fc7be75d8075884b733 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Thu, 18 May 2017 11:56:55 +0200 Subject: [PATCH] mon: do not hardcode ipv4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Problem: fail to deploy a containerized Ceph cluster with ipv6 Solution: do not hardcode ipv4 when bootstrapping the container. Now use ip_version: ipv6 to get a containerized cluster deployed with ipv6. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1451786 Signed-off-by: Sébastien Han --- roles/ceph-mon/templates/ceph-mon.service.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-mon/templates/ceph-mon.service.j2 b/roles/ceph-mon/templates/ceph-mon.service.j2 index f231d2bfb..014046f3e 100644 --- a/roles/ceph-mon/templates/ceph-mon.service.j2 +++ b/roles/ceph-mon/templates/ceph-mon.service.j2 @@ -23,7 +23,7 @@ ExecStart=/usr/bin/docker run --rm --name ceph-mon-%i --net=host \ --net=host \ {% endif -%} -e CEPH_DAEMON=MON \ - -e MON_IP={{ hostvars[inventory_hostname]['ansible_' + ceph_mon_docker_interface]['ipv4']['address'] }} \ + -e MON_IP={{ hostvars[inventory_hostname]['ansible_' + ceph_mon_docker_interface][ip_version]['address'] }} \ -e CEPH_PUBLIC_NETWORK={{ ceph_mon_docker_subnet }} \ {{ ceph_mon_docker_extra_env }} \ {{ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} -- 2.39.5