chosen 415 pengine/clone.c node_t *chosen = NULL; chosen 449 pengine/clone.c chosen = rsc->cmds->allocate(rsc, prefer, data_set); chosen 450 pengine/clone.c if (chosen) { chosen 451 pengine/clone.c node_t *local_node = parent_node_instance(rsc, chosen); chosen 452 pengine/clone.c if (prefer && chosen && chosen->details != prefer->details) { chosen 454 pengine/clone.c chosen->details->uname, prefer->details->uname); chosen 458 pengine/clone.c chosen = NULL; chosen 467 pengine/clone.c chosen->details->id, rsc->parent->id, chosen 475 pengine/clone.c return chosen; chosen 1081 pengine/clone.c node_t *chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 1083 pengine/clone.c if (chosen != NULL && is_set_recursive(child_rsc, pe_rsc_block, TRUE) == FALSE) { chosen 1084 pengine/clone.c pe_rsc_trace(rsc_rh, "Allowing %s: %s %d", constraint->id, chosen->details->uname, chosen->weight); chosen 1085 pengine/clone.c rhs = g_list_prepend(rhs, chosen); chosen 487 pengine/container.c node_t *chosen = tuple->docker->fns->location(tuple->docker, NULL, FALSE); chosen 489 pengine/container.c if (chosen != NULL && is_set_recursive(tuple->docker, pe_rsc_block, TRUE) == FALSE) { chosen 490 pengine/container.c pe_rsc_trace(rsc, "Allowing %s: %s %d", constraint->id, chosen->details->uname, chosen->weight); chosen 491 pengine/container.c allocated_rhs = g_list_prepend(allocated_rhs, chosen); chosen 140 pengine/master.c static void apply_master_location(resource_t *child, GListPtr location_constraints, pe_node_t *chosen) chosen 142 pengine/master.c CRM_CHECK(child && chosen, return); chosen 149 pengine/master.c cons_node = pe_find_node_id(cons->node_list_rh, chosen->details->id); chosen 277 pengine/master.c node_t *chosen = NULL; chosen 302 pengine/master.c chosen = child->fns->location(child, NULL, FALSE); chosen 303 pengine/master.c if (chosen == NULL || child->sort_index < 0) { chosen 308 pengine/master.c node = (node_t *) pe_hash_table_lookup(rsc->allowed_nodes, chosen->details->id); chosen 377 pengine/master.c chosen = child->fns->location(child, NULL, FALSE); chosen 381 pengine/master.c } else if (chosen == NULL || child->sort_index < 0) { chosen 385 pengine/master.c node = (node_t *) pe_hash_table_lookup(rsc->allowed_nodes, chosen->details->id); chosen 659 pengine/master.c node_t *chosen = NULL; chosen 703 pengine/master.c chosen = child_rsc->fns->location(child_rsc, &list, FALSE); chosen 709 pengine/master.c if (chosen == NULL) { chosen 725 pengine/master.c child_rsc->priority = master_score(child_rsc, chosen, -1); chosen 741 pengine/master.c apply_master_location(child_rsc, child_rsc->rsc_location, chosen); chosen 742 pengine/master.c apply_master_location(child_rsc, rsc->rsc_location, chosen); chosen 767 pengine/master.c chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 772 pengine/master.c (chosen? chosen->details->uname : "none"), score); chosen 777 pengine/master.c child_rsc->id, chosen ? chosen->details->uname : "none", score); chosen 780 pengine/master.c chosen = NULL; /* nuke 'chosen' so that we don't promote more than the chosen 788 pengine/master.c chosen = can_be_master(child_rsc); chosen 793 pengine/master.c if (chosen == NULL) { chosen 806 pengine/master.c chosen->count++; chosen 808 pengine/master.c child_rsc->id, role2text(child_rsc->role), chosen->details->uname); chosen 1022 pengine/master.c node_t *chosen = child_rsc->fns->location(child_rsc, NULL, FALSE); chosen 1026 pengine/master.c if (chosen != NULL && next_role == constraint->role_rh) { chosen 1028 pengine/master.c role2text(next_role), chosen->details->uname, constraint->score); chosen 1030 pengine/master.c node_hash_update_one(rsc_lh->allowed_nodes, chosen, chosen 1033 pengine/master.c rhs = g_list_prepend(rhs, chosen); chosen 86 pengine/native.c node_t *chosen = NULL; chosen 112 pengine/native.c chosen = g_hash_table_lookup(rsc->allowed_nodes, prefer->details->id); chosen 114 pengine/native.c if (chosen == NULL) { chosen 124 pengine/native.c } else if ((chosen->weight < 0) || (chosen->weight < best->weight)) { chosen 126 pengine/native.c chosen->details->uname, rsc->id); chosen 127 pengine/native.c chosen = NULL; chosen 129 pengine/native.c } else if (!can_run_resources(chosen)) { chosen 131 pengine/native.c chosen->details->uname, rsc->id); chosen 132 pengine/native.c chosen = NULL; chosen 137 pengine/native.c chosen->details->uname, rsc->id, length); chosen 141 pengine/native.c if ((chosen == NULL) && nodes) { chosen 146 pengine/native.c chosen = best; chosen 148 pengine/native.c chosen ? chosen->details->uname : "<none>", rsc->id, length); chosen 151 pengine/native.c && chosen && (chosen->weight > 0) && can_run_resources(chosen)) { chosen 170 pengine/native.c if (tmp->weight != chosen->weight) { chosen 176 pengine/native.c chosen = tmp; chosen 186 pengine/native.c int log_level = (chosen->weight >= INFINITY)? LOG_WARNING : LOG_INFO; chosen 188 pengine/native.c score2char_stack(chosen->weight, score, sizeof(score)); chosen 191 pengine/native.c chosen->details->uname, rsc->id, multiple, score); chosen 194 pengine/native.c result = native_assign_node(rsc, nodes, chosen, FALSE); chosen 1064 pengine/native.c handle_migration_actions(resource_t * rsc, node_t *current, node_t *chosen, pe_working_set_t * data_set) chosen 1073 pengine/native.c rsc->id, current->details->id, chosen->details->id, partial ? "TRUE" : "FALSE"); chosen 1074 pengine/native.c start = start_action(rsc, chosen, TRUE); chosen 1081 pengine/native.c migrate_from = custom_action(rsc, generate_op_key(rsc->id, RSC_MIGRATED, 0), RSC_MIGRATED, chosen, TRUE, TRUE, data_set); chosen 1118 pengine/native.c add_hash_param(migrate_to->meta, XML_LRM_ATTR_MIGRATE_TARGET, chosen->details->uname); chosen 1136 pengine/native.c add_hash_param(migrate_from->meta, XML_LRM_ATTR_MIGRATE_TARGET, chosen->details->uname); chosen 1144 pengine/native.c node_t *chosen = NULL; chosen 1156 pengine/native.c chosen = rsc->allocated_to; chosen 1157 pengine/native.c if (chosen != NULL && rsc->next_role == RSC_ROLE_UNKNOWN) { chosen 1198 pengine/native.c && chosen chosen 1202 pengine/native.c && (chosen->details == rsc->partial_migration_target->details)) { chosen 1239 pengine/native.c start = start_action(rsc, chosen, TRUE); chosen 1243 pengine/native.c if (current && chosen && current->details != chosen->details) { chosen 1256 pengine/native.c } else if (rsc->role > RSC_ROLE_STARTED && current != NULL && chosen != NULL) { chosen 1258 pengine/native.c start = start_action(rsc, chosen, TRUE); chosen 1287 pengine/native.c if (rsc_action_matrix[role][next_role] (rsc, chosen, !need_stop, data_set) == FALSE) { chosen 1297 pengine/native.c pe_rsc_trace(rsc, "Role: Executing: %s->%s = (%s on %s)", role2text(role), role2text(next_role), rsc->id, chosen?chosen->details->uname:"NA"); chosen 1298 pengine/native.c if (rsc_action_matrix[role][next_role] (rsc, chosen, FALSE, data_set) == FALSE) { chosen 1309 pengine/native.c start = start_action(rsc, chosen, TRUE); chosen 1310 pengine/native.c Recurring(rsc, start, chosen, data_set); chosen 1311 pengine/native.c Recurring_Stopped(rsc, start, chosen, data_set); chosen 1320 pengine/native.c if (rsc->partial_migration_target && (chosen == NULL || rsc->partial_migration_target->details != chosen->details)) { chosen 1335 pengine/native.c handle_migration_actions(rsc, current, chosen, data_set); chosen 247 pengine/utils.c native_assign_node(resource_t * rsc, GListPtr nodes, node_t * chosen, gboolean force) chosen 251 pengine/utils.c if (force == FALSE && chosen != NULL) { chosen 254 pengine/utils.c if(chosen->weight < 0) { chosen 258 pengine/utils.c } else if(can_run_resources(chosen) == FALSE && !is_container_remote_node(chosen)) { chosen 265 pengine/utils.c rsc->id, chosen->details->uname, can_run_resources(chosen), chosen->weight); chosen 267 pengine/utils.c chosen = NULL; chosen 278 pengine/utils.c if (chosen == NULL) { chosen 312 pengine/utils.c crm_debug("Assigning %s to %s", chosen->details->uname, rsc->id); chosen 313 pengine/utils.c rsc->allocated_to = node_copy(chosen); chosen 315 pengine/utils.c chosen->details->allocated_rsc = g_list_prepend(chosen->details->allocated_rsc, rsc); chosen 316 pengine/utils.c chosen->details->num_resources++; chosen 317 pengine/utils.c chosen->count++; chosen 318 pengine/utils.c calculate_utilization(chosen->details->utilization, rsc->utilization, FALSE); chosen 319 pengine/utils.c dump_rsc_utilization(show_utilization ? 0 : utilization_log_level, __FUNCTION__, rsc, chosen); chosen 45 pengine/utils.h extern gboolean native_assign_node(resource_t * rsc, GListPtr candidates, node_t * chosen,