chosen 45 include/pcmki/pcmki_sched_utils.h extern gboolean native_assign_node(pe_resource_t *rsc, pe_node_t *chosen, chosen 535 lib/pacemaker/pcmk_sched_bundle.c pe_node_t *chosen = replica->container->fns->location(replica->container, chosen 538 lib/pacemaker/pcmk_sched_bundle.c if ((chosen == NULL) chosen 551 lib/pacemaker/pcmk_sched_bundle.c pe_rsc_trace(rsc, "Allowing %s: %s %d", constraint->id, chosen->details->uname, chosen->weight); chosen 552 lib/pacemaker/pcmk_sched_bundle.c allocated_rhs = g_list_prepend(allocated_rhs, chosen); chosen 474 lib/pacemaker/pcmk_sched_clone.c pe_node_t *chosen = NULL; chosen 509 lib/pacemaker/pcmk_sched_clone.c chosen = rsc->cmds->allocate(rsc, prefer, data_set); chosen 510 lib/pacemaker/pcmk_sched_clone.c if (chosen && prefer && (chosen->details != prefer->details)) { chosen 512 lib/pacemaker/pcmk_sched_clone.c rsc->id, prefer->details->uname, chosen->details->uname); chosen 516 lib/pacemaker/pcmk_sched_clone.c chosen = NULL; chosen 519 lib/pacemaker/pcmk_sched_clone.c if (chosen) { chosen 520 lib/pacemaker/pcmk_sched_clone.c pe_node_t *local_node = parent_node_instance(rsc, chosen); chosen 528 lib/pacemaker/pcmk_sched_clone.c chosen->details->id, rsc->parent->id, chosen 536 lib/pacemaker/pcmk_sched_clone.c return chosen; chosen 1195 lib/pacemaker/pcmk_sched_clone.c pe_node_t *chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 1197 lib/pacemaker/pcmk_sched_clone.c if (chosen != NULL && is_set_recursive(child_rsc, pe_rsc_block, TRUE) == FALSE) { chosen 1198 lib/pacemaker/pcmk_sched_clone.c pe_rsc_trace(rsc_rh, "Allowing %s: %s %d", constraint->id, chosen->details->uname, chosen->weight); chosen 1199 lib/pacemaker/pcmk_sched_clone.c rhs = g_list_prepend(rhs, chosen); chosen 90 lib/pacemaker/pcmk_sched_native.c pe_node_t *chosen = NULL; chosen 115 lib/pacemaker/pcmk_sched_native.c chosen = g_hash_table_lookup(rsc->allowed_nodes, prefer->details->id); chosen 117 lib/pacemaker/pcmk_sched_native.c if (chosen == NULL) { chosen 127 lib/pacemaker/pcmk_sched_native.c } else if ((chosen->weight < 0) || (chosen->weight < best->weight)) { chosen 129 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id); chosen 130 lib/pacemaker/pcmk_sched_native.c chosen = NULL; chosen 132 lib/pacemaker/pcmk_sched_native.c } else if (!can_run_resources(chosen)) { chosen 134 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id); chosen 135 lib/pacemaker/pcmk_sched_native.c chosen = NULL; chosen 140 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id, length); chosen 144 lib/pacemaker/pcmk_sched_native.c if ((chosen == NULL) && nodes) { chosen 149 lib/pacemaker/pcmk_sched_native.c chosen = best; chosen 151 lib/pacemaker/pcmk_sched_native.c chosen ? chosen->details->uname : "<none>", rsc->id, length); chosen 154 lib/pacemaker/pcmk_sched_native.c && chosen && (chosen->weight > 0) && can_run_resources(chosen)) { chosen 173 lib/pacemaker/pcmk_sched_native.c if (tmp->weight != chosen->weight) { chosen 179 lib/pacemaker/pcmk_sched_native.c chosen = tmp; chosen 189 lib/pacemaker/pcmk_sched_native.c int log_level = (chosen->weight >= INFINITY)? LOG_WARNING : LOG_INFO; chosen 191 lib/pacemaker/pcmk_sched_native.c score2char_stack(chosen->weight, score, sizeof(score)); chosen 194 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id, multiple, score); chosen 197 lib/pacemaker/pcmk_sched_native.c result = native_assign_node(rsc, chosen, FALSE); chosen 1118 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 1127 lib/pacemaker/pcmk_sched_native.c rsc->id, current->details->id, chosen->details->id, partial ? "TRUE" : "FALSE"); chosen 1128 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1137 lib/pacemaker/pcmk_sched_native.c RSC_MIGRATED, chosen, TRUE, TRUE, data_set); chosen 1184 lib/pacemaker/pcmk_sched_native.c add_hash_param(migrate_to->meta, XML_LRM_ATTR_MIGRATE_TARGET, chosen->details->uname); chosen 1202 lib/pacemaker/pcmk_sched_native.c add_hash_param(migrate_from->meta, XML_LRM_ATTR_MIGRATE_TARGET, chosen->details->uname); chosen 1210 lib/pacemaker/pcmk_sched_native.c pe_node_t *chosen = NULL; chosen 1225 lib/pacemaker/pcmk_sched_native.c chosen = rsc->allocated_to; chosen 1229 lib/pacemaker/pcmk_sched_native.c (chosen == NULL)? RSC_ROLE_STOPPED : RSC_ROLE_STARTED, chosen 1235 lib/pacemaker/pcmk_sched_native.c ((chosen == NULL)? "no node" : chosen->details->uname)); chosen 1254 lib/pacemaker/pcmk_sched_native.c if ((num_all_active == 2) && (num_clean_active == 2) && chosen chosen 1257 lib/pacemaker/pcmk_sched_native.c && (chosen->details == rsc->partial_migration_target->details)) { chosen 1313 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1317 lib/pacemaker/pcmk_sched_native.c if (current && chosen && current->details != chosen->details) { chosen 1320 lib/pacemaker/pcmk_sched_native.c crm_str(chosen->details->uname)); chosen 1339 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role > RSC_ROLE_STARTED && current != NULL && chosen != NULL) { chosen 1342 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1377 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role](rsc, chosen, !required, chosen 1391 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role] (rsc, chosen, FALSE, data_set) == FALSE) { chosen 1406 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1407 lib/pacemaker/pcmk_sched_native.c Recurring(rsc, start, chosen, data_set); chosen 1408 lib/pacemaker/pcmk_sched_native.c Recurring_Stopped(rsc, start, chosen, data_set); chosen 1419 lib/pacemaker/pcmk_sched_native.c if (rsc->partial_migration_target && (chosen == NULL || rsc->partial_migration_target->details != chosen->details)) { chosen 1434 lib/pacemaker/pcmk_sched_native.c handle_migration_actions(rsc, current, chosen, data_set); chosen 134 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen) chosen 136 lib/pacemaker/pcmk_sched_promotable.c CRM_CHECK(child && chosen, return); chosen 143 lib/pacemaker/pcmk_sched_promotable.c cons_node = pe_find_node_id(cons->node_list_rh, chosen->details->id); chosen 284 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = NULL; chosen 309 lib/pacemaker/pcmk_sched_promotable.c chosen = child->fns->location(child, NULL, FALSE); chosen 310 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL || child->sort_index < 0) { chosen 315 lib/pacemaker/pcmk_sched_promotable.c node = (pe_node_t *) pe_hash_table_lookup(rsc->allowed_nodes, chosen->details->id); chosen 388 lib/pacemaker/pcmk_sched_promotable.c chosen = child->fns->location(child, NULL, FALSE); chosen 393 lib/pacemaker/pcmk_sched_promotable.c } else if (chosen == NULL || child->sort_index < 0) { chosen 397 lib/pacemaker/pcmk_sched_promotable.c node = (pe_node_t *) pe_hash_table_lookup(rsc->allowed_nodes, chosen->details->id); chosen 666 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = NULL; chosen 694 lib/pacemaker/pcmk_sched_promotable.c chosen = child_rsc->fns->location(child_rsc, &list, FALSE); chosen 701 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL) { chosen 717 lib/pacemaker/pcmk_sched_promotable.c child_rsc->priority = promotion_score(child_rsc, chosen, -1); chosen 733 lib/pacemaker/pcmk_sched_promotable.c apply_promoted_location(child_rsc, child_rsc->rsc_location, chosen); chosen 734 lib/pacemaker/pcmk_sched_promotable.c apply_promoted_location(child_rsc, rsc->rsc_location, chosen); chosen 759 lib/pacemaker/pcmk_sched_promotable.c chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 763 lib/pacemaker/pcmk_sched_promotable.c out->message(out, "promotion-score", child_rsc, chosen, score); chosen 768 lib/pacemaker/pcmk_sched_promotable.c (chosen? chosen->details->uname : "none"), score); chosen 771 lib/pacemaker/pcmk_sched_promotable.c chosen = NULL; /* nuke 'chosen' so that we don't promote more than the chosen 780 lib/pacemaker/pcmk_sched_promotable.c chosen = node_to_be_promoted_on(child_rsc); chosen 785 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL) { chosen 798 lib/pacemaker/pcmk_sched_promotable.c chosen->count++; chosen 800 lib/pacemaker/pcmk_sched_promotable.c child_rsc->id, role2text(child_rsc->role), chosen->details->uname); chosen 985 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 989 lib/pacemaker/pcmk_sched_promotable.c if (chosen != NULL && next_role == constraint->role_rh) { chosen 991 lib/pacemaker/pcmk_sched_promotable.c role2text(next_role), chosen->details->uname, constraint->score); chosen 993 lib/pacemaker/pcmk_sched_promotable.c node_hash_update_one(rsc_lh->allowed_nodes, chosen, chosen 996 lib/pacemaker/pcmk_sched_promotable.c rhs = g_list_prepend(rhs, chosen); chosen 271 lib/pacemaker/pcmk_sched_utils.c native_assign_node(pe_resource_t *rsc, pe_node_t *chosen, gboolean force) chosen 277 lib/pacemaker/pcmk_sched_utils.c if (force == FALSE && chosen != NULL) { chosen 280 lib/pacemaker/pcmk_sched_utils.c if(chosen->weight < 0) { chosen 284 lib/pacemaker/pcmk_sched_utils.c } else if (!can_run_resources(chosen) && !pe__is_guest_node(chosen)) { chosen 291 lib/pacemaker/pcmk_sched_utils.c rsc->id, chosen->details->uname, can_run_resources(chosen), chosen->weight); chosen 293 lib/pacemaker/pcmk_sched_utils.c chosen = NULL; chosen 304 lib/pacemaker/pcmk_sched_utils.c if (chosen == NULL) { chosen 338 lib/pacemaker/pcmk_sched_utils.c crm_debug("Assigning %s to %s", chosen->details->uname, rsc->id); chosen 339 lib/pacemaker/pcmk_sched_utils.c rsc->allocated_to = pe__copy_node(chosen); chosen 341 lib/pacemaker/pcmk_sched_utils.c chosen->details->allocated_rsc = g_list_prepend(chosen->details->allocated_rsc, rsc); chosen 342 lib/pacemaker/pcmk_sched_utils.c chosen->details->num_resources++; chosen 343 lib/pacemaker/pcmk_sched_utils.c chosen->count++; chosen 344 lib/pacemaker/pcmk_sched_utils.c calculate_utilization(chosen->details->utilization, rsc->utilization, FALSE); chosen 347 lib/pacemaker/pcmk_sched_utils.c out->message(out, "resource-util", rsc, chosen, __func__); chosen 2234 lib/pengine/pe_output.c pe_node_t *chosen = va_arg(args, pe_node_t *); chosen 2239 lib/pengine/pe_output.c chosen? chosen->details->uname : "none", chosen 2249 lib/pengine/pe_output.c pe_node_t *chosen = va_arg(args, pe_node_t *); chosen 2257 lib/pengine/pe_output.c if (chosen) { chosen 2258 lib/pengine/pe_output.c crm_xml_add(node, "node", chosen->details->uname);