Blob Blame History Raw
commit 0c996a1df48fc0067796c3c436117623963a5d7e
Author: Andrew Beekhof <andrew@beekhof.net>
Date:   Thu Aug 1 16:25:36 2013 +1000

    Fix: PE: Do not restart resources that depend on unmanaged resources

diff --git a/pengine/native.c b/pengine/native.c
index 9d85a3e..ef8ae0f 100644
--- a/pengine/native.c
+++ b/pengine/native.c
@@ -1715,7 +1715,9 @@ native_update_actions(action_t * first, action_t * then, node_t * node, enum pe_
         CRM_ASSERT(first->rsc && first->rsc->variant == pe_native);
         CRM_ASSERT(then->rsc && then->rsc->variant == pe_native);
 
-        if ((filter & pe_action_runnable) && (then->flags & pe_action_runnable) == 0) {
+        if ((filter & pe_action_runnable)
+            && (then->flags & pe_action_runnable) == 0
+            && (then->rsc->flags & pe_rsc_managed)) {
             reason = "shutdown";
         }