RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1917286 - Pcsd logs to system log by mistake
Summary: Pcsd logs to system log by mistake
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: pcs
Version: 8.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 8.4
Assignee: Tomas Jelinek
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 1919318
TreeView+ depends on / blocked
 
Reported: 2021-01-18 09:09 UTC by Tomas Jelinek
Modified: 2021-05-18 15:12 UTC (History)
10 users (show)

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.
Clone Of:
: 1919318 (view as bug list)
Environment:
Last Closed: 2021-05-18 15:12:36 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proposed fix (1.75 KB, patch)
2021-01-18 09:14 UTC, Tomas Jelinek
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5729271 0 None None None 2021-01-22 20:34:25 UTC
Red Hat Product Errata RHEA-2021:1737 0 None None None 2021-05-18 15:12:40 UTC

Description Tomas Jelinek 2021-01-18 09:09:31 UTC
Description of problem:
Pcsd logs both to its own log /var/log/pcsd/pcsd.log and system log. This makes the logging duplicitous and clutters the system log.


Version-Release number of selected component (if applicable):
pcs-0.10.6-1.el8


How reproducible:
always, easily


Steps to Reproduce:
1. start pcsd
2. see that pcsd logs into system log - /var/log/messages


Actual results:
pcsd logs into system log and /var/log/pcsd/pcsd.log


Expected results:
pcsd logs into /var/log/pcsd/pcsd.log only


Additional info:
Reported upstream: https://lists.clusterlabs.org/pipermail/users/2020-December/028095.html

Comment 1 Tomas Jelinek 2021-01-18 09:14:22 UTC
Created attachment 1748400 [details]
proposed fix

Test: pcsd does not log to system log (/var/log/messages)

Comment 8 Miroslav Lisik 2021-02-01 16:44:50 UTC
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.

Comment 9 Miroslav Lisik 2021-02-02 08:26:23 UTC
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.

Comment 16 errata-xmlrpc 2021-05-18 15:12:36 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 (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


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