[ClusterLabs] Q: Starting from pcs-0.10.6-4.el8, logs of pcsd are now output to syslog

井上和徳 kazunori_inoue at newson.co.jp
Tue Dec 22 23:25:48 EST 2020


Hi!

Is it a specification that pcsd (pcs-0.10.6-4.el8) outputs logs to syslog?
If it is a specification, which change/commit is it due to?

# rpm -q pcs
pcs-0.10.6-4.el8.x86_64
#
# cat /var/log/pcsd/pcsd.log
I, [2020-12-23T13:17:36.748 #00010]     INFO -- : Starting Daemons
I, [2020-12-23T13:17:36.749 #00010]     INFO -- : Running:
/usr/sbin/pcs cluster start
I, [2020-12-23T13:17:36.749 #00010]     INFO -- : CIB USER: hacluster, groups:
I, [2020-12-23T13:17:39.749 #00010]     INFO -- : Return Value: 0
I, [2020-12-23T13:17:39.749 #00000]     INFO -- : 200 GET
/remote/cluster_start (192.168.122.247) 3243.41ms
I, [2020-12-23T13:18:47.049 #00000]     INFO -- : 200 GET
/remote/get_configs?cluster_name=my_cluster (192.168.122.140) 4.05ms
I, [2020-12-23T13:18:47.060 #00011]     INFO -- : Config files sync started
I, [2020-12-23T13:18:47.061 #00011]     INFO -- : SRWT Node: rhel83-2
Request: get_configs
I, [2020-12-23T13:18:47.061 #00011]     INFO -- : Connecting to:
https://192.168.122.140:2224/remote/get_configs?cluster_name=my_cluster
I, [2020-12-23T13:18:47.061 #00011]     INFO -- : SRWT Node: rhel83-1
Request: get_configs
I, [2020-12-23T13:18:47.061 #00011]     INFO -- : Connecting to:
https://192.168.122.247:2224/remote/get_configs?cluster_name=my_cluster
I, [2020-12-23T13:18:47.061 #00011]     INFO -- : Config files sync finished
#
# grep pcs /var/log/messages
Dec 23 13:17:39 rhel83-2 <daemon.info>
pcsd[600350]:INFO:pcs.daemon:Starting Daemons
Dec 23 13:17:39 rhel83-2 <daemon.info>
pcsd[600350]:INFO:pcs.daemon:Running: /usr/sbin/pcs cluster start
Dec 23 13:17:39 rhel83-2 <daemon.info>
pcsd[600350]:INFO:pcs.daemon:CIB USER: hacluster, groups:
Dec 23 13:17:39 rhel83-2 <daemon.info>
pcsd[600350]:INFO:pcs.daemon:Return Value: 0
Dec 23 13:17:39 rhel83-2 <daemon.info>
pcsd[600350]:INFO:tornado.access:200 GET /remote/cluster_start
(192.168.122.247) 3243.41ms
Dec 23 13:18:47 rhel83-2 <daemon.info>
pcsd[600350]:INFO:tornado.access:200 GET
/remote/get_configs?cluster_name=my_cluster (192.168.122.140) 4.05ms
Dec 23 13:18:47 rhel83-2 <daemon.info>
pcsd[600350]:INFO:pcs.daemon:Config files sync started
Dec 23 13:18:47 rhel83-2 <daemon.info>
pcsd[600350]:INFO:pcs.daemon:SRWT Node: rhel83-2 Request: get_configs
Dec 23 13:18:47 rhel83-2 <daemon.info>
pcsd[600350]:INFO:pcs.daemon:Connecting to:
https://192.168.122.140:2224/remote/get_configs?cluster_name=my_cluster
Dec 23 13:18:47 rhel83-2 <daemon.info>
pcsd[600350]:INFO:pcs.daemon:SRWT Node: rhel83-1 Request: get_configs
Dec 23 13:18:47 rhel83-2 <daemon.info>
pcsd[600350]:INFO:pcs.daemon:Connecting to:
https://192.168.122.247:2224/remote/get_configs?cluster_name=my_cluster
Dec 23 13:18:47 rhel83-2 <daemon.info>
pcsd[600350]:INFO:pcs.daemon:Config files sync finished
#

Up to pcs-0.10.4-6.el8, there was no output to syslog.

# rpm -q pcs
pcs-0.10.4-6.el8.x86_64
#
# cat /var/log/pcsd/pcsd.log
I, [2020-12-23T13:17:36.059 #01200]     INFO -- : Starting Daemons
I, [2020-12-23T13:17:36.060 #01200]     INFO -- : Running:
/usr/sbin/pcs cluster start
I, [2020-12-23T13:17:36.060 #01200]     INFO -- : CIB USER: hacluster, groups:
I, [2020-12-23T13:17:38.060 #01200]     INFO -- : Return Value: 0
I, [2020-12-23T13:17:38.060 #00000]     INFO -- : 200 GET
/remote/cluster_start (192.168.122.247) 1650.38ms
I, [2020-12-23T13:18:46.991 #00000]     INFO -- : 200 GET
/remote/get_configs?cluster_name=my_cluster (192.168.122.140) 5.06ms
I, [2020-12-23T13:18:58.053 #00000]     INFO -- : 200 GET
/remote/get_configs?cluster_name=my_cluster (192.168.122.247) 5.74ms
I, [2020-12-23T13:18:58.064 #01201]     INFO -- : Config files sync started
I, [2020-12-23T13:18:58.064 #01201]     INFO -- : SRWT Node: rhel83-2
Request: get_configs
I, [2020-12-23T13:18:58.064 #01201]     INFO -- : Connecting to:
https://192.168.122.140:2224/remote/get_configs?cluster_name=my_cluster
I, [2020-12-23T13:18:58.064 #01201]     INFO -- : SRWT Node: rhel83-1
Request: get_configs
I, [2020-12-23T13:18:58.064 #01201]     INFO -- : Connecting to:
https://192.168.122.247:2224/remote/get_configs?cluster_name=my_cluster
I, [2020-12-23T13:18:58.065 #01201]     INFO -- : Config files sync finished
#
# grep pcs /var/log/messages
#

Regards,
Kazunori INOUE




More information about the Users mailing list