Blob Blame History Raw
commit 2a8e1620b6a224905d6cb4e9bc444c957a85f946
Author: Andrew Beekhof <andrew@beekhof.net>
Date:   Wed Apr 9 12:17:25 2014 +1000

    Fix: crmd: Report unsuccessful unfencing operations
    
    (cherry picked from commit 32f6349100e85b6a48dac01a80c967bc0134d165)

diff --git a/crmd/te_utils.c b/crmd/te_utils.c
index 60dd21c..b2003ba 100644
--- a/crmd/te_utils.c
+++ b/crmd/te_utils.c
@@ -124,8 +124,15 @@ tengine_stonith_notify(stonith_t * st, stonith_event_t * st_event)
     }
 
     if (st_event->result == pcmk_ok && safe_str_eq("on", st_event->action)) {
-        crm_notice("%s was successfully unfenced by %s for %s with %s",
-                   st_event->executioner, st_event->origin, st_event->device);
+        crm_notice("%s was successfully unfenced by %s (at the request of %s) with %s",
+                   st_event->target, st_event->executioner, st_event->origin,
+                   st_event->device); /* TODO: Why is device never set? */
+        return;
+
+    } else if (safe_str_eq("on", st_event->action)) {
+        crm_err("Unfencing of %s by %s with %s failed: %s (%d)",
+                st_event->target, st_event->executioner, st_event->device,
+                pcmk_strerror(st_event->result), st_event->result);
         return;
 
     } else if (st_event->result == pcmk_ok && crm_str_eq(st_event->target, fsa_our_uname, TRUE)) {