From 8b27b288db354f542e5621a58bb331ecef25df3a Mon Sep 17 00:00:00 2001 From: Gregory Thiemonge Date: Tue, 1 Dec 2020 16:24:56 +0100 Subject: [PATCH] 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 --- .../octavia_controller_post_config/templates/10-octavia.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleo_ansible/roles/octavia_controller_post_config/templates/10-octavia.conf.j2 b/tripleo_ansible/roles/octavia_controller_post_config/templates/10-octavia.conf.j2 index 3327ea569..b990c859c 100644 --- a/tripleo_ansible/roles/octavia_controller_post_config/templates/10-octavia.conf.j2 +++ b/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 }