Bug 1683957
Summary: | Logging to pcsd.log is broken [rhel-7.6.z] | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | RAD team bot copy to z-stream <autobot-eus-copy> | ||||
Component: | pcs | Assignee: | Tomas Jelinek <tojeline> | ||||
Status: | CLOSED ERRATA | QA Contact: | cluster-qe <cluster-qe> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | urgent | ||||||
Version: | 7.6 | CC: | aherr, cfeist, cluster-maint, idevat, mjuricek, mlisik, omular, tojeline | ||||
Target Milestone: | rc | Keywords: | Regression, ZStream | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
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.
|
Story Points: | --- | ||||
Clone Of: | 1679534 | Environment: | |||||
Last Closed: | 2019-03-13 18:47:33 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: | 1679534 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
RAD team bot copy to z-stream
2019-02-28 08:14:07 UTC
Created attachment 1539426 [details] proposed fix See bz1679534 for reproducer and tests. 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 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 |