From 360a2d2b3013f8e38dd388c9ccc91873287931ca Mon Sep 17 00:00:00 2001 From: Mike Currin Date: Thu, 24 Dec 2020 09:25:24 +0200 Subject: [PATCH] Path for ceph config missing in crash template The path where ceph.conf is located (/etc/ceph) missing in the Docker container bind mounts, this throws errors Signed-off-by: Mike Currin (cherry picked from commit 4cbc9a48c9cd025df7dcd438c5bcf975868638c0) --- roles/ceph-crash/templates/ceph-crash.service.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-crash/templates/ceph-crash.service.j2 b/roles/ceph-crash/templates/ceph-crash.service.j2 index 624420023..fd9468921 100644 --- a/roles/ceph-crash/templates/ceph-crash.service.j2 +++ b/roles/ceph-crash/templates/ceph-crash.service.j2 @@ -20,6 +20,7 @@ ExecStart=/usr/bin/{{ container_binary }} run --rm --name ceph-crash-%i \ --net=host \ -v /var/lib/ceph:/var/lib/ceph:z \ -v /etc/localtime:/etc/localtime:ro \ +-v /etc/ceph:/etc/ceph:z \ --entrypoint=/usr/bin/ceph-crash {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} {% if container_binary == 'podman' %} ExecStop=-/usr/bin/sh -c "/usr/bin/{{ container_binary }} rm -f `cat /%t/%n-cid`"