]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
iscsi: expose /dev/log in the container
authorSébastien Han <seb@redhat.com>
Mon, 19 Nov 2018 13:12:43 +0000 (14:12 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Tue, 27 Nov 2018 16:47:40 +0000 (16:47 +0000)
During its initialisation both rbd-target-api and rbd-target-gw try to
open /dev/log for their syslog handler. If the device is not present the
service fails to start. Thus expose /dev/log from the host in the
container solves that problem.

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-iscsi-gw/templates/rbd-target-api.service.j2
roles/ceph-iscsi-gw/templates/rbd-target-gw.service.j2

index a0fca974015f4d3aefbacbf76502138cb7159ced..2a2083e1b5622d356f7f3e5e68155c834f8cc9a0 100644 (file)
@@ -18,6 +18,7 @@ ExecStart=/usr/bin/{{ container_binary }} run --rm \
   --cap-add=ALL \
   --net=host \
   -v /dev:/dev \
+  -v /dev/log:/dev/log \
   -v /lib/modules:/lib/modules \
   -v /etc/ceph:/etc/ceph \
   -e CLUSTER={{ cluster }} \
index f95e915573f73fe519619a6be18624a821803493..2d99277a82c7f957bb96ba6a7fcbbd2b2ee34c76 100644 (file)
@@ -18,6 +18,7 @@ ExecStart=/usr/bin/{{ container_binary }} run --rm \
   --cap-add=ALL \
   --net=host \
   -v /dev:/dev \
+  -v /dev/log:/dev/log \
   -v /lib/modules:/lib/modules \
   -v /etc/ceph:/etc/ceph \
   -e CLUSTER={{ cluster }} \