]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
mgr: do not use ceph/daemon entrypoint
authorGuillaume Abrioux <gabrioux@redhat.com>
Sat, 17 Sep 2022 01:48:45 +0000 (03:48 +0200)
committerTeoman ONAY <tonay@redhat.com>
Wed, 31 May 2023 21:07:13 +0000 (23:07 +0200)
This changes the entrypoint used for ceph-mgr containerized daemons
in the systemd template.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-mgr/templates/ceph-mgr.service.j2

index aee87a6abbed753cdff5ae3cf4a96efac704ac7e..419cdacd43059b932ba0786ee6c730a982b2b28b 100644 (file)
@@ -39,7 +39,10 @@ ExecStart=/usr/bin/{{ container_binary }} run --rm --net=host \
   -e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES={{ ceph_tcmalloc_max_total_thread_cache }} \
   {{ ceph_mgr_docker_extra_env }} \
   --name=ceph-mgr-{{ ansible_facts['hostname'] }} \
-  {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}
+  --entrypoint=/usr/bin/ceph-mgr \
+  {{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }} \
+  -f --default-log-to-file=false --default-log-to-stderr=true \
+  -i {{ ansible_facts['hostname'] }}
 {% if container_binary == 'podman' %}
 ExecStop=-/usr/bin/sh -c "/usr/bin/{{ container_binary }} rm -f `cat /%t/%n-cid`"
 {% else %}