Blame SOURCES/pacemaker-fix_pe_do_not_restart_resources_that_depend_on_unmanaged_resources.patch

ed0026
commit 0c996a1df48fc0067796c3c436117623963a5d7e
ed0026
Author: Andrew Beekhof <andrew@beekhof.net>
ed0026
Date:   Thu Aug 1 16:25:36 2013 +1000
ed0026
ed0026
    Fix: PE: Do not restart resources that depend on unmanaged resources
ed0026
ed0026
diff --git a/pengine/native.c b/pengine/native.c
ed0026
index 9d85a3e..ef8ae0f 100644
ed0026
--- a/pengine/native.c
ed0026
+++ b/pengine/native.c
ed0026
@@ -1715,7 +1715,9 @@ native_update_actions(action_t * first, action_t * then, node_t * node, enum pe_
ed0026
         CRM_ASSERT(first->rsc && first->rsc->variant == pe_native);
ed0026
         CRM_ASSERT(then->rsc && then->rsc->variant == pe_native);
ed0026
 
ed0026
-        if ((filter & pe_action_runnable) && (then->flags & pe_action_runnable) == 0) {
ed0026
+        if ((filter & pe_action_runnable)
ed0026
+            && (then->flags & pe_action_runnable) == 0
ed0026
+            && (then->rsc->flags & pe_rsc_managed)) {
ed0026
             reason = "shutdown";
ed0026
         }
ed0026