ticket 1597 lib/pacemaker/pcmk_output.c const char *ticket = va_arg(args, const char *); ticket 1604 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Making ticket %s standby", ticket); ticket 1606 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s ticket %s", action, ticket); ticket 1617 lib/pacemaker/pcmk_output.c const char *ticket = va_arg(args, const char *); ticket 1625 lib/pacemaker/pcmk_output.c "ticket", ticket, ticket 31 lib/pacemaker/pcmk_sched_tickets.c pe_ticket_t *ticket; ticket 72 lib/pacemaker/pcmk_sched_tickets.c if (rsc_ticket->ticket->granted && !rsc_ticket->ticket->standby) { ticket 86 lib/pacemaker/pcmk_sched_tickets.c rsc->id, rsc_ticket->ticket->id, rsc_ticket->id, ticket 89 lib/pacemaker/pcmk_sched_tickets.c if (!rsc_ticket->ticket->granted && (rsc->running_on != NULL)) { ticket 131 lib/pacemaker/pcmk_sched_tickets.c } else if (!rsc_ticket->ticket->granted) { ticket 139 lib/pacemaker/pcmk_sched_tickets.c } else if (rsc_ticket->ticket->standby) { ticket 150 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_new(const char *id, pe_resource_t *rsc, pe_ticket_t *ticket, ticket 173 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket = ticket; ticket 183 lib/pacemaker/pcmk_sched_tickets.c "because fencing is not configured", ticket->id); ticket 190 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 195 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 201 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 207 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 214 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 220 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc->id, ticket 227 lib/pacemaker/pcmk_sched_tickets.c rsc->id, role2text(new_rsc_ticket->role), ticket->id); ticket 234 lib/pacemaker/pcmk_sched_tickets.c if (!(new_rsc_ticket->ticket->granted) || new_rsc_ticket->ticket->standby) { ticket 241 lib/pacemaker/pcmk_sched_tickets.c unpack_rsc_ticket_set(xmlNode *set, pe_ticket_t *ticket, ticket 248 lib/pacemaker/pcmk_sched_tickets.c CRM_CHECK(ticket != NULL, return EINVAL); ticket 272 lib/pacemaker/pcmk_sched_tickets.c resource->id, ticket->id); ticket 273 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_new(set_id, resource, ticket, role, loss_policy, data_set); ticket 287 lib/pacemaker/pcmk_sched_tickets.c pe_ticket_t *ticket = NULL; ticket 319 lib/pacemaker/pcmk_sched_tickets.c ticket = g_hash_table_lookup(data_set->tickets, ticket_str); ticket 322 lib/pacemaker/pcmk_sched_tickets.c if (ticket == NULL) { ticket 357 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_new(id, rsc, ticket, state, loss_policy, data_set); ticket 444 lib/pacemaker/pcmk_sched_tickets.c pe_ticket_t *ticket = NULL; ticket 466 lib/pacemaker/pcmk_sched_tickets.c ticket = g_hash_table_lookup(data_set->tickets, ticket_str); ticket 469 lib/pacemaker/pcmk_sched_tickets.c if (ticket == NULL) { ticket 470 lib/pacemaker/pcmk_sched_tickets.c ticket = ticket_new(ticket_str, data_set); ticket 471 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 2936 lib/pengine/pe_output.c pe_ticket_t *ticket = va_arg(args, pe_ticket_t *); ticket 2938 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 2939 lib/pengine/pe_output.c char *epoch_str = pcmk__epoch2str(&(ticket->last_granted), 0); ticket 2941 lib/pengine/pe_output.c out->list_item(out, NULL, "%s:\t%s%s %s=\"%s\"", ticket->id, ticket 2942 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 2943 lib/pengine/pe_output.c ticket->standby ? " [standby]" : "", ticket 2947 lib/pengine/pe_output.c out->list_item(out, NULL, "%s:\t%s%s", ticket->id, ticket 2948 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 2949 lib/pengine/pe_output.c ticket->standby ? " [standby]" : ""); ticket 2958 lib/pengine/pe_output.c pe_ticket_t *ticket = va_arg(args, pe_ticket_t *); ticket 2960 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 2961 lib/pengine/pe_output.c char *epoch_str = pcmk__epoch2str(&(ticket->last_granted), 0); ticket 2963 lib/pengine/pe_output.c out->list_item(out, ticket->id, "%s%s %s=\"%s\"", ticket 2964 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 2965 lib/pengine/pe_output.c ticket->standby ? " [standby]" : "", ticket 2969 lib/pengine/pe_output.c out->list_item(out, ticket->id, "%s%s", ticket 2970 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 2971 lib/pengine/pe_output.c ticket->standby ? " [standby]" : ""); ticket 2980 lib/pengine/pe_output.c pe_ticket_t *ticket = va_arg(args, pe_ticket_t *); ticket 2985 lib/pengine/pe_output.c "id", ticket->id, ticket 2986 lib/pengine/pe_output.c "status", ticket->granted ? "granted" : "revoked", ticket 2987 lib/pengine/pe_output.c "standby", pcmk__btoa(ticket->standby), ticket 2990 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 2991 lib/pengine/pe_output.c char *buf = pcmk__epoch2str(&ticket->last_granted, 0); ticket 3021 lib/pengine/pe_output.c pe_ticket_t *ticket = (pe_ticket_t *) value; ticket 3022 lib/pengine/pe_output.c out->message(out, "ticket", ticket); ticket 891 lib/pengine/unpack.c pe_ticket_t *ticket = NULL; ticket 900 lib/pengine/unpack.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 901 lib/pengine/unpack.c if (ticket == NULL) { ticket 902 lib/pengine/unpack.c ticket = ticket_new(ticket_id, data_set); ticket 903 lib/pengine/unpack.c if (ticket == NULL) { ticket 915 lib/pengine/unpack.c g_hash_table_replace(ticket->state, strdup(prop_name), strdup(prop_value)); ticket 918 lib/pengine/unpack.c granted = g_hash_table_lookup(ticket->state, "granted"); ticket 920 lib/pengine/unpack.c ticket->granted = TRUE; ticket 921 lib/pengine/unpack.c crm_info("We have ticket '%s'", ticket->id); ticket 923 lib/pengine/unpack.c ticket->granted = FALSE; ticket 924 lib/pengine/unpack.c crm_info("We do not have ticket '%s'", ticket->id); ticket 927 lib/pengine/unpack.c last_granted = g_hash_table_lookup(ticket->state, "last-granted"); ticket 932 lib/pengine/unpack.c ticket->last_granted = (time_t) last_granted_ll; ticket 935 lib/pengine/unpack.c standby = g_hash_table_lookup(ticket->state, "standby"); ticket 937 lib/pengine/unpack.c ticket->standby = TRUE; ticket 938 lib/pengine/unpack.c if (ticket->granted) { ticket 939 lib/pengine/unpack.c crm_info("Granted ticket '%s' is in standby-mode", ticket->id); ticket 942 lib/pengine/unpack.c ticket->standby = FALSE; ticket 537 lib/pengine/utils.c pe_ticket_t *ticket = data; ticket 539 lib/pengine/utils.c if (ticket->state) { ticket 540 lib/pengine/utils.c g_hash_table_destroy(ticket->state); ticket 542 lib/pengine/utils.c free(ticket->id); ticket 543 lib/pengine/utils.c free(ticket); ticket 549 lib/pengine/utils.c pe_ticket_t *ticket = NULL; ticket 559 lib/pengine/utils.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 560 lib/pengine/utils.c if (ticket == NULL) { ticket 562 lib/pengine/utils.c ticket = calloc(1, sizeof(pe_ticket_t)); ticket 563 lib/pengine/utils.c if (ticket == NULL) { ticket 570 lib/pengine/utils.c ticket->id = strdup(ticket_id); ticket 571 lib/pengine/utils.c ticket->granted = FALSE; ticket 572 lib/pengine/utils.c ticket->last_granted = -1; ticket 573 lib/pengine/utils.c ticket->standby = FALSE; ticket 574 lib/pengine/utils.c ticket->state = pcmk__strkey_table(free, free); ticket 576 lib/pengine/utils.c g_hash_table_insert(data_set->tickets, strdup(ticket->id), ticket); ticket 579 lib/pengine/utils.c return ticket; ticket 278 tools/crm_ticket.c print_ticket(pe_ticket_t * ticket, bool raw, bool details) ticket 281 tools/crm_ticket.c fprintf(stdout, "%s\n", ticket->id); ticket 286 tools/crm_ticket.c ticket->id, ticket->granted ? "granted" : "revoked", ticket 287 tools/crm_ticket.c ticket->standby ? "[standby]" : " "); ticket 289 tools/crm_ticket.c if (details && g_hash_table_size(ticket->state) > 0) { ticket 297 tools/crm_ticket.c g_hash_table_iter_init(&iter, ticket->state); ticket 317 tools/crm_ticket.c if (ticket->last_granted > -1) { ticket 319 tools/crm_ticket.c print_date(ticket->last_granted); ticket 331 tools/crm_ticket.c pe_ticket_t *ticket = NULL; ticket 335 tools/crm_ticket.c while (g_hash_table_iter_next(&iter, NULL, (void **)&ticket)) { ticket 336 tools/crm_ticket.c print_ticket(ticket, raw, details); ticket 476 tools/crm_ticket.c pe_ticket_t *ticket = NULL; ticket 481 tools/crm_ticket.c ticket = g_hash_table_lookup(data_set->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 pe_ticket_t *ticket = NULL; ticket 608 tools/crm_ticket.c ticket = find_ticket(ticket_id, data_set); ticket 615 tools/crm_ticket.c && (ticket == NULL || ticket->granted == FALSE) ticket 821 tools/crm_ticket.c pe_ticket_t *ticket = find_ticket(options.ticket_id, data_set); ticket 823 tools/crm_ticket.c if (ticket == NULL) { ticket 829 tools/crm_ticket.c print_ticket(ticket, raw, details); ticket 881 tools/crm_ticket.c pe_ticket_t *ticket = NULL; ticket 883 tools/crm_ticket.c ticket = find_ticket(options.ticket_id, data_set); ticket 884 tools/crm_ticket.c if (ticket == NULL) { ticket 891 tools/crm_ticket.c if (ticket->granted) {