Blame SOURCES/bz1078078-pcmk-crmd_correctly_react_to_successful_unfencing_operations.patch

7ebc05
commit 110cdd2056407a3a448a0e0cf3ef4e126fb26753
7ebc05
Author: Andrew Beekhof <andrew@beekhof.net>
7ebc05
Date:   Fri Apr 4 12:13:04 2014 +1100
7ebc05
7ebc05
    Fix: crmd: Correctly react to successful unfencing operations
7ebc05
    
7ebc05
    Hint: We don't want to shut down
7ebc05
    (cherry picked from commit 69c8d227c605d0b85038a536be948f5a56cfe4bd)
7ebc05
7ebc05
diff --git a/crmd/te_utils.c b/crmd/te_utils.c
7ebc05
index 239af63..60dd21c 100644
7ebc05
--- a/crmd/te_utils.c
7ebc05
+++ b/crmd/te_utils.c
7ebc05
@@ -123,7 +123,12 @@ tengine_stonith_notify(stonith_t * st, stonith_event_t * st_event)
7ebc05
         return;
7ebc05
     }
7ebc05
 
7ebc05
-    if (st_event->result == pcmk_ok && crm_str_eq(st_event->target, fsa_our_uname, TRUE)) {
7ebc05
+    if (st_event->result == pcmk_ok && safe_str_eq("on", st_event->action)) {
7ebc05
+        crm_notice("%s was successfully unfenced by %s for %s with %s",
7ebc05
+                   st_event->executioner, st_event->origin, st_event->device);
7ebc05
+        return;
7ebc05
+
7ebc05
+    } else if (st_event->result == pcmk_ok && crm_str_eq(st_event->target, fsa_our_uname, TRUE)) {
7ebc05
         crm_crit("We were alegedly just fenced by %s for %s with %s!", st_event->executioner,
7ebc05
                  st_event->origin, st_event->device); /* Dumps blackbox if enabled */
7ebc05