Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1962497

Summary: Rsyslog regex for metrics_qdr is incorrect. Metrics_qdr path seems to be incorrect too,
Product: Red Hat OpenStack Reporter: Leonid Natapov <lnatapov>
Component: openstack-tripleo-heat-templatesAssignee: Martin Magr <mmagr>
Status: CLOSED DUPLICATE QA Contact: Leonid Natapov <lnatapov>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: lmadsen, mburns
Target Milestone: z8Keywords: Triaged, ZStream
Target Release: 16.1 (Train on RHEL 8.2)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-26 15:20:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Leonid Natapov 2021-05-20 08:28:49 UTC
After deploying OSP16.1 with rsyslog enabled I see following errors in the container log:

    [root@controller-1 rsyslog]# podman logs rsyslog
    + sudo -E kolla_set_configs
    INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
    INFO:__main__:Validating config file
    INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
    INFO:__main__:Copying service configuration files
    INFO:__main__:Copying /var/lib/kolla/config_files/src/etc/rsyslog.d/50_openstack_logs.conf to /etc/rsyslog.d/50_openstack_logs.conf
    INFO:__main__:Deleting /etc/rsyslog.conf
    INFO:__main__:Copying /var/lib/kolla/config_files/src/etc/rsyslog.conf to /etc/rsyslog.conf
    INFO:__main__:Writing out command to execute
    INFO:__main__:Setting permission for /var/lib/rsyslog
    INFO:__main__:Setting permission for /var/log/rsyslog
    ++ cat /run_command
    + CMD='/usr/sbin/rsyslogd -n'
    + ARGS=
    + sudo kolla_copy_cacerts
    + [[ ! -n '' ]]
    + . kolla_extend_start
    + echo 'Running command: '\''/usr/sbin/rsyslogd -n'\'''
    Running command: '/usr/sbin/rsyslogd -n'
    + exec /usr/sbin/rsyslogd -n
    rsyslogd: error during parsing file /etc/rsyslog.d/50_openstack_logs.conf, on or before line 66: invalid character '"' in object definition - is there an invalid escape sequence somewhere? [v8.1911.0-3.el8 try https://www.rsyslog.com/e/2207 ]
    rsyslogd: error during parsing file /etc/rsyslog.d/50_openstack_logs.conf, on or before line 66: invalid character '^' in object definition - is there an invalid escape sequence somewhere? [v8.1911.0-3.el8 try https://www.rsyslog.com/e/2207 ]
    rsyslogd: error during parsing file /etc/rsyslog.d/50_openstack_logs.conf, on or before line 66: invalid character '0' in object definition - is there an invalid escape sequence somewhere? [v8.1911.0-3.el8 try https://www.rsyslog.com/e/2207 ]
    rsyslogd: error during parsing file /etc/rsyslog.d/50_openstack_logs.conf, on or before line 66: invalid character '-' in object definition - is there an invalid escape sequence somewhere? [v8.1911.0-3.el8 try https://www.rsyslog.com/e/2207 ]
    rsyslogd: error during parsing file /etc/rsyslog.d/50_openstack_logs.conf, on or before line 66: invalid character '9' in object definition - is there an invalid escape sequence somewhere? [v8.1911.0-3.el8 try https://www.rsyslog.com/e/2207 ]
    rsyslogd: error during parsing file /etc/rsyslog.d/50_openstack_logs.conf, on or before line 66: syntax error on token ']' [v8.1911.0-3.el8 try https://www.rsyslog.com/e/2207 ]
    rsyslogd: could not interpret master config file '/etc/rsyslog.conf'. [v8.1911.0-3.el8 try https://www.rsyslog.com/e/2207 ]


Line 66 points to the metrics_qdr regex:

# metrics_qdr_openstack.nova.consoleauth
input(type="imfile"
  file="/var/log/containers/qdrouterd/metrics_qdr.log"
  startmsg.regex="^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]+ \+[0-9]+)? [A-Z]+ \([a-z]+\) "
  tag="openstack.nova.consoleauth"



Also,the path to metrics_qdr log is incorrect:

Should be /var/log/containers/metrics_qdr/metrics_qdr.log

Comment 2 Leif Madsen 2021-05-26 15:20:55 UTC

*** This bug has been marked as a duplicate of bug 1949097 ***