Bug 1917286
Summary: | Pcsd logs to system log by mistake | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Tomas Jelinek <tojeline> | ||||
Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 8.3 | CC: | cfeist, cluster-maint, idevat, mlisik, mmazoure, mpospisi, nhostako, nwahl, omular, tojeline | ||||
Target Milestone: | rc | Keywords: | Triaged, ZStream | ||||
Target Release: | 8.4 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | pcs-0.10.8-1.el8 | Doc Type: | Bug Fix | ||||
Doc Text: |
Cause:
Pcsd is running.
Consequence:
Pcsd is logging both to its own log /var/log/pcsd/pcsd.log and system log (/var/log/messages).
Fix:
Fix a bug in logging system initialization in pcs / pcsd.
Result:
Pcsd is logging into its own log /var/log/pcsd/pcsd.log only.
|
Story Points: | --- | ||||
Clone Of: | |||||||
: | 1919318 (view as bug list) | Environment: | |||||
Last Closed: | 2021-05-18 15:12:36 UTC | Type: | Bug | ||||
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: | |||||||
Bug Blocks: | 1919318 | ||||||
Attachments: |
|
Description
Tomas Jelinek
2021-01-18 09:09:31 UTC
Created attachment 1748400 [details]
proposed fix
Test: pcsd does not log to system log (/var/log/messages)
Test: [root@r8-node-01 ~]# rpm -q pcs pcs-0.10.8-1.el8.x86_64 [root@r8-node-01 ~]# pcs cluster stop --all r8-node-02: Stopping Cluster (pacemaker)... r8-node-01: Stopping Cluster (pacemaker)... r8-node-02: Stopping Cluster (corosync)... r8-node-01: Stopping Cluster (corosync)... [root@r8-node-01 ~]# pcs cluster start --all r8-node-01: Starting Cluster... r8-node-02: Starting Cluster... [root@r8-node-01 ~]# tail -n 0 -f /var/log/messages | grep pcsd No logs from pcsd. Test: [root@r8-node-01 ~]# rpm -q pcs pcs-0.10.8-1.el8.x86_64 [root@r8-node-01 ~]# pcs cluster stop --all r8-node-02: Stopping Cluster (pacemaker)... r8-node-01: Stopping Cluster (pacemaker)... r8-node-02: Stopping Cluster (corosync)... r8-node-01: Stopping Cluster (corosync)... [root@r8-node-01 ~]# pcs cluster start --all r8-node-01: Starting Cluster... r8-node-02: Starting Cluster... [root@r8-node-01 ~]# tail -n 0 -f /var/log/messages | grep pcsd No logs from pcsd. 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 (pcs bug fix and enhancement 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/RHEA-2021:1737 |