]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: only make_log_dir for ceph daemons
authorSage Weil <sage@newdream.net>
Mon, 15 Nov 2021 15:43:32 +0000 (10:43 -0500)
committerSebastian Wagner <sewagner@redhat.com>
Mon, 3 Jan 2022 13:59:54 +0000 (14:59 +0100)
commit3f5d3c458ab5f08685b76d6b4aa4aa37886bd812
tree2ca2bf2e66202875f3e93394aebe8acaa45534e7
parente8af131b016e118fb01a0eb24c0a7f9490ae9301
cephadm: only make_log_dir for ceph daemons

For non-ceph daemons, (1) they don't log to /var/log/ceph, and (2) the
container image isn't a ceph image, which means the uid/gid extraction
won't have the correct uid/gid and we'll end up with a log directory that
ceph daemons no longer have write permissions for.

Fixes: https://tracker.ceph.com/issues/53257
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit 393960c164bf84b21ffee6af65c19d968b416fb2)
src/cephadm/cephadm