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