rsc_rh 31 include/pcmki/pcmki_sched_utils.h pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_rh 72 include/pcmki/pcmki_sched_utils.h filter_colocation_constraint(pe_resource_t * rsc_lh, pe_resource_t * rsc_rh, rsc_rh 43 include/pcmki/pcmki_scheduler.h pe_resource_t *rsc_rh; rsc_rh 125 include/pcmki/pcmki_scheduler.h rsc = colocation->rsc_rh; rsc_rh 50 lib/pacemaker/pcmk_output.c "with-rsc", cons->rsc_rh->id, rsc_rh 369 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->rsc_rh->flags, pe_rsc_allocating)) { rsc_rh 370 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s (id=%s - loop)", cons->rsc_rh->id, cons->id); rsc_rh 374 lib/pacemaker/pcmk_output.c hdr = colocations_header(cons->rsc_rh, cons, FALSE); rsc_rh 381 lib/pacemaker/pcmk_output.c out->message(out, "locations-list", cons->rsc_rh); rsc_rh 383 lib/pacemaker/pcmk_output.c out->message(out, "rsc-is-colocated-with-list", cons->rsc_rh, recursive); rsc_rh 409 lib/pacemaker/pcmk_output.c if (pcmk_is_set(cons->rsc_rh->flags, pe_rsc_allocating)) { rsc_rh 410 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->rsc_rh, cons); rsc_rh 414 lib/pacemaker/pcmk_output.c colocations_xml_node(out, cons->rsc_rh, cons); rsc_rh 415 lib/pacemaker/pcmk_output.c do_locations_list_xml(out, cons->rsc_rh, false); rsc_rh 418 lib/pacemaker/pcmk_output.c out->message(out, "rsc-is-colocated-with-list", cons->rsc_rh, recursive); rsc_rh 431 lib/pacemaker/pcmk_sched_bundle.c pcmk__bundle_rsc_colocation_lh(pe_resource_t *rsc, pe_resource_t *rsc_rh, rsc_rh 127 lib/pacemaker/pcmk_sched_clone.c hash1 = pcmk__native_merge_weights(constraint->rsc_rh, rsc1->id, hash1, rsc_rh 157 lib/pacemaker/pcmk_sched_clone.c hash2 = pcmk__native_merge_weights(constraint->rsc_rh, rsc2->id, hash2, rsc_rh 707 lib/pacemaker/pcmk_sched_clone.c rsc->id, constraint->rsc_rh->id); rsc_rh 708 lib/pacemaker/pcmk_sched_clone.c constraint->rsc_rh->cmds->allocate(constraint->rsc_rh, prefer, data_set); rsc_rh 1110 lib/pacemaker/pcmk_sched_clone.c clone_rsc_colocation_lh(pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_rh 1122 lib/pacemaker/pcmk_sched_clone.c clone_rsc_colocation_rh(pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_rh 1132 lib/pacemaker/pcmk_sched_clone.c CRM_CHECK(rsc_rh != NULL, pe_err("rsc_rh was NULL for %s", constraint->id); return); rsc_rh 1135 lib/pacemaker/pcmk_sched_clone.c pe_rsc_trace(rsc_rh, "Processing constraint %s: %s -> %s %d", rsc_rh 1136 lib/pacemaker/pcmk_sched_clone.c constraint->id, rsc_lh->id, rsc_rh->id, constraint->score); rsc_rh 1138 lib/pacemaker/pcmk_sched_clone.c if (pcmk_is_set(rsc_rh->flags, pe_rsc_promotable)) { rsc_rh 1139 lib/pacemaker/pcmk_sched_clone.c if (pcmk_is_set(rsc_rh->flags, pe_rsc_provisional)) { rsc_rh 1140 lib/pacemaker/pcmk_sched_clone.c pe_rsc_trace(rsc_rh, "%s is still provisional", rsc_rh->id); rsc_rh 1143 lib/pacemaker/pcmk_sched_clone.c pe_rsc_trace(rsc_rh, "Handling %s as a clone colocation", constraint->id); rsc_rh 1145 lib/pacemaker/pcmk_sched_clone.c promotable_colocation_rh(rsc_lh, rsc_rh, constraint, data_set); rsc_rh 1154 lib/pacemaker/pcmk_sched_clone.c if (copies_per_node(constraint->rsc_lh) != copies_per_node(constraint->rsc_rh)) { rsc_rh 1157 lib/pacemaker/pcmk_sched_clone.c constraint->rsc_lh->id, constraint->rsc_rh->id); rsc_rh 1164 lib/pacemaker/pcmk_sched_clone.c if (pcmk_is_set(rsc_rh->flags, pe_rsc_provisional)) { rsc_rh 1165 lib/pacemaker/pcmk_sched_clone.c pe_rsc_trace(rsc_rh, "%s is still provisional", rsc_rh->id); rsc_rh 1171 lib/pacemaker/pcmk_sched_clone.c rh_child = find_compatible_child(rsc_lh, rsc_rh, RSC_ROLE_UNKNOWN, rsc_rh 1175 lib/pacemaker/pcmk_sched_clone.c pe_rsc_debug(rsc_rh, "Pairing %s with %s", rsc_lh->id, rh_child->id); rsc_rh 1180 lib/pacemaker/pcmk_sched_clone.c crm_notice("Cannot pair %s with instance of %s", rsc_lh->id, rsc_rh->id); rsc_rh 1184 lib/pacemaker/pcmk_sched_clone.c pe_rsc_debug(rsc_rh, "Cannot pair %s with instance of %s", rsc_lh->id, rsc_rh->id); rsc_rh 1192 lib/pacemaker/pcmk_sched_clone.c gIter = rsc_rh->children; rsc_rh 1198 lib/pacemaker/pcmk_sched_clone.c pe_rsc_trace(rsc_rh, "Allowing %s: %s %d", constraint->id, chosen->details->uname, chosen->weight); rsc_rh 1208 lib/pacemaker/pcmk_sched_clone.c gIter = rsc_rh->children; rsc_rh 1222 lib/pacemaker/pcmk_sched_constraints.c CRM_ASSERT(rsc_constraint1->rsc_rh != NULL); rsc_rh 1270 lib/pacemaker/pcmk_sched_constraints.c CRM_ASSERT(rsc_constraint1->rsc_rh != NULL); rsc_rh 1272 lib/pacemaker/pcmk_sched_constraints.c if (rsc_constraint1->rsc_rh->priority > rsc_constraint2->rsc_rh->priority) { rsc_rh 1276 lib/pacemaker/pcmk_sched_constraints.c if (rsc_constraint1->rsc_rh->priority < rsc_constraint2->rsc_rh->priority) { rsc_rh 1281 lib/pacemaker/pcmk_sched_constraints.c if (rsc_constraint1->rsc_rh->variant > rsc_constraint2->rsc_rh->variant) { rsc_rh 1283 lib/pacemaker/pcmk_sched_constraints.c } else if (rsc_constraint1->rsc_rh->variant < rsc_constraint2->rsc_rh->variant) { rsc_rh 1291 lib/pacemaker/pcmk_sched_constraints.c if (rsc_constraint1->rsc_rh->variant == pe_clone) { rsc_rh 1292 lib/pacemaker/pcmk_sched_constraints.c if (pcmk_is_set(rsc_constraint1->rsc_rh->flags, pe_rsc_promotable) rsc_rh 1293 lib/pacemaker/pcmk_sched_constraints.c && !pcmk_is_set(rsc_constraint2->rsc_rh->flags, pe_rsc_promotable)) { rsc_rh 1295 lib/pacemaker/pcmk_sched_constraints.c } else if (!pcmk_is_set(rsc_constraint1->rsc_rh->flags, pe_rsc_promotable) rsc_rh 1296 lib/pacemaker/pcmk_sched_constraints.c && pcmk_is_set(rsc_constraint2->rsc_rh->flags, pe_rsc_promotable)) { rsc_rh 1301 lib/pacemaker/pcmk_sched_constraints.c return strcmp(rsc_constraint1->rsc_rh->id, rsc_constraint2->rsc_rh->id); rsc_rh 1348 lib/pacemaker/pcmk_sched_constraints.c pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_rh 1358 lib/pacemaker/pcmk_sched_constraints.c if ((rsc_lh == NULL) || (rsc_rh == NULL)) { rsc_rh 1379 lib/pacemaker/pcmk_sched_constraints.c new_con->rsc_rh = rsc_rh; rsc_rh 1390 lib/pacemaker/pcmk_sched_constraints.c pe_rsc_trace(rsc_lh, "%s ==> %s (%s %d)", rsc_lh->id, rsc_rh->id, node_attr, score); rsc_rh 1394 lib/pacemaker/pcmk_sched_constraints.c rsc_rh->rsc_cons_lhs = rsc_rh 1395 lib/pacemaker/pcmk_sched_constraints.c g_list_insert_sorted(rsc_rh->rsc_cons_lhs, new_con, sort_cons_priority_lh); rsc_rh 1400 lib/pacemaker/pcmk_sched_constraints.c anti_colocation_order(rsc_lh, new_con->role_lh, rsc_rh, new_con->role_rh, data_set); rsc_rh 1401 lib/pacemaker/pcmk_sched_constraints.c anti_colocation_order(rsc_rh, new_con->role_rh, rsc_lh, new_con->role_lh, data_set); rsc_rh 2549 lib/pacemaker/pcmk_sched_constraints.c pe_resource_t *rsc_rh = pe_find_constraint_resource(data_set->resources, id_rh); rsc_rh 2556 lib/pacemaker/pcmk_sched_constraints.c } else if (rsc_rh == NULL) { rsc_rh 2567 lib/pacemaker/pcmk_sched_constraints.c } else if (instance_rh && pe_rsc_is_clone(rsc_rh) == FALSE) { rsc_rh 2585 lib/pacemaker/pcmk_sched_constraints.c rsc_rh = find_clone_instance(rsc_rh, instance_rh, data_set); rsc_rh 2586 lib/pacemaker/pcmk_sched_constraints.c if (rsc_rh == NULL) { rsc_rh 2604 lib/pacemaker/pcmk_sched_constraints.c pcmk__new_colocation(id, attr, score_i, rsc_lh, rsc_rh, state_lh, state_rh, rsc_rh 2618 lib/pacemaker/pcmk_sched_constraints.c pe_resource_t *rsc_rh = NULL; rsc_rh 2660 lib/pacemaker/pcmk_sched_constraints.c if (valid_resource_or_tag(data_set, id_rh, &rsc_rh, &tag_rh) == FALSE) { rsc_rh 2666 lib/pacemaker/pcmk_sched_constraints.c if (rsc_lh && rsc_rh) { rsc_rh 334 lib/pacemaker/pcmk_sched_group.c group_rsc_colocation_lh(pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_rh 345 lib/pacemaker/pcmk_sched_group.c } else if (rsc_rh == NULL) { rsc_rh 357 lib/pacemaker/pcmk_sched_group.c rsc_rh, constraint, rsc_rh 364 lib/pacemaker/pcmk_sched_group.c rsc_lh->id, rsc_rh->id); rsc_rh 371 lib/pacemaker/pcmk_sched_group.c child_rsc->cmds->rsc_colocation_lh(child_rsc, rsc_rh, constraint, rsc_rh 377 lib/pacemaker/pcmk_sched_group.c group_rsc_colocation_rh(pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_rh 381 lib/pacemaker/pcmk_sched_group.c GList *gIter = rsc_rh->children; rsc_rh 384 lib/pacemaker/pcmk_sched_group.c get_group_variant_data(group_data, rsc_rh); rsc_rh 387 lib/pacemaker/pcmk_sched_group.c pe_rsc_trace(rsc_rh, "Processing RH %s of constraint %s (LH is %s)", rsc_rh 388 lib/pacemaker/pcmk_sched_group.c rsc_rh->id, constraint->id, rsc_lh->id); rsc_rh 390 lib/pacemaker/pcmk_sched_group.c if (pcmk_is_set(rsc_rh->flags, pe_rsc_provisional)) { rsc_rh 412 lib/pacemaker/pcmk_sched_group.c " non-colocated group %s", rsc_lh->id, rsc_rh->id); rsc_rh 444 lib/pacemaker/pcmk_sched_native.c other = constraint->rsc_rh; rsc_rh 453 lib/pacemaker/pcmk_sched_native.c constraint->rsc_rh->id); rsc_rh 534 lib/pacemaker/pcmk_sched_native.c pe_resource_t *rsc_rh = constraint->rsc_rh; rsc_rh 543 lib/pacemaker/pcmk_sched_native.c rsc->id, rsc_rh->id, constraint->id, rsc_rh 545 lib/pacemaker/pcmk_sched_native.c rsc_rh->cmds->allocate(rsc_rh, NULL, data_set); rsc_rh 546 lib/pacemaker/pcmk_sched_native.c rsc->cmds->rsc_colocation_lh(rsc, rsc_rh, constraint, data_set); rsc_rh 548 lib/pacemaker/pcmk_sched_native.c pe_rsc_info(rsc, "%s: Rolling back scores from %s", rsc->id, rsc_rh->id); rsc_rh 568 lib/pacemaker/pcmk_sched_native.c constraint->rsc_rh->id); rsc_rh 1710 lib/pacemaker/pcmk_sched_native.c native_rsc_colocation_lh(pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_rh 1718 lib/pacemaker/pcmk_sched_native.c } else if (constraint->rsc_rh == NULL) { rsc_rh 1724 lib/pacemaker/pcmk_sched_native.c rsc_rh->id); rsc_rh 1726 lib/pacemaker/pcmk_sched_native.c rsc_rh->cmds->rsc_colocation_rh(rsc_lh, rsc_rh, constraint, data_set); rsc_rh 1730 lib/pacemaker/pcmk_sched_native.c filter_colocation_constraint(pe_resource_t * rsc_lh, pe_resource_t * rsc_rh, rsc_rh 1734 lib/pacemaker/pcmk_sched_native.c if (!preview && pcmk_is_set(rsc_rh->flags, pe_rsc_provisional)) { rsc_rh 1749 lib/pacemaker/pcmk_sched_native.c const pe_node_t *rh_node = rsc_rh->allocated_to; rsc_rh 1762 lib/pacemaker/pcmk_sched_native.c rsc_lh->id, rsc_rh->id, rsc_rh 1774 lib/pacemaker/pcmk_sched_native.c rsc_lh->id, rsc_rh->id, rh_node->details->uname); rsc_rh 1788 lib/pacemaker/pcmk_sched_native.c && constraint->role_rh != RSC_ROLE_UNKNOWN && constraint->role_rh != rsc_rh->next_role) { rsc_rh 1801 lib/pacemaker/pcmk_sched_native.c && constraint->role_rh != RSC_ROLE_UNKNOWN && constraint->role_rh == rsc_rh->next_role) { rsc_rh 1811 lib/pacemaker/pcmk_sched_native.c influence_priority(pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_rh 1819 lib/pacemaker/pcmk_sched_native.c if (!rsc_rh->allocated_to || !rsc_lh->allocated_to) { rsc_rh 1828 lib/pacemaker/pcmk_sched_native.c rh_value = pe_node_attribute_raw(rsc_rh->allocated_to, attribute); rsc_rh 1838 lib/pacemaker/pcmk_sched_native.c if (constraint->role_rh && (constraint->role_rh != rsc_rh->next_role)) { rsc_rh 1851 lib/pacemaker/pcmk_sched_native.c colocation_match(pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_rh 1864 lib/pacemaker/pcmk_sched_native.c if (rsc_rh->allocated_to) { rsc_rh 1865 lib/pacemaker/pcmk_sched_native.c value = pe_node_attribute_raw(rsc_rh->allocated_to, attribute); rsc_rh 1876 lib/pacemaker/pcmk_sched_native.c if (rsc_rh->allocated_to == NULL) { rsc_rh 1879 lib/pacemaker/pcmk_sched_native.c constraint->score, rsc_rh->id); rsc_rh 1907 lib/pacemaker/pcmk_sched_native.c rsc_lh->id, rsc_rh->id); rsc_rh 1916 lib/pacemaker/pcmk_sched_native.c native_rsc_colocation_rh(pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_rh 1923 lib/pacemaker/pcmk_sched_native.c CRM_ASSERT(rsc_rh); rsc_rh 1924 lib/pacemaker/pcmk_sched_native.c filter_results = filter_colocation_constraint(rsc_lh, rsc_rh, constraint, FALSE); rsc_rh 1927 lib/pacemaker/pcmk_sched_native.c rsc_lh->id, rsc_rh->id, constraint->id, constraint->score, filter_results); rsc_rh 1931 lib/pacemaker/pcmk_sched_native.c influence_priority(rsc_lh, rsc_rh, constraint); rsc_rh 1934 lib/pacemaker/pcmk_sched_native.c colocation_match(rsc_lh, rsc_rh, constraint); rsc_rh 336 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "RHS: %s with %s: %d", constraint->rsc_lh->id, constraint->rsc_rh->id, rsc_rh 339 lib/pacemaker/pcmk_sched_promotable.c constraint->rsc_rh->cmds->merge_weights(constraint->rsc_rh, rsc->id, rsc_rh 358 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "LHS: %s with %s: %d", constraint->rsc_lh->id, constraint->rsc_rh->id, rsc_rh 739 lib/pacemaker/pcmk_sched_promotable.c child_rsc->cmds->rsc_colocation_lh(child_rsc, cons->rsc_rh, cons, rsc_rh 974 lib/pacemaker/pcmk_sched_promotable.c promotable_colocation_rh(pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_rh 983 lib/pacemaker/pcmk_sched_promotable.c for (gIter = rsc_rh->children; gIter != NULL; gIter = gIter->next) { rsc_rh 988 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc_rh, "Processing: %s", child_rsc->id); rsc_rh 990 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc_rh, "Applying: %s %s %s %d", child_rsc->id, rsc_rh 1014 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *rh_child = find_compatible_child(rsc_lh, rsc_rh, rsc_rh 295 lib/pacemaker/pcmk_sched_utilization.c pe_resource_t *rsc_rh = constraint->rsc_rh; rsc_rh 298 lib/pacemaker/pcmk_sched_utilization.c if (rsc_rh == orig_rsc) { rsc_rh 303 lib/pacemaker/pcmk_sched_utilization.c && filter_colocation_constraint(rsc, rsc_rh, constraint, TRUE) == influence_rsc_location) { rsc_rh 305 lib/pacemaker/pcmk_sched_utilization.c if (rsc_rh->variant == pe_group) { rsc_rh 307 lib/pacemaker/pcmk_sched_utilization.c colocated_rscs = group_find_colocated_rscs(colocated_rscs, rsc_rh, orig_rsc); rsc_rh 310 lib/pacemaker/pcmk_sched_utilization.c colocated_rscs = find_colocated_rscs(colocated_rscs, rsc_rh, orig_rsc);