]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Path for ceph config missing in crash template
authorMike Currin <currin@gmail.com>
Thu, 24 Dec 2020 07:25:24 +0000 (09:25 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 6 Jan 2021 15:55:39 +0000 (16:55 +0100)
The path where ceph.conf is located (/etc/ceph) missing in the Docker container bind mounts, this throws errors

Signed-off-by: Mike Currin <currin@gmail.com>
(cherry picked from commit 4cbc9a48c9cd025df7dcd438c5bcf975868638c0)

roles/ceph-crash/templates/ceph-crash.service.j2

index 624420023febd5fe5a7bc36226a869568f4babaa..fd946892103ab361dbd3e960a864cf8c12ec80fb 100644 (file)
@@ -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`"