Browse Source

Fix rsyslog facility config for Octavia amphora-agent

When enabling the OctaviaForwardAllLogs option, the amphora-agent
forwards all the logs to the rsyslog container. So rsyslog should accept
every incoming messages from the amphora and record them in
octavia-amphora.log (this configuration is similar to the rsyslog
configuration in the Octavia devstack plugin).

Change-Id: I63d64ebe7ea2f4cd8eeb09f256870dfd2e4c1e92
Closes-Bug: #1906414
changes/52/764952/1
Gregory Thiemonge 1 year ago
parent
commit
8b27b288db
  1. 2
      tripleo_ansible/roles/octavia_controller_post_config/templates/10-octavia.conf.j2

2
tripleo_ansible/roles/octavia_controller_post_config/templates/10-octavia.conf.j2

@ -8,7 +8,7 @@ if ($inputname == "imudp" and $syslogfacility-text == "local0" and $syslogseveri
}
# Output the amphora administrative logs
if ($inputname == "imudp" and $syslogfacility-text == "local1" and $hostname startswith "amphora") then {
if ($inputname == "imudp" and $syslogfacility-text != "local0" and $hostname startswith "amphora") then {
action(type="omfile" FileCreateMode="0644" File="/var/log/octavia/octavia-amphora.log")
stop
}

Loading…
Cancel
Save