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