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

Bug 2179343

Summary: [RHOSP 16.1] Rsyslog container looking pacemaker log file in the wrong directory
Product: Red Hat OpenStack Reporter: Eric Nothen <enothen>
Component: openstack-tripleo-heat-templatesAssignee: Yadnesh Kulkarni <ykulkarn>
Status: CLOSED NEXTRELEASE QA Contact: Leonid Natapov <lnatapov>
Severity: medium Docs Contact: mgeary <mgeary>
Priority: medium    
Version: 16.1 (Train)CC: csibbitt, enothen, jelynch, lmadsen, lnatapov, mburns, mgarciac, pgodwin, rhos-maint, ykulkarn
Target Milestone: z6Keywords: Reopened, Triaged, ZStream
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1877475
: 2180933 (view as bug list) Environment:
Last Closed: 2023-04-19 11:53:43 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: 1877475, 2179284, 2180933    
Bug Blocks:    

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