ticket_id 430 include/crm/pengine/internal.h pcmk_ticket_t *ticket_new(const char *ticket_id, pcmk_scheduler_t *scheduler); ticket_id 457 lib/pacemaker/pcmk_injections.c find_ticket_state(pcmk__output_t *out, cib_t *the_cib, const char *ticket_id, ticket_id 472 lib/pacemaker/pcmk_injections.c if (ticket_id) { ticket_id 475 lib/pacemaker/pcmk_injections.c "[@" XML_ATTR_ID "=\"", ticket_id, "\"]", NULL); ticket_id 486 lib/pacemaker/pcmk_injections.c if ((xml_search->children != NULL) && (ticket_id != NULL)) { ticket_id 487 lib/pacemaker/pcmk_injections.c out->err(out, "Multiple ticket_states match ticket_id=%s", ticket_id); ticket_id 507 lib/pacemaker/pcmk_injections.c set_ticket_state_attr(pcmk__output_t *out, const char *ticket_id, ticket_id 515 lib/pacemaker/pcmk_injections.c rc = find_ticket_state(out, cib, ticket_id, &ticket_state_xml); ticket_id 520 lib/pacemaker/pcmk_injections.c ticket_id); ticket_id 529 lib/pacemaker/pcmk_injections.c crm_xml_add(ticket_state_xml, XML_ATTR_ID, ticket_id); ticket_id 724 lib/pacemaker/pcmk_injections.c const char *ticket_id = (const char *) iter->data; ticket_id 726 lib/pacemaker/pcmk_injections.c out->message(out, "inject-modify-ticket", "Granting", ticket_id); ticket_id 728 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "granted", true, cib); ticket_id 733 lib/pacemaker/pcmk_injections.c const char *ticket_id = (const char *) iter->data; ticket_id 735 lib/pacemaker/pcmk_injections.c out->message(out, "inject-modify-ticket", "Revoking", ticket_id); ticket_id 737 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "granted", false, cib); ticket_id 742 lib/pacemaker/pcmk_injections.c const char *ticket_id = (const char *) iter->data; ticket_id 744 lib/pacemaker/pcmk_injections.c out->message(out, "inject-modify-ticket", "Standby", ticket_id); ticket_id 746 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "standby", true, cib); ticket_id 751 lib/pacemaker/pcmk_injections.c const char *ticket_id = (const char *) iter->data; ticket_id 753 lib/pacemaker/pcmk_injections.c out->message(out, "inject-modify-ticket", "Activating", ticket_id); ticket_id 755 lib/pacemaker/pcmk_injections.c rc = set_ticket_state_attr(out, ticket_id, "standby", false, cib); ticket_id 935 lib/pengine/unpack.c const char *ticket_id = NULL; ticket_id 943 lib/pengine/unpack.c ticket_id = ID(xml_ticket); ticket_id 944 lib/pengine/unpack.c if (pcmk__str_empty(ticket_id)) { ticket_id 948 lib/pengine/unpack.c crm_trace("Processing ticket state for %s", ticket_id); ticket_id 950 lib/pengine/unpack.c ticket = g_hash_table_lookup(scheduler->tickets, ticket_id); ticket_id 952 lib/pengine/unpack.c ticket = ticket_new(ticket_id, scheduler); ticket_id 995 lib/pengine/unpack.c crm_trace("Done with ticket state for %s", ticket_id); ticket_id 510 lib/pengine/utils.c ticket_new(const char *ticket_id, pcmk_scheduler_t *scheduler) ticket_id 514 lib/pengine/utils.c if (pcmk__str_empty(ticket_id)) { ticket_id 522 lib/pengine/utils.c ticket = g_hash_table_lookup(scheduler->tickets, ticket_id); ticket_id 527 lib/pengine/utils.c crm_err("Cannot allocate ticket '%s'", ticket_id); ticket_id 531 lib/pengine/utils.c crm_trace("Creaing ticket entry for %s", ticket_id); ticket_id 533 lib/pengine/utils.c ticket->id = strdup(ticket_id); ticket_id 53 tools/crm_ticket.c gchar *ticket_id; ticket_id 230 tools/crm_ticket.c { "ticket", 't', 0, G_OPTION_ARG_STRING, &options.ticket_id, ticket_id 258 tools/crm_ticket.c find_ticket(gchar *ticket_id, pcmk_scheduler_t *scheduler) ticket_id 260 tools/crm_ticket.c return g_hash_table_lookup(scheduler->tickets, ticket_id); ticket_id 342 tools/crm_ticket.c find_ticket_state(cib_t * the_cib, gchar *ticket_id, xmlNode ** ticket_state_xml) ticket_id 357 tools/crm_ticket.c if (ticket_id != NULL) { ticket_id 360 tools/crm_ticket.c "[@" XML_ATTR_ID "=\"", ticket_id, "\"]", NULL); ticket_id 374 tools/crm_ticket.c if (ticket_id) { ticket_id 375 tools/crm_ticket.c fprintf(stdout, "Multiple ticket_states match ticket_id=%s\n", ticket_id); ticket_id 385 tools/crm_ticket.c find_ticket_constraints(cib_t * the_cib, gchar *ticket_id, xmlNode ** ticket_cons_xml) ticket_id 405 tools/crm_ticket.c if (ticket_id != NULL) { ticket_id 407 tools/crm_ticket.c "[@" XML_TICKET_ATTR_TICKET "=\"", ticket_id, "\"]", ticket_id 427 tools/crm_ticket.c dump_ticket_xml(cib_t * the_cib, gchar *ticket_id) ticket_id 432 tools/crm_ticket.c rc = find_ticket_state(the_cib, ticket_id, &state_xml); ticket_id 452 tools/crm_ticket.c dump_constraints(cib_t * the_cib, gchar *ticket_id) ticket_id 458 tools/crm_ticket.c rc = find_ticket_constraints(the_cib, ticket_id, &cons_xml); ticket_id 473 tools/crm_ticket.c get_ticket_state_attr(gchar *ticket_id, const char *attr_name, const char **attr_value, ticket_id 481 tools/crm_ticket.c ticket = g_hash_table_lookup(scheduler->tickets, ticket_id); ticket_id 495 tools/crm_ticket.c ticket_warning(gchar *ticket_id, const char *action) ticket_id 505 tools/crm_ticket.c ticket_id, ticket_id 511 tools/crm_ticket.c "Revoking '", ticket_id, "' can trigger the specified " ticket_id 512 tools/crm_ticket.c "'loss-policy'(s) relating to '", ticket_id, "'.\n\n" ticket_id 514 tools/crm_ticket.c "crm_ticket --ticket ", ticket_id, " --constraints\n\n" ticket_id 515 tools/crm_ticket.c "Otherwise before revoking '", ticket_id, "', " ticket_id 516 tools/crm_ticket.c "you may want to make '", ticket_id, "' " ticket_id 518 tools/crm_ticket.c "crm_ticket --ticket ", ticket_id, " --standby\n\n", ticket_id 524 tools/crm_ticket.c "If you really want to ", action, " '", ticket_id, "' ", ticket_id 534 tools/crm_ticket.c allow_modification(gchar *ticket_id) ticket_id 545 tools/crm_ticket.c ticket_warning(ticket_id, "grant"); ticket_id 549 tools/crm_ticket.c ticket_warning(ticket_id, "revoke"); ticket_id 558 tools/crm_ticket.c ticket_warning(ticket_id, "revoke"); ticket_id 567 tools/crm_ticket.c modify_ticket_state(gchar *ticket_id, cib_t *cib, pcmk_scheduler_t *scheduler) ticket_id 582 tools/crm_ticket.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); ticket_id 584 tools/crm_ticket.c crm_debug("Found a match state for ticket: id=%s", ticket_id); ticket_id 600 tools/crm_ticket.c crm_xml_add(ticket_state_xml, XML_ATTR_ID, ticket_id); ticket_id 608 tools/crm_ticket.c ticket = find_ticket(ticket_id, scheduler); ticket_id 641 tools/crm_ticket.c delete_ticket_state(gchar *ticket_id, cib_t * cib) ticket_id 647 tools/crm_ticket.c rc = find_ticket_state(cib, ticket_id, &ticket_state_xml); ticket_id 662 tools/crm_ticket.c fprintf(stdout, "Cleaned up %s\n", ticket_id); ticket_id 823 tools/crm_ticket.c if (options.ticket_id) { ticket_id 824 tools/crm_ticket.c pcmk_ticket_t *ticket = find_ticket(options.ticket_id, scheduler); ticket_id 829 tools/crm_ticket.c "No such ticket '%s'", options.ticket_id); ticket_id 839 tools/crm_ticket.c rc = dump_ticket_xml(cib_conn, options.ticket_id); ticket_id 848 tools/crm_ticket.c rc = dump_constraints(cib_conn, options.ticket_id); ticket_id 859 tools/crm_ticket.c if (options.ticket_id == NULL) { ticket_id 866 tools/crm_ticket.c rc = get_ticket_state_attr(options.ticket_id, options.get_attr_name, ticket_id 877 tools/crm_ticket.c if (options.ticket_id == NULL) { ticket_id 887 tools/crm_ticket.c ticket = find_ticket(options.ticket_id, scheduler); ticket_id 891 tools/crm_ticket.c "No such ticket '%s'", options.ticket_id); ticket_id 896 tools/crm_ticket.c ticket_warning(options.ticket_id, "revoke"); ticket_id 902 tools/crm_ticket.c rc = delete_ticket_state(options.ticket_id, cib_conn); ticket_id 911 tools/crm_ticket.c if (options.ticket_id == NULL) { ticket_id 934 tools/crm_ticket.c if (!allow_modification(options.ticket_id)) { ticket_id 941 tools/crm_ticket.c rc = modify_ticket_state(options.ticket_id, cib_conn, scheduler); ticket_id 961 tools/crm_ticket.c if (options.ticket_id == NULL) { ticket_id 1005 tools/crm_ticket.c g_free(options.ticket_id);