chosen 34 include/pcmki/pcmki_sched_utils.h extern gboolean native_assign_node(pe_resource_t *rsc, pe_node_t *chosen, 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 1189 lib/pacemaker/pcmk_sched_clone.c pe_node_t *chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 1191 lib/pacemaker/pcmk_sched_clone.c if (chosen != NULL && is_set_recursive(child_rsc, pe_rsc_block, TRUE) == FALSE) { chosen 1193 lib/pacemaker/pcmk_sched_clone.c constraint->id, chosen->details->uname, chosen 1194 lib/pacemaker/pcmk_sched_clone.c chosen->weight); chosen 1195 lib/pacemaker/pcmk_sched_clone.c affected_nodes = g_list_prepend(affected_nodes, chosen); chosen 92 lib/pacemaker/pcmk_sched_native.c pe_node_t *chosen = NULL; chosen 117 lib/pacemaker/pcmk_sched_native.c chosen = g_hash_table_lookup(rsc->allowed_nodes, prefer->details->id); chosen 119 lib/pacemaker/pcmk_sched_native.c if (chosen == NULL) { chosen 129 lib/pacemaker/pcmk_sched_native.c } else if ((chosen->weight < 0) || (chosen->weight < best->weight)) { chosen 131 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id); chosen 132 lib/pacemaker/pcmk_sched_native.c chosen = NULL; chosen 134 lib/pacemaker/pcmk_sched_native.c } else if (!can_run_resources(chosen)) { chosen 136 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id); chosen 137 lib/pacemaker/pcmk_sched_native.c chosen = NULL; chosen 142 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id, length); chosen 146 lib/pacemaker/pcmk_sched_native.c if ((chosen == NULL) && nodes) { chosen 151 lib/pacemaker/pcmk_sched_native.c chosen = best; chosen 153 lib/pacemaker/pcmk_sched_native.c chosen ? chosen->details->uname : "<none>", rsc->id, length); chosen 156 lib/pacemaker/pcmk_sched_native.c && chosen && (chosen->weight > 0) && can_run_resources(chosen)) { chosen 175 lib/pacemaker/pcmk_sched_native.c if (tmp->weight != chosen->weight) { chosen 181 lib/pacemaker/pcmk_sched_native.c chosen = tmp; chosen 191 lib/pacemaker/pcmk_sched_native.c int log_level = (chosen->weight >= INFINITY)? LOG_WARNING : LOG_INFO; chosen 193 lib/pacemaker/pcmk_sched_native.c score2char_stack(chosen->weight, score, sizeof(score)); chosen 196 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id, multiple, score); chosen 199 lib/pacemaker/pcmk_sched_native.c result = native_assign_node(rsc, chosen, FALSE); chosen 1107 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 1116 lib/pacemaker/pcmk_sched_native.c rsc->id, current->details->id, chosen->details->id, partial ? "TRUE" : "FALSE"); chosen 1117 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1126 lib/pacemaker/pcmk_sched_native.c RSC_MIGRATED, chosen, TRUE, TRUE, data_set); chosen 1172 lib/pacemaker/pcmk_sched_native.c add_hash_param(migrate_to->meta, XML_LRM_ATTR_MIGRATE_TARGET, chosen->details->uname); chosen 1190 lib/pacemaker/pcmk_sched_native.c add_hash_param(migrate_from->meta, XML_LRM_ATTR_MIGRATE_TARGET, chosen->details->uname); chosen 1198 lib/pacemaker/pcmk_sched_native.c pe_node_t *chosen = NULL; chosen 1213 lib/pacemaker/pcmk_sched_native.c chosen = rsc->allocated_to; chosen 1217 lib/pacemaker/pcmk_sched_native.c (chosen == NULL)? RSC_ROLE_STOPPED : RSC_ROLE_STARTED, chosen 1223 lib/pacemaker/pcmk_sched_native.c ((chosen == NULL)? "no node" : chosen->details->uname)); chosen 1242 lib/pacemaker/pcmk_sched_native.c if ((num_all_active == 2) && (num_clean_active == 2) && chosen chosen 1245 lib/pacemaker/pcmk_sched_native.c && (chosen->details == rsc->partial_migration_target->details)) { chosen 1301 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1305 lib/pacemaker/pcmk_sched_native.c if (current && chosen && current->details != chosen->details) { chosen 1308 lib/pacemaker/pcmk_sched_native.c crm_str(chosen->details->uname)); chosen 1327 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role > RSC_ROLE_STARTED && current != NULL && chosen != NULL) { chosen 1330 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1365 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role](rsc, chosen, !required, chosen 1379 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role] (rsc, chosen, FALSE, data_set) == FALSE) { chosen 1394 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1395 lib/pacemaker/pcmk_sched_native.c Recurring(rsc, start, chosen, data_set); chosen 1396 lib/pacemaker/pcmk_sched_native.c Recurring_Stopped(rsc, start, chosen, data_set); chosen 1407 lib/pacemaker/pcmk_sched_native.c if (rsc->partial_migration_target && (chosen == NULL || rsc->partial_migration_target->details != chosen->details)) { chosen 1422 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 997 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 1001 lib/pacemaker/pcmk_sched_promotable.c if ((chosen != NULL) && (next_role == constraint->primary_role)) { chosen 1003 lib/pacemaker/pcmk_sched_promotable.c role2text(next_role), chosen->details->uname, constraint->score); chosen 1005 lib/pacemaker/pcmk_sched_promotable.c node_hash_update_one(dependent->allowed_nodes, chosen, chosen 1008 lib/pacemaker/pcmk_sched_promotable.c affected_nodes = g_list_prepend(affected_nodes, chosen); chosen 226 lib/pacemaker/pcmk_sched_utils.c native_assign_node(pe_resource_t *rsc, pe_node_t *chosen, gboolean force) chosen 232 lib/pacemaker/pcmk_sched_utils.c if (force == FALSE && chosen != NULL) { chosen 235 lib/pacemaker/pcmk_sched_utils.c if(chosen->weight < 0) { chosen 239 lib/pacemaker/pcmk_sched_utils.c } else if (!can_run_resources(chosen) && !pe__is_guest_node(chosen)) { chosen 246 lib/pacemaker/pcmk_sched_utils.c rsc->id, chosen->details->uname, can_run_resources(chosen), chosen->weight); chosen 248 lib/pacemaker/pcmk_sched_utils.c chosen = NULL; chosen 259 lib/pacemaker/pcmk_sched_utils.c if (chosen == NULL) { chosen 293 lib/pacemaker/pcmk_sched_utils.c crm_debug("Assigning %s to %s", chosen->details->uname, rsc->id); chosen 294 lib/pacemaker/pcmk_sched_utils.c rsc->allocated_to = pe__copy_node(chosen); chosen 296 lib/pacemaker/pcmk_sched_utils.c chosen->details->allocated_rsc = g_list_prepend(chosen->details->allocated_rsc, rsc); chosen 297 lib/pacemaker/pcmk_sched_utils.c chosen->details->num_resources++; chosen 298 lib/pacemaker/pcmk_sched_utils.c chosen->count++; chosen 299 lib/pacemaker/pcmk_sched_utils.c calculate_utilization(chosen->details->utilization, rsc->utilization, FALSE); chosen 302 lib/pacemaker/pcmk_sched_utils.c out->message(out, "resource-util", rsc, chosen, __func__); chosen 2352 lib/pengine/pe_output.c pe_node_t *chosen = va_arg(args, pe_node_t *); chosen 2357 lib/pengine/pe_output.c chosen? chosen->details->uname : "none", chosen 2367 lib/pengine/pe_output.c pe_node_t *chosen = va_arg(args, pe_node_t *); chosen 2375 lib/pengine/pe_output.c if (chosen) { chosen 2376 lib/pengine/pe_output.c crm_xml_add(node, "node", chosen->details->uname);