15 #define VARIANT_CLONE 1 22 sort_rsc_id(gconstpointer a, gconstpointer b)
35 num1 = strtol(strrchr(resource1->
id,
':') + 1, NULL, 10);
36 num2 = strtol(strrchr(resource2->
id,
':') + 1, NULL, 10);
39 }
else if (num1 > num2) {
50 if (node != NULL && rsc->
parent) {
52 }
else if(node != NULL) {
67 for (; gIter != NULL; gIter = gIter->next) {
70 if (did_fail(child_rsc)) {
85 unsigned int nnodes1 = 0;
86 unsigned int nnodes2 = 0;
108 if (nnodes1 && nnodes2) {
109 if (nnodes1 < nnodes2) {
110 crm_trace(
"%s < %s: running_on", resource1->
id, resource2->
id);
113 }
else if (nnodes1 > nnodes2) {
114 crm_trace(
"%s > %s: running_on", resource1->
id, resource2->
id);
119 node1 = current_node1;
120 node2 = current_node2;
124 if (match == NULL || match->
weight < 0) {
125 crm_trace(
"%s: current location is unavailable", resource1->
id);
134 if (match == NULL || match->
weight < 0) {
135 crm_trace(
"%s: current location is unavailable", resource2->
id);
143 crm_trace(
"%s < %s: availability of current location", resource1->
id, resource2->
id);
146 crm_trace(
"%s > %s: availability of current location", resource1->
id, resource2->
id);
151 crm_trace(
"%s < %s: priority", resource1->
id, resource2->
id);
155 crm_trace(
"%s > %s: priority", resource1->
id, resource2->
id);
159 if (node1 == NULL && node2 == NULL) {
160 crm_trace(
"%s == %s: not active", resource1->
id, resource2->
id);
164 if (node1 != node2) {
168 }
else if (node2 == NULL) {
185 node1 = parent_node_instance(resource1, node1);
186 node2 = parent_node_instance(resource2, node2);
187 if (node1 != NULL && node2 == NULL) {
188 crm_trace(
"%s < %s: not allowed", resource1->
id, resource2->
id);
190 }
else if (node1 == NULL && node2 != NULL) {
191 crm_trace(
"%s > %s: not allowed", resource1->
id, resource2->
id);
195 if (node1 == NULL || node2 == NULL) {
196 crm_trace(
"%s == %s: not allowed", resource1->
id, resource2->
id);
209 can1 = did_fail(resource1);
210 can2 = did_fail(resource2);
220 if (node1 && node2) {
228 g_hash_table_new_full(
crm_str_hash, g_str_equal, NULL, free);
230 g_hash_table_new_full(
crm_str_hash, g_str_equal, NULL, free);
233 g_hash_table_insert(hash1, (gpointer) n->
details->
id, n);
236 g_hash_table_insert(hash2, (gpointer) n->
details->
id, n);
239 for (gIter = resource1->
parent->
rsc_cons; gIter; gIter = gIter->next) {
242 if (constraint->
score == 0) {
245 crm_trace(
"Applying %s to %s", constraint->
id, resource1->
id);
248 resource1->
id, hash1,
257 if (constraint->
score == 0) {
260 crm_trace(
"Applying %s to %s", constraint->
id, resource1->
id);
263 resource1->
id, hash1,
271 for (gIter = resource2->
parent->
rsc_cons; gIter; gIter = gIter->next) {
274 crm_trace(
"Applying %s to %s", constraint->
id, resource2->
id);
277 resource2->
id, hash2,
286 crm_trace(
"Applying %s to %s", constraint->
id, resource2->
id);
289 resource2->
id, hash2,
297 node1 = g_hash_table_lookup(hash1, current_node1->
details->
id);
298 node2 = g_hash_table_lookup(hash2, current_node2->
details->
id);
319 list1 = g_hash_table_get_values(hash1);
320 list2 = g_hash_table_get_values(hash2);
324 max = g_list_length(list1);
325 if (max < g_list_length(list2)) {
326 max = g_list_length(list2);
329 for (; lpc < max; lpc++) {
330 node1 = g_list_nth_data(list1, lpc);
331 node2 = g_list_nth_data(list2, lpc);
333 crm_trace(
"%s < %s: colocated score NULL", resource1->
id, resource2->
id);
337 }
else if (node2 == NULL) {
338 crm_trace(
"%s > %s: colocated score NULL", resource1->
id, resource2->
id);
344 crm_trace(
"%s < %s: colocated score", resource1->
id, resource2->
id);
349 crm_trace(
"%s > %s: colocated score", resource1->
id, resource2->
id);
357 g_hash_table_destroy(hash1);
358 g_hash_table_destroy(hash2);
367 rc = strcmp(resource1->
id, resource2->
id);
368 crm_trace(
"%s %c %s: default", resource1->
id,
rc < 0 ?
'<' :
'>', resource2->
id);
380 while (g_hash_table_iter_next(&iter, NULL, (
void **)&local_node)) {
381 can_run_instance(rsc, local_node, limit);
397 local_node = parent_node_instance(rsc, node);
399 if (local_node == NULL) {
403 }
else if (local_node->
weight < 0) {
405 pe_rsc_trace(rsc,
"%s cannot run on %s: Parent node weight doesn't allow it.",
408 }
else if (local_node->
count < limit) {
409 pe_rsc_trace(rsc,
"%s can run on %s (already running %d)",
414 pe_rsc_trace(rsc,
"%s cannot run on %s: node full (%d >= %d)",
430 GHashTable *backup = NULL;
433 pe_rsc_trace(rsc,
"Checking allocation of %s (preferring %s, using %s parent colocations)",
435 (all_coloc?
"all" :
"some"));
441 pe_rsc_debug(rsc,
"Dependency loop detected involving %s", rsc->
id);
448 append_parent_colocation(rsc->
parent, rsc, all_coloc);
453 if (local_prefer == NULL || local_prefer->
weight < 0) {
454 pe_rsc_trace(rsc,
"Not pre-allocating %s to %s - unavailable", rsc->
id,
460 can_run_instance(rsc, NULL, limit);
466 crm_info(
"Not pre-allocating %s to %s because %s is better",
475 pe_node_t *local_node = parent_node_instance(rsc, chosen);
489 g_hash_table_destroy(backup);
501 for (; gIter != NULL; gIter = gIter->next) {
504 if (cons->
score == 0) {
513 for (; gIter != NULL; gIter = gIter->next) {
516 if (cons->
score == 0) {
519 if (all || cons->
score < 0) {
536 int available_nodes = 0;
539 for(
GListPtr nIter = nodes; nIter != NULL; nIter = nIter->next) {
548 if(available_nodes) {
549 loop_max = max / available_nodes;
555 pe_rsc_debug(rsc,
"Allocating up to %d %s instances to a possible %d nodes (at most %d per host, %d optimal)",
556 max, rsc->
id, available_nodes, per_host_max, loop_max);
559 for (
GListPtr gIter = children; gIter != NULL && allocated < max; gIter = gIter->next) {
564 pe_node_t *child_node = pe__current_node(child);
565 pe_node_t *local_node = parent_node_instance(child, child_node);
567 pe_rsc_trace(rsc,
"Checking pre-allocation of %s to %s (%d remaining of %d)",
571 pe_rsc_trace(rsc,
"Not pre-allocating because %s can not run %s",
574 }
else if(local_node && local_node->
count >= loop_max) {
576 "Not pre-allocating because %s already allocated optimal instances",
579 }
else if (allocate_instance(child, child_node,
580 max < available_nodes, per_host_max,
589 pe_rsc_trace(rsc,
"Done pre-allocating (%d of %d)", allocated, max);
591 for (
GListPtr gIter = children; gIter != NULL; gIter = gIter->next) {
595 pe_node_t *child_node = pe__current_node(child);
596 pe_node_t *local_node = parent_node_instance(child, child_node);
598 if (local_node == NULL) {
599 crm_err(
"%s is running on %s which isn't allowed",
605 }
else if (allocated >= max) {
606 pe_rsc_debug(rsc,
"Child %s not allocated - limit reached %d %d", child->
id, allocated, max);
609 if (allocate_instance(child, NULL, max < available_nodes,
610 per_host_max, data_set)) {
616 pe_rsc_debug(rsc,
"Allocated %d %s instances of a possible %d",
617 allocated, rsc->
id, max);
626 clone_variant_data_t *clone_data = NULL;
628 get_clone_variant_data(clone_data, rsc);
634 pe_rsc_debug(rsc,
"Dependency loop detected involving %s", rsc->
id);
650 if (constraint->
score == 0) {
661 if (constraint->
score == 0) {
689 clone_update_pseudo_status(
pe_resource_t * rsc, gboolean * stopping, gboolean * starting,
697 for (; gIter != NULL; gIter = gIter->next) {
700 clone_update_pseudo_status(child, stopping, starting, active);
715 for (; gIter != NULL; gIter = gIter->next) {
718 if (*starting && *stopping) {
725 }
else if (!pcmk_any_flags_set(
action->flags,
736 pe_rsc_trace(rsc,
"Skipping pseudo-op: %s run=%d, pseudo=%d",
753 find_rsc_action(
pe_resource_t *rsc,
const char *task, gboolean active_only,
765 for (; gIter != NULL; gIter = gIter->next) {
769 active = g_list_prepend(active, op);
773 if (active && pcmk__list_of_1(active)) {
774 match = g_list_nth_data(active, 0);
782 }
else if (possible && pcmk__list_of_1(possible)) {
783 match = g_list_nth_data(possible, 0);
792 g_list_free(possible);
809 gboolean active_only = TRUE;
810 clone_variant_data_t *clone_data = NULL;
812 get_clone_variant_data(clone_data, rsc);
814 if (clone_data->ordered == FALSE) {
820 for (gIter = rsc->
children; gIter != NULL; gIter = gIter->next) {
823 stop = find_rsc_action(child,
RSC_STOP, active_only, NULL);
832 start = find_rsc_action(child,
RSC_START, active_only, NULL);
846 clone_variant_data_t *clone_data = NULL;
848 get_clone_variant_data(clone_data, rsc);
850 child_ordering_constraints(rsc, data_set);
860 gboolean child_active = FALSE;
861 gboolean child_starting = FALSE;
862 gboolean child_stopping = FALSE;
863 gboolean allow_dependent_migrations = TRUE;
873 for (
GListPtr gIter = children; gIter != NULL; gIter = gIter->next) {
875 gboolean starting = FALSE;
876 gboolean stopping = FALSE;
879 clone_update_pseudo_status(child_rsc, &stopping, &starting, &child_active);
880 if (stopping && starting) {
881 allow_dependent_migrations = FALSE;
884 child_stopping |= stopping;
885 child_starting |= starting;
893 if (child_active || child_starting) {
897 if (start_notify != NULL && *start_notify == NULL) {
905 if (allow_dependent_migrations) {
910 if (stop_notify != NULL && *stop_notify == NULL) {
913 if (start_notify && *start_notify && *stop_notify) {
924 clone_variant_data_t *clone_data = NULL;
926 get_clone_variant_data(clone_data, rsc);
938 if (clone_data->ordered) {
942 for (gIter = rsc->
children; gIter != NULL; gIter = gIter->next) {
950 if (clone_data->ordered && last_rsc) {
957 if (clone_data->ordered && last_rsc) {
961 last_rsc = child_rsc;
971 bool changed = FALSE;
998 CRM_CHECK(child_rsc && local_node,
return FALSE);
1001 node = child_rsc->
fns->
location(child_rsc, NULL, current);
1017 crm_trace(
"%s - not allocated %d", child_rsc->
id, current);
1032 local_node = local_child->
fns->
location(local_child, NULL, current);
1037 scratch = g_hash_table_get_values(local_child->
allowed_nodes);
1041 for (; gIter != NULL; gIter = gIter->next) {
1052 g_list_free(scratch);
1074 gboolean do_interleave = FALSE;
1075 const char *interleave_s = NULL;
1078 CRM_CHECK(rsc_lh != NULL,
pe_err(
"rsc_lh was NULL for %s", constraint->
id);
return);
1079 CRM_CHECK(rsc_rh != NULL,
pe_err(
"rsc_rh was NULL for %s", constraint->
id);
return);
1082 if (constraint->
score == 0) {
1085 pe_rsc_trace(rsc_rh,
"Processing constraint %s: %s -> %s %d",
1086 constraint->
id, rsc_lh->
id, rsc_rh->
id, constraint->
score);
1093 pe_rsc_trace(rsc_rh,
"Handling %s as a clone colocation", constraint->
id);
1106 "support the same number of instances per node",
1110 do_interleave = TRUE;
1118 }
else if (do_interleave) {
1130 crm_notice(
"Cannot pair %s with instance of %s", rsc_lh->
id, rsc_rh->
id);
1134 pe_rsc_debug(rsc_rh,
"Cannot pair %s with instance of %s", rsc_lh->
id, rsc_rh->
id);
1143 for (; gIter != NULL; gIter = gIter->next) {
1149 rhs = g_list_prepend(rhs, chosen);
1159 for (; gIter != NULL; gIter = gIter->next) {
1178 char *key =
action->uuid;
1179 int lpc = strlen(key);
1181 for (; lpc > 0; lpc--) {
1182 if (key[lpc] ==
'_' && stop == 0) {
1185 }
else if (key[lpc] ==
'_') {
1186 char *task_mutable = NULL;
1189 task_mutable = strdup(key + lpc);
1190 task_mutable[stop - lpc] = 0;
1192 crm_trace(
"Extracted action '%s' from '%s'", task_mutable, key);
1205 #define pe__clear_action_summary_flags(flags, action, flag) do { \ 1206 flags = pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, \ 1207 "Action summary", action->rsc->id, \ 1208 flags, flag, #flag); \ 1215 gboolean any_runnable = FALSE;
1216 gboolean check_runnable = TRUE;
1221 for (gIter = children; gIter != NULL; gIter = gIter->next) {
1227 node ? node->details->uname :
"none", child_action?child_action->
uuid:
"NA");
1234 child_action->
uuid);
1239 any_runnable = TRUE;
1244 if (check_runnable && any_runnable == FALSE) {
1266 pe_rsc_trace(rsc,
"Processing location constraint %s for %s", constraint->
id, rsc->
id);
1270 for (; gIter != NULL; gIter = gIter->next) {
1281 clone_variant_data_t *clone_data = NULL;
1283 get_clone_variant_data(clone_data, rsc);
1286 for (; gIter != NULL; gIter = gIter->next) {
1292 if (clone_data->start_notify) {
1298 if (clone_data->stop_notify) {
1304 if (clone_data->promote_notify) {
1310 if (clone_data->demote_notify) {
1319 for (; gIter != NULL; gIter = gIter->next) {
1322 child_rsc->
cmds->
expand(child_rsc, data_set);
1329 clone_data->demote_notify = NULL;
1331 clone_data->stop_notify = NULL;
1333 clone_data->start_notify = NULL;
1335 clone_data->promote_notify = NULL;
1343 for (GList *child_iter = rsc->
children; child_iter != NULL;
1344 child_iter = child_iter->next) {
1348 if (rsc_known_on(child, node)) {
1354 GHashTableIter iter;
1357 g_hash_table_iter_init(&iter, rsc->
known_on);
1358 while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &known_node)) {
1359 if (node->
details == known_node->details) {
1371 for (GList *gIter = clone->
children; gIter != NULL; gIter = gIter->next) {
1374 if (rsc_known_on(child, node)) {
1386 gboolean any_created = FALSE;
1388 for (GList *child_iter = rsc->
children; child_iter != NULL;
1389 child_iter = child_iter->next) {
1409 if (child == NULL) {
1410 for (GList *child_iter = rsc->
children; child_iter && !child;
1411 child_iter = child_iter->next) {
1417 local_node = child_rsc->
fns->
location(child_rsc, NULL, FALSE);
1426 if (child == NULL) {
1437 gboolean any_created = FALSE;
1443 pe_warn(
"Clone %s has no children", rsc->
id);
1465 any_created = probe_unique_clone(rsc, node, complete, force, data_set);
1467 any_created = probe_anonymous_clone(rsc, node, complete, force,
1477 clone_variant_data_t *clone_data = NULL;
1479 get_clone_variant_data(clone_data, rsc);
#define CRM_CHECK(expr, failure_action)
void pcmk__create_notification_keys(pe_resource_t *rsc, notify_data_t *n_data, pe_working_set_t *data_set)
const char * task2text(enum action_tasks task)
bool is_set_recursive(pe_resource_t *rsc, long long flag, bool any)
#define crm_notice(fmt, args...)
#define pe_rsc_debug(rsc, fmt, args...)
#define pe__clear_action_summary_flags(flags, action, flag)
GList * sort_nodes_by_weight(GList *nodes, pe_node_t *active_node, pe_working_set_t *data_set)
pe_node_t * pe__find_active_on(const pe_resource_t *rsc, unsigned int *count_all, unsigned int *count_clean)
bool pcmk__strcase_any_of(const char *s,...) G_GNUC_NULL_TERMINATED
void apply_master_prefs(pe_resource_t *rsc)
resource_alloc_functions_t * cmds
void collect_notification_data(pe_resource_t *rsc, gboolean state, gboolean activity, notify_data_t *n_data)
#define pcmk__config_err(fmt...)
#define pe__show_node_weights(level, rsc, text, nodes)
const char * crm_xml_add_int(xmlNode *node, const char *name, int value)
Create an XML attribute with specified name and integer value.
gboolean exclusive_discover
resource_object_functions_t * fns
void create_notifications(pe_resource_t *rsc, notify_data_t *n_data, pe_working_set_t *data_set)
const char * crm_xml_add(xmlNode *node, const char *name, const char *value)
Create an XML attribute with specified name and value.
pe_node_t * pe__copy_node(const pe_node_t *this_node)
gint sort_clone_instance(gconstpointer a, gconstpointer b, gpointer data_set)
void(* internal_constraints)(pe_resource_t *, pe_working_set_t *)
void resource_location(pe_resource_t *rsc, pe_node_t *node, int score, const char *tag, pe_working_set_t *data_set)
void native_expand(pe_resource_t *rsc, pe_working_set_t *data_set)
void native_rsc_location(pe_resource_t *rsc, pe__location_t *constraint)
pe_node_t *(* allocate)(pe_resource_t *, pe_node_t *, pe_working_set_t *)
#define XML_RSC_ATTR_MASTER_NODEMAX
bool assign_node(pe_resource_t *rsc, pe_node_t *node, gboolean force)
GHashTable * pcmk__native_merge_weights(pe_resource_t *rsc, const char *rhs, GHashTable *nodes, const char *attr, float factor, uint32_t flags)
void distribute_children(pe_resource_t *rsc, GListPtr children, GListPtr nodes, int max, int per_host_max, pe_working_set_t *data_set)
#define XML_RSC_ATTR_INCARNATION_MAX
gboolean can_run_resources(const pe_node_t *node)
gboolean native_assign_node(pe_resource_t *rsc, GListPtr candidates, pe_node_t *chosen, gboolean force)
char * crm_meta_name(const char *field)
notify_data_t * create_notification_boundaries(pe_resource_t *rsc, const char *action, pe_action_t *start, pe_action_t *end, pe_working_set_t *data_set)
void free_notification_data(notify_data_t *n_data)
void promotable_constraints(pe_resource_t *rsc, pe_working_set_t *data_set)
#define pe__set_resource_flags(resource, flags_to_set)
void clone_rsc_colocation_lh(pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_colocation_t *constraint, pe_working_set_t *data_set)
#define pe_rsc_provisional
pe_node_t *(* location)(const pe_resource_t *, GList **, int)
pe_node_t * pcmk__clone_allocate(pe_resource_t *rsc, pe_node_t *prefer, pe_working_set_t *data_set)
#define crm_warn(fmt, args...)
enum pe_action_flags clone_action_flags(pe_action_t *action, pe_node_t *node)
gboolean(* create_probe)(pe_resource_t *, pe_node_t *, pe_action_t *, gboolean, pe_working_set_t *)
void create_promotable_actions(pe_resource_t *rsc, pe_working_set_t *data_set)
void clone_append_meta(pe_resource_t *rsc, xmlNode *xml)
#define order_stop_stop(rsc1, rsc2, type)
pe_action_t * create_pseudo_resource_op(pe_resource_t *rsc, const char *task, bool optional, bool runnable, pe_working_set_t *data_set)
void(* rsc_colocation_rh)(pe_resource_t *, pe_resource_t *, rsc_colocation_t *, pe_working_set_t *)
const char * node_attribute
void clone_create_pseudo_actions(pe_resource_t *rsc, GListPtr children, notify_data_t **start_notify, notify_data_t **stop_notify, pe_working_set_t *data_set)
pe_resource_t * find_compatible_child(pe_resource_t *local_child, pe_resource_t *rsc, enum rsc_role_e filter, gboolean current, pe_working_set_t *data_set)
#define pe__clear_action_flags(action, flags_to_clear)
#define crm_trace(fmt, args...)
enum action_tasks get_complex_task(pe_resource_t *rsc, const char *name, gboolean allow_non_atomic)
#define pcmk_is_set(g, f)
Convenience alias for pcmk_all_flags_set(), to check single flag.
struct pe_node_shared_s * details
gboolean order_actions(pe_action_t *lh_action, pe_action_t *rh_action, enum pe_ordering order)
#define pe_rsc_promotable
void(* expand)(pe_resource_t *, pe_working_set_t *)
void clone_rsc_colocation_rh(pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_colocation_t *constraint, pe_working_set_t *data_set)
#define XML_RSC_ATTR_INCARNATION_NODEMAX
void clone_create_actions(pe_resource_t *rsc, pe_working_set_t *data_set)
gboolean update_action_flags(pe_action_t *action, enum pe_action_flags flags, const char *source, int line)
enum pe_action_flags(* action_flags)(pe_action_t *, pe_node_t *)
#define pe_rsc_allocating
enum pe_obj_types variant
int new_rsc_order(pe_resource_t *lh_rsc, const char *lh_task, pe_resource_t *rh_rsc, const char *rh_task, enum pe_ordering type, pe_working_set_t *data_set)
gboolean is_child_compatible(pe_resource_t *child_rsc, pe_node_t *local_node, enum rsc_role_e filter, gboolean current)
void common_update_score(pe_resource_t *rsc, const char *id, int score)
#define XML_RSC_ATTR_NOTIFY
enum action_tasks clone_child_action(pe_action_t *action)
GHashTable * pcmk__copy_node_table(GHashTable *nodes)
#define XML_RSC_ATTR_UNIQUE
enum rsc_role_e(* state)(const pe_resource_t *, gboolean)
#define XML_RSC_ATTR_MASTER_MAX
void(* rsc_colocation_lh)(pe_resource_t *, pe_resource_t *, rsc_colocation_t *, pe_working_set_t *)
#define XML_RSC_ATTR_PROMOTED_MAX
gboolean clone_create_probe(pe_resource_t *rsc, pe_node_t *node, pe_action_t *complete, gboolean force, pe_working_set_t *data_set)
void clone_expand(pe_resource_t *rsc, pe_working_set_t *data_set)
void promotable_colocation_rh(pe_resource_t *lh_rsc, pe_resource_t *rh_rsc, rsc_colocation_t *constraint, pe_working_set_t *data_set)
#define crm_err(fmt, args...)
void clone_rsc_location(pe_resource_t *rsc, pe__location_t *constraint)
void node_list_exclude(GHashTable *list, GListPtr list2, gboolean merge_scores)
enum pe_action_flags summary_action_flags(pe_action_t *action, GListPtr children, pe_node_t *node)
void(* rsc_location)(pe_resource_t *, pe__location_t *)
#define pe__clear_resource_flags(resource, flags_to_clear)
#define XML_RSC_ATTR_PROMOTED_NODEMAX
void(* create_actions)(pe_resource_t *, pe_working_set_t *)
enum pe_action_flags flags
#define order_start_start(rsc1, rsc2, type)
void native_deallocate(pe_resource_t *rsc)
gboolean crm_is_true(const char *s)
pe_resource_t * find_compatible_child_by_node(pe_resource_t *local_child, pe_node_t *local_node, pe_resource_t *rsc, enum rsc_role_e filter, gboolean current)
void clone_internal_constraints(pe_resource_t *rsc, pe_working_set_t *data_set)
#define pe_rsc_trace(rsc, fmt, args...)
pe_action_t * find_first_action(GListPtr input, const char *uuid, const char *task, pe_node_t *on_node)
#define XML_RSC_ATTR_INTERLEAVE
GList * pe__resource_actions(const pe_resource_t *rsc, const pe_node_t *node, const char *task, bool require_node)
Find all actions of given type for a resource.
pe_node_t * pcmk__set_instance_roles(pe_resource_t *rsc, pe_working_set_t *data_set)
#define crm_info(fmt, args...)
GHashTable *(* merge_weights)(pe_resource_t *, const char *, GHashTable *, const char *, float, enum pe_weights)
int copies_per_node(pe_resource_t *rsc)
GHashTable * allowed_nodes