[ClusterLabs] Resource-agents log is not output to /var/log/pacemaker/pacemaker.log on RHEL8
飯田雄介
yuusuke_iida at newson.co.jp
Mon May 27 01:12:03 EDT 2019
Hi,
I am verifying the operation of the cluster with RHEL8.
In the verification, I noticed that resource-agents log was not output to
/var/log/pacemaker/pacemaker.log.
"/etc/sysconfig/pacemaker" is used by default.
I know that resource-agents logs are output when passing the HA_logfile
environment variable.
Pacemaker on RHEL7 has confirmed that this environment variable is set.
```
# cat /proc/$(pidof /usr/libexec/pacemaker/lrmd)/environ | tr '\0' '\n' |
sort
HA_LOGD=no
HA_LOGFACILITY=daemon
HA_cluster_type=corosync
HA_debug=0
HA_logfacility=daemon
HA_logfile=/var/log/cluster/corosync.log
HA_mcp=true
HA_quorum_type=corosync
HA_use_logd=off
LANG=ja_JP.UTF-8
LC_ALL=C
NOTIFY_SOCKET=/run/systemd/notify
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PCMK_cluster_type=corosync
PCMK_debug=0
PCMK_logfacility=daemon
PCMK_logfile=/var/log/cluster/corosync.log
PCMK_mcp=true
PCMK_quorum_type=corosync
PCMK_service=pacemakerd
PCMK_use_logd=off
PCMK_watchdog=false
VALGRIND_OPTS=--leak-check=full --tresource-agentsce-children=no --vgdb=no
--num-callers=25 --log-file=/var/lib/pacemaker/valgrind-%p
--suppressions=/usr/share/pacemaker/tests/valgrind-pcmk.suppressions
--gen-suppressions=all
```
However, it seems that this environment variable is not set in RHEL8.
```
# cat /proc/$(pidof /usr/libexec/pacemaker/pacemaker-execd)/environ | tr
'\0' '\n' | sort
HA_LOGFACILITY=daemon
HA_cluster_type=corosync
HA_debug=0
HA_logfacility=daemon
HA_mcp=true
HA_quorum_type=corosync
INVOCATION_ID=6204f0841b814f6c92ea20db02b8ec9e
JOURNAL_STREAM=9:1314759
LANG=ja_JP.UTF-8
LC_ALL=C
NOTIFY_SOCKET=/run/systemd/notify
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
PCMK_cluster_type=corosync
PCMK_debug=0
PCMK_logfacility=daemon
PCMK_mcp=true
PCMK_quorum_type=corosync
PCMK_service=pacemakerd
PCMK_watchdog=false
SBD_DELAY_START=no
SBD_OPTS=
SBD_PACEMAKER=yes
SBD_STARTMODE=always
SBD_TIMEOUT_ACTION=flush,reboot
SBD_WATCHDOG_DEV=/dev/watchdog
SBD_WATCHDOG_TIMEOUT=5
VALGRIND_OPTS=--leak-check=full --tresource-agentsce-children=no --vgdb=no
--num-callers=25 --log-file=/var/lib/pacemaker/valgrind-%p
--suppressions=/usr/share/pacemaker/tests/valgrind-pcmk.suppressions
--gen-suppressions=all
```
Is this the intended behavior?
By the way, when /var/log/pacemaker/pacemaker.log is explicitly set in the
PCMK_logfile, it is confirmed that the resource-agents log is output to the
file set in the PCMK_logfile.
Regards,
Yusuke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/users/attachments/20190527/1ae9b9a8/attachment.html>
More information about the Users
mailing list