Blame SOURCES/pacemaker-fix_pe_do_not_re-allocate_clone_instances_that_are_blocked_in_the_stopped_state.patch

ed0026
commit b2c105b91ac6efe516e99f7b6b7e13d6443e6c93
ed0026
Author: Andrew Beekhof <andrew@beekhof.net>
ed0026
Date:   Fri Aug 2 12:51:56 2013 +1000
ed0026
ed0026
    Fix: PE: Do not re-allocate clone instances that are blocked in the Stopped state
ed0026
ed0026
diff --git a/lib/pengine/unpack.c b/lib/pengine/unpack.c
ed0026
index c2e0ae9..b4986dd 100644
ed0026
--- a/lib/pengine/unpack.c
ed0026
+++ b/lib/pengine/unpack.c
ed0026
@@ -1461,6 +1461,11 @@ find_anonymous_clone(pe_working_set_t * data_set, node_t * node, resource_t * pa
ed0026
             GListPtr locations = NULL;
ed0026
             resource_t *child = rIter->data;
ed0026
 
ed0026
+            if (is_set(child->flags, pe_rsc_block)) {
ed0026
+                pe_rsc_trace(child, "Skip: blocked in stopped state");
ed0026
+                continue;
ed0026
+            }
ed0026
+
ed0026
             child->fns->location(child, &locations, TRUE);
ed0026
             if (locations == NULL) {
ed0026
                 /* ->find_rsc() because we might be a cloned group */