commit c2fd34cb2f81e795dae211466edd270613cb6543
Author: Andrew Beekhof <andrew@beekhof.net>
Date: Thu Apr 10 14:50:19 2014 +1000
Fix: PE: Do not unfence nodes that are offline, unclean or shutting down
(cherry picked from commit 12c410557f7685366d8504e57e555624bc6f2a07)
diff --git a/lib/pengine/utils.c b/lib/pengine/utils.c
index 9cb744a..ccaaa3f 100644
--- a/lib/pengine/utils.c
+++ b/lib/pengine/utils.c
@@ -1877,7 +1877,10 @@ trigger_unfencing(
/* Wasnt a stonith device */
return;
- } else if(node) {
+ } else if(node
+ && node->details->online
+ && node->details->unclean == FALSE
+ && node->details->shutdown == FALSE) {
action_t *unfence = pe_fence_op(node, "on", FALSE, data_set);
crm_notice("Unfencing %s: %s", node->details->uname, reason);