chosen 912 lib/pacemaker/libpacemaker_private.h bool pcmk__finalize_assignment(pe_resource_t *rsc, pe_node_t *chosen, chosen 484 lib/pacemaker/pcmk_sched_bundle.c pe_node_t *chosen = replica->container->fns->location(replica->container, chosen 487 lib/pacemaker/pcmk_sched_bundle.c if ((chosen == NULL) chosen 501 lib/pacemaker/pcmk_sched_bundle.c colocation->id, pe__node_name(chosen), chosen->weight); chosen 502 lib/pacemaker/pcmk_sched_bundle.c allocated_primaries = g_list_prepend(allocated_primaries, chosen); chosen 323 lib/pacemaker/pcmk_sched_clone.c pe_node_t *chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 325 lib/pacemaker/pcmk_sched_clone.c if (chosen != NULL && is_set_recursive(child_rsc, pe_rsc_block, TRUE) == FALSE) { chosen 327 lib/pacemaker/pcmk_sched_clone.c colocation->id, pe__node_name(chosen), chosen 328 lib/pacemaker/pcmk_sched_clone.c chosen->weight); chosen 329 lib/pacemaker/pcmk_sched_clone.c affected_nodes = g_list_prepend(affected_nodes, chosen); chosen 564 lib/pacemaker/pcmk_sched_instances.c pe_node_t *chosen = NULL; chosen 600 lib/pacemaker/pcmk_sched_instances.c chosen = instance->cmds->assign(instance, NULL); chosen 605 lib/pacemaker/pcmk_sched_instances.c chosen = instance->cmds->assign(instance, prefer); chosen 608 lib/pacemaker/pcmk_sched_instances.c if ((chosen != NULL) && (chosen->details != prefer->details)) { chosen 611 lib/pacemaker/pcmk_sched_instances.c pe__node_name(chosen)); chosen 615 lib/pacemaker/pcmk_sched_instances.c chosen = NULL; chosen 622 lib/pacemaker/pcmk_sched_instances.c if (chosen != NULL) { chosen 623 lib/pacemaker/pcmk_sched_instances.c allowed = pcmk__top_allowed_node(instance, chosen); chosen 635 lib/pacemaker/pcmk_sched_instances.c return chosen != NULL; chosen 153 lib/pacemaker/pcmk_sched_primitive.c pe_node_t *chosen = NULL; chosen 175 lib/pacemaker/pcmk_sched_primitive.c chosen = g_hash_table_lookup(rsc->allowed_nodes, prefer->details->id); chosen 177 lib/pacemaker/pcmk_sched_primitive.c if (chosen == NULL) { chosen 187 lib/pacemaker/pcmk_sched_primitive.c } else if (chosen->weight < best->weight) { chosen 189 lib/pacemaker/pcmk_sched_primitive.c pe__node_name(chosen), rsc->id); chosen 190 lib/pacemaker/pcmk_sched_primitive.c chosen = NULL; chosen 192 lib/pacemaker/pcmk_sched_primitive.c } else if (!pcmk__node_available(chosen, true, false)) { chosen 194 lib/pacemaker/pcmk_sched_primitive.c pe__node_name(chosen), rsc->id); chosen 195 lib/pacemaker/pcmk_sched_primitive.c chosen = NULL; chosen 200 lib/pacemaker/pcmk_sched_primitive.c pe__node_name(chosen), rsc->id, g_list_length(nodes)); chosen 204 lib/pacemaker/pcmk_sched_primitive.c if ((chosen == NULL) && (best != NULL)) { chosen 209 lib/pacemaker/pcmk_sched_primitive.c chosen = best; chosen 212 lib/pacemaker/pcmk_sched_primitive.c && (chosen->weight > 0) // Zero not acceptable chosen 213 lib/pacemaker/pcmk_sched_primitive.c && pcmk__node_available(chosen, false, false)) { chosen 238 lib/pacemaker/pcmk_sched_primitive.c if (allowed->weight != chosen->weight) { chosen 244 lib/pacemaker/pcmk_sched_primitive.c chosen = allowed; chosen 250 lib/pacemaker/pcmk_sched_primitive.c do_crm_log(((chosen->weight >= INFINITY)? LOG_WARNING : LOG_INFO), chosen 252 lib/pacemaker/pcmk_sched_primitive.c pe__node_name(chosen), rsc->id, chosen 254 lib/pacemaker/pcmk_sched_primitive.c pcmk_readable_score(chosen->weight)); chosen 260 lib/pacemaker/pcmk_sched_primitive.c pe__node_name(chosen), rsc->id, g_list_length(nodes)); chosen 263 lib/pacemaker/pcmk_sched_primitive.c result = pcmk__finalize_assignment(rsc, chosen, false); chosen 122 lib/pacemaker/pcmk_sched_promotable.c const pe_node_t *chosen) chosen 130 lib/pacemaker/pcmk_sched_promotable.c chosen->details->id); chosen 307 lib/pacemaker/pcmk_sched_promotable.c const pe_node_t *chosen = NULL; chosen 314 lib/pacemaker/pcmk_sched_promotable.c chosen = child->fns->location(child, NULL, FALSE); chosen 315 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL) { chosen 321 lib/pacemaker/pcmk_sched_promotable.c chosen->details->id); chosen 408 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = child->fns->location(child, NULL, FALSE); chosen 417 lib/pacemaker/pcmk_sched_promotable.c } else if ((chosen == NULL) || (child->sort_index < 0)) { chosen 425 lib/pacemaker/pcmk_sched_promotable.c node = pe_hash_table_lookup(clone->allowed_nodes, chosen->details->id); chosen 862 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = instance->fns->location(instance, NULL, FALSE); chosen 869 lib/pacemaker/pcmk_sched_promotable.c out->message(out, "promotion-score", instance, chosen, chosen 875 lib/pacemaker/pcmk_sched_promotable.c ((chosen == NULL)? "none" : pe__node_name(chosen)), chosen 893 lib/pacemaker/pcmk_sched_promotable.c const pe_node_t *chosen = NULL; chosen 905 lib/pacemaker/pcmk_sched_promotable.c chosen = instance->fns->location(instance, &list, FALSE); chosen 911 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL) { chosen 923 lib/pacemaker/pcmk_sched_promotable.c instance->priority = promotion_score(instance, chosen, chosen 954 lib/pacemaker/pcmk_sched_promotable.c apply_promoted_locations(instance, instance->rsc_location, chosen); chosen 955 lib/pacemaker/pcmk_sched_promotable.c apply_promoted_locations(instance, clone->rsc_location, chosen); chosen 988 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = NULL; chosen 998 lib/pacemaker/pcmk_sched_promotable.c chosen = node_to_be_promoted_on(instance); chosen 1001 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL) { chosen 1015 lib/pacemaker/pcmk_sched_promotable.c chosen->count++; chosen 1018 lib/pacemaker/pcmk_sched_promotable.c pe__node_name(chosen)); chosen 354 lib/pacemaker/pcmk_sched_resource.c pcmk__finalize_assignment(pe_resource_t *rsc, pe_node_t *chosen, bool force) chosen 360 lib/pacemaker/pcmk_sched_resource.c if (!force && (chosen != NULL)) { chosen 361 lib/pacemaker/pcmk_sched_resource.c if ((chosen->weight < 0) chosen 363 lib/pacemaker/pcmk_sched_resource.c || (!pcmk__node_available(chosen, true, false) chosen 364 lib/pacemaker/pcmk_sched_resource.c && !pe__is_guest_node(chosen))) { chosen 368 lib/pacemaker/pcmk_sched_resource.c rsc->id, pe__node_name(chosen), chosen 369 lib/pacemaker/pcmk_sched_resource.c (pcmk__node_available(chosen, true, false)? "" : "not"), chosen 370 lib/pacemaker/pcmk_sched_resource.c chosen->weight); chosen 372 lib/pacemaker/pcmk_sched_resource.c chosen = NULL; chosen 379 lib/pacemaker/pcmk_sched_resource.c if (chosen == NULL) { chosen 416 lib/pacemaker/pcmk_sched_resource.c crm_debug("Assigning %s to %s", rsc->id, pe__node_name(chosen)); chosen 417 lib/pacemaker/pcmk_sched_resource.c rsc->allocated_to = pe__copy_node(chosen); chosen 419 lib/pacemaker/pcmk_sched_resource.c chosen->details->allocated_rsc = g_list_prepend(chosen->details->allocated_rsc, chosen 421 lib/pacemaker/pcmk_sched_resource.c chosen->details->num_resources++; chosen 422 lib/pacemaker/pcmk_sched_resource.c chosen->count++; chosen 423 lib/pacemaker/pcmk_sched_resource.c pcmk__consume_node_capacity(chosen->details->utilization, rsc); chosen 426 lib/pacemaker/pcmk_sched_resource.c out->message(out, "resource-util", rsc, chosen, __func__); chosen 2595 lib/pengine/pe_output.c pe_node_t *chosen = va_arg(args, pe_node_t *); chosen 2600 lib/pengine/pe_output.c chosen? chosen->details->uname : "none", chosen 2610 lib/pengine/pe_output.c pe_node_t *chosen = va_arg(args, pe_node_t *); chosen 2618 lib/pengine/pe_output.c if (chosen) { chosen 2619 lib/pengine/pe_output.c crm_xml_add(node, "node", chosen->details->uname);