chosen 46 include/pcmki/pcmki_sched_utils.h extern gboolean native_assign_node(pe_resource_t * rsc, GListPtr candidates, pe_node_t * chosen, chosen 525 lib/pacemaker/pcmk_sched_bundle.c pe_node_t *chosen = replica->container->fns->location(replica->container, chosen 528 lib/pacemaker/pcmk_sched_bundle.c if ((chosen == NULL) chosen 541 lib/pacemaker/pcmk_sched_bundle.c pe_rsc_trace(rsc, "Allowing %s: %s %d", constraint->id, chosen->details->uname, chosen->weight); chosen 542 lib/pacemaker/pcmk_sched_bundle.c allocated_rhs = g_list_prepend(allocated_rhs, chosen); chosen 429 lib/pacemaker/pcmk_sched_clone.c pe_node_t *chosen = NULL; chosen 464 lib/pacemaker/pcmk_sched_clone.c chosen = rsc->cmds->allocate(rsc, prefer, data_set); chosen 465 lib/pacemaker/pcmk_sched_clone.c if (chosen && prefer && (chosen->details != prefer->details)) { chosen 467 lib/pacemaker/pcmk_sched_clone.c rsc->id, prefer->details->uname, chosen->details->uname); chosen 471 lib/pacemaker/pcmk_sched_clone.c chosen = NULL; chosen 474 lib/pacemaker/pcmk_sched_clone.c if (chosen) { chosen 475 lib/pacemaker/pcmk_sched_clone.c pe_node_t *local_node = parent_node_instance(rsc, chosen); chosen 483 lib/pacemaker/pcmk_sched_clone.c chosen->details->id, rsc->parent->id, chosen 491 lib/pacemaker/pcmk_sched_clone.c return chosen; chosen 1145 lib/pacemaker/pcmk_sched_clone.c pe_node_t *chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 1147 lib/pacemaker/pcmk_sched_clone.c if (chosen != NULL && is_set_recursive(child_rsc, pe_rsc_block, TRUE) == FALSE) { chosen 1148 lib/pacemaker/pcmk_sched_clone.c pe_rsc_trace(rsc_rh, "Allowing %s: %s %d", constraint->id, chosen->details->uname, chosen->weight); chosen 1149 lib/pacemaker/pcmk_sched_clone.c rhs = g_list_prepend(rhs, chosen); chosen 86 lib/pacemaker/pcmk_sched_native.c pe_node_t *chosen = NULL; chosen 111 lib/pacemaker/pcmk_sched_native.c chosen = g_hash_table_lookup(rsc->allowed_nodes, prefer->details->id); chosen 113 lib/pacemaker/pcmk_sched_native.c if (chosen == NULL) { chosen 123 lib/pacemaker/pcmk_sched_native.c } else if ((chosen->weight < 0) || (chosen->weight < best->weight)) { chosen 125 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id); chosen 126 lib/pacemaker/pcmk_sched_native.c chosen = NULL; chosen 128 lib/pacemaker/pcmk_sched_native.c } else if (!can_run_resources(chosen)) { chosen 130 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id); chosen 131 lib/pacemaker/pcmk_sched_native.c chosen = NULL; chosen 136 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id, length); chosen 140 lib/pacemaker/pcmk_sched_native.c if ((chosen == NULL) && nodes) { chosen 145 lib/pacemaker/pcmk_sched_native.c chosen = best; chosen 147 lib/pacemaker/pcmk_sched_native.c chosen ? chosen->details->uname : "<none>", rsc->id, length); chosen 150 lib/pacemaker/pcmk_sched_native.c && chosen && (chosen->weight > 0) && can_run_resources(chosen)) { chosen 169 lib/pacemaker/pcmk_sched_native.c if (tmp->weight != chosen->weight) { chosen 175 lib/pacemaker/pcmk_sched_native.c chosen = tmp; chosen 185 lib/pacemaker/pcmk_sched_native.c int log_level = (chosen->weight >= INFINITY)? LOG_WARNING : LOG_INFO; chosen 187 lib/pacemaker/pcmk_sched_native.c score2char_stack(chosen->weight, score, sizeof(score)); chosen 190 lib/pacemaker/pcmk_sched_native.c chosen->details->uname, rsc->id, multiple, score); chosen 193 lib/pacemaker/pcmk_sched_native.c result = native_assign_node(rsc, nodes, chosen, FALSE); chosen 1123 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 1132 lib/pacemaker/pcmk_sched_native.c rsc->id, current->details->id, chosen->details->id, partial ? "TRUE" : "FALSE"); chosen 1133 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1142 lib/pacemaker/pcmk_sched_native.c RSC_MIGRATED, chosen, TRUE, TRUE, data_set); chosen 1189 lib/pacemaker/pcmk_sched_native.c add_hash_param(migrate_to->meta, XML_LRM_ATTR_MIGRATE_TARGET, chosen->details->uname); chosen 1207 lib/pacemaker/pcmk_sched_native.c add_hash_param(migrate_from->meta, XML_LRM_ATTR_MIGRATE_TARGET, chosen->details->uname); chosen 1215 lib/pacemaker/pcmk_sched_native.c pe_node_t *chosen = NULL; chosen 1230 lib/pacemaker/pcmk_sched_native.c chosen = rsc->allocated_to; chosen 1233 lib/pacemaker/pcmk_sched_native.c rsc->next_role = (chosen == NULL)? RSC_ROLE_STOPPED : RSC_ROLE_STARTED; chosen 1238 lib/pacemaker/pcmk_sched_native.c ((chosen == NULL)? "no node" : chosen->details->uname)); chosen 1257 lib/pacemaker/pcmk_sched_native.c if ((num_all_active == 2) && (num_clean_active == 2) && chosen chosen 1260 lib/pacemaker/pcmk_sched_native.c && (chosen->details == rsc->partial_migration_target->details)) { chosen 1314 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1318 lib/pacemaker/pcmk_sched_native.c if (current && chosen && current->details != chosen->details) { chosen 1321 lib/pacemaker/pcmk_sched_native.c crm_str(chosen->details->uname)); chosen 1340 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role > RSC_ROLE_STARTED && current != NULL && chosen != NULL) { chosen 1343 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1378 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role](rsc, chosen, !required, chosen 1392 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role] (rsc, chosen, FALSE, data_set) == FALSE) { chosen 1407 lib/pacemaker/pcmk_sched_native.c start = start_action(rsc, chosen, TRUE); chosen 1408 lib/pacemaker/pcmk_sched_native.c Recurring(rsc, start, chosen, data_set); chosen 1409 lib/pacemaker/pcmk_sched_native.c Recurring_Stopped(rsc, start, chosen, data_set); chosen 1420 lib/pacemaker/pcmk_sched_native.c if (rsc->partial_migration_target && (chosen == NULL || rsc->partial_migration_target->details != chosen->details)) { chosen 1435 lib/pacemaker/pcmk_sched_native.c handle_migration_actions(rsc, current, chosen, data_set); chosen 130 lib/pacemaker/pcmk_sched_promotable.c static void apply_master_location(pe_resource_t *child, GListPtr location_constraints, pe_node_t *chosen) chosen 132 lib/pacemaker/pcmk_sched_promotable.c CRM_CHECK(child && chosen, return); chosen 139 lib/pacemaker/pcmk_sched_promotable.c cons_node = pe_find_node_id(cons->node_list_rh, chosen->details->id); chosen 278 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *chosen = NULL; chosen 303 lib/pacemaker/pcmk_sched_promotable.c chosen = child->fns->location(child, NULL, FALSE); chosen 304 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL || child->sort_index < 0) { chosen 309 lib/pacemaker/pcmk_sched_promotable.c node = (pe_node_t *) pe_hash_table_lookup(rsc->allowed_nodes, chosen->details->id); chosen 386 lib/pacemaker/pcmk_sched_promotable.c chosen = child->fns->location(child, NULL, FALSE); chosen 391 lib/pacemaker/pcmk_sched_promotable.c } else if (chosen == NULL || child->sort_index < 0) { chosen 395 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_master_location(child_rsc, child_rsc->rsc_location, chosen); chosen 738 lib/pacemaker/pcmk_sched_promotable.c apply_master_location(child_rsc, rsc->rsc_location, chosen); chosen 767 lib/pacemaker/pcmk_sched_promotable.c chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 772 lib/pacemaker/pcmk_sched_promotable.c (chosen? chosen->details->uname : "none"), score); chosen 777 lib/pacemaker/pcmk_sched_promotable.c (chosen? chosen->details->uname : "none"), score); chosen 780 lib/pacemaker/pcmk_sched_promotable.c chosen = NULL; /* nuke 'chosen' so that we don't promote more than the chosen 789 lib/pacemaker/pcmk_sched_promotable.c chosen = can_be_master(child_rsc); chosen 794 lib/pacemaker/pcmk_sched_promotable.c if (chosen == NULL) { chosen 807 lib/pacemaker/pcmk_sched_promotable.c chosen->count++; chosen 809 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->role_rh) { 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(rsc_lh->allowed_nodes, chosen, chosen 1008 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, GListPtr nodes, pe_node_t * chosen, gboolean force) chosen 275 lib/pacemaker/pcmk_sched_utils.c if (force == FALSE && chosen != NULL) { chosen 278 lib/pacemaker/pcmk_sched_utils.c if(chosen->weight < 0) { chosen 282 lib/pacemaker/pcmk_sched_utils.c } else if (!can_run_resources(chosen) && !pe__is_guest_node(chosen)) { chosen 289 lib/pacemaker/pcmk_sched_utils.c rsc->id, chosen->details->uname, can_run_resources(chosen), chosen->weight); chosen 291 lib/pacemaker/pcmk_sched_utils.c chosen = NULL; chosen 302 lib/pacemaker/pcmk_sched_utils.c if (chosen == NULL) { chosen 339 lib/pacemaker/pcmk_sched_utils.c crm_debug("Assigning %s to %s", chosen->details->uname, rsc->id); chosen 340 lib/pacemaker/pcmk_sched_utils.c rsc->allocated_to = pe__copy_node(chosen); chosen 342 lib/pacemaker/pcmk_sched_utils.c chosen->details->allocated_rsc = g_list_prepend(chosen->details->allocated_rsc, rsc); chosen 343 lib/pacemaker/pcmk_sched_utils.c chosen->details->num_resources++; chosen 344 lib/pacemaker/pcmk_sched_utils.c chosen->count++; chosen 345 lib/pacemaker/pcmk_sched_utils.c calculate_utilization(chosen->details->utilization, rsc->utilization, FALSE); chosen 347 lib/pacemaker/pcmk_sched_utils.c __func__, rsc, chosen);