ticket 1648 lib/pacemaker/pcmk_output.c const char *ticket = va_arg(args, const char *); ticket 1655 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Making ticket %s standby", ticket); ticket 1657 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s ticket %s", action, ticket); ticket 1668 lib/pacemaker/pcmk_output.c const char *ticket = va_arg(args, const char *); ticket 1676 lib/pacemaker/pcmk_output.c "ticket", ticket, ticket 32 lib/pacemaker/pcmk_sched_tickets.c pcmk_ticket_t *ticket; ticket 71 lib/pacemaker/pcmk_sched_tickets.c if (rsc_ticket->ticket->granted && !rsc_ticket->ticket->standby) { ticket 84 lib/pacemaker/pcmk_sched_tickets.c rsc->id, rsc_ticket->ticket->id, rsc_ticket->id, ticket 87 lib/pacemaker/pcmk_sched_tickets.c if (!rsc_ticket->ticket->granted && (rsc->running_on != NULL)) { ticket 128 lib/pacemaker/pcmk_sched_tickets.c } else if (!rsc_ticket->ticket->granted) { ticket 136 lib/pacemaker/pcmk_sched_tickets.c } else if (rsc_ticket->ticket->standby) { ticket 147 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_new(const char *id, pcmk_resource_t *rsc, pcmk_ticket_t *ticket, ticket 169 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket = ticket; ticket 179 lib/pacemaker/pcmk_sched_tickets.c "because fencing is not configured", ticket->id); ticket 186 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 191 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 197 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 203 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 210 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 216 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 223 lib/pacemaker/pcmk_sched_tickets.c rsc->id, role2text(new_rsc_ticket->role), ticket->id); ticket 230 lib/pacemaker/pcmk_sched_tickets.c if (!(new_rsc_ticket->ticket->granted) || new_rsc_ticket->ticket->standby) { ticket 237 lib/pacemaker/pcmk_sched_tickets.c unpack_rsc_ticket_set(xmlNode *set, pcmk_ticket_t *ticket, ticket 244 lib/pacemaker/pcmk_sched_tickets.c CRM_CHECK(ticket != NULL, return EINVAL); ticket 268 lib/pacemaker/pcmk_sched_tickets.c resource->id, ticket->id); ticket 269 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_new(set_id, resource, ticket, role, loss_policy); ticket 283 lib/pacemaker/pcmk_sched_tickets.c pcmk_ticket_t *ticket = NULL; ticket 315 lib/pacemaker/pcmk_sched_tickets.c ticket = g_hash_table_lookup(scheduler->tickets, ticket_str); ticket 318 lib/pacemaker/pcmk_sched_tickets.c if (ticket == NULL) { ticket 353 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_new(id, rsc, ticket, state, loss_policy); ticket 439 lib/pacemaker/pcmk_sched_tickets.c pcmk_ticket_t *ticket = NULL; ticket 462 lib/pacemaker/pcmk_sched_tickets.c ticket = g_hash_table_lookup(scheduler->tickets, ticket_str); ticket 465 lib/pacemaker/pcmk_sched_tickets.c if (ticket == NULL) { ticket 466 lib/pacemaker/pcmk_sched_tickets.c ticket = ticket_new(ticket_str, scheduler); ticket 467 lib/pacemaker/pcmk_sched_tickets.c if (ticket == NULL) { ticket 491 lib/pacemaker/pcmk_sched_tickets.c || (unpack_rsc_ticket_set(set, ticket, loss_policy, ticket 526 lib/pacemaker/pcmk_sched_tickets.c && (!rsc_ticket->ticket->granted || rsc_ticket->ticket->standby)) { ticket 2992 lib/pengine/pe_output.c pcmk_ticket_t *ticket = va_arg(args, pcmk_ticket_t *); ticket 2994 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 2995 lib/pengine/pe_output.c char *epoch_str = pcmk__epoch2str(&(ticket->last_granted), 0); ticket 2997 lib/pengine/pe_output.c out->list_item(out, NULL, "%s:\t%s%s %s=\"%s\"", ticket->id, ticket 2998 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 2999 lib/pengine/pe_output.c ticket->standby ? " [standby]" : "", ticket 3003 lib/pengine/pe_output.c out->list_item(out, NULL, "%s:\t%s%s", ticket->id, ticket 3004 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 3005 lib/pengine/pe_output.c ticket->standby ? " [standby]" : ""); ticket 3014 lib/pengine/pe_output.c pcmk_ticket_t *ticket = va_arg(args, pcmk_ticket_t *); ticket 3016 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 3017 lib/pengine/pe_output.c char *epoch_str = pcmk__epoch2str(&(ticket->last_granted), 0); ticket 3019 lib/pengine/pe_output.c out->list_item(out, ticket->id, "%s%s %s=\"%s\"", ticket 3020 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 3021 lib/pengine/pe_output.c ticket->standby ? " [standby]" : "", ticket 3025 lib/pengine/pe_output.c out->list_item(out, ticket->id, "%s%s", ticket 3026 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 3027 lib/pengine/pe_output.c ticket->standby ? " [standby]" : ""); ticket 3036 lib/pengine/pe_output.c pcmk_ticket_t *ticket = va_arg(args, pcmk_ticket_t *); ticket 3041 lib/pengine/pe_output.c "id", ticket->id, ticket 3042 lib/pengine/pe_output.c "status", ticket->granted ? "granted" : "revoked", ticket 3043 lib/pengine/pe_output.c "standby", pcmk__btoa(ticket->standby), ticket 3046 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 3047 lib/pengine/pe_output.c char *buf = pcmk__epoch2str(&ticket->last_granted, 0); ticket 3077 lib/pengine/pe_output.c pcmk_ticket_t *ticket = (pcmk_ticket_t *) value; ticket 3078 lib/pengine/pe_output.c out->message(out, "ticket", ticket); ticket 941 lib/pengine/unpack.c pcmk_ticket_t *ticket = NULL; ticket 950 lib/pengine/unpack.c ticket = g_hash_table_lookup(scheduler->tickets, ticket_id); ticket 951 lib/pengine/unpack.c if (ticket == NULL) { ticket 952 lib/pengine/unpack.c ticket = ticket_new(ticket_id, scheduler); ticket 953 lib/pengine/unpack.c if (ticket == NULL) { ticket 965 lib/pengine/unpack.c g_hash_table_replace(ticket->state, strdup(prop_name), strdup(prop_value)); ticket 968 lib/pengine/unpack.c granted = g_hash_table_lookup(ticket->state, "granted"); ticket 970 lib/pengine/unpack.c ticket->granted = TRUE; ticket 971 lib/pengine/unpack.c crm_info("We have ticket '%s'", ticket->id); ticket 973 lib/pengine/unpack.c ticket->granted = FALSE; ticket 974 lib/pengine/unpack.c crm_info("We do not have ticket '%s'", ticket->id); ticket 977 lib/pengine/unpack.c last_granted = g_hash_table_lookup(ticket->state, "last-granted"); ticket 982 lib/pengine/unpack.c ticket->last_granted = (time_t) last_granted_ll; ticket 985 lib/pengine/unpack.c standby = g_hash_table_lookup(ticket->state, "standby"); ticket 987 lib/pengine/unpack.c ticket->standby = TRUE; ticket 988 lib/pengine/unpack.c if (ticket->granted) { ticket 989 lib/pengine/unpack.c crm_info("Granted ticket '%s' is in standby-mode", ticket->id); ticket 992 lib/pengine/unpack.c ticket->standby = FALSE; ticket 500 lib/pengine/utils.c pcmk_ticket_t *ticket = data; ticket 502 lib/pengine/utils.c if (ticket->state) { ticket 503 lib/pengine/utils.c g_hash_table_destroy(ticket->state); ticket 505 lib/pengine/utils.c free(ticket->id); ticket 506 lib/pengine/utils.c free(ticket); ticket 512 lib/pengine/utils.c pcmk_ticket_t *ticket = NULL; ticket 522 lib/pengine/utils.c ticket = g_hash_table_lookup(scheduler->tickets, ticket_id); ticket 523 lib/pengine/utils.c if (ticket == NULL) { ticket 525 lib/pengine/utils.c ticket = calloc(1, sizeof(pcmk_ticket_t)); ticket 526 lib/pengine/utils.c if (ticket == NULL) { ticket 533 lib/pengine/utils.c ticket->id = strdup(ticket_id); ticket 534 lib/pengine/utils.c ticket->granted = FALSE; ticket 535 lib/pengine/utils.c ticket->last_granted = -1; ticket 536 lib/pengine/utils.c ticket->standby = FALSE; ticket 537 lib/pengine/utils.c ticket->state = pcmk__strkey_table(free, free); ticket 539 lib/pengine/utils.c g_hash_table_insert(scheduler->tickets, strdup(ticket->id), ticket); ticket 542 lib/pengine/utils.c return ticket; ticket 279 tools/crm_ticket.c print_ticket(pcmk_ticket_t *ticket, bool raw, bool details) ticket 282 tools/crm_ticket.c fprintf(stdout, "%s\n", ticket->id); ticket 287 tools/crm_ticket.c ticket->id, ticket->granted ? "granted" : "revoked", ticket 288 tools/crm_ticket.c ticket->standby ? "[standby]" : " "); ticket 290 tools/crm_ticket.c if (details && g_hash_table_size(ticket->state) > 0) { ticket 298 tools/crm_ticket.c g_hash_table_iter_init(&iter, ticket->state); ticket 318 tools/crm_ticket.c if (ticket->last_granted > -1) { ticket 320 tools/crm_ticket.c print_date(ticket->last_granted); ticket 332 tools/crm_ticket.c pcmk_ticket_t *ticket = NULL; ticket 336 tools/crm_ticket.c while (g_hash_table_iter_next(&iter, NULL, (void **)&ticket)) { ticket 337 tools/crm_ticket.c print_ticket(ticket, raw, details); ticket 476 tools/crm_ticket.c pcmk_ticket_t *ticket = NULL; ticket 481 tools/crm_ticket.c ticket = g_hash_table_lookup(scheduler->tickets, ticket_id); ticket 482 tools/crm_ticket.c if (ticket == NULL) { ticket 486 tools/crm_ticket.c *attr_value = g_hash_table_lookup(ticket->state, attr_name); ticket 580 tools/crm_ticket.c pcmk_ticket_t *ticket = NULL; ticket 608 tools/crm_ticket.c ticket = find_ticket(ticket_id, scheduler); ticket 615 tools/crm_ticket.c && (ticket == NULL || ticket->granted == FALSE) ticket 824 tools/crm_ticket.c pcmk_ticket_t *ticket = find_ticket(options.ticket_id, scheduler); ticket 826 tools/crm_ticket.c if (ticket == NULL) { ticket 832 tools/crm_ticket.c print_ticket(ticket, raw, details); ticket 885 tools/crm_ticket.c pcmk_ticket_t *ticket = NULL; ticket 887 tools/crm_ticket.c ticket = find_ticket(options.ticket_id, scheduler); ticket 888 tools/crm_ticket.c if (ticket == NULL) { ticket 895 tools/crm_ticket.c if (ticket->granted) {