Bug 1962497 - Rsyslog regex for metrics_qdr is incorrect. Metrics_qdr path seems to be incorrect too,
Summary: Rsyslog regex for metrics_qdr is incorrect. Metrics_qdr path seems to be inc...
Keywords:
Status: CLOSED DUPLICATE of bug 1949097
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z8
: 16.1 (Train on RHEL 8.2)
Assignee: Martin Magr
QA Contact: Leonid Natapov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-20 08:28 UTC by Leonid Natapov
Modified: 2022-08-18 16:33 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-26 15:20:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-4025 0 None None None 2022-08-18 16:33:57 UTC

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 ***


Note You need to log in before you can comment on or make changes to this bug.