ticket 62 include/pcmki/pcmki_scheduler.h pe_ticket_t *ticket; ticket 1356 lib/pacemaker/pcmk_output.c char *ticket = va_arg(args, char *); ticket 1363 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Making ticket %s standby", ticket); ticket 1365 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s ticket %s", action, ticket); ticket 1376 lib/pacemaker/pcmk_output.c char *ticket = va_arg(args, char *); ticket 1384 lib/pacemaker/pcmk_output.c "ticket", ticket, ticket 385 lib/pacemaker/pcmk_sched_promotable.c && (rsc_ticket->ticket->granted == FALSE || rsc_ticket->ticket->standby)) { ticket 57 lib/pacemaker/pcmk_sched_tickets.c if (rsc_ticket->ticket->granted && !rsc_ticket->ticket->standby) { ticket 71 lib/pacemaker/pcmk_sched_tickets.c rsc_lh->id, rsc_ticket->ticket->id, rsc_ticket->id, ticket 74 lib/pacemaker/pcmk_sched_tickets.c if (!rsc_ticket->ticket->granted && (rsc_lh->running_on != NULL)) { ticket 116 lib/pacemaker/pcmk_sched_tickets.c } else if (!rsc_ticket->ticket->granted) { ticket 124 lib/pacemaker/pcmk_sched_tickets.c } else if (rsc_ticket->ticket->standby) { ticket 135 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_new(const char *id, pe_resource_t *rsc_lh, pe_ticket_t *ticket, ticket 158 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket = ticket; ticket 168 lib/pacemaker/pcmk_sched_tickets.c "because fencing is not configured", ticket->id); ticket 175 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 180 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 186 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 192 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 199 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 205 lib/pacemaker/pcmk_sched_tickets.c new_rsc_ticket->ticket->id, new_rsc_ticket->rsc_lh->id, ticket 212 lib/pacemaker/pcmk_sched_tickets.c rsc_lh->id, role2text(new_rsc_ticket->role_lh), ticket->id); ticket 219 lib/pacemaker/pcmk_sched_tickets.c if (!(new_rsc_ticket->ticket->granted) || new_rsc_ticket->ticket->standby) { ticket 226 lib/pacemaker/pcmk_sched_tickets.c unpack_rsc_ticket_set(xmlNode *set, pe_ticket_t *ticket, ticket 233 lib/pacemaker/pcmk_sched_tickets.c CRM_CHECK(ticket != NULL, return EINVAL); ticket 257 lib/pacemaker/pcmk_sched_tickets.c resource->id, ticket->id); ticket 258 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_new(set_id, resource, ticket, role, loss_policy, data_set); ticket 272 lib/pacemaker/pcmk_sched_tickets.c pe_ticket_t *ticket = NULL; ticket 297 lib/pacemaker/pcmk_sched_tickets.c ticket = g_hash_table_lookup(data_set->tickets, ticket_str); ticket 300 lib/pacemaker/pcmk_sched_tickets.c if (ticket == NULL) { ticket 335 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_new(id, rsc_lh, ticket, state_lh, loss_policy, data_set); ticket 422 lib/pacemaker/pcmk_sched_tickets.c pe_ticket_t *ticket = NULL; ticket 444 lib/pacemaker/pcmk_sched_tickets.c ticket = g_hash_table_lookup(data_set->tickets, ticket_str); ticket 447 lib/pacemaker/pcmk_sched_tickets.c if (ticket == NULL) { ticket 448 lib/pacemaker/pcmk_sched_tickets.c ticket = ticket_new(ticket_str, data_set); ticket 449 lib/pacemaker/pcmk_sched_tickets.c if (ticket == NULL) { ticket 469 lib/pacemaker/pcmk_sched_tickets.c || (unpack_rsc_ticket_set(set, ticket, loss_policy, ticket 2682 lib/pengine/pe_output.c pe_ticket_t *ticket = va_arg(args, pe_ticket_t *); ticket 2684 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 2686 lib/pengine/pe_output.c ticket->last_granted); ticket 2688 lib/pengine/pe_output.c out->list_item(out, NULL, "%s:\t%s%s %s", ticket->id, ticket 2689 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 2690 lib/pengine/pe_output.c ticket->standby ? " [standby]" : "", ticket 2694 lib/pengine/pe_output.c out->list_item(out, NULL, "%s:\t%s%s", ticket->id, ticket 2695 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 2696 lib/pengine/pe_output.c ticket->standby ? " [standby]" : ""); ticket 2705 lib/pengine/pe_output.c pe_ticket_t *ticket = va_arg(args, pe_ticket_t *); ticket 2707 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 2709 lib/pengine/pe_output.c ticket->last_granted); ticket 2711 lib/pengine/pe_output.c out->list_item(out, ticket->id, "%s%s %s", ticket 2712 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 2713 lib/pengine/pe_output.c ticket->standby ? " [standby]" : "", ticket 2717 lib/pengine/pe_output.c out->list_item(out, ticket->id, "%s%s", ticket 2718 lib/pengine/pe_output.c ticket->granted ? "granted" : "revoked", ticket 2719 lib/pengine/pe_output.c ticket->standby ? " [standby]" : ""); ticket 2728 lib/pengine/pe_output.c pe_ticket_t *ticket = va_arg(args, pe_ticket_t *); ticket 2733 lib/pengine/pe_output.c "id", ticket->id, ticket 2734 lib/pengine/pe_output.c "status", ticket->granted ? "granted" : "revoked", ticket 2735 lib/pengine/pe_output.c "standby", pcmk__btoa(ticket->standby), ticket 2738 lib/pengine/pe_output.c if (ticket->last_granted > -1) { ticket 2739 lib/pengine/pe_output.c crm_xml_add(node, "last-granted", pcmk__epoch2str(&ticket->last_granted)); ticket 2766 lib/pengine/pe_output.c pe_ticket_t *ticket = (pe_ticket_t *) value; ticket 2767 lib/pengine/pe_output.c out->message(out, "ticket", ticket); ticket 877 lib/pengine/unpack.c pe_ticket_t *ticket = NULL; ticket 886 lib/pengine/unpack.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 887 lib/pengine/unpack.c if (ticket == NULL) { ticket 888 lib/pengine/unpack.c ticket = ticket_new(ticket_id, data_set); ticket 889 lib/pengine/unpack.c if (ticket == NULL) { ticket 901 lib/pengine/unpack.c g_hash_table_replace(ticket->state, strdup(prop_name), strdup(prop_value)); ticket 904 lib/pengine/unpack.c granted = g_hash_table_lookup(ticket->state, "granted"); ticket 906 lib/pengine/unpack.c ticket->granted = TRUE; ticket 907 lib/pengine/unpack.c crm_info("We have ticket '%s'", ticket->id); ticket 909 lib/pengine/unpack.c ticket->granted = FALSE; ticket 910 lib/pengine/unpack.c crm_info("We do not have ticket '%s'", ticket->id); ticket 913 lib/pengine/unpack.c last_granted = g_hash_table_lookup(ticket->state, "last-granted"); ticket 918 lib/pengine/unpack.c ticket->last_granted = (time_t) last_granted_ll; ticket 921 lib/pengine/unpack.c standby = g_hash_table_lookup(ticket->state, "standby"); ticket 923 lib/pengine/unpack.c ticket->standby = TRUE; ticket 924 lib/pengine/unpack.c if (ticket->granted) { ticket 925 lib/pengine/unpack.c crm_info("Granted ticket '%s' is in standby-mode", ticket->id); ticket 928 lib/pengine/unpack.c ticket->standby = FALSE; ticket 1966 lib/pengine/utils.c pe_ticket_t *ticket = data; ticket 1968 lib/pengine/utils.c if (ticket->state) { ticket 1969 lib/pengine/utils.c g_hash_table_destroy(ticket->state); ticket 1971 lib/pengine/utils.c free(ticket->id); ticket 1972 lib/pengine/utils.c free(ticket); ticket 1978 lib/pengine/utils.c pe_ticket_t *ticket = NULL; ticket 1988 lib/pengine/utils.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 1989 lib/pengine/utils.c if (ticket == NULL) { ticket 1991 lib/pengine/utils.c ticket = calloc(1, sizeof(pe_ticket_t)); ticket 1992 lib/pengine/utils.c if (ticket == NULL) { ticket 1999 lib/pengine/utils.c ticket->id = strdup(ticket_id); ticket 2000 lib/pengine/utils.c ticket->granted = FALSE; ticket 2001 lib/pengine/utils.c ticket->last_granted = -1; ticket 2002 lib/pengine/utils.c ticket->standby = FALSE; ticket 2003 lib/pengine/utils.c ticket->state = pcmk__strkey_table(free, free); ticket 2005 lib/pengine/utils.c g_hash_table_insert(data_set->tickets, strdup(ticket->id), ticket); ticket 2008 lib/pengine/utils.c return 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 113 tools/crm_ticket.c if (ticket->last_granted > -1) { ticket 115 tools/crm_ticket.c print_date(ticket->last_granted); ticket 127 tools/crm_ticket.c pe_ticket_t *ticket = NULL; ticket 131 tools/crm_ticket.c while (g_hash_table_iter_next(&iter, NULL, (void **)&ticket)) { ticket 132 tools/crm_ticket.c print_ticket(ticket, raw, details); ticket 271 tools/crm_ticket.c pe_ticket_t *ticket = NULL; ticket 276 tools/crm_ticket.c ticket = g_hash_table_lookup(data_set->tickets, ticket_id); ticket 277 tools/crm_ticket.c if (ticket == NULL) { ticket 281 tools/crm_ticket.c *attr_value = g_hash_table_lookup(ticket->state, attr_name); ticket 384 tools/crm_ticket.c pe_ticket_t *ticket = NULL; ticket 412 tools/crm_ticket.c ticket = find_ticket(ticket_id, data_set); ticket 419 tools/crm_ticket.c && (ticket == NULL || ticket->granted == FALSE) ticket 908 tools/crm_ticket.c pe_ticket_t *ticket = find_ticket(ticket_id, data_set); ticket 910 tools/crm_ticket.c if (ticket == NULL) { ticket 915 tools/crm_ticket.c rc = print_ticket(ticket, raw, details); ticket 965 tools/crm_ticket.c pe_ticket_t *ticket = NULL; ticket 967 tools/crm_ticket.c ticket = find_ticket(ticket_id, data_set); ticket 968 tools/crm_ticket.c if (ticket == NULL) { ticket 974 tools/crm_ticket.c if (ticket->granted) {