From d56b9d65c104c70749eb11d9a8c1f883af53a574 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Thu, 10 Oct 2019 08:35:13 -0700 Subject: [PATCH] Fix log offload file permissions in CentOS devstack CentOS sets a restrictive umask by default that will override the rsyslog file permissions settings. This can cause our tempest tests to no be able to read the log offload files in our CentOS gate jobs. This patch clears this umask override in the devstack rsyslog configuration. Note: This is a global setting for rsyslog and you probably do not want to set this outside of a testing environment. Change-Id: I5962e335acff79152fa49c27c883aef2879593db --- devstack/etc/rsyslog/10-octavia-log-offloading.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devstack/etc/rsyslog/10-octavia-log-offloading.conf b/devstack/etc/rsyslog/10-octavia-log-offloading.conf index d1940288ee..45a8e7c657 100644 --- a/devstack/etc/rsyslog/10-octavia-log-offloading.conf +++ b/devstack/etc/rsyslog/10-octavia-log-offloading.conf @@ -1,3 +1,8 @@ +# Work around CentOS/RHEL umask override of file permissions +# Note: This is a global rsyslog setting, you probably do not want to set +# this outside of testing! +$umask 0000 + # provides UDP syslog reception module(load="imudp") input(type="imudp" port=["%ADMIN_PORT%", "%TENANT_PORT%"])