next_role 358 include/crm/pengine/pe_types.h enum rsc_role_e next_role; next_role 2043 lib/pacemaker/pcmk_sched_allocate.c if(remote_rsc->next_role == RSC_ROLE_STOPPED || remote_rsc->allocated_to == NULL) { next_role 2060 lib/pacemaker/pcmk_sched_allocate.c if ((remote_rsc->next_role == RSC_ROLE_STOPPED) next_role 2162 lib/pacemaker/pcmk_sched_allocate.c } else if(remote_rsc->next_role == RSC_ROLE_STOPPED) { next_role 537 lib/pacemaker/pcmk_sched_bundle.c && (replica->child->next_role < RSC_ROLE_MASTER)) { next_role 996 lib/pacemaker/pcmk_sched_clone.c enum rsc_role_e next_role = child_rsc->fns->state(child_rsc, current); next_role 1004 lib/pacemaker/pcmk_sched_clone.c if (filter != RSC_ROLE_UNKNOWN && next_role != filter) { next_role 69 lib/pacemaker/pcmk_sched_group.c rsc->next_role = group_data->first_child->next_role; next_role 578 lib/pacemaker/pcmk_sched_native.c if (rsc->next_role == RSC_ROLE_STOPPED) { next_role 583 lib/pacemaker/pcmk_sched_native.c } else if(rsc->next_role > rsc->role next_role 587 lib/pacemaker/pcmk_sched_native.c rsc->id, role2text(rsc->role), role2text(rsc->next_role)); next_role 588 lib/pacemaker/pcmk_sched_native.c rsc->next_role = rsc->role; next_role 601 lib/pacemaker/pcmk_sched_native.c rsc->next_role = rsc->role; next_role 643 lib/pacemaker/pcmk_sched_native.c if (rsc->allocated_to && rsc->next_role != RSC_ROLE_STOPPED) { next_role 655 lib/pacemaker/pcmk_sched_native.c remote_node->details->id, role2text(rsc->next_role), next_role 761 lib/pacemaker/pcmk_sched_native.c ID(operation), rsc->id, role2text(rsc->next_role), node_uname); next_role 793 lib/pacemaker/pcmk_sched_native.c if ((rsc->next_role == RSC_ROLE_MASTER && role == NULL) next_role 794 lib/pacemaker/pcmk_sched_native.c || (role != NULL && text2role(role) != rsc->next_role)) { next_role 810 lib/pacemaker/pcmk_sched_native.c if (rsc->next_role == RSC_ROLE_MASTER) { next_role 813 lib/pacemaker/pcmk_sched_native.c } else if (rsc->next_role == RSC_ROLE_STOPPED) { next_role 833 lib/pacemaker/pcmk_sched_native.c role2text(rsc->next_role)); next_role 862 lib/pacemaker/pcmk_sched_native.c if (rsc->next_role == RSC_ROLE_MASTER) { next_role 878 lib/pacemaker/pcmk_sched_native.c if (rsc->next_role == RSC_ROLE_MASTER) { next_role 966 lib/pacemaker/pcmk_sched_native.c ID(operation), rsc->id, role2text(rsc->next_role)); next_role 978 lib/pacemaker/pcmk_sched_native.c if (rsc->next_role == RSC_ROLE_STARTED || rsc->next_role == RSC_ROLE_SLAVE) { next_role 986 lib/pacemaker/pcmk_sched_native.c key, role, role2text(rsc->next_role), node_uname); next_role 1227 lib/pacemaker/pcmk_sched_native.c enum rsc_role_e next_role = RSC_ROLE_UNKNOWN; next_role 1231 lib/pacemaker/pcmk_sched_native.c next_role = rsc->next_role; next_role 1232 lib/pacemaker/pcmk_sched_native.c if (next_role == RSC_ROLE_UNKNOWN) { next_role 1233 lib/pacemaker/pcmk_sched_native.c rsc->next_role = (chosen == NULL)? RSC_ROLE_STOPPED : RSC_ROLE_STARTED; next_role 1236 lib/pacemaker/pcmk_sched_native.c rsc->id, role2text(rsc->role), role2text(rsc->next_role), next_role 1237 lib/pacemaker/pcmk_sched_native.c ((next_role == RSC_ROLE_UNKNOWN)? "implicit" : "explicit"), next_role 1331 lib/pacemaker/pcmk_sched_native.c if (rsc->next_role == RSC_ROLE_MASTER) { next_role 1356 lib/pacemaker/pcmk_sched_native.c next_role = rsc_state_matrix[role][RSC_ROLE_STOPPED]; next_role 1359 lib/pacemaker/pcmk_sched_native.c role2text(role), role2text(next_role)); next_role 1360 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role] (rsc, current, !need_stop, data_set) == FALSE) { next_role 1363 lib/pacemaker/pcmk_sched_native.c role = next_role; next_role 1367 lib/pacemaker/pcmk_sched_native.c while ((rsc->role <= rsc->next_role) && (role != rsc->role) next_role 1371 lib/pacemaker/pcmk_sched_native.c next_role = rsc_state_matrix[role][rsc->role]; next_role 1372 lib/pacemaker/pcmk_sched_native.c if ((next_role == RSC_ROLE_MASTER) && need_promote) { next_role 1377 lib/pacemaker/pcmk_sched_native.c role2text(role), role2text(next_role)); next_role 1378 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role](rsc, chosen, !required, next_role 1382 lib/pacemaker/pcmk_sched_native.c role = next_role; next_role 1387 lib/pacemaker/pcmk_sched_native.c while (role != rsc->next_role) { next_role 1388 lib/pacemaker/pcmk_sched_native.c next_role = rsc_state_matrix[role][rsc->next_role]; next_role 1390 lib/pacemaker/pcmk_sched_native.c rsc->id, role2text(role), role2text(next_role), next_role 1391 lib/pacemaker/pcmk_sched_native.c role2text(rsc->next_role)); next_role 1392 lib/pacemaker/pcmk_sched_native.c if (rsc_action_matrix[role][next_role] (rsc, chosen, FALSE, data_set) == FALSE) { next_role 1395 lib/pacemaker/pcmk_sched_native.c role = next_role; next_role 1402 lib/pacemaker/pcmk_sched_native.c } else if ((rsc->next_role != RSC_ROLE_STOPPED) next_role 1405 lib/pacemaker/pcmk_sched_native.c ((rsc->next_role == RSC_ROLE_STOPPED)? "unmanaged" : "active"), next_role 1429 lib/pacemaker/pcmk_sched_native.c || rsc->next_role < RSC_ROLE_STARTED) { next_role 1790 lib/pacemaker/pcmk_sched_native.c && constraint->role_lh != RSC_ROLE_UNKNOWN && constraint->role_lh != rsc_lh->next_role) { next_role 1792 lib/pacemaker/pcmk_sched_native.c role2text(constraint->role_lh), role2text(rsc_lh->next_role)); next_role 1797 lib/pacemaker/pcmk_sched_native.c && constraint->role_rh != RSC_ROLE_UNKNOWN && constraint->role_rh != rsc_rh->next_role) { next_role 1803 lib/pacemaker/pcmk_sched_native.c && constraint->role_lh != RSC_ROLE_UNKNOWN && constraint->role_lh == rsc_lh->next_role) { next_role 1810 lib/pacemaker/pcmk_sched_native.c && constraint->role_rh != RSC_ROLE_UNKNOWN && constraint->role_rh == rsc_rh->next_role) { next_role 1848 lib/pacemaker/pcmk_sched_native.c if (constraint->role_rh && (constraint->role_rh != rsc_rh->next_role)) { next_role 2301 lib/pacemaker/pcmk_sched_native.c if (need_role && (constraint->role_filter != rsc->next_role)) { next_role 2304 lib/pacemaker/pcmk_sched_native.c constraint->id, rsc->id, role2text(rsc->next_role), next_role 2421 lib/pacemaker/pcmk_sched_native.c if(rsc->role > RSC_ROLE_STARTED || rsc->next_role > RSC_ROLE_SLAVE) { next_role 2429 lib/pacemaker/pcmk_sched_native.c if(rsc->role == rsc->next_role) { next_role 2435 lib/pacemaker/pcmk_sched_native.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role2text(rsc->next_role), destination->details->uname); next_role 2467 lib/pacemaker/pcmk_sched_native.c details = crm_strdup_printf("%s -> %s %s", role2text(rsc->role), role2text(rsc->next_role), origin->details->uname); next_role 2471 lib/pacemaker/pcmk_sched_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 2593 lib/pacemaker/pcmk_sched_native.c if (rsc->role == rsc->next_role) { next_role 2645 lib/pacemaker/pcmk_sched_native.c && (rsc->next_role == RSC_ROLE_STOPPED next_role 2692 lib/pacemaker/pcmk_sched_native.c } else if(rsc->next_role == RSC_ROLE_MASTER) { next_role 2696 lib/pacemaker/pcmk_sched_native.c } else if (rsc->role == RSC_ROLE_STOPPED && rsc->next_role > RSC_ROLE_STOPPED) { next_role 3063 lib/pacemaker/pcmk_sched_native.c || remote->next_role == RSC_ROLE_STOPPED next_role 687 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); next_role 694 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); next_role 701 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); next_role 713 lib/pacemaker/pcmk_sched_notif.c n_data->action, rsc->id, role2text(rsc->role), role2text(rsc->next_role)); next_role 744 lib/pacemaker/pcmk_sched_notif.c if (rsc->next_role != RSC_ROLE_STOPPED) { next_role 746 lib/pacemaker/pcmk_sched_notif.c pe_proc_err("Next role '%s' but %s is not allocated", role2text(rsc->next_role), next_role 388 lib/pacemaker/pcmk_sched_promotable.c && (child->next_role == RSC_ROLE_MASTER)) { next_role 631 lib/pacemaker/pcmk_sched_promotable.c rsc->next_role = RSC_ROLE_SLAVE; next_role 634 lib/pacemaker/pcmk_sched_promotable.c rsc->next_role = RSC_ROLE_STOPPED; next_role 651 lib/pacemaker/pcmk_sched_promotable.c if (rsc->next_role == RSC_ROLE_UNKNOWN) { next_role 652 lib/pacemaker/pcmk_sched_promotable.c rsc->next_role = RSC_ROLE_MASTER; next_role 671 lib/pacemaker/pcmk_sched_promotable.c enum rsc_role_e next_role = RSC_ROLE_UNKNOWN; next_role 692 lib/pacemaker/pcmk_sched_promotable.c role2text(child_rsc->next_role)); next_role 709 lib/pacemaker/pcmk_sched_promotable.c next_role = child_rsc->fns->state(child_rsc, FALSE); next_role 710 lib/pacemaker/pcmk_sched_promotable.c switch (next_role) { next_role 734 lib/pacemaker/pcmk_sched_promotable.c crm_err("Unknown resource role: %d for %s", next_role, child_rsc->id)); next_role 753 lib/pacemaker/pcmk_sched_promotable.c if (next_role == RSC_ROLE_MASTER) { next_role 802 lib/pacemaker/pcmk_sched_promotable.c child_rsc->id, role2text(child_rsc->role), role2text(child_rsc->next_role)); next_role 998 lib/pacemaker/pcmk_sched_promotable.c enum rsc_role_e next_role = child_rsc->fns->state(child_rsc, FALSE); next_role 1001 lib/pacemaker/pcmk_sched_promotable.c if (chosen != NULL && next_role == constraint->role_rh) { next_role 1003 lib/pacemaker/pcmk_sched_promotable.c role2text(next_role), chosen->details->uname, constraint->score); next_role 290 lib/pacemaker/pcmk_sched_utils.c rsc->next_role = RSC_ROLE_STOPPED; next_role 307 lib/pacemaker/pcmk_sched_utils.c rsc->next_role = RSC_ROLE_STOPPED; next_role 504 lib/pengine/complex.c (*rsc)->next_role = RSC_ROLE_UNKNOWN; next_role 723 lib/pengine/complex.c get_target_role(*rsc, &((*rsc)->next_role)); next_role 725 lib/pengine/complex.c (*rsc)->next_role != RSC_ROLE_UNKNOWN ? role2text((*rsc)->next_role) : "default"); next_role 1187 lib/pengine/native.c enum rsc_role_e role = rsc->next_role; next_role 999 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_STOPPED; next_role 1423 lib/pengine/unpack.c if (rsc->role == RSC_ROLE_STARTED && rsc->next_role == RSC_ROLE_STOPPED) { next_role 2015 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_STOPPED; next_role 2069 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_STOPPED; next_role 2349 lib/pengine/unpack.c if (rsc->next_role == RSC_ROLE_UNKNOWN || req_role < rsc->next_role) { next_role 2352 lib/pengine/unpack.c rsc->id, role2text(rsc->next_role), role2text(req_role)); next_role 2353 lib/pengine/unpack.c rsc->next_role = req_role; next_role 2355 lib/pengine/unpack.c } else if (req_role > rsc->next_role) { next_role 2358 lib/pengine/unpack.c rsc->id, role2text(rsc->next_role), role2text(req_role)); next_role 2983 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_STOPPED; next_role 3013 lib/pengine/unpack.c if (action->fail_role != RSC_ROLE_STARTED && rsc->next_role < action->fail_role) { next_role 3014 lib/pengine/unpack.c rsc->next_role = action->fail_role; next_role 3131 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_UNKNOWN; next_role 3526 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_UNKNOWN; next_role 3537 lib/pengine/unpack.c rsc->next_role = RSC_ROLE_UNKNOWN; next_role 3833 lib/pengine/unpack.c role2text(rsc->next_role)); next_role 451 lib/pengine/utils.c if (rsc->next_role > RSC_ROLE_SLAVE) { next_role 452 lib/pengine/utils.c rsc->next_role = RSC_ROLE_SLAVE; next_role 665 lib/pengine/utils.c if (rsc->fns->active(rsc, TRUE) == FALSE || rsc->next_role > rsc->role) {