Blame SOURCES/bz1078078-pcmk-pe_do_not_unfence_nodes_that_are_offline_unclean_or_shutting_down.patch

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