Bug 1919318

Summary: Pcsd logs to system log by mistake [rhel-8.3.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: pcsAssignee: Miroslav Lisik <mlisik>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: high Docs Contact:
Priority: high    
Version: 8.3CC: cfeist, cluster-maint, idevat, mjuricek, mlisik, mmazoure, mpospisi, nhostako, nwahl, omular, tojeline
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcs-0.10.6-4.el8_3.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1917286 Environment:
Last Closed: 2021-04-06 13:57: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: 1917286    
Bug Blocks:    
Attachments:
Description Flags
proposed fix none

Comment 2 Miroslav Lisik 2021-02-09 09:35:02 UTC
Created attachment 1755872 [details]
proposed fix

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

Comment 3 Miroslav Lisik 2021-02-09 11:17:28 UTC
Test:

[root@r8-node-01 pcs]# rpm -q pcs
pcs-0.10.6-4.el8_3.1.x86_64

[root@r8-node-01 ~]# systemctl start pcsd

[root@r8-node-01 ~]# tail -n 0 -f /var/log/pcsd/pcsd.log
I, [2021-02-09T12:13:48.674 #00000]     INFO -- : Starting server...
I, [2021-02-09T12:13:48.675 #00000]     INFO -- : Binding socket for address '*' and port '2224'
I, [2021-02-09T12:13:48.676 #00000]     INFO -- : Server is listening
I, [2021-02-09T12:13:48.677 #00000]     INFO -- : Notifying systemd we are running (socket '/run/systemd/notify')
I, [2021-02-09T12:13:48.687 #00001]     INFO -- : Config files sync started
I, [2021-02-09T12:13:48.687 #00001]     INFO -- : Config files sync skipped, this host does not seem to be in a cluster of at least 2 nodes

[root@r8-node-01 pcs]# tail -n 0 -f /var/log/messages
Feb  9 12:13:47 r8-node-01 systemd[1]: Starting PCS GUI and remote configuration interface (Ruby)...
Feb  9 12:13:47 r8-node-01 pcsd[20702]: Doing `require 'backports'` is deprecated and will not load any backport in the next major release.                                                                                                  
Feb  9 12:13:47 r8-node-01 pcsd[20702]: Require just the needed backports instead, or 'backports/latest'.
Feb  9 12:13:48 r8-node-01 pcsd[20702]: 2021-02-09 12:13:48 +0100  INFO Notifying systemd we are running (socket /run/systemd/notify)                                                                                                        
Feb  9 12:13:48 r8-node-01 systemd[1]: Started PCS GUI and remote configuration interface (Ruby).
Feb  9 12:13:48 r8-node-01 systemd[1]: Starting PCS GUI and remote configuration interface...
Feb  9 12:13:48 r8-node-01 systemd[1]: Started PCS GUI and remote configuration interface.

System log does not contain messages from pcsd.log.

Comment 13 errata-xmlrpc 2021-04-06 13:57: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 (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/RHBA-2021:1080