]> git.apps.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:30:46 +0000 (17:00 +0530)
commit0cb9acf8f4098219240ef7c24f5bb8be1ad1d4c4
treed9028f966b84b503f99aca3b0b91f3a9705b409b
parent4fa70accfb955c306e7e8e33cb7d5b777d1c973e
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