File pacemaker-crmd-down-event-log.patch of Package pacemaker.3577

commit 1795b121cfd1e4101fcf773b4271c4e19521ec0d
Author: Ken Gaillot <kgaillot@redhat.com>
Date:   Tue Jul 26 11:11:15 2016 -0500

    Log: crmd: don't log warning if abort_unless_down() can't find down event
    
    A down event is optional at this point, so a warning is inappropriate.

Index: pacemaker/crmd/te_callbacks.c
===================================================================
--- pacemaker.orig/crmd/te_callbacks.c
+++ pacemaker/crmd/te_callbacks.c
@@ -320,7 +320,9 @@ static char *extract_node_uuid(const cha
     return node_uuid;
 }
 
-static void abort_unless_down(const char *xpath, const char *op, xmlNode *change, const char *reason) 
+static void
+abort_unless_down(const char *xpath, const char *op, xmlNode *change,
+                  const char *reason)
 {
     char *node_uuid = NULL;
     crm_action_t *down = NULL;
@@ -337,7 +339,7 @@ static void abort_unless_down(const char
         return;
     }
 
-    down = match_down_event(0, node_uuid, NULL, FALSE);
+    down = match_down_event(0, node_uuid, NULL, TRUE);
     if(down == NULL || down->executed == false) {
         crm_trace("Not expecting %s to be down (%s)", node_uuid, xpath);
         abort_transition(INFINITY, tg_restart, reason, change);
openSUSE Build Service is sponsored by