Bug 2179343 - [RHOSP 16.1] Rsyslog container looking pacemaker log file in the wrong directory
Summary: [RHOSP 16.1] Rsyslog container looking pacemaker log file in the wrong directory
Keywords:
Status: CLOSED NEXTRELEASE
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: z6
: 16.2 (Train on RHEL 8.4)
Assignee: Yadnesh Kulkarni
QA Contact: Leonid Natapov
mgeary
URL:
Whiteboard:
Depends On: 1877475 2179284 2180933
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-17 13:18 UTC by Eric Nothen
Modified: 2023-10-13 09:39 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1877475
: 2180933 (view as bug list)
Environment:
Last Closed: 2023-04-19 11:53:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-23215 0 None None None 2023-03-17 13:20:54 UTC

Description Eric Nothen 2023-03-17 13:18:07 UTC
+++ This bug was initially created as a clone of Bug #1877475 +++

Description of problem:
Rsyslog heat template point to wrong pacemaker log file. 

I'm cloning the original BZ because the problem is back in the branch.

Inside the rsyslog container, the pacemaker logs are mounted under /var/log/host/pacemaker and not /var/log/pacemaker:

~~~
(overcloud) [stack.lab ~]$ ssh heat-admin@overcloud-controller-0 sudo podman exec rsyslog ls -ltr /var/log/{,host/}pacemaker/pacemaker.log
-rw-rw----. 1 189 189 4982877 Mar 17 13:06 /var/log/host/pacemaker/pacemaker.log
ls: cannot access '/var/log/pacemaker/pacemaker.log': No such file or directory
Error: non zero exit code: 2: OCI runtime error
(overcloud) [stack.lab ~]$ 
~~~

We added a commit with the correct path to pacemaker.log on 2020-08-13:
- https://opendev.org/openstack/tripleo-heat-templates/commit/34a2b091d2f48e2c5633b3dc2efb361655e36ba2

But then this other commit was added with the wrong path on 2021-04-12:
- https://opendev.org/openstack/tripleo-heat-templates/commit/cda21df470cb801608fa7cf625100e754bc8e161


So the latest versions of tht in 16.1 and 16.2 are wrong again:
~~~
(overcloud) [stack.lab ~]$ rpm -qf /usr/share/openstack-tripleo-heat-templates/deployment/pacemaker/pacemaker-baremetal-puppet.yaml
openstack-tripleo-heat-templates-11.3.2-1.20221013153262.el8ost.noarch
(overcloud) [stack.lab ~]$ 
(overcloud) [stack.lab ~]$ rpm -qV openstack-tripleo-heat-templates-11.3.2-1.20221013153262.el8ost.noarch
(overcloud) [stack.lab ~]$ 
(overcloud) [stack.lab ~]$ grep -A2 system.pacemaker /usr/share/openstack-tripleo-heat-templates/deployment/pacemaker/pacemaker-baremetal-puppet.yaml
      tag: system.pacemaker
      file: /var/log/pacemaker/pacemaker.log
      startmsg.regex: "^[a-zA-Z]{3} [0-9]{2} [:0-9]{8}"
(overcloud) [stack.lab ~]$ 
~~~

But an older version shows we did have the fix in place at some point:
~~~
(overcloud) [stack.lab ~]$ grep -A2 system.pacemaker tht/openstack-tripleo-heat-templates-11.3.2-1.20210408163453.el8ost/usr/share/openstack-tripleo-heat-templates/deployment/pacemaker/pacemaker-baremetal-puppet.yaml
      tag: system.pacemaker
      file: /var/log/host/pacemaker/pacemaker.log
      startmsg.regex: "^[a-zA-Z]{3} [0-9]{2} [:0-9]{8}"
(overcloud) [stack.lab ~]$ 
~~~

Comment 5 Yadnesh Kulkarni 2023-04-19 11:53:43 UTC
Since there are no plans for 16.1 Z-stream releases, closing this bug as next release.

This issue is fixed in
16.2 - https://bugzilla.redhat.com/show_bug.cgi?id=2179284
17.1 - https://bugzilla.redhat.com/show_bug.cgi?id=2180933


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