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

Bug 2034730

Summary: Horizon log not collected/relayed by rsyslog to remote log server
Product: Red Hat OpenStack Reporter: Eric Nothen <enothen>
Component: openstack-tripleo-heat-templatesAssignee: Martin Magr <mmagr>
Status: CLOSED ERRATA QA Contact: Leonid Natapov <lnatapov>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.2 (Train)CC: astupnik, csibbitt, enothen, lmadsen, mburns, mrunge, oblaut
Target Milestone: z3Keywords: Triaged, ZStream
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.6.1-2.20220116004909.64b2e88.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2026290
: 2034793 (view as bug list) Environment:
Last Closed: 2022-03-23 22:30:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2026290    
Bug Blocks: 2034793    

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