Bug 2034730 - Horizon log not collected/relayed by rsyslog to remote log server
Summary: Horizon log not collected/relayed by rsyslog to remote log server
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.2 (Train)
Hardware: All
OS: All
medium
medium
Target Milestone: z3
: 16.2 (Train on RHEL 8.4)
Assignee: Martin Magr
QA Contact: Leonid Natapov
URL:
Whiteboard:
Depends On: 2026290
Blocks: 2034793
TreeView+ depends on / blocked
 
Reported: 2021-12-21 20:29 UTC by Eric Nothen
Modified: 2022-03-23 22:30 UTC (History)
7 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.6.1-2.20220116004909.64b2e88.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2026290
: 2034793 (view as bug list)
Environment:
Last Closed: 2022-03-23 22:30:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-11913 0 None None None 2021-12-21 20:33:45 UTC
Red Hat Product Errata RHSA-2022:0995 0 None None None 2022-03-23 22:30:41 UTC

Description Eric Nothen 2021-12-21 20:29:46 UTC
+++ This bug was initially created as a clone of Bug #2026290 +++

Description of problem:

Some log files are not processed by rsyslog when customer enables centralized logging option following document [1]. 
The following log file was reported and fixed on #2026290:

- /var/log/containers/haproxy/haproxy.log

The following files are still missing

- /var/log/containers/horizon/horizon.log 


Current workaround is to explicitly add a definition using a custom template like the following:

~~~
parameter_defaults:
    ExtraConfig:
        tripleo_logging_sources_horizon:
            - tag: openstack.horizon
              file: /var/log/containers/horizon/horizon.log
~~~

[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.1/html/logging_monitoring_and_troubleshooting_guide/installing-and-configuring-the-logs-service_osp

Comment 2 Eric Nothen 2021-12-22 07:33:08 UTC
How to reproduce:

1. Deploy RHOSP 16.{1,2} including /usr/share/openstack-tripleo-heat-templates/environments/logging-environment-rsyslog.yaml as one of the templates

2. Verify rsyslog configuration on one of the controllers:

$ ansible -i inventory.yaml -b -m shell -a "egrep -w file /var/lib/config-data/puppet-generated/rsyslog/etc/rsyslog.d/50_openstack_logs.conf" overcloud-controller-0
overcloud-controller-0 | CHANGED | rc=0 >>
  file="/var/log/containers/cinder/cinder-scheduler.log"
  file="/var/log/containers/cinder/cinder-volume.log"
  file="/var/log/containers/glance/api.log"
  file="/var/log/containers/haproxy/haproxy.log"
  file="/var/log/containers/heat/heat_api_cfn.log"
  file="/var/log/containers/heat/heat_api.log"
  file="/var/log/containers/heat/heat-engine.log"
  file="/var/log/containers/keystone/keystone.log"
  file="/var/log/containers/neutron/server.log"
  file="/var/log/containers/nova/nova-api.log"
  file="/var/log/containers/nova/nova-conductor.log"
  file="/var/log/containers/nova/nova-metadata-api.log"
  file="/var/log/containers/nova/nova-scheduler.log"
  file="/var/log/containers/nova/nova-novncproxy.log"
  file="/var/log/containers/octavia/api.log"
  file="/var/log/containers/octavia/health-manager.log"
  file="/var/log/containers/octavia/housekeeping.log"
  file="/var/log/containers/octavia/worker.log"
  file="/var/log/host/pacemaker/pacemaker.log"
  file="/var/log/host/messages"
$

Comment 5 Martin Magr 2022-02-09 10:32:10 UTC
There was added horizon.log forwarding and it is also backported upstream [1], so apparently this was not pulled downstream. Will submit DS backport for [2].

[1] https://github.com/openstack/tripleo-heat-templates/blob/stable/train/deployment/horizon/horizon-container-puppet.yaml#L132-L136
[2] https://github.com/openstack/tripleo-heat-templates/commit/95ec1f23b51983c647dc9a11e2909eaa12113569

Comment 7 Martin Magr 2022-02-14 14:47:15 UTC
I see that most recent build has the patch already attached. Please try to update to most recent 16.2 z-release to have horizon.log included in centralized logging.

Comment 14 errata-xmlrpc 2022-03-23 22:30:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat OpenStack Platform 16.2 (openstack-tripleo-heat-templates) security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0995


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