ticket 36 include/pcmki/pcmki_sched_utils.h extern gboolean rsc_ticket_new(const char *id, pe_resource_t * rsc_lh, pe_ticket_t * ticket, ticket 62 include/pcmki/pcmki_scheduler.h pe_ticket_t *ticket; ticket 2718 lib/pacemaker/pcmk_sched_constraints.c rsc_ticket_new(const char *id, pe_resource_t * rsc_lh, pe_ticket_t * ticket, ticket 2739 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket = ticket; ticket 2749 lib/pacemaker/pcmk_sched_constraints.c "because fencing is not configured", ticket->id); ticket 2756 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 2761 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 2767 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 2773 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 2780 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 2786 lib/pacemaker/pcmk_sched_constraints.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 2793 lib/pacemaker/pcmk_sched_constraints.c ticket->id); ticket 2799 lib/pacemaker/pcmk_sched_constraints.c if (new_rsc_ticket->ticket->granted == FALSE || new_rsc_ticket->ticket->standby) { ticket 2807 lib/pacemaker/pcmk_sched_constraints.c unpack_rsc_ticket_set(xmlNode * set, pe_ticket_t * ticket, const char *loss_policy, ticket 2816 lib/pacemaker/pcmk_sched_constraints.c CRM_CHECK(ticket != NULL, return FALSE); ticket 2832 lib/pacemaker/pcmk_sched_constraints.c resource->id, ticket->id); ticket 2833 lib/pacemaker/pcmk_sched_constraints.c rsc_ticket_new(set_id, resource, ticket, role, loss_policy, data_set); ticket 2846 lib/pacemaker/pcmk_sched_constraints.c pe_ticket_t *ticket = NULL; ticket 2870 lib/pacemaker/pcmk_sched_constraints.c ticket = g_hash_table_lookup(data_set->tickets, ticket_str); ticket 2873 lib/pacemaker/pcmk_sched_constraints.c if (ticket == NULL) { ticket 2908 lib/pacemaker/pcmk_sched_constraints.c rsc_ticket_new(id, rsc_lh, ticket, state_lh, loss_policy, data_set); ticket 3001 lib/pacemaker/pcmk_sched_constraints.c pe_ticket_t *ticket = NULL; ticket 3026 lib/pacemaker/pcmk_sched_constraints.c ticket = g_hash_table_lookup(data_set->tickets, ticket_str); ticket 3029 lib/pacemaker/pcmk_sched_constraints.c if (ticket == NULL) { ticket 3030 lib/pacemaker/pcmk_sched_constraints.c ticket = ticket_new(ticket_str, data_set); ticket 3031 lib/pacemaker/pcmk_sched_constraints.c if (ticket == NULL) { ticket 3051 lib/pacemaker/pcmk_sched_constraints.c if (unpack_rsc_ticket_set(set, ticket, loss_policy, data_set) == FALSE) { ticket 1979 lib/pacemaker/pcmk_sched_native.c if (rsc_ticket->ticket->granted && rsc_ticket->ticket->standby == FALSE) { ticket 1997 lib/pacemaker/pcmk_sched_native.c rsc_lh->id, rsc_ticket->ticket->id, rsc_ticket->id, ticket 2000 lib/pacemaker/pcmk_sched_native.c if ((rsc_ticket->ticket->granted == FALSE) ticket 2042 lib/pacemaker/pcmk_sched_native.c } else if (rsc_ticket->ticket->granted == FALSE) { ticket 2048 lib/pacemaker/pcmk_sched_native.c } else if (rsc_ticket->ticket->standby) { ticket 373 lib/pacemaker/pcmk_sched_promotable.c && (rsc_ticket->ticket->granted == FALSE || rsc_ticket->ticket->standby)) { ticket 1755 lib/pengine/pe_output.c pe_ticket_t *ticket = va_arg(args, pe_ticket_t *); ticket 1757 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 1758 lib/pengine/pe_output.c char *time = pcmk_format_named_time("last-granted", ticket->last_granted); ticket 1759 lib/pengine/pe_output.c out->list_item(out, NULL, "%s:\t%s%s %s", ticket->id, ticket 1760 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 1761 lib/pengine/pe_output.c ticket->standby ? " [standby]" : "", ticket 1765 lib/pengine/pe_output.c out->list_item(out, NULL, "%s:\t%s%s", ticket->id, ticket 1766 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 1767 lib/pengine/pe_output.c ticket->standby ? " [standby]" : ""); ticket 1776 lib/pengine/pe_output.c pe_ticket_t *ticket = va_arg(args, pe_ticket_t *); ticket 1778 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 1779 lib/pengine/pe_output.c char *time = pcmk_format_named_time("last-granted", ticket->last_granted); ticket 1780 lib/pengine/pe_output.c out->list_item(out, ticket->id, "\t%s%s %s", ticket 1781 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 1782 lib/pengine/pe_output.c ticket->standby ? " [standby]" : "", ticket 1786 lib/pengine/pe_output.c out->list_item(out, ticket->id, "\t%s%s", ticket 1787 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 1788 lib/pengine/pe_output.c ticket->standby ? " [standby]" : ""); ticket 1799 lib/pengine/pe_output.c pe_ticket_t *ticket = va_arg(args, pe_ticket_t *); ticket 1802 lib/pengine/pe_output.c xmlSetProp(node, (pcmkXmlStr) "id", (pcmkXmlStr) ticket->id); ticket 1803 lib/pengine/pe_output.c xmlSetProp(node, (pcmkXmlStr) "status", (pcmkXmlStr) (ticket->granted ? "granted" : "revoked")); ticket 1805 lib/pengine/pe_output.c (pcmkXmlStr) pcmk__btoa(ticket->standby)); ticket 1807 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 1809 lib/pengine/pe_output.c (pcmkXmlStr) pcmk__epoch2str(&ticket->last_granted)); ticket 895 lib/pengine/unpack.c pe_ticket_t *ticket = NULL; ticket 904 lib/pengine/unpack.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 905 lib/pengine/unpack.c if (ticket == NULL) { ticket 906 lib/pengine/unpack.c ticket = ticket_new(ticket_id, data_set); ticket 907 lib/pengine/unpack.c if (ticket == NULL) { ticket 919 lib/pengine/unpack.c g_hash_table_replace(ticket->state, strdup(prop_name), strdup(prop_value)); ticket 922 lib/pengine/unpack.c granted = g_hash_table_lookup(ticket->state, "granted"); ticket 924 lib/pengine/unpack.c ticket->granted = TRUE; ticket 925 lib/pengine/unpack.c crm_info("We have ticket '%s'", ticket->id); ticket 927 lib/pengine/unpack.c ticket->granted = FALSE; ticket 928 lib/pengine/unpack.c crm_info("We do not have ticket '%s'", ticket->id); ticket 931 lib/pengine/unpack.c last_granted = g_hash_table_lookup(ticket->state, "last-granted"); ticket 933 lib/pengine/unpack.c ticket->last_granted = crm_parse_int(last_granted, 0); ticket 936 lib/pengine/unpack.c standby = g_hash_table_lookup(ticket->state, "standby"); ticket 938 lib/pengine/unpack.c ticket->standby = TRUE; ticket 939 lib/pengine/unpack.c if (ticket->granted) { ticket 940 lib/pengine/unpack.c crm_info("Granted ticket '%s' is in standby-mode", ticket->id); ticket 943 lib/pengine/unpack.c ticket->standby = FALSE; ticket 1947 lib/pengine/utils.c pe_ticket_t *ticket = data; ticket 1949 lib/pengine/utils.c if (ticket->state) { ticket 1950 lib/pengine/utils.c g_hash_table_destroy(ticket->state); ticket 1952 lib/pengine/utils.c free(ticket->id); ticket 1953 lib/pengine/utils.c free(ticket); ticket 1959 lib/pengine/utils.c pe_ticket_t *ticket = NULL; ticket 1971 lib/pengine/utils.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 1972 lib/pengine/utils.c if (ticket == NULL) { ticket 1974 lib/pengine/utils.c ticket = calloc(1, sizeof(pe_ticket_t)); ticket 1975 lib/pengine/utils.c if (ticket == NULL) { ticket 1982 lib/pengine/utils.c ticket->id = strdup(ticket_id); ticket 1983 lib/pengine/utils.c ticket->granted = FALSE; ticket 1984 lib/pengine/utils.c ticket->last_granted = -1; ticket 1985 lib/pengine/utils.c ticket->standby = FALSE; ticket 1986 lib/pengine/utils.c ticket->state = crm_str_table_new(); ticket 1988 lib/pengine/utils.c g_hash_table_insert(data_set->tickets, strdup(ticket->id), ticket); ticket 1991 lib/pengine/utils.c return ticket; ticket 481 tools/crm_mon_print.c pe_ticket_t *ticket = (pe_ticket_t *) value; ticket 482 tools/crm_mon_print.c out->message(out, "ticket", ticket); ticket 51 tools/crm_ticket.c pe_ticket_t *ticket = NULL; ticket 53 tools/crm_ticket.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 55 tools/crm_ticket.c return ticket; ticket 74 tools/crm_ticket.c print_ticket(pe_ticket_t * ticket, gboolean raw, gboolean details) ticket 77 tools/crm_ticket.c fprintf(stdout, "%s\n", ticket->id); ticket 82 tools/crm_ticket.c ticket->id, ticket->granted ? "granted" : "revoked", ticket 83 tools/crm_ticket.c ticket->standby ? "[standby]" : " "); ticket 85 tools/crm_ticket.c if (details && g_hash_table_size(ticket->state) > 0) { ticket 93 tools/crm_ticket.c g_hash_table_iter_init(&iter, ticket->state); ticket 110 tools/crm_ticket.c if (ticket->last_granted > -1) { ticket 112 tools/crm_ticket.c print_date(ticket->last_granted); ticket 124 tools/crm_ticket.c pe_ticket_t *ticket = NULL; ticket 128 tools/crm_ticket.c while (g_hash_table_iter_next(&iter, NULL, (void **)&ticket)) { ticket 129 tools/crm_ticket.c print_ticket(ticket, raw, details); ticket 268 tools/crm_ticket.c pe_ticket_t *ticket = NULL; ticket 273 tools/crm_ticket.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 274 tools/crm_ticket.c if (ticket == NULL) { ticket 278 tools/crm_ticket.c *attr_value = g_hash_table_lookup(ticket->state, attr_name); ticket 381 tools/crm_ticket.c pe_ticket_t *ticket = NULL; ticket 409 tools/crm_ticket.c ticket = find_ticket(ticket_id, data_set); ticket 416 tools/crm_ticket.c && (ticket == NULL || ticket->granted == FALSE) ticket 907 tools/crm_ticket.c pe_ticket_t *ticket = find_ticket(ticket_id, data_set); ticket 909 tools/crm_ticket.c if (ticket == NULL) { ticket 914 tools/crm_ticket.c rc = print_ticket(ticket, raw, details); ticket 964 tools/crm_ticket.c pe_ticket_t *ticket = NULL; ticket 966 tools/crm_ticket.c ticket = find_ticket(ticket_id, data_set); ticket 967 tools/crm_ticket.c if (ticket == NULL) { ticket 973 tools/crm_ticket.c if (ticket->granted) {