chosen 347 lib/pacemaker/libpacemaker_private.h bool pcmk__assign_primitive(pe_resource_t *rsc, pe_node_t *chosen, bool force); chosen 521 lib/pacemaker/pcmk_sched_bundle.c pe_node_t *chosen = replica->container->fns->location(replica->container, chosen 524 lib/pacemaker/pcmk_sched_bundle.c if ((chosen == NULL) chosen 538 lib/pacemaker/pcmk_sched_bundle.c constraint->id, chosen->details->uname, chosen 539 lib/pacemaker/pcmk_sched_bundle.c chosen->weight); chosen 540 lib/pacemaker/pcmk_sched_bundle.c allocated_primaries = g_list_prepend(allocated_primaries, chosen); chosen 476 lib/pacemaker/pcmk_sched_clone.c pe_node_t *chosen = NULL; chosen 511 lib/pacemaker/pcmk_sched_clone.c chosen = rsc->cmds->allocate(rsc, prefer, data_set); chosen 512 lib/pacemaker/pcmk_sched_clone.c if (chosen && prefer && (chosen->details != prefer->details)) { chosen 514 lib/pacemaker/pcmk_sched_clone.c rsc->id, prefer->details->uname, chosen->details->uname); chosen 518 lib/pacemaker/pcmk_sched_clone.c chosen = NULL; chosen 521 lib/pacemaker/pcmk_sched_clone.c if (chosen) { chosen 522 lib/pacemaker/pcmk_sched_clone.c pe_node_t *local_node = parent_node_instance(rsc, chosen); chosen 530 lib/pacemaker/pcmk_sched_clone.c chosen->details->id, rsc->parent->id, chosen 538 lib/pacemaker/pcmk_sched_clone.c return chosen; chosen 1169 lib/pacemaker/pcmk_sched_clone.c pe_node_t *chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 1171 lib/pacemaker/pcmk_sched_clone.c if (chosen != NULL && is_set_recursive(child_rsc, pe_rsc_block, TRUE) == FALSE) { chosen 1173 lib/pacemaker/pcmk_sched_clone.c constraint->id, chosen->details->uname, chosen 1174 lib/pacemaker/pcmk_sched_clone.c chosen->weight); chosen 1175 lib/pacemaker/pcmk_sched_clone.c affected_nodes = g_list_prepend(affected_nodes, chosen); chosen 91 lib/pacemaker/pcmk_sched_native.c pe_node_t *chosen = NULL; chosen 116 lib/pacemaker/pcmk_sched_native.c chosen = g_hash_table_lookup(rsc->allowed_nodes, prefer->details->id); chosen 118 lib/pacemaker/pcmk_sched_native.c if (chosen == NULL) { chosen 128 lib/pacemaker/pcmk_sched_native.c } else if ((chosen->weight < 0) || (chosen->weight < best->weight)) { chosen 130 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id); chosen 131 lib/pacemaker/pcmk_sched_native.c chosen = NULL; chosen 133 lib/pacemaker/pcmk_sched_native.c } else if (!pcmk__node_available(chosen)) { chosen 135 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id); chosen 136 lib/pacemaker/pcmk_sched_native.c chosen = NULL; chosen 141 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id, length); chosen 145 lib/pacemaker/pcmk_sched_native.c if ((chosen == NULL) && nodes) { chosen 150 lib/pacemaker/pcmk_sched_native.c chosen = best; chosen 152 lib/pacemaker/pcmk_sched_native.c chosen ? chosen->details->uname : "<none>", rsc->id, length); chosen 155 lib/pacemaker/pcmk_sched_native.c && chosen && (chosen->weight > 0) && pcmk__node_available(chosen)) { chosen 174 lib/pacemaker/pcmk_sched_native.c if (tmp->weight != chosen->weight) { chosen 180 lib/pacemaker/pcmk_sched_native.c chosen = tmp; chosen 190 lib/pacemaker/pcmk_sched_native.c int log_level = (chosen->weight >= INFINITY)? LOG_WARNING : LOG_INFO; chosen 192 lib/pacemaker/pcmk_sched_native.c score2char_stack(chosen->weight, score, sizeof(score)); chosen 195 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id, multiple, score); chosen 198 lib/pacemaker/pcmk_sched_native.c result = pcmk__assign_primitive(rsc, chosen, false); chosen 1101 lib/pacemaker/pcmk_sched_native.c handle_migration_actions(pe_resource_t * rsc, pe_node_t *current, pe_node_t *chosen, pe_working_set_t * data_set) chosen 1110 lib/pacemaker/pcmk_sched_native.c rsc->id, current->details->id, chosen->details->id, partial ? "TRUE" : "FALSE"); chosen 1111 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1120 lib/pacemaker/pcmk_sched_native.c RSC_MIGRATED, chosen, TRUE, TRUE, data_set); chosen 1166 lib/pacemaker/pcmk_sched_native.c add_hash_param(migrate_to->meta, XML_LRM_ATTR_MIGRATE_TARGET, chosen->details->uname); chosen 1184 lib/pacemaker/pcmk_sched_native.c add_hash_param(migrate_from->meta, XML_LRM_ATTR_MIGRATE_TARGET, chosen->details->uname); chosen 1202 lib/pacemaker/pcmk_sched_native.c pe_node_t *chosen, bool need_stop, bool need_promote) chosen 1234 lib/pacemaker/pcmk_sched_native.c if (!rsc_action_matrix[role][next_role](rsc, chosen, !required, chosen 1248 lib/pacemaker/pcmk_sched_native.c pe_node_t *chosen = NULL; chosen 1265 lib/pacemaker/pcmk_sched_native.c chosen = rsc->allocated_to; chosen 1269 lib/pacemaker/pcmk_sched_native.c (chosen == NULL)? RSC_ROLE_STOPPED : RSC_ROLE_STARTED, chosen 1275 lib/pacemaker/pcmk_sched_native.c ((chosen == NULL)? "no node" : chosen->details->uname)); chosen 1294 lib/pacemaker/pcmk_sched_native.c if ((num_all_active == 2) && (num_clean_active == 2) && chosen chosen 1297 lib/pacemaker/pcmk_sched_native.c && (chosen->details == rsc->partial_migration_target->details)) { chosen 1366 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1370 lib/pacemaker/pcmk_sched_native.c if (current && chosen && current->details != chosen->details) { chosen 1373 lib/pacemaker/pcmk_sched_native.c crm_str(chosen->details->uname)); chosen 1392 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role > RSC_ROLE_STARTED && current != NULL && chosen != NULL) { chosen 1395 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1406 lib/pacemaker/pcmk_sched_native.c schedule_restart_actions(rsc, current, chosen, need_stop, need_promote); chosen 1415 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role] (rsc, chosen, FALSE, data_set) == FALSE) { chosen 1430 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1431 lib/pacemaker/pcmk_sched_native.c Recurring(rsc, start, chosen, data_set); chosen 1432 lib/pacemaker/pcmk_sched_native.c Recurring_Stopped(rsc, start, chosen, data_set); chosen 1443 lib/pacemaker/pcmk_sched_native.c if (rsc->partial_migration_target && (chosen == NULL || rsc->partial_migration_target->details != chosen->details)) { chosen 1458 lib/pacemaker/pcmk_sched_native.c handle_migration_actions(rsc, current, chosen, data_set); chosen 145 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen) chosen 147 lib/pacemaker/pcmk_sched_promotable.c CRM_CHECK(child && chosen, return); chosen 154 lib/pacemaker/pcmk_sched_promotable.c cons_node = pe_find_node_id(cons->node_list_rh, chosen->details->id); chosen 295 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = NULL; chosen 320 lib/pacemaker/pcmk_sched_promotable.c chosen = child->fns->location(child, NULL, FALSE); chosen 321 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL || child->sort_index < 0) { chosen 326 lib/pacemaker/pcmk_sched_promotable.c node = (pe_node_t *) pe_hash_table_lookup(rsc->allowed_nodes, chosen->details->id); chosen 398 lib/pacemaker/pcmk_sched_promotable.c chosen = child->fns->location(child, NULL, FALSE); chosen 403 lib/pacemaker/pcmk_sched_promotable.c } else if (chosen == NULL || child->sort_index < 0) { chosen 407 lib/pacemaker/pcmk_sched_promotable.c node = (pe_node_t *) pe_hash_table_lookup(rsc->allowed_nodes, chosen->details->id); chosen 670 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = NULL; chosen 698 lib/pacemaker/pcmk_sched_promotable.c chosen = child_rsc->fns->location(child_rsc, &list, FALSE); chosen 705 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL) { chosen 721 lib/pacemaker/pcmk_sched_promotable.c child_rsc->priority = promotion_score(child_rsc, chosen, -1); chosen 737 lib/pacemaker/pcmk_sched_promotable.c apply_promoted_location(child_rsc, child_rsc->rsc_location, chosen); chosen 738 lib/pacemaker/pcmk_sched_promotable.c apply_promoted_location(child_rsc, rsc->rsc_location, chosen); chosen 763 lib/pacemaker/pcmk_sched_promotable.c chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 767 lib/pacemaker/pcmk_sched_promotable.c out->message(out, "promotion-score", child_rsc, chosen, score); chosen 772 lib/pacemaker/pcmk_sched_promotable.c (chosen? chosen->details->uname : "none"), score); chosen 775 lib/pacemaker/pcmk_sched_promotable.c chosen = NULL; /* nuke 'chosen' so that we don't promote more than the chosen 784 lib/pacemaker/pcmk_sched_promotable.c chosen = node_to_be_promoted_on(child_rsc); chosen 789 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL) { chosen 802 lib/pacemaker/pcmk_sched_promotable.c chosen->count++; chosen 804 lib/pacemaker/pcmk_sched_promotable.c child_rsc->id, role2text(child_rsc->role), chosen->details->uname); chosen 1004 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 1008 lib/pacemaker/pcmk_sched_promotable.c if ((chosen != NULL) && (next_role == constraint->primary_role)) { chosen 1010 lib/pacemaker/pcmk_sched_promotable.c role2text(next_role), chosen->details->uname, constraint->score); chosen 1012 lib/pacemaker/pcmk_sched_promotable.c node_hash_update_one(dependent->allowed_nodes, chosen, chosen 1015 lib/pacemaker/pcmk_sched_promotable.c affected_nodes = g_list_prepend(affected_nodes, chosen); chosen 337 lib/pacemaker/pcmk_sched_resource.c pcmk__assign_primitive(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) && !pe__is_guest_node(chosen))) { chosen 350 lib/pacemaker/pcmk_sched_resource.c rsc->id, chosen->details->uname, chosen 351 lib/pacemaker/pcmk_sched_resource.c (pcmk__node_available(chosen)? "" : "not"), chosen 352 lib/pacemaker/pcmk_sched_resource.c chosen->weight); chosen 354 lib/pacemaker/pcmk_sched_resource.c chosen = NULL; chosen 361 lib/pacemaker/pcmk_sched_resource.c if (chosen == NULL) { chosen 398 lib/pacemaker/pcmk_sched_resource.c crm_debug("Assigning %s to %s", rsc->id, chosen->details->uname); chosen 399 lib/pacemaker/pcmk_sched_resource.c rsc->allocated_to = pe__copy_node(chosen); chosen 401 lib/pacemaker/pcmk_sched_resource.c chosen->details->allocated_rsc = g_list_prepend(chosen->details->allocated_rsc, chosen 403 lib/pacemaker/pcmk_sched_resource.c chosen->details->num_resources++; chosen 404 lib/pacemaker/pcmk_sched_resource.c chosen->count++; chosen 405 lib/pacemaker/pcmk_sched_resource.c pcmk__consume_node_capacity(chosen->details->utilization, rsc); chosen 408 lib/pacemaker/pcmk_sched_resource.c out->message(out, "resource-util", rsc, chosen, __func__); chosen 2425 lib/pengine/pe_output.c pe_node_t *chosen = va_arg(args, pe_node_t *); chosen 2430 lib/pengine/pe_output.c chosen? chosen->details->uname : "none", chosen 2440 lib/pengine/pe_output.c pe_node_t *chosen = va_arg(args, pe_node_t *); chosen 2448 lib/pengine/pe_output.c if (chosen) { chosen 2449 lib/pengine/pe_output.c crm_xml_add(node, "node", chosen->details->uname);