File pacemaker-libpengine-startup-fencing-warning-once.patch of Package pacemaker.3577
commit 8fc5c12c934cde07f84b4e902cf6b6405edde2ff
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Fri Sep 30 14:24:37 2016 -0500
Log: libpengine: only log startup-fencing warning once
Otherwise we log it for every node whenever nodes are unpacked.
Index: pacemaker/lib/pengine/unpack.c
===================================================================
--- pacemaker.orig/lib/pengine/unpack.c
+++ pacemaker/lib/pengine/unpack.c
@@ -500,6 +500,7 @@ handle_startup_fencing(pe_working_set_t
{
static const char *blind_faith = NULL;
static gboolean unseen_are_unclean = TRUE;
+ static gboolean need_warning = TRUE;
if ((new_node->details->type == node_remote) && (new_node->details->remote_rsc == NULL)) {
/* ignore fencing remote-nodes that don't have a conneciton resource associated
@@ -512,7 +513,12 @@ handle_startup_fencing(pe_working_set_t
if (crm_is_true(blind_faith) == FALSE) {
unseen_are_unclean = FALSE;
- crm_warn("Blind faith: not fencing unseen nodes");
+ if (need_warning) {
+ crm_warn("Blind faith: not fencing unseen nodes");
+
+ /* Warn once per run, not per node and transition */
+ need_warning = FALSE;
+ }
}
if (is_set(data_set->flags, pe_flag_stonith_enabled) == FALSE