]> 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 14:37:33 +0000 (16:37 +0200)
commitbab403b603feb8b7534dde65924699b370f4bc0d
treeb9f2794db1e49e835dedc5399af104751a74404f
parent3d4267051f03c053dcd7d3f6f381988be0b2939d
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>
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