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 1683957 - Logging to pcsd.log is broken [rhel-7.6.z]
Summary: Logging to pcsd.log is broken [rhel-7.6.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs
Version: 7.6
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Tomas Jelinek
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On: 1679534
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-28 08:14 UTC by RAD team bot copy to z-stream
Modified: 2019-03-13 18:47 UTC (History)
8 users (show)

Fixed In Version: pcs-0.9.165-6.el7_6.1
Doc Type: Bug Fix
Doc Text:
Cause: User is running pcsd. Consequence: /var/log/pcsd/pcsd.log is missing most of the messages which should have been logged. Fix: Make pcsd write to pcsd.log synchronously. Result: pcsd.log contains all the logged messages.
Clone Of: 1679534
Environment:
Last Closed: 2019-03-13 18:47:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proposed fix (1.19 KB, patch)
2019-02-28 11:04 UTC, Tomas Jelinek
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:0524 0 None None None 2019-03-13 18:47:35 UTC

Description RAD team bot copy to z-stream 2019-02-28 08:14:07 UTC
This bug has been copied from bug #1679534 and has been proposed to be backported to 7.6 z-stream (EUS).

Comment 3 Tomas Jelinek 2019-02-28 11:04:15 UTC
Created attachment 1539426 [details]
proposed fix

See bz1679534 for reproducer and tests.

Comment 4 Ivan Devat 2019-03-01 05:45:56 UTC
Before fix:

[kid76 ~] $ pcs cluster enable --all
kid76: Cluster Enabled
lion76: Cluster Enabled
mule76: Cluster Enabled

> watch logs (e.g. in another window)
> [kid76 ~] $ tail -f /var/log/pcsd/pcsd.log

::ffff:192.168.122.41 - - [28/Feb/2019:15:23:43 +0100] "GET /remote/cluster_enable HTTP/1.1" 200 15 0.3230
::ffff:192.168.122.41 - - [28/Feb/2019:15:23:43 +0100] "GET /remote/cluster_enable HTTP/1.1" 200 15 0.3231
kid76 - - [28/Feb/2019:15:23:43 CET] "GET /remote/cluster_enable HTTP/1.1" 200 15
- -> /remote/cluster_enable


After fix:

[kid76 ~] $ rpm -q pcs
pcs-0.9.165-6.el7_6.1.x86_64

[kid76 ~] $ pcs cluster enable --all
kid76: Cluster Enabled
lion76: Cluster Enabled
mule76: Cluster Enabled

> watch logs (e.g. in another window)
> [kid76 ~] $ tail -f /var/log/pcsd/pcsd.log

I, [2019-02-28T15:26:14.773143 #6987]  INFO -- : Running: /usr/sbin/corosync-cmapctl totem.cluster_name
I, [2019-02-28T15:26:14.773234 #6987]  INFO -- : CIB USER: hacluster, groups: 
I, [2019-02-28T15:26:14.777248 #6987]  INFO -- : Return Value: 1
I, [2019-02-28T15:26:14.778009 #6987]  INFO -- : Running: /usr/sbin/pcs cluster enable
I, [2019-02-28T15:26:14.778064 #6987]  INFO -- : CIB USER: hacluster, groups: 
I, [2019-02-28T15:26:15.070319 #6987]  INFO -- : Return Value: 0
::ffff:192.168.122.41 - - [28/Feb/2019:15:26:15 +0100] "GET /remote/cluster_enable HTTP/1.1" 200 15 0.2981
::ffff:192.168.122.41 - - [28/Feb/2019:15:26:15 +0100] "GET /remote/cluster_enable HTTP/1.1" 200 15 0.2982
kid76 - - [28/Feb/2019:15:26:14 CET] "GET /remote/cluster_enable HTTP/1.1" 200 15
- -> /remote/cluster_enable

Comment 8 errata-xmlrpc 2019-03-13 18:47:33 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, 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/RHBA-2019:0524


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