]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: Use a persistent volume to store Loki DB
authorAashish Sharma <aasharma@li-e74156cc-2f67-11b2-a85c-e98659a63c5c.ibm.com>
Mon, 25 Nov 2024 06:37:23 +0000 (12:07 +0530)
committerAashish Sharma <Aashish.Sharma1@ibm.com>
Wed, 22 Oct 2025 11:31:39 +0000 (17:01 +0530)
commit07db5881eb9901421879b589961b36eabdcfc6df
tree47f344838f3e15250720a81d0f2a9673dd632a42
parentf9b7c9afb7c315fa1e19a3d136d9c20a075ae42c
mgr/dashboard: Use a persistent volume to store Loki DB

Current Behavior: The Loki configuration directs all data to /tmp/loki, which is not mounted as a persistent volume. This results in data being stored in a temporary location that gets cleared upon container restart.
Expected Behavior: Loki data should be stored in /loki, which is backed by the persistent volume mapped to /var/lib/ceph/<fsid>/loki.<id>/data, ensuring data persistence across container restarts.

Fixes: https://tracker.ceph.com/issues/69029
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 70f8bdba522912fcef7e0ebbb83c611b1e869223)
src/pybind/mgr/cephadm/templates/services/loki.yml.j2
src/pybind/mgr/cephadm/tests/test_services.py