]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
src/cephadm: updated crash dir creation
authorTimothy Q Nguyen <timqn22@gmail.com>
Sat, 6 Dec 2025 02:07:19 +0000 (18:07 -0800)
committerTimothy Q Nguyen <timqn22@gmail.com>
Tue, 6 Jan 2026 21:22:15 +0000 (13:22 -0800)
commit416383038cba0a9296b42eb3e58b33917bc60ebe
tree00a9dee5ec09cefa957ca1168236287745a47aa5
parent6e7fabd003ff21be9c077e00018505401053837f
src/cephadm: updated crash dir creation

This change is meant to address the issue of daemons like
grafana changing the uid and gid of the crash directory,
/var/lib/ceph<fsid>/crash, the crash service only works if
this directory has the standard ceph-user uid and gid. I've
created a Crash class based on the Ceph class and overwrite
the create function. Now, the directories will be made just
before the Crash daemon is created. The directories have to
be made before the Crash daemon for the service to check
properly.

Signed-off-by: Timothy Q Nguyen <timqn22@gmail.com>
src/cephadm/cephadm.py
src/cephadm/cephadmlib/daemons/__init__.py
src/cephadm/cephadmlib/daemons/ceph.py