From 276743b5fe2261a3350586186ae6eda8fc0e0eba Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Mon, 18 Feb 2019 15:38:01 -0500 Subject: [PATCH] Redis: fix podman start on reboot This patch updates the tripleo_redis.service systemd unit so that it recreates the /var/run/redis directory and sets the SELinux context accordingly after a reboot. Previously it would fail on reboot as these files are created via Ansible only during deployment. Change-Id: I4df04007098b610936d172ecfc5a92dcb1fb3fdc Closes-bug: #1816444 --- docker/services/database/redis.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/services/database/redis.yaml b/docker/services/database/redis.yaml index 373be2a971..0f6074a9db 100644 --- a/docker/services/database/redis.yaml +++ b/docker/services/database/redis.yaml @@ -117,6 +117,9 @@ outputs: net: host privileged: false restart: always + systemd_exec_flags: + RuntimeDirectory: redis + ExecStartPre: /bin/chcon -t svirt_sandbox_file_t /var/run/redis healthcheck: test: /openstack/healthcheck volumes: