chosen 749 lib/pacemaker/libpacemaker_private.h bool pcmk__finalize_assignment(pe_resource_t *rsc, pe_node_t *chosen, chosen 516 lib/pacemaker/pcmk_sched_bundle.c pe_node_t *chosen = replica->container->fns->location(replica->container, chosen 519 lib/pacemaker/pcmk_sched_bundle.c if ((chosen == NULL) chosen 533 lib/pacemaker/pcmk_sched_bundle.c colocation->id, pe__node_name(chosen), chosen->weight); chosen 534 lib/pacemaker/pcmk_sched_bundle.c allocated_primaries = g_list_prepend(allocated_primaries, chosen); chosen 80 lib/pacemaker/pcmk_sched_clone.c pe_node_t *chosen = NULL; chosen 115 lib/pacemaker/pcmk_sched_clone.c chosen = rsc->cmds->assign(rsc, prefer); chosen 116 lib/pacemaker/pcmk_sched_clone.c if (chosen && prefer && (chosen->details != prefer->details)) { chosen 118 lib/pacemaker/pcmk_sched_clone.c rsc->id, pe__node_name(prefer), pe__node_name(chosen)); chosen 122 lib/pacemaker/pcmk_sched_clone.c chosen = NULL; chosen 125 lib/pacemaker/pcmk_sched_clone.c if (chosen) { chosen 126 lib/pacemaker/pcmk_sched_clone.c pe_node_t *local_node = pcmk__top_allowed_node(rsc, chosen); chosen 134 lib/pacemaker/pcmk_sched_clone.c chosen->details->id, rsc->parent->id, chosen 142 lib/pacemaker/pcmk_sched_clone.c return chosen; chosen 798 lib/pacemaker/pcmk_sched_clone.c pe_node_t *chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 800 lib/pacemaker/pcmk_sched_clone.c if (chosen != NULL && is_set_recursive(child_rsc, pe_rsc_block, TRUE) == FALSE) { chosen 802 lib/pacemaker/pcmk_sched_clone.c colocation->id, pe__node_name(chosen), chosen 803 lib/pacemaker/pcmk_sched_clone.c chosen->weight); chosen 804 lib/pacemaker/pcmk_sched_clone.c affected_nodes = g_list_prepend(affected_nodes, chosen); 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 121 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen) chosen 129 lib/pacemaker/pcmk_sched_promotable.c chosen->details->id); chosen 303 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = NULL; chosen 310 lib/pacemaker/pcmk_sched_promotable.c chosen = child->fns->location(child, NULL, FALSE); chosen 311 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL) { chosen 317 lib/pacemaker/pcmk_sched_promotable.c chosen->details->id); chosen 399 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = child->fns->location(child, NULL, FALSE); chosen 408 lib/pacemaker/pcmk_sched_promotable.c } else if ((chosen == NULL) || (child->sort_index < 0)) { chosen 417 lib/pacemaker/pcmk_sched_promotable.c chosen->details->id); chosen 846 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = instance->fns->location(instance, NULL, FALSE); chosen 853 lib/pacemaker/pcmk_sched_promotable.c out->message(out, "promotion-score", instance, chosen, chosen 859 lib/pacemaker/pcmk_sched_promotable.c ((chosen == NULL)? "none" : pe__node_name(chosen)), chosen 877 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = NULL; chosen 889 lib/pacemaker/pcmk_sched_promotable.c chosen = instance->fns->location(instance, &list, FALSE); chosen 895 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL) { chosen 907 lib/pacemaker/pcmk_sched_promotable.c instance->priority = promotion_score(instance, chosen, chosen 938 lib/pacemaker/pcmk_sched_promotable.c apply_promoted_locations(instance, instance->rsc_location, chosen); chosen 939 lib/pacemaker/pcmk_sched_promotable.c apply_promoted_locations(instance, clone->rsc_location, chosen); chosen 970 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = NULL; chosen 980 lib/pacemaker/pcmk_sched_promotable.c chosen = node_to_be_promoted_on(instance); chosen 983 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL) { chosen 997 lib/pacemaker/pcmk_sched_promotable.c chosen->count++; chosen 1000 lib/pacemaker/pcmk_sched_promotable.c pe__node_name(chosen)); chosen 337 lib/pacemaker/pcmk_sched_resource.c pcmk__finalize_assignment(pe_resource_t *rsc, pe_node_t *chosen, bool force) chosen 343 lib/pacemaker/pcmk_sched_resource.c if (!force && (chosen != NULL)) { chosen 344 lib/pacemaker/pcmk_sched_resource.c if ((chosen->weight < 0) chosen 346 lib/pacemaker/pcmk_sched_resource.c || (!pcmk__node_available(chosen, true, false) chosen 347 lib/pacemaker/pcmk_sched_resource.c && !pe__is_guest_node(chosen))) { chosen 351 lib/pacemaker/pcmk_sched_resource.c rsc->id, pe__node_name(chosen), chosen 352 lib/pacemaker/pcmk_sched_resource.c (pcmk__node_available(chosen, true, false)? "" : "not"), chosen 353 lib/pacemaker/pcmk_sched_resource.c chosen->weight); chosen 355 lib/pacemaker/pcmk_sched_resource.c chosen = NULL; chosen 362 lib/pacemaker/pcmk_sched_resource.c if (chosen == NULL) { chosen 399 lib/pacemaker/pcmk_sched_resource.c crm_debug("Assigning %s to %s", rsc->id, pe__node_name(chosen)); chosen 400 lib/pacemaker/pcmk_sched_resource.c rsc->allocated_to = pe__copy_node(chosen); chosen 402 lib/pacemaker/pcmk_sched_resource.c chosen->details->allocated_rsc = g_list_prepend(chosen->details->allocated_rsc, chosen 404 lib/pacemaker/pcmk_sched_resource.c chosen->details->num_resources++; chosen 405 lib/pacemaker/pcmk_sched_resource.c chosen->count++; chosen 406 lib/pacemaker/pcmk_sched_resource.c pcmk__consume_node_capacity(chosen->details->utilization, rsc); chosen 409 lib/pacemaker/pcmk_sched_resource.c out->message(out, "resource-util", rsc, chosen, __func__); chosen 2503 lib/pengine/pe_output.c pe_node_t *chosen = va_arg(args, pe_node_t *); chosen 2508 lib/pengine/pe_output.c chosen? chosen->details->uname : "none", chosen 2518 lib/pengine/pe_output.c pe_node_t *chosen = va_arg(args, pe_node_t *); chosen 2526 lib/pengine/pe_output.c if (chosen) { chosen 2527 lib/pengine/pe_output.c crm_xml_add(node, "node", chosen->details->uname);