constraint 71 pengine/allocate.h rsc_colocation_t * constraint); constraint 73 pengine/allocate.h rsc_colocation_t * constraint); constraint 78 pengine/allocate.h extern void native_rsc_location(resource_t * rsc, rsc_to_node_t * constraint); constraint 90 pengine/allocate.h rsc_colocation_t * constraint); constraint 92 pengine/allocate.h rsc_colocation_t * constraint); constraint 94 pengine/allocate.h extern void group_rsc_location(resource_t * rsc, rsc_to_node_t * constraint); constraint 103 pengine/allocate.h rsc_colocation_t * constraint); constraint 105 pengine/allocate.h rsc_colocation_t * constraint); constraint 106 pengine/allocate.h extern void container_rsc_location(resource_t * rsc, rsc_to_node_t * constraint); constraint 118 pengine/allocate.h rsc_colocation_t * constraint); constraint 120 pengine/allocate.h rsc_colocation_t * constraint); constraint 121 pengine/allocate.h extern void clone_rsc_location(resource_t * rsc, rsc_to_node_t * constraint); constraint 133 pengine/allocate.h rsc_colocation_t * constraint); constraint 141 pengine/allocate.h rsc_colocation_t * constraint); constraint 238 pengine/clone.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 240 pengine/clone.c crm_trace("Applying %s to %s", constraint->id, resource1->id); constraint 242 pengine/clone.c hash1 = native_merge_weights(constraint->rsc_rh, resource1->id, hash1, constraint 243 pengine/clone.c constraint->node_attribute, constraint 244 pengine/clone.c (float)constraint->score / INFINITY, 0); constraint 248 pengine/clone.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 250 pengine/clone.c crm_trace("Applying %s to %s", constraint->id, resource1->id); constraint 252 pengine/clone.c hash1 = native_merge_weights(constraint->rsc_lh, resource1->id, hash1, constraint 253 pengine/clone.c constraint->node_attribute, constraint 254 pengine/clone.c (float)constraint->score / INFINITY, pe_weights_positive); constraint 260 pengine/clone.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 262 pengine/clone.c crm_trace("Applying %s to %s", constraint->id, resource2->id); constraint 264 pengine/clone.c hash2 = native_merge_weights(constraint->rsc_rh, resource2->id, hash2, constraint 265 pengine/clone.c constraint->node_attribute, constraint 266 pengine/clone.c (float)constraint->score / INFINITY, 0); constraint 270 pengine/clone.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 272 pengine/clone.c crm_trace("Applying %s to %s", constraint->id, resource2->id); constraint 274 pengine/clone.c hash2 = native_merge_weights(constraint->rsc_lh, resource2->id, hash2, constraint 275 pengine/clone.c constraint->node_attribute, constraint 276 pengine/clone.c (float)constraint->score / INFINITY, pe_weights_positive); constraint 620 pengine/clone.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 622 pengine/clone.c pe_rsc_trace(rsc, "%s: Coloring %s first", rsc->id, constraint->rsc_rh->id); constraint 623 pengine/clone.c constraint->rsc_rh->cmds->allocate(constraint->rsc_rh, prefer, data_set); constraint 627 pengine/clone.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 630 pengine/clone.c constraint->rsc_lh->cmds->merge_weights(constraint->rsc_lh, rsc->id, rsc->allowed_nodes, constraint 631 pengine/clone.c constraint->node_attribute, constraint 632 pengine/clone.c (float)constraint->score / INFINITY, constraint 1014 pengine/clone.c clone_rsc_colocation_lh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) constraint 1024 pengine/clone.c clone_rsc_colocation_rh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) constraint 1030 pengine/clone.c CRM_CHECK(constraint != NULL, return); constraint 1031 pengine/clone.c CRM_CHECK(rsc_lh != NULL, pe_err("rsc_lh was NULL for %s", constraint->id); return); constraint 1032 pengine/clone.c CRM_CHECK(rsc_rh != NULL, pe_err("rsc_rh was NULL for %s", constraint->id); return); constraint 1036 pengine/clone.c constraint->id, rsc_lh->id, rsc_rh->id, constraint->score); constraint 1039 pengine/clone.c interleave_s = g_hash_table_lookup(constraint->rsc_lh->meta, XML_RSC_ATTR_INTERLEAVE); constraint 1040 pengine/clone.c if(crm_is_true(interleave_s) && constraint->rsc_lh->variant > pe_group) { constraint 1042 pengine/clone.c if (copies_per_node(constraint->rsc_lh) != copies_per_node(constraint->rsc_rh)) { constraint 1045 pengine/clone.c constraint->rsc_lh->id, constraint->rsc_rh->id); constraint 1063 pengine/clone.c rsc_lh->cmds->rsc_colocation_lh(rsc_lh, rh_child, constraint); constraint 1065 pengine/clone.c } else if (constraint->score >= INFINITY) { constraint 1075 pengine/clone.c } else if (constraint->score >= INFINITY) { constraint 1084 pengine/clone.c pe_rsc_trace(rsc_rh, "Allowing %s: %s %d", constraint->id, chosen->details->uname, chosen->weight); constraint 1098 pengine/clone.c child_rsc->cmds->rsc_colocation_rh(rsc_lh, child_rsc, constraint); constraint 1192 pengine/clone.c clone_rsc_location(resource_t * rsc, rsc_to_node_t * constraint) constraint 1196 pengine/clone.c pe_rsc_trace(rsc, "Processing location constraint %s for %s", constraint->id, rsc->id); constraint 1198 pengine/clone.c native_rsc_location(rsc, constraint); constraint 1203 pengine/clone.c child_rsc->cmds->rsc_location(child_rsc, constraint); constraint 401 pengine/container.c container_rsc_colocation_lh(resource_t * rsc, resource_t * rsc_rh, rsc_colocation_t * constraint) constraint 444 pengine/container.c container_rsc_colocation_rh(resource_t * rsc_lh, resource_t * rsc, rsc_colocation_t * constraint) constraint 449 pengine/container.c CRM_CHECK(constraint != NULL, return); constraint 450 pengine/container.c CRM_CHECK(rsc_lh != NULL, pe_err("rsc_lh was NULL for %s", constraint->id); return); constraint 451 pengine/container.c CRM_CHECK(rsc != NULL, pe_err("rsc was NULL for %s", constraint->id); return); constraint 458 pengine/container.c } else if(constraint->rsc_lh->variant > pe_group) { constraint 463 pengine/container.c rsc_lh->cmds->rsc_colocation_lh(rsc_lh, rh_child, constraint); constraint 465 pengine/container.c } else if (constraint->score >= INFINITY) { constraint 478 pengine/container.c constraint->id, rsc_lh->id, rsc->id, constraint->score); constraint 483 pengine/container.c if (constraint->score < INFINITY) { constraint 484 pengine/container.c tuple->docker->cmds->rsc_colocation_rh(rsc_lh, tuple->docker, constraint); constraint 490 pengine/container.c pe_rsc_trace(rsc, "Allowing %s: %s %d", constraint->id, chosen->details->uname, chosen->weight); constraint 496 pengine/container.c if (constraint->score >= INFINITY) { constraint 791 pengine/container.c container_rsc_location(resource_t * rsc, rsc_to_node_t * constraint) constraint 796 pengine/container.c pe_rsc_trace(rsc, "Processing location constraint %s for %s", constraint->id, rsc->id); constraint 798 pengine/container.c native_rsc_location(rsc, constraint); constraint 804 pengine/container.c tuple->docker->cmds->rsc_location(tuple->docker, constraint); constraint 807 pengine/container.c tuple->ip->cmds->rsc_location(tuple->ip, constraint); constraint 811 pengine/container.c if(container_data->child && (constraint->role_filter == RSC_ROLE_SLAVE || constraint->role_filter == RSC_ROLE_MASTER)) { constraint 812 pengine/container.c container_data->child->cmds->rsc_location(container_data->child, constraint); constraint 813 pengine/container.c container_data->child->rsc_location = g_list_prepend(container_data->child->rsc_location, constraint); constraint 295 pengine/group.c group_rsc_colocation_lh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) constraint 301 pengine/group.c pe_err("rsc_lh was NULL for %s", constraint->id); constraint 305 pengine/group.c pe_err("rsc_rh was NULL for %s", constraint->id); constraint 316 pengine/group.c constraint); constraint 319 pengine/group.c } else if (constraint->score >= INFINITY) { constraint 328 pengine/group.c child_rsc->cmds->rsc_colocation_lh(child_rsc, rsc_rh, constraint); constraint 333 pengine/group.c group_rsc_colocation_rh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) constraint 341 pengine/group.c pe_rsc_trace(rsc_rh, "Processing RH of constraint %s", constraint->id); constraint 348 pengine/group.c if (constraint->score >= INFINITY) { constraint 351 pengine/group.c constraint); constraint 355 pengine/group.c constraint); constraint 360 pengine/group.c } else if (constraint->score >= INFINITY) { constraint 369 pengine/group.c child_rsc->cmds->rsc_colocation_rh(rsc_lh, child_rsc, constraint); constraint 437 pengine/group.c group_rsc_location(resource_t * rsc, rsc_to_node_t * constraint) constraint 440 pengine/group.c GListPtr saved = constraint->node_list_rh; constraint 441 pengine/group.c GListPtr zero = node_list_dup(constraint->node_list_rh, TRUE, FALSE); constraint 447 pengine/group.c pe_rsc_debug(rsc, "Processing rsc_location %s for %s", constraint->id, rsc->id); constraint 449 pengine/group.c native_rsc_location(rsc, constraint); constraint 454 pengine/group.c child_rsc->cmds->rsc_location(child_rsc, constraint); constraint 457 pengine/group.c constraint->node_list_rh = zero; constraint 461 pengine/group.c constraint->node_list_rh = saved; constraint 503 pengine/group.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 505 pengine/group.c nodes = native_merge_weights(constraint->rsc_lh, rsc->id, nodes, constraint 506 pengine/group.c constraint->node_attribute, constraint 507 pengine/group.c (float)constraint->score / INFINITY, flags); constraint 321 pengine/master.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 326 pengine/master.c if (constraint->role_lh == RSC_ROLE_MASTER) { constraint 327 pengine/master.c enum pe_weights flags = constraint->score == INFINITY ? 0 : pe_weights_rollback; constraint 329 pengine/master.c pe_rsc_trace(rsc, "RHS: %s with %s: %d", constraint->rsc_lh->id, constraint->rsc_rh->id, constraint 330 pengine/master.c constraint->score); constraint 332 pengine/master.c constraint->rsc_rh->cmds->merge_weights(constraint->rsc_rh, rsc->id, constraint 334 pengine/master.c constraint->node_attribute, constraint 335 pengine/master.c (float)constraint->score / INFINITY, flags); constraint 341 pengine/master.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 346 pengine/master.c if (constraint->role_rh == RSC_ROLE_MASTER) { constraint 347 pengine/master.c pe_rsc_trace(rsc, "LHS: %s with %s: %d", constraint->rsc_lh->id, constraint->rsc_rh->id, constraint 348 pengine/master.c constraint->score); constraint 350 pengine/master.c constraint->rsc_lh->cmds->merge_weights(constraint->rsc_lh, rsc->id, constraint 352 pengine/master.c constraint->node_attribute, constraint 353 pengine/master.c (float)constraint->score / INFINITY, constraint 990 pengine/master.c master_rsc_colocation_rh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) constraint 998 pengine/master.c } else if (constraint->role_rh == RSC_ROLE_UNKNOWN) { constraint 999 pengine/master.c pe_rsc_trace(rsc_rh, "Handling %s as a clone colocation", constraint->id); constraint 1000 pengine/master.c clone_rsc_colocation_rh(rsc_lh, rsc_rh, constraint); constraint 1006 pengine/master.c pe_rsc_trace(rsc_rh, "Processing constraint %s: %d", constraint->id, constraint->score); constraint 1008 pengine/master.c if (constraint->role_rh == RSC_ROLE_UNKNOWN) { constraint 1014 pengine/master.c child_rsc->cmds->rsc_colocation_rh(rsc_lh, child_rsc, constraint); constraint 1026 pengine/master.c if (chosen != NULL && next_role == constraint->role_rh) { constraint 1028 pengine/master.c role2text(next_role), chosen->details->uname, constraint->score); constraint 1029 pengine/master.c if (constraint->score < INFINITY) { constraint 1031 pengine/master.c constraint->node_attribute, constraint->score); constraint 1040 pengine/master.c if (constraint->role_lh != RSC_ROLE_MASTER || constraint->role_rh != RSC_ROLE_MASTER) { constraint 1041 pengine/master.c if (constraint->score >= INFINITY) { constraint 1047 pengine/master.c } else if (constraint->role_lh == RSC_ROLE_MASTER) { constraint 1048 pengine/master.c resource_t *rh_child = find_compatible_child(rsc_lh, rsc_rh, constraint->role_rh, FALSE); constraint 1050 pengine/master.c if (rh_child == NULL && constraint->score >= INFINITY) { constraint 1051 pengine/master.c pe_rsc_trace(rsc_lh, "%s can't be promoted %s", rsc_lh->id, constraint->id); constraint 1055 pengine/master.c int new_priority = merge_weights(rsc_lh->priority, constraint->score); constraint 1057 pengine/master.c pe_rsc_debug(rsc_lh, "Applying %s to %s", constraint->id, rsc_lh->id); constraint 396 pengine/native.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 399 pengine/native.c other = constraint->rsc_rh; constraint 401 pengine/native.c other = constraint->rsc_lh; constraint 404 pengine/native.c pe_rsc_trace(rsc, "Applying %s (%s)", constraint->id, other->id); constraint 405 pengine/native.c work = rsc_merge_weights(other, rhs, work, constraint->node_attribute, constraint 406 pengine/native.c multiplier * (float)constraint->score / INFINITY, flags|pe_weights_rollback); constraint 459 pengine/native.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 462 pengine/native.c resource_t *rsc_rh = constraint->rsc_rh; constraint 465 pengine/native.c rsc->id, constraint->id, rsc_rh->id, constraint 466 pengine/native.c constraint->score, role2text(constraint->role_lh)); constraint 467 pengine/native.c if (constraint->role_lh >= RSC_ROLE_MASTER constraint 468 pengine/native.c || (constraint->score < 0 && constraint->score > -INFINITY)) { constraint 472 pengine/native.c rsc->cmds->rsc_colocation_lh(rsc, rsc_rh, constraint); constraint 487 pengine/native.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 490 pengine/native.c constraint->rsc_lh->cmds->merge_weights(constraint->rsc_lh, rsc->id, rsc->allowed_nodes, constraint 491 pengine/native.c constraint->node_attribute, constraint 492 pengine/native.c (float)constraint->score / INFINITY, constraint 1546 pengine/native.c native_rsc_colocation_lh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) constraint 1549 pengine/native.c pe_err("rsc_lh was NULL for %s", constraint->id); constraint 1552 pengine/native.c } else if (constraint->rsc_rh == NULL) { constraint 1553 pengine/native.c pe_err("rsc_rh was NULL for %s", constraint->id); constraint 1560 pengine/native.c rsc_rh->cmds->rsc_colocation_rh(rsc_lh, rsc_rh, constraint); constraint 1565 pengine/native.c rsc_colocation_t * constraint, gboolean preview) constraint 1567 pengine/native.c if (constraint->score == 0) { constraint 1576 pengine/native.c if ((constraint->role_lh >= RSC_ROLE_SLAVE) && constraint 1590 pengine/native.c if ((constraint->score > -INFINITY) && (constraint->score < INFINITY)) { constraint 1597 pengine/native.c if (constraint->score == INFINITY && details_lh != details_rh) { constraint 1603 pengine/native.c } else if (constraint->score == -INFINITY && details_lh == details_rh) { constraint 1612 pengine/native.c if (constraint->score > 0 constraint 1613 pengine/native.c && constraint->role_lh != RSC_ROLE_UNKNOWN && constraint->role_lh != rsc_lh->next_role) { constraint 1615 pengine/native.c role2text(constraint->role_lh), role2text(rsc_lh->next_role)); constraint 1619 pengine/native.c if (constraint->score > 0 constraint 1620 pengine/native.c && constraint->role_rh != RSC_ROLE_UNKNOWN && constraint->role_rh != rsc_rh->next_role) { constraint 1621 pengine/native.c crm_trace("RH: Skipping constraint: \"%s\" state filter", role2text(constraint->role_rh)); constraint 1625 pengine/native.c if (constraint->score < 0 constraint 1626 pengine/native.c && constraint->role_lh != RSC_ROLE_UNKNOWN && constraint->role_lh == rsc_lh->next_role) { constraint 1628 pengine/native.c role2text(constraint->role_lh)); constraint 1632 pengine/native.c if (constraint->score < 0 constraint 1633 pengine/native.c && constraint->role_rh != RSC_ROLE_UNKNOWN && constraint->role_rh == rsc_rh->next_role) { constraint 1635 pengine/native.c role2text(constraint->role_rh)); constraint 1643 pengine/native.c influence_priority(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) constraint 1650 pengine/native.c if (constraint->node_attribute != NULL) { constraint 1651 pengine/native.c attribute = constraint->node_attribute; constraint 1662 pengine/native.c if(constraint->score == INFINITY && constraint->role_lh == RSC_ROLE_MASTER) { constraint 1668 pengine/native.c if (constraint->role_rh && (constraint->role_rh != rsc_rh->next_role)) { constraint 1672 pengine/native.c if (constraint->role_lh == RSC_ROLE_SLAVE) { constraint 1676 pengine/native.c rsc_lh->priority = merge_weights(score_multiplier * constraint->score, rsc_lh->priority); constraint 1680 pengine/native.c colocation_match(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) constraint 1692 pengine/native.c if (constraint->node_attribute != NULL) { constraint 1693 pengine/native.c attribute = constraint->node_attribute; constraint 1700 pengine/native.c } else if (constraint->score < 0) { constraint 1713 pengine/native.c if (constraint->score < INFINITY) { constraint 1714 pengine/native.c pe_rsc_trace(rsc_lh, "%s: %s.%s += %d", constraint->id, rsc_lh->id, constraint 1715 pengine/native.c node->details->uname, constraint->score); constraint 1716 pengine/native.c node->weight = merge_weights(constraint->score, node->weight); constraint 1719 pengine/native.c } else if (do_check == FALSE || constraint->score >= INFINITY) { constraint 1720 pengine/native.c pe_rsc_trace(rsc_lh, "%s: %s.%s -= %d (%s)", constraint->id, rsc_lh->id, constraint 1721 pengine/native.c node->details->uname, constraint->score, constraint 1723 pengine/native.c node->weight = merge_weights(-constraint->score, node->weight); constraint 1728 pengine/native.c || constraint->score <= -INFINITY || constraint->score >= INFINITY) { constraint 1736 pengine/native.c score2char_stack(constraint->score, score, sizeof(score)); constraint 1748 pengine/native.c native_rsc_colocation_rh(resource_t * rsc_lh, resource_t * rsc_rh, rsc_colocation_t * constraint) constraint 1754 pengine/native.c filter_results = filter_colocation_constraint(rsc_lh, rsc_rh, constraint, FALSE); constraint 1756 pengine/native.c constraint->score >= 0 ? "" : "Anti-", constraint 1757 pengine/native.c rsc_lh->id, rsc_rh->id, constraint->id, constraint->score, filter_results); constraint 1761 pengine/native.c influence_priority(rsc_lh, rsc_rh, constraint); constraint 1765 pengine/native.c constraint->score >= 0 ? "" : "Anti-", constraint 1766 pengine/native.c rsc_lh->id, rsc_rh->id, constraint->id, constraint->score); constraint 1767 pengine/native.c colocation_match(rsc_lh, rsc_rh, constraint); constraint 2069 pengine/native.c native_rsc_location(resource_t * rsc, rsc_to_node_t * constraint) constraint 2075 pengine/native.c if (constraint == NULL) { constraint 2080 pengine/native.c pe_err("LHS of rsc_to_node (%s) is NULL", constraint->id); constraint 2084 pengine/native.c pe_rsc_trace(rsc, "Applying %s (%s) to %s", constraint->id, constraint 2085 pengine/native.c role2text(constraint->role_filter), rsc->id); constraint 2088 pengine/native.c if (constraint->role_filter > RSC_ROLE_UNKNOWN && constraint->role_filter != rsc->next_role) { constraint 2090 pengine/native.c constraint->id, role2text(constraint->role_filter), role2text(rsc->next_role)); constraint 2093 pengine/native.c } else if (is_active(constraint) == FALSE) { constraint 2094 pengine/native.c pe_rsc_trace(rsc, "Constraint (%s) is not active", constraint->id); constraint 2098 pengine/native.c if (constraint->node_list_rh == NULL) { constraint 2099 pengine/native.c pe_rsc_trace(rsc, "RHS of constraint %s is NULL", constraint->id); constraint 2103 pengine/native.c for (gIter = constraint->node_list_rh; gIter != NULL; gIter = gIter->next) { constraint 2118 pengine/native.c pe_rsc_trace(rsc, "%s: %d (insert %d)", other_node->details->uname, other_node->weight, constraint->discover_mode); constraint 2122 pengine/native.c if (other_node->rsc_discover_mode < constraint->discover_mode) { constraint 2123 pengine/native.c if (constraint->discover_mode == pe_discover_exclusive) { constraint 2127 pengine/native.c other_node->rsc_discover_mode = constraint->discover_mode; constraint 288 pengine/utilization.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 289 pengine/utilization.c resource_t *rsc_rh = constraint->rsc_rh; constraint 296 pengine/utilization.c if (constraint->score == INFINITY constraint 297 pengine/utilization.c && filter_colocation_constraint(rsc, rsc_rh, constraint, TRUE) == influence_rsc_location) { constraint 310 pengine/utilization.c rsc_colocation_t *constraint = (rsc_colocation_t *) gIter->data; constraint 311 pengine/utilization.c resource_t *rsc_lh = constraint->rsc_lh; constraint 323 pengine/utilization.c if (constraint->score == INFINITY constraint 324 pengine/utilization.c && filter_colocation_constraint(rsc_lh, rsc, constraint, TRUE) == influence_rsc_location) { constraint 22 pengine/utils.h extern rsc_colocation_t *invert_constraint(rsc_colocation_t * constraint); constraint 24 pengine/utils.h extern rsc_to_node_t *copy_constraint(rsc_to_node_t * constraint); constraint 71 pengine/utils.h rsc_colocation_t * constraint, gboolean preview);