
This patch moves the Octavia Amphora log offload file location, when using devstack, to /var/log/octavia. Under Ubuntu it appears that package install order can lead to /var/log permissions changing to 755 from 775, which causes rsyslog to be unable to create the log offload files. Closes-Bug: #2118800 Change-Id: I57ef4833dfd5eab9bc22077d2f213f655687efca Signed-off-by: Michael Johnson <johnsomor@gmail.com>
17 lines
677 B
Plaintext
17 lines
677 B
Plaintext
# 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%"])
|
|
|
|
if ($inputname == "imudp" and $syslogfacility-text == "local0" and $syslogseverity-text == "info") then {
|
|
action(type="omfile" FileCreateMode="0644" File="/var/log/octavia/octavia-tenant-traffic.log")&stop
|
|
}
|
|
|
|
if ($inputname == "imudp" and $syslogfacility-text != "local0") then {
|
|
action(type="omfile" FileCreateMode="0644" File="/var/log/octavia/octavia-amphora.log")&stop
|
|
}
|