]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
container/systemd: ensure /var/log/ceph exists
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 14 Apr 2021 11:41:59 +0000 (13:41 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 14 Apr 2021 18:05:24 +0000 (20:05 +0200)
commit8f5abc6d3ee795bc2800dad1127a3157d6eb9a3b
tree0047a07a340f97625b00612993ab758046a8a373
parent82c7af195f907cded8a0f13ab37d25f6fb5c99d2
container/systemd: ensure /var/log/ceph exists

This adds a `ExecStartPre=-/usr/bin/mkdir -p /var/log/ceph` in all
systemd service templates for all ceph daemon.
This is specific to RHCS after a Leapp upgrade is done. Indeed, the
`/var/log/ceph` seems to be removed after the upgrade.
In order to work around this issue let's ensure the directory is present
before trying to start the containers with podman.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1949489
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit bab403b603feb8b7534dde65924699b370f4bc0d)
roles/ceph-iscsi-gw/templates/rbd-target-api.service.j2
roles/ceph-iscsi-gw/templates/rbd-target-gw.service.j2
roles/ceph-iscsi-gw/templates/tcmu-runner.service.j2
roles/ceph-mds/templates/ceph-mds.service.j2
roles/ceph-mgr/templates/ceph-mgr.service.j2
roles/ceph-mon/templates/ceph-mon.service.j2
roles/ceph-nfs/templates/ceph-nfs.service.j2
roles/ceph-osd/templates/ceph-osd.service.j2
roles/ceph-rbd-mirror/templates/ceph-rbd-mirror.service.j2
roles/ceph-rgw/templates/ceph-radosgw.service.j2