Red Hat Bugzilla – Bug 1275223
/var/log/messages is flooded with pacemaker messages each time "pacemakerd -$" is called
Last modified: 2016-05-10 19:52:29 EDT
Description of problem:
The syslog logfile /var/log/messages is flooded with similar messages (just different PID) - actually repeated all 20s:
Sep 10 13:53:09 rhlios2 pacemakerd: notice: crm_add_logfile: Additional logging available in /var/log/cluster/corosync.log
in old RHEL6.5 this message was not seen.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
resource agents are calling the "pacemakerd -$" periodically,
And each call still generates the additional line into the messages file.
So the problem is the combination of the postgres & mysql resource agent scripts (using the common "ocf-shellfuncs" )
and the new implementation of the pacemakerd logging output.
- Either the "pacemakerd" skips the line in the logging when only called with "-$" to get the installed version
- or the script function "ocf_local_nodename()" inside the common part of included "ocf-shellfuncs" may not call the "pacemakerd -$"
You can easily check when calling manually the "pacemakerd -$" --> this always generates a logging message in RHEL 6.7,
if you do the same call in RHEL 6.5 no entry in /var/log/messages is written.
The line shouldn't be logged and that function should likely use CRM_FEATURE_SET instead.
I can reproduce this with the stock 6.7 packages, but not the latest 6.8 build, so I believe this is already fixed.
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.