next_role 295 include/crm/pengine/status.h enum rsc_role_e next_role; next_role 565 lib/pengine/complex.c (*rsc)->next_role = RSC_ROLE_UNKNOWN; next_role 821 lib/pengine/complex.c get_target_role(*rsc, &((*rsc)->next_role)); next_role 823 lib/pengine/complex.c (*rsc)->next_role != RSC_ROLE_UNKNOWN ? role2text((*rsc)->next_role) : "default"); next_role 753 lib/pengine/native.c enum rsc_role_e role = rsc->next_role; next_role 1036 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_STOPPED; next_role 1448 lib/pengine/unpack.c if (rsc->role == RSC_ROLE_STARTED && rsc->next_role == RSC_ROLE_STOPPED) { next_role 1978 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_STOPPED; next_role 2024 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_STOPPED; next_role 2261 lib/pengine/unpack.c if (rsc->next_role == RSC_ROLE_UNKNOWN || req_role < rsc->next_role) { next_role 2264 lib/pengine/unpack.c rsc->id, role2text(rsc->next_role), role2text(req_role)); next_role 2265 lib/pengine/unpack.c rsc->next_role = req_role; next_role 2267 lib/pengine/unpack.c } else if (req_role > rsc->next_role) { next_role 2270 lib/pengine/unpack.c rsc->id, role2text(rsc->next_role), role2text(req_role)); next_role 2672 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_STOPPED; next_role 2680 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_STOPPED; next_role 2703 lib/pengine/unpack.c if (action->fail_role != RSC_ROLE_STARTED && rsc->next_role < action->fail_role) { next_role 2704 lib/pengine/unpack.c rsc->next_role = action->fail_role; next_role 2785 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_UNKNOWN; next_role 3073 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_UNKNOWN; next_role 3082 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_UNKNOWN; next_role 3305 lib/pengine/unpack.c pe_rsc_trace(rsc, "Resource %s after %s: role=%s, next=%s", rsc->id, task, role2text(rsc->role), role2text(rsc->next_role)); next_role 595 lib/pengine/utils.c pe_rsc_trace(rsc, "Check resource is already active: %s %s %s %s", rsc->id, action->uuid, role2text(rsc->next_role), role2text(rsc->role)); next_role 596 lib/pengine/utils.c if (rsc->fns->active(rsc, TRUE) == FALSE || rsc->next_role > rsc->role) { next_role 1933 pengine/allocate.c if(remote_rsc->next_role == RSC_ROLE_STOPPED || remote_rsc->allocated_to == NULL) { next_role 1950 pengine/allocate.c if ((remote_rsc->next_role == RSC_ROLE_STOPPED) next_role 956 pengine/clone.c enum rsc_role_e next_role = child_rsc->fns->state(child_rsc, current); next_role 963 pengine/clone.c if (filter != RSC_ROLE_UNKNOWN && next_role != filter) { next_role 79 pengine/group.c rsc->next_role = group_data->first_child->next_role; next_role 378 pengine/master.c if (is_not_set(child->flags, pe_rsc_managed) && child->next_role == RSC_ROLE_MASTER) { next_role 619 pengine/master.c rsc->next_role = RSC_ROLE_SLAVE; next_role 622 pengine/master.c rsc->next_role = RSC_ROLE_STOPPED; next_role 639 pengine/master.c if (rsc->next_role == RSC_ROLE_UNKNOWN) { next_role 640 pengine/master.c rsc->next_role = RSC_ROLE_MASTER; next_role 660 pengine/master.c enum rsc_role_e next_role = RSC_ROLE_UNKNOWN; next_role 697 pengine/master.c role2text(child_rsc->next_role)); next_role 713 pengine/master.c next_role = child_rsc->fns->state(child_rsc, FALSE); next_role 714 pengine/master.c switch (next_role) { next_role 738 pengine/master.c crm_err("Unknown resource role: %d for %s", next_role, child_rsc->id)); next_role 753 pengine/master.c if (next_role == RSC_ROLE_MASTER) { next_role 801 pengine/master.c child_rsc->id, role2text(child_rsc->role), role2text(child_rsc->next_role)); next_role 1023 pengine/master.c enum rsc_role_e next_role = child_rsc->fns->state(child_rsc, FALSE); next_role 1026 pengine/master.c if (chosen != NULL && next_role == constraint->role_rh) { next_role 1028 pengine/master.c role2text(next_role), chosen->details->uname, constraint->score); next_role 497 pengine/native.c if (rsc->next_role == RSC_ROLE_STOPPED) { next_role 502 pengine/native.c } else if(rsc->next_role > rsc->role next_role 506 pengine/native.c rsc->id, role2text(rsc->role), role2text(rsc->next_role)); next_role 507 pengine/native.c rsc->next_role = rsc->role; next_role 521 pengine/native.c rsc->next_role = rsc->role; next_role 566 pengine/native.c if (rsc->allocated_to && rsc->next_role != RSC_ROLE_STOPPED) { next_role 578 pengine/native.c remote_node->details->id, role2text(rsc->next_role), next_role 651 pengine/native.c ID(operation), rsc->id, role2text(rsc->next_role), next_role 716 pengine/native.c if ((rsc->next_role == RSC_ROLE_MASTER && value == NULL) next_role 717 pengine/native.c || (value != NULL && text2role(value) != rsc->next_role)) { next_role 742 pengine/native.c if (rsc->next_role == RSC_ROLE_MASTER) { next_role 745 pengine/native.c } else if (rsc->next_role == RSC_ROLE_STOPPED) { next_role 767 pengine/native.c role2text(rsc->next_role)); next_role 794 pengine/native.c if (rsc->next_role == RSC_ROLE_MASTER) { next_role 810 pengine/native.c if (rsc->next_role == RSC_ROLE_MASTER) { next_role 866 pengine/native.c ID(operation), rsc->id, role2text(rsc->next_role)); next_role 920 pengine/native.c if (rsc->next_role == RSC_ROLE_STARTED || rsc->next_role == RSC_ROLE_SLAVE) { next_role 928 pengine/native.c key, role, role2text(rsc->next_role), crm_str(node_uname)); next_role 1153 pengine/native.c enum rsc_role_e next_role = RSC_ROLE_UNKNOWN; next_role 1157 pengine/native.c if (chosen != NULL && rsc->next_role == RSC_ROLE_UNKNOWN) { next_role 1158 pengine/native.c rsc->next_role = RSC_ROLE_STARTED; next_role 1159 pengine/native.c pe_rsc_trace(rsc, "Fixed next_role: unknown -> %s", role2text(rsc->next_role)); next_role 1161 pengine/native.c } else if (rsc->next_role == RSC_ROLE_UNKNOWN) { next_role 1162 pengine/native.c rsc->next_role = RSC_ROLE_STOPPED; next_role 1163 pengine/native.c pe_rsc_trace(rsc, "Fixed next_role: unknown -> %s", role2text(rsc->next_role)); next_role 1167 pengine/native.c role2text(rsc->role), role2text(rsc->next_role)); next_role 1266 pengine/native.c role2text(rsc->role), role2text(rsc->next_role)); next_role 1273 pengine/native.c next_role = rsc_state_matrix[role][RSC_ROLE_STOPPED]; next_role 1274 pengine/native.c pe_rsc_trace(rsc, "Down: Executing: %s->%s (%s)%s", role2text(role), role2text(next_role), next_role 1276 pengine/native.c if (rsc_action_matrix[role][next_role] (rsc, current, !need_stop, data_set) == FALSE) { next_role 1279 pengine/native.c role = next_role; next_role 1283 pengine/native.c while (rsc->role <= rsc->next_role && role != rsc->role && is_not_set(rsc->flags, pe_rsc_block)) { next_role 1284 pengine/native.c next_role = rsc_state_matrix[role][rsc->role]; next_role 1285 pengine/native.c pe_rsc_trace(rsc, "Up: Executing: %s->%s (%s)%s", role2text(role), role2text(next_role), next_role 1287 pengine/native.c if (rsc_action_matrix[role][next_role] (rsc, chosen, !need_stop, data_set) == FALSE) { next_role 1290 pengine/native.c role = next_role; next_role 1295 pengine/native.c while (role != rsc->next_role) { next_role 1296 pengine/native.c next_role = rsc_state_matrix[role][rsc->next_role]; next_role 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"); next_role 1298 pengine/native.c if (rsc_action_matrix[role][next_role] (rsc, chosen, FALSE, data_set) == FALSE) { next_role 1301 pengine/native.c role = next_role; next_role 1307 pengine/native.c } else if (rsc->next_role != RSC_ROLE_STOPPED || is_set(rsc->flags, pe_rsc_managed) == FALSE) { next_role 1329 pengine/native.c rsc->next_role < RSC_ROLE_STARTED) { next_role 1613 pengine/native.c && constraint->role_lh != RSC_ROLE_UNKNOWN && constraint->role_lh != rsc_lh->next_role) { next_role 1615 pengine/native.c role2text(constraint->role_lh), role2text(rsc_lh->next_role)); next_role 1620 pengine/native.c && constraint->role_rh != RSC_ROLE_UNKNOWN && constraint->role_rh != rsc_rh->next_role) { next_role 1626 pengine/native.c && constraint->role_lh != RSC_ROLE_UNKNOWN && constraint->role_lh == rsc_lh->next_role) { next_role 1633 pengine/native.c && constraint->role_rh != RSC_ROLE_UNKNOWN && constraint->role_rh == rsc_rh->next_role) { next_role 1668 pengine/native.c if (constraint->role_rh && (constraint->role_rh != rsc_rh->next_role)) { next_role 2088 pengine/native.c if (constraint->role_filter > RSC_ROLE_UNKNOWN && constraint->role_filter != rsc->next_role) { next_role 2090 pengine/native.c constraint->id, role2text(constraint->role_filter), role2text(rsc->next_role)); next_role 2207 pengine/native.c if(rsc->role > RSC_ROLE_STARTED || rsc->next_role > RSC_ROLE_SLAVE) { next_role 2215 pengine/native.c if(rsc->role == rsc->next_role) { next_role 2221 pengine/native.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role2text(rsc->next_role), destination->details->uname); next_role 2249 pengine/native.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role2text(rsc->next_role), origin->details->uname); next_role 2253 pengine/native.c details = crm_strdup_printf("%s %s -> %s %s", role2text(rsc->role), origin->details->uname, role2text(rsc->next_role), destination->details->uname); next_role 2386 pengine/native.c if (rsc->role == rsc->next_role) { next_role 2432 pengine/native.c && (rsc->next_role == RSC_ROLE_STOPPED next_role 2478 pengine/native.c } else if(rsc->next_role == RSC_ROLE_MASTER) { next_role 2482 pengine/native.c } else if (rsc->role == RSC_ROLE_STOPPED && rsc->next_role > RSC_ROLE_STOPPED) { next_role 2956 pengine/native.c || remote->next_role == RSC_ROLE_STOPPED next_role 680 pengine/notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); next_role 712 pengine/notif.c if (rsc->next_role != RSC_ROLE_STOPPED) { next_role 714 pengine/notif.c pe_proc_err("Next role '%s' but %s is not allocated", role2text(rsc->next_role), next_role 266 pengine/utils.c rsc->next_role = RSC_ROLE_STOPPED; next_role 283 pengine/utils.c rsc->next_role = RSC_ROLE_STOPPED;