]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: create /var/run/ceph dir via unit.run, not unit file 34384/head
authorSage Weil <sage@redhat.com>
Thu, 2 Apr 2020 23:36:39 +0000 (18:36 -0500)
committerSage Weil <sage@redhat.com>
Thu, 2 Apr 2020 23:36:39 +0000 (18:36 -0500)
commita3be5f2aca8ac8163906e3015740327440a375b1
treea44226d8bf4a2c53854befeedb2e84cb0eb10a51
parent3f2023ec77e2d350548630fb1b51a12253695ac0
cephadm: create /var/run/ceph dir via unit.run, not unit file

The systemd unit file is shared with non-ceph daemons, which (1) don't
need the /var/run directory, and (2) are based on a uid/gid from a
different container image, which means we can't figure out the right
ceph uid/gid from them to set the ownership properly.

Instead, put it in the unit.run file... and only for ceph daemons when
we have the uid/gid we need.

Fixes: https://tracker.ceph.com/issues/44894
Signed-off-by: Sage Weil <sage@redhat.com>
src/cephadm/cephadm