]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
iscsi: fix networking issue on containerized env
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 18 Oct 2018 20:29:02 +0000 (22:29 +0200)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Fri, 19 Oct 2018 00:12:43 +0000 (00:12 +0000)
The iscsi-gw containers can't reach monitors without `--net=host`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-iscsi-gw/templates/rbd-target-api.service.j2
roles/ceph-iscsi-gw/templates/rbd-target-gw.service.j2
roles/ceph-iscsi-gw/templates/tcmu-runner.service.j2

index 69781693d31e1bd703019a39374ed9883293da1e..2cc19231f4a05dff0fff83b42acca08a95e6ff67 100644 (file)
@@ -16,6 +16,7 @@ ExecStart=/usr/bin/docker run --rm \
   -v /etc/localtime:/etc/localtime:ro \
   --privileged \
   --cap-add=ALL \
+  --net=host \
   -v /dev:/dev \
   -v /lib/modules:/lib/modules \
   -v /etc/ceph:/etc/ceph \
index 3aa18d1c1e052f12a5d743e02433b9ac0da63b26..6729884989110033675a35aa474363e099ecd82d 100644 (file)
@@ -16,6 +16,7 @@ ExecStart=/usr/bin/docker run --rm \
   -v /etc/localtime:/etc/localtime:ro \
   --privileged \
   --cap-add=ALL \
+  --net=host \
   -v /dev:/dev \
   -v /lib/modules:/lib/modules \
   -v /etc/ceph:/etc/ceph \
index 8159125f5fe4fe04e94cb3e8f7b801644f57cd97..bbaf58ee798bc63ff8d268963ed4b43235858684 100644 (file)
@@ -15,6 +15,7 @@ ExecStart=/usr/bin/docker run --rm \
   {% endif -%}
   -v /etc/localtime:/etc/localtime:ro \
   --privileged \
+  --net=host \
   --cap-add=ALL \
   -v /dev:/dev \
   -v /lib/modules:/lib/modules \