action 345 daemons/attrd/attrd_sync.c struct confirmation_action *action = (struct confirmation_action *) data; action 346 daemons/attrd/attrd_sync.c g_list_free_full(action->respondents, free); action 347 daemons/attrd/attrd_sync.c mainloop_timer_del(action->timer); action 348 daemons/attrd/attrd_sync.c free_xml(action->xml); action 349 daemons/attrd/attrd_sync.c free(action->client_id); action 350 daemons/attrd/attrd_sync.c free(action); action 361 daemons/attrd/attrd_sync.c struct confirmation_action *action = (struct confirmation_action *) data; action 373 daemons/attrd/attrd_sync.c if (value == action) { action 374 daemons/attrd/attrd_sync.c pcmk__client_t *client = pcmk__find_client_by_id(action->client_id); action 380 daemons/attrd/attrd_sync.c pcmk__ipc_send_ack(client, action->ipc_id, action 381 daemons/attrd/attrd_sync.c action->flags|crm_ipc_client_response, action 445 daemons/attrd/attrd_sync.c struct confirmation_action *action = (struct confirmation_action *) value; action 447 daemons/attrd/attrd_sync.c if (pcmk__str_eq(action->client_id, client->id, pcmk__str_none)) { action 477 daemons/attrd/attrd_sync.c struct confirmation_action *action = NULL; action 505 daemons/attrd/attrd_sync.c action = pcmk__assert_alloc(1, sizeof(struct confirmation_action)); action 507 daemons/attrd/attrd_sync.c action->respondents = respondents; action 508 daemons/attrd/attrd_sync.c action->fn = fn; action 509 daemons/attrd/attrd_sync.c action->xml = pcmk__xml_copy(NULL, request->xml); action 510 daemons/attrd/attrd_sync.c action->client_id = pcmk__str_copy(request->ipc_client->id); action 511 daemons/attrd/attrd_sync.c action->ipc_id = request->ipc_id; action 512 daemons/attrd/attrd_sync.c action->flags = request->flags; action 514 daemons/attrd/attrd_sync.c action->timer = mainloop_timer_add(NULL, 15000, FALSE, confirmation_timeout_cb, action); action 515 daemons/attrd/attrd_sync.c mainloop_timer_start(action->timer); action 517 daemons/attrd/attrd_sync.c pcmk__intkey_table_insert(expected_confirmations, callid, action); action 545 daemons/attrd/attrd_sync.c struct confirmation_action *action = NULL; action 552 daemons/attrd/attrd_sync.c action = pcmk__intkey_table_lookup(expected_confirmations, callid); action 553 daemons/attrd/attrd_sync.c if (action == NULL) { action 557 daemons/attrd/attrd_sync.c node = g_list_find_custom(action->respondents, host, (GCompareFunc) strcasecmp); action 563 daemons/attrd/attrd_sync.c action->respondents = g_list_remove(action->respondents, node->data); action 564 daemons/attrd/attrd_sync.c crm_trace("Callid %d now waiting on %d confirmations", callid, g_list_length(action->respondents)); action 566 daemons/attrd/attrd_sync.c if (action->respondents == NULL) { action 567 daemons/attrd/attrd_sync.c action->fn(action->xml); action 121 daemons/controld/controld_cib.c do_cib_control(long long action, action 137 daemons/controld/controld_cib.c if (pcmk_is_set(action, A_CIB_STOP)) { action 149 daemons/controld/controld_cib.c if (!pcmk_is_set(action, A_CIB_START)) { action 1016 daemons/controld/controld_cib.c const char *action, guint interval_ms) action 1024 daemons/controld/controld_cib.c if (action == NULL) { action 1028 daemons/controld/controld_cib.c char *action_key = pcmk__op_key(rsc_id, action, interval_ms); action 99 daemons/controld/controld_cib.h const char *action, guint interval_ms); action 117 daemons/controld/controld_cib.h controld_action_is_recordable(const char *action) action 119 daemons/controld/controld_cib.h return !pcmk__str_any_of(action, PCMK_ACTION_CANCEL, PCMK_ACTION_DELETE, action 38 daemons/controld/controld_control.c do_ha_control(long long action, action 50 daemons/controld/controld_control.c if (action & A_HA_DISCONNECT) { action 57 daemons/controld/controld_control.c if (action & A_HA_CONNECT) { action 88 daemons/controld/controld_control.c if (action & ~(A_HA_CONNECT | A_HA_DISCONNECT)) { action 89 daemons/controld/controld_control.c crm_err("Unexpected action %s in %s", fsa_action2string(action), action 96 daemons/controld/controld_control.c do_shutdown(long long action, action 107 daemons/controld/controld_control.c do_shutdown_req(long long action, action 321 daemons/controld/controld_control.c do_exit(long long action, action 327 daemons/controld/controld_control.c if (pcmk_is_set(action, A_EXIT_1)) { action 339 daemons/controld/controld_control.c do_startup(long long action, action 431 daemons/controld/controld_control.c do_stop(long long action, action 442 daemons/controld/controld_control.c do_started(long long action, action 510 daemons/controld/controld_control.c do_recover(long long action, action 651 daemons/controld/controld_control.c do_read_config(long long action, action 81 daemons/controld/controld_election.c do_election_vote(long long action, action 127 daemons/controld/controld_election.c do_election_check(long long action, action 141 daemons/controld/controld_election.c do_election_count_vote(long long action, action 210 daemons/controld/controld_election.c do_dc_takeover(long long action, action 258 daemons/controld/controld_election.c do_dc_release(long long action, action 263 daemons/controld/controld_election.c if (action & A_DC_RELEASE) { action 268 daemons/controld/controld_election.c } else if (action & A_DC_RELEASED) { action 286 daemons/controld/controld_election.c crm_err("Unknown DC action %s", fsa_action2string(action)); action 310 daemons/controld/controld_execd.c try_local_executor_connect(long long action, fsa_data_t *msg_data, action 346 daemons/controld/controld_execd.c do_lrm_control(long long action, action 367 daemons/controld/controld_execd.c if (action & A_LRM_DISCONNECT) { action 369 daemons/controld/controld_execd.c if (action == A_LRM_DISCONNECT) { action 380 daemons/controld/controld_execd.c if (action & A_LRM_CONNECT) { action 381 daemons/controld/controld_execd.c try_local_executor_connect(action, msg_data, lrm_state); action 384 daemons/controld/controld_execd.c if (action & ~(A_LRM_CONNECT | A_LRM_DISCONNECT)) { action 385 daemons/controld/controld_execd.c crm_err("Unexpected action %s in %s", fsa_action2string(action), action 1097 daemons/controld/controld_execd.c synthesize_lrmd_failure(lrm_state_t *lrm_state, const xmlNode *action, action 1102 daemons/controld/controld_execd.c const char *operation = crm_element_value(action, PCMK_XA_OPERATION); action 1103 daemons/controld/controld_execd.c const char *target_node = crm_element_value(action, PCMK__META_ON_NODE); action 1104 daemons/controld/controld_execd.c xmlNode *xml_rsc = pcmk__xe_first_child(action, PCMK_XE_PRIMITIVE, NULL, action 1110 daemons/controld/controld_execd.c crm_element_value(action, PCMK__XA_OPERATION_KEY), rc, action 1121 daemons/controld/controld_execd.c op = construct_op(lrm_state, action, pcmk__xe_id(xml_rsc), operation); action 1134 daemons/controld/controld_execd.c process_lrm_event(lrm_state, op, NULL, action); action 1413 daemons/controld/controld_execd.c do_lrm_invoke(long long action, action 1867 daemons/controld/controld_execd.c should_cancel_recurring(const char *rsc_id, const char *action, guint interval_ms) action 1870 daemons/controld/controld_execd.c && (strcmp(action, PCMK_ACTION_MIGRATE_TO) == 0)) { action 1880 daemons/controld/controld_execd.c && !pcmk__str_any_of(action, PCMK_ACTION_MONITOR, action 1894 daemons/controld/controld_execd.c should_nack_action(const char *action) action 1897 daemons/controld/controld_execd.c && pcmk__str_eq(action, PCMK_ACTION_START, pcmk__str_none)) { action 1909 daemons/controld/controld_execd.c if (!pcmk__str_eq(action, PCMK_ACTION_STOP, pcmk__str_none)) { action 2080 daemons/controld/controld_execd.c do_lrm_event(long long action, action 673 daemons/controld/controld_execd_state.c lrm_state_cancel(lrm_state_t *lrm_state, const char *rsc_id, const char *action, action 683 daemons/controld/controld_execd_state.c return remote_ra_cancel(lrm_state, rsc_id, action, interval_ms); action 686 daemons/controld/controld_execd_state.c action, interval_ms); action 734 daemons/controld/controld_execd_state.c const char *action, const char *userdata, action 760 daemons/controld/controld_execd_state.c rc = controld_execute_remote_agent(lrm_state, rsc_id, action, action 766 daemons/controld/controld_execd_state.c action, userdata, action 211 daemons/controld/controld_fencing.c send_stonith_update(pcmk__graph_action_t *action, const char *target, action 431 daemons/controld/controld_fencing.c pcmk__graph_action_t *action = (pcmk__graph_action_t *) lpc2->data; action 433 daemons/controld/controld_fencing.c if ((action->type != pcmk__cluster_graph_action) action 434 daemons/controld/controld_fencing.c || pcmk_is_set(action->flags, pcmk__graph_action_confirmed)) { action 438 daemons/controld/controld_fencing.c task = crm_element_value(action->xml, PCMK_XA_OPERATION); action 440 daemons/controld/controld_fencing.c pcmk__set_graph_action_flags(action, pcmk__graph_action_failed); action 441 daemons/controld/controld_fencing.c last_action = action->xml; action 442 daemons/controld/controld_fencing.c pcmk__update_graph(graph, action); action 444 daemons/controld/controld_fencing.c action->id, pcmk__xe_id(action->xml)); action 533 daemons/controld/controld_fencing.c if (pcmk__str_eq(PCMK_ACTION_ON, event->action, pcmk__str_none)) { action 586 daemons/controld/controld_fencing.c event->action, executioner, client, event->origin, action 798 daemons/controld/controld_fencing.c pcmk__graph_action_t *action = NULL; action 837 daemons/controld/controld_fencing.c action = controld_get_action(stonith_id); action 838 daemons/controld/controld_fencing.c if (action == NULL) { action 846 daemons/controld/controld_fencing.c target = crm_element_value(action->xml, PCMK__META_ON_NODE); action 853 daemons/controld/controld_fencing.c stop_te_timer(action); action 855 daemons/controld/controld_fencing.c const char *uuid = crm_element_value(action->xml, action 857 daemons/controld/controld_fencing.c const char *op = crm_meta_value(action->params, action 861 daemons/controld/controld_fencing.c if (!(pcmk_is_set(action->flags, pcmk__graph_action_confirmed))) { action 862 daemons/controld/controld_fencing.c te_action_confirmed(action, NULL); action 883 daemons/controld/controld_fencing.c value = crm_meta_value(action->params, PCMK__META_DIGESTS_ALL); action 887 daemons/controld/controld_fencing.c value = crm_meta_value(action->params, action 892 daemons/controld/controld_fencing.c } else if (!(pcmk_is_set(action->flags, pcmk__graph_action_sent_update))) { action 893 daemons/controld/controld_fencing.c send_stonith_update(action, target, uuid); action 894 daemons/controld/controld_fencing.c pcmk__set_graph_action_flags(action, action 912 daemons/controld/controld_fencing.c pcmk__set_graph_action_flags(action, pcmk__graph_action_failed); action 935 daemons/controld/controld_fencing.c pcmk__update_graph(controld_globals.transition_graph, action); action 969 daemons/controld/controld_fencing.c pcmk__graph_action_t *action) action 972 daemons/controld/controld_fencing.c const char *id = pcmk__xe_id(action->xml); action 973 daemons/controld/controld_fencing.c const char *uuid = crm_element_value(action->xml, PCMK__META_ON_NODE_UUID); action 974 daemons/controld/controld_fencing.c const char *target = crm_element_value(action->xml, PCMK__META_ON_NODE); action 975 daemons/controld/controld_fencing.c const char *type = crm_meta_value(action->params, action 990 daemons/controld/controld_fencing.c crm_log_xml_warn(action->xml, "BadAction"); action 994 daemons/controld/controld_fencing.c priority_delay = crm_meta_value(action->params, action 1009 daemons/controld/controld_fencing.c action->id, 0, action 25 daemons/controld/controld_fencing.h pcmk__graph_action_t *action); action 87 daemons/controld/controld_fsa.c void (*function) (long long action, action 104 daemons/controld/controld_fsa.c do_log(long long action, enum crmd_fsa_cause cause, action 110 daemons/controld/controld_fsa.c if (action & A_LOG) { action 112 daemons/controld/controld_fsa.c } else if (action & A_WARN) { action 114 daemons/controld/controld_fsa.c } else if (action & A_ERROR) { action 499 daemons/controld/controld_fsa.h const char *fsa_action2string(long long action); action 518 daemons/controld/controld_fsa.h void do_read_config(long long action, enum crmd_fsa_cause cause, action 523 daemons/controld/controld_fsa.h void do_pe_invoke(long long action, enum crmd_fsa_cause cause, action 528 daemons/controld/controld_fsa.h void do_log(long long action, enum crmd_fsa_cause cause, action 533 daemons/controld/controld_fsa.h void do_startup(long long action, enum crmd_fsa_cause cause, action 538 daemons/controld/controld_fsa.h void do_cib_control(long long action, enum crmd_fsa_cause cause, action 543 daemons/controld/controld_fsa.h void do_ha_control(long long action, enum crmd_fsa_cause cause, action 548 daemons/controld/controld_fsa.h void do_lrm_control(long long action, enum crmd_fsa_cause cause, action 553 daemons/controld/controld_fsa.h void do_pe_control(long long action, enum crmd_fsa_cause cause, action 558 daemons/controld/controld_fsa.h void do_te_control(long long action, enum crmd_fsa_cause cause, action 563 daemons/controld/controld_fsa.h void do_started(long long action, enum crmd_fsa_cause cause, action 568 daemons/controld/controld_fsa.h void do_msg_route(long long action, enum crmd_fsa_cause cause, action 573 daemons/controld/controld_fsa.h void do_recover(long long action, enum crmd_fsa_cause cause, action 578 daemons/controld/controld_fsa.h void do_election_vote(long long action, enum crmd_fsa_cause cause, action 583 daemons/controld/controld_fsa.h void do_election_count_vote(long long action, enum crmd_fsa_cause cause, action 589 daemons/controld/controld_fsa.h void do_election_check(long long action, enum crmd_fsa_cause cause, action 594 daemons/controld/controld_fsa.h void do_timer_control(long long action, enum crmd_fsa_cause cause, action 599 daemons/controld/controld_fsa.h void do_dc_takeover(long long action, enum crmd_fsa_cause cause, action 604 daemons/controld/controld_fsa.h void do_dc_release(long long action, enum crmd_fsa_cause cause, action 609 daemons/controld/controld_fsa.h void do_dc_join_offer_all(long long action, enum crmd_fsa_cause cause, action 614 daemons/controld/controld_fsa.h void do_dc_join_offer_one(long long action, enum crmd_fsa_cause cause, action 619 daemons/controld/controld_fsa.h void do_dc_join_ack(long long action, enum crmd_fsa_cause cause, action 624 daemons/controld/controld_fsa.h void do_dc_join_filter_offer(long long action, enum crmd_fsa_cause cause, action 630 daemons/controld/controld_fsa.h void do_dc_join_finalize(long long action, enum crmd_fsa_cause cause, action 636 daemons/controld/controld_fsa.h void do_cl_join_query(long long action, enum crmd_fsa_cause cause, action 641 daemons/controld/controld_fsa.h void do_cl_join_announce(long long action, enum crmd_fsa_cause cause, action 646 daemons/controld/controld_fsa.h void do_cl_join_offer_respond(long long action, enum crmd_fsa_cause cause, action 652 daemons/controld/controld_fsa.h void do_cl_join_finalize_respond(long long action, enum crmd_fsa_cause cause, action 658 daemons/controld/controld_fsa.h void do_lrm_invoke(long long action, enum crmd_fsa_cause cause, action 663 daemons/controld/controld_fsa.h void do_lrm_event(long long action, enum crmd_fsa_cause cause, action 668 daemons/controld/controld_fsa.h void do_te_invoke(long long action, enum crmd_fsa_cause cause, action 673 daemons/controld/controld_fsa.h void do_shutdown_req(long long action, enum crmd_fsa_cause cause, action 678 daemons/controld/controld_fsa.h void do_shutdown(long long action, enum crmd_fsa_cause cause, action 683 daemons/controld/controld_fsa.h void do_stop(long long action, enum crmd_fsa_cause cause, action 688 daemons/controld/controld_fsa.h void do_exit(long long action, enum crmd_fsa_cause cause, action 693 daemons/controld/controld_fsa.h void do_dc_join_final(long long action, enum crmd_fsa_cause cause, action 47 daemons/controld/controld_join_client.c do_cl_join_query(long long action, action 68 daemons/controld/controld_join_client.c do_cl_join_announce(long long action, action 102 daemons/controld/controld_join_client.c do_cl_join_offer_respond(long long action, action 252 daemons/controld/controld_join_client.c do_cl_join_finalize_respond(long long action, action 262 daemons/controld/controld_join_dc.c do_dc_join_offer_all(long long action, action 291 daemons/controld/controld_join_dc.c do_dc_join_offer_one(long long action, action 387 daemons/controld/controld_join_dc.c do_dc_join_filter_offer(long long action, action 567 daemons/controld/controld_join_dc.c do_dc_join_finalize(long long action, action 716 daemons/controld/controld_join_dc.c do_dc_join_ack(long long action, action 1024 daemons/controld/controld_join_dc.c do_dc_join_final(long long action, action 141 daemons/controld/controld_lrm.h const char *action, guint interval_ms); action 143 daemons/controld/controld_lrm.h const char *action, const char *userdata, action 161 daemons/controld/controld_lrm.h const char *action, guint interval_ms); action 163 daemons/controld/controld_lrm.h const char *rsc_id, const char *action, action 281 daemons/controld/controld_messages.c do_msg_route(long long action, action 50 daemons/controld/controld_messages.h ((fsa_data_t*)msg_data)->data, action, TRUE, __func__); \ action 54 daemons/controld/controld_messages.h NULL, action, TRUE, __func__); \ action 49 daemons/controld/controld_remote_ra.c char *action; action 140 daemons/controld/controld_remote_ra.c free(cmd->action); action 411 daemons/controld/controld_remote_ra.c if (pcmk__str_eq(cmd->action, PCMK_ACTION_START, pcmk__str_casei)) { action 414 daemons/controld/controld_remote_ra.c } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_MIGRATE_FROM, action 428 daemons/controld/controld_remote_ra.c } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_STOP, pcmk__str_casei)) { action 466 daemons/controld/controld_remote_ra.c op.op_type = cmd->action; action 533 daemons/controld/controld_remote_ra.c if (!pcmk__strcase_any_of(cmd->action, PCMK_ACTION_START, action 722 daemons/controld/controld_remote_ra.c && pcmk__strcase_any_of(cmd->action, PCMK_ACTION_START, action 754 daemons/controld/controld_remote_ra.c crm_debug("Remote connection event matched %s action", cmd->action); action 759 daemons/controld/controld_remote_ra.c && pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR, action 776 daemons/controld/controld_remote_ra.c crm_debug("Remote poke event matched %s action", cmd->action); action 788 daemons/controld/controld_remote_ra.c && pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR, action 803 daemons/controld/controld_remote_ra.c && pcmk__str_eq(cmd->action, PCMK_ACTION_STOP, action 810 daemons/controld/controld_remote_ra.c crm_debug("Event did not match %s action", ra_data->cur_cmd->action); action 920 daemons/controld/controld_remote_ra.c if (pcmk__str_any_of(cmd->action, PCMK_ACTION_START, action 927 daemons/controld/controld_remote_ra.c cmd->action); action 933 daemons/controld/controld_remote_ra.c } else if (!strcmp(cmd->action, PCMK_ACTION_MONITOR)) { action 956 daemons/controld/controld_remote_ra.c } else if (!strcmp(cmd->action, PCMK_ACTION_STOP)) { action 972 daemons/controld/controld_remote_ra.c } else if (strcmp(cmd->action, PCMK_ACTION_MIGRATE_TO) == 0) { action 978 daemons/controld/controld_remote_ra.c } else if (pcmk__str_any_of(cmd->action, PCMK_ACTION_RELOAD, action 1066 daemons/controld/controld_remote_ra.c is_remote_ra_supported_action(const char *action) action 1068 daemons/controld/controld_remote_ra.c return pcmk__str_any_of(action, action 1089 daemons/controld/controld_remote_ra.c && pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR, action 1101 daemons/controld/controld_remote_ra.c cmd->action, cmd->rsc_id, cmd->interval_ms, cmd->userdata); action 1114 daemons/controld/controld_remote_ra.c remove_cmd(GList * list, const char *action, guint interval_ms) action 1122 daemons/controld/controld_remote_ra.c && pcmk__str_eq(cmd->action, action, pcmk__str_casei)) { action 1136 daemons/controld/controld_remote_ra.c const char *action, guint interval_ms) action 1147 daemons/controld/controld_remote_ra.c ra_data->cmds = remove_cmd(ra_data->cmds, action, interval_ms); action 1148 daemons/controld/controld_remote_ra.c ra_data->recurring_cmds = remove_cmd(ra_data->recurring_cmds, action, action 1152 daemons/controld/controld_remote_ra.c (pcmk__str_eq(ra_data->cur_cmd->action, action, pcmk__str_casei))) { action 1180 daemons/controld/controld_remote_ra.c && pcmk__str_eq(ra_data->cur_cmd->action, PCMK_ACTION_MONITOR, action 1190 daemons/controld/controld_remote_ra.c && pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR, action 1199 daemons/controld/controld_remote_ra.c && pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR, action 1257 daemons/controld/controld_remote_ra.c const char *action, const char *userdata, action 1268 daemons/controld/controld_remote_ra.c CRM_CHECK((lrm_state != NULL) && (rsc_id != NULL) && (action != NULL) action 1272 daemons/controld/controld_remote_ra.c if (!is_remote_ra_supported_action(action)) { action 1297 daemons/controld/controld_remote_ra.c cmd->action = pcmk__str_copy(action); action 216 daemons/controld/controld_schedulerd.c do_pe_control(long long action, action 221 daemons/controld/controld_schedulerd.c if (pcmk_is_set(action, A_PE_STOP)) { action 226 daemons/controld/controld_schedulerd.c if (pcmk_is_set(action, A_PE_START) action 323 daemons/controld/controld_schedulerd.c do_pe_invoke(long long action, action 332 daemons/controld/controld_schedulerd.c fsa_action2string(action)); action 23 daemons/controld/controld_te_actions.c void send_rsc_command(pcmk__graph_action_t *action); action 24 daemons/controld/controld_te_actions.c static void te_update_job_count(pcmk__graph_action_t *action, int offset); action 27 daemons/controld/controld_te_actions.c te_start_action_timer(const pcmk__graph_t *graph, pcmk__graph_action_t *action) action 29 daemons/controld/controld_te_actions.c action->timer = g_timeout_add(action->timeout + graph->network_delay, action 30 daemons/controld/controld_te_actions.c action_timer_callback, (void *) action); action 31 daemons/controld/controld_te_actions.c pcmk__assert(action->timer != 0); action 81 daemons/controld/controld_te_actions.c get_target_rc(pcmk__graph_action_t *action) action 85 daemons/controld/controld_te_actions.c pcmk__scan_min_int(crm_meta_value(action->params, PCMK__META_OP_TARGET_RC), action 100 daemons/controld/controld_te_actions.c execute_cluster_action(pcmk__graph_t *graph, pcmk__graph_action_t *action) action 117 daemons/controld/controld_te_actions.c id = pcmk__xe_id(action->xml); action 120 daemons/controld/controld_te_actions.c task = crm_element_value(action->xml, PCMK_XA_OPERATION); action 123 daemons/controld/controld_te_actions.c on_node = crm_element_value(action->xml, PCMK__META_ON_NODE); action 126 daemons/controld/controld_te_actions.c router_node = crm_element_value(action->xml, PCMK__XA_ROUTER_NODE); action 130 daemons/controld/controld_te_actions.c const char *mode = crm_element_value(action->xml, PCMK__XA_MODE); action 143 daemons/controld/controld_te_actions.c value = crm_meta_value(action->params, PCMK__META_OP_NO_WAIT); action 158 daemons/controld/controld_te_actions.c te_action_confirmed(action, graph); action 168 daemons/controld/controld_te_actions.c cmd = create_request(task, action->xml, router_node, CRM_SYSTEM_CRMD, CRM_SYSTEM_TENGINE, NULL); action 171 daemons/controld/controld_te_actions.c action->id, get_target_rc(action), action 182 daemons/controld/controld_te_actions.c crm_err("Action %d failed: send", action->id); action 186 daemons/controld/controld_te_actions.c te_action_confirmed(action, graph); action 189 daemons/controld/controld_te_actions.c if (action->timeout <= 0) { action 191 daemons/controld/controld_te_actions.c action->id, task, on_node, action->timeout, graph->network_delay); action 192 daemons/controld/controld_te_actions.c action->timeout = (int) graph->network_delay; action 194 daemons/controld/controld_te_actions.c te_start_action_timer(graph, action); action 217 daemons/controld/controld_te_actions.c synthesize_timeout_event(const pcmk__graph_action_t *action, int target_rc) action 220 daemons/controld/controld_te_actions.c const char *target = crm_element_value(action->xml, PCMK__META_ON_NODE); action 230 daemons/controld/controld_te_actions.c router_node = crm_element_value(action->xml, PCMK__XA_ROUTER_NODE); action 239 daemons/controld/controld_te_actions.c op = pcmk__event_from_graph_action(NULL, action, PCMK_EXEC_TIMEOUT, action 243 daemons/controld/controld_te_actions.c action->id, target_rc, action 250 daemons/controld/controld_te_actions.c controld_record_action_event(pcmk__graph_action_t *action, action 262 daemons/controld/controld_te_actions.c const char *target = crm_element_value(action->xml, PCMK__META_ON_NODE); action 263 daemons/controld/controld_te_actions.c const char *task_uuid = crm_element_value(action->xml, action 265 daemons/controld/controld_te_actions.c const char *target_uuid = crm_element_value(action->xml, action 268 daemons/controld/controld_te_actions.c int target_rc = get_target_rc(action); action 270 daemons/controld/controld_te_actions.c action_rsc = pcmk__xe_first_child(action->xml, PCMK_XE_PRIMITIVE, NULL, action 278 daemons/controld/controld_te_actions.c crm_log_xml_err(action->xml, "Bad:action"); return); action 315 daemons/controld/controld_te_actions.c rc, action->id, task_uuid, target); action 316 daemons/controld/controld_te_actions.c pcmk__set_graph_action_flags(action, pcmk__graph_action_sent_update); action 320 daemons/controld/controld_te_actions.c controld_record_action_timeout(pcmk__graph_action_t *action) action 324 daemons/controld/controld_te_actions.c const char *target = crm_element_value(action->xml, PCMK__META_ON_NODE); action 325 daemons/controld/controld_te_actions.c const char *task_uuid = crm_element_value(action->xml, action 328 daemons/controld/controld_te_actions.c int target_rc = get_target_rc(action); action 331 daemons/controld/controld_te_actions.c action->xml->name, action->id, task_uuid, target); action 333 daemons/controld/controld_te_actions.c op = synthesize_timeout_event(action, target_rc); action 334 daemons/controld/controld_te_actions.c controld_record_action_event(action, op); action 348 daemons/controld/controld_te_actions.c execute_rsc_action(pcmk__graph_t *graph, pcmk__graph_action_t *action) action 370 daemons/controld/controld_te_actions.c pcmk__assert((action != NULL) && (action->xml != NULL)); action 372 daemons/controld/controld_te_actions.c pcmk__clear_graph_action_flags(action, pcmk__graph_action_executed); action 373 daemons/controld/controld_te_actions.c on_node = crm_element_value(action->xml, PCMK__META_ON_NODE); action 377 daemons/controld/controld_te_actions.c pcmk__xe_id(action->xml), pcmk__s(task, "without task")); action 380 daemons/controld/controld_te_actions.c rsc_op = action->xml; action 382 daemons/controld/controld_te_actions.c task_uuid = crm_element_value(action->xml, PCMK__XA_OPERATION_KEY); action 390 daemons/controld/controld_te_actions.c action->id, get_target_rc(action), action 399 daemons/controld/controld_te_actions.c value = crm_meta_value(action->params, PCMK__META_OP_NO_WAIT); action 406 daemons/controld/controld_te_actions.c (no_wait? " without waiting" : ""), action->id); action 442 daemons/controld/controld_te_actions.c pcmk__set_graph_action_flags(action, pcmk__graph_action_executed); action 445 daemons/controld/controld_te_actions.c crm_err("Action %d failed: send", action->id); action 452 daemons/controld/controld_te_actions.c crm_info("Action %d confirmed - no wait", action->id); action 453 daemons/controld/controld_te_actions.c pcmk__set_graph_action_flags(action, pcmk__graph_action_confirmed); action 454 daemons/controld/controld_te_actions.c pcmk__update_graph(controld_globals.transition_graph, action); action 457 daemons/controld/controld_te_actions.c } else if (pcmk_is_set(action->flags, pcmk__graph_action_confirmed)) { action 459 daemons/controld/controld_te_actions.c action->id, task, task_uuid, on_node, action->timeout); action 461 daemons/controld/controld_te_actions.c if (action->timeout <= 0) { action 463 daemons/controld/controld_te_actions.c action->id, task, task_uuid, on_node, action->timeout, graph->network_delay); action 464 daemons/controld/controld_te_actions.c action->timeout = (int) graph->network_delay; action 466 daemons/controld/controld_te_actions.c te_update_job_count(action, 1); action 467 daemons/controld/controld_te_actions.c te_start_action_timer(graph, action); action 528 daemons/controld/controld_te_actions.c te_update_job_count(pcmk__graph_action_t *action, int offset) action 530 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, PCMK_XA_OPERATION); action 531 daemons/controld/controld_te_actions.c const char *target = crm_element_value(action->xml, PCMK__META_ON_NODE); action 533 daemons/controld/controld_te_actions.c if ((action->type != pcmk__rsc_graph_action) || (target == NULL)) { action 542 daemons/controld/controld_te_actions.c target = crm_element_value(action->xml, PCMK__XA_ROUTER_NODE); action 548 daemons/controld/controld_te_actions.c const char *t1 = crm_meta_value(action->params, action 550 daemons/controld/controld_te_actions.c const char *t2 = crm_meta_value(action->params, action 557 daemons/controld/controld_te_actions.c target = crm_element_value(action->xml, PCMK__META_ON_NODE); action 574 daemons/controld/controld_te_actions.c allowed_on_node(const pcmk__graph_t *graph, const pcmk__graph_action_t *action, action 579 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, PCMK_XA_OPERATION); action 580 daemons/controld/controld_te_actions.c const char *id = crm_element_value(action->xml, PCMK__XA_OPERATION_KEY); action 628 daemons/controld/controld_te_actions.c graph_action_allowed(pcmk__graph_t *graph, pcmk__graph_action_t *action) action 631 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, PCMK_XA_OPERATION); action 633 daemons/controld/controld_te_actions.c if (action->type != pcmk__rsc_graph_action) { action 642 daemons/controld/controld_te_actions.c target = crm_element_value(action->xml, PCMK__XA_ROUTER_NODE); action 647 daemons/controld/controld_te_actions.c target = crm_meta_value(action->params, PCMK__META_MIGRATE_SOURCE); action 648 daemons/controld/controld_te_actions.c if (!allowed_on_node(graph, action, target)) { action 652 daemons/controld/controld_te_actions.c target = crm_meta_value(action->params, PCMK__META_MIGRATE_TARGET); action 655 daemons/controld/controld_te_actions.c target = crm_element_value(action->xml, PCMK__META_ON_NODE); action 658 daemons/controld/controld_te_actions.c return allowed_on_node(graph, action, target); action 668 daemons/controld/controld_te_actions.c te_action_confirmed(pcmk__graph_action_t *action, pcmk__graph_t *graph) action 670 daemons/controld/controld_te_actions.c if (!pcmk_is_set(action->flags, pcmk__graph_action_confirmed)) { action 671 daemons/controld/controld_te_actions.c if ((action->type == pcmk__rsc_graph_action) action 672 daemons/controld/controld_te_actions.c && (crm_element_value(action->xml, PCMK__META_ON_NODE) != NULL)) { action 673 daemons/controld/controld_te_actions.c te_update_job_count(action, -1); action 675 daemons/controld/controld_te_actions.c pcmk__set_graph_action_flags(action, pcmk__graph_action_confirmed); action 678 daemons/controld/controld_te_actions.c pcmk__update_graph(graph, action); action 669 daemons/controld/controld_te_callbacks.c pcmk__graph_action_t *action = (pcmk__graph_action_t *) data; action 676 daemons/controld/controld_te_callbacks.c stop_te_timer(action); action 678 daemons/controld/controld_te_callbacks.c task = crm_element_value(action->xml, PCMK_XA_OPERATION); action 679 daemons/controld/controld_te_callbacks.c on_node = crm_element_value(action->xml, PCMK__META_ON_NODE); action 680 daemons/controld/controld_te_callbacks.c via_node = crm_element_value(action->xml, PCMK__XA_ROUTER_NODE); action 686 daemons/controld/controld_te_callbacks.c (via_node? via_node : "controller"), action->timeout); action 694 daemons/controld/controld_te_callbacks.c (action->timeout action 696 daemons/controld/controld_te_callbacks.c pcmk__log_graph_action(LOG_ERR, action); action 698 daemons/controld/controld_te_callbacks.c pcmk__set_graph_action_flags(action, pcmk__graph_action_failed); action 700 daemons/controld/controld_te_callbacks.c te_action_confirmed(action, controld_globals.transition_graph); action 705 daemons/controld/controld_te_callbacks.c if ((action->type == pcmk__rsc_graph_action) action 707 daemons/controld/controld_te_callbacks.c controld_record_action_timeout(action); action 105 daemons/controld/controld_te_events.c pcmk__graph_action_t *action = (pcmk__graph_action_t *) gIter2->data; action 107 daemons/controld/controld_te_events.c if ((action->type == pcmk__pseudo_graph_action) action 108 daemons/controld/controld_te_events.c || pcmk_is_set(action->flags, pcmk__graph_action_confirmed)) { action 110 daemons/controld/controld_te_events.c } else if (action->type == pcmk__cluster_graph_action) { action 111 daemons/controld/controld_te_events.c const char *task = crm_element_value(action->xml, action 119 daemons/controld/controld_te_events.c target_uuid = crm_element_value(action->xml, action 121 daemons/controld/controld_te_events.c router = crm_element_value(action->xml, PCMK__XA_ROUTER_NODE); action 133 daemons/controld/controld_te_events.c pcmk__set_graph_action_flags(action, pcmk__graph_action_failed); action 135 daemons/controld/controld_te_events.c last_action = action->xml; action 136 daemons/controld/controld_te_events.c stop_te_timer(action); action 137 daemons/controld/controld_te_events.c pcmk__update_graph(graph, action); action 141 daemons/controld/controld_te_events.c action->id, action 142 daemons/controld/controld_te_events.c crm_element_value(action->xml, action 147 daemons/controld/controld_te_events.c action->id, action 148 daemons/controld/controld_te_events.c crm_element_value(action->xml, PCMK__XA_OPERATION_KEY), action 297 daemons/controld/controld_te_events.c pcmk__graph_action_t *action = (pcmk__graph_action_t *) item2->data; action 299 daemons/controld/controld_te_events.c if (action->id == id) { action 300 daemons/controld/controld_te_events.c return action; action 321 daemons/controld/controld_te_events.c pcmk__graph_action_t *action = (pcmk__graph_action_t *) gIter2->data; action 323 daemons/controld/controld_te_events.c task = crm_element_value(action->xml, PCMK_XA_OPERATION); action 328 daemons/controld/controld_te_events.c task = crm_element_value(action->xml, PCMK__XA_OPERATION_KEY); action 334 daemons/controld/controld_te_events.c target = crm_element_value(action->xml, PCMK__META_ON_NODE_UUID); action 341 daemons/controld/controld_te_events.c return action; action 524 daemons/controld/controld_te_events.c pcmk__graph_action_t *action = controld_get_action(action_num); action 526 daemons/controld/controld_te_events.c if (action == NULL) { action 532 daemons/controld/controld_te_events.c } else if (pcmk_is_set(action->flags, pcmk__graph_action_confirmed)) { action 547 daemons/controld/controld_te_events.c if (pcmk__str_eq(crm_meta_value(action->params, PCMK_META_ON_FAIL), action 552 daemons/controld/controld_te_events.c pcmk__set_graph_action_flags(action, pcmk__graph_action_failed); action 555 daemons/controld/controld_te_events.c stop_te_timer(action); action 556 daemons/controld/controld_te_events.c te_action_confirmed(action, controld_globals.transition_graph); action 558 daemons/controld/controld_te_events.c if (pcmk_is_set(action->flags, pcmk__graph_action_failed)) { action 559 daemons/controld/controld_te_events.c abort_transition(action->synapse->priority + 1, action 22 daemons/controld/controld_te_utils.c stop_te_timer(pcmk__graph_action_t *action) action 24 daemons/controld/controld_te_utils.c if (action == NULL) { action 27 daemons/controld/controld_te_utils.c if (action->timer != 0) { action 29 daemons/controld/controld_te_utils.c g_source_remove(action->timer); action 30 daemons/controld/controld_te_utils.c action->timer = 0; action 129 daemons/controld/controld_te_utils.c enum pcmk__graph_next action; action 139 daemons/controld/controld_te_utils.c abort_transition(abort_timer->priority, abort_timer->action, action 162 daemons/controld/controld_te_utils.c abort_timer.action = abort_action; action 236 daemons/controld/controld_te_utils.c node_pending_timer->action = pcmk__graph_restart; action 314 daemons/controld/controld_te_utils.c enum pcmk__graph_next action, const char *abort_reason) action 332 daemons/controld/controld_te_utils.c if (graph->completion_action < action) { action 334 daemons/controld/controld_te_utils.c abort2text(graph->completion_action), abort2text(action), abort_reason); action 335 daemons/controld/controld_te_utils.c graph->completion_action = action; action 138 daemons/controld/controld_timers.c do_timer_control(long long action, action 145 daemons/controld/controld_timers.c if (action & A_DC_TIMER_STOP) { action 148 daemons/controld/controld_timers.c } else if (action & A_FINALIZE_TIMER_STOP) { action 151 daemons/controld/controld_timers.c } else if (action & A_INTEGRATE_TIMER_STOP) { action 156 daemons/controld/controld_timers.c if (action & A_DC_TIMER_START && timer_op_ok) { action 163 daemons/controld/controld_timers.c } else if (action & A_FINALIZE_TIMER_START) { action 166 daemons/controld/controld_timers.c } else if (action & A_INTEGRATE_TIMER_START) { action 30 daemons/controld/controld_transition.c do_te_control(long long action, action 38 daemons/controld/controld_transition.c if (pcmk_is_set(action, A_TE_STOP)) { action 52 daemons/controld/controld_transition.c if ((action & A_TE_START) == 0) { action 60 daemons/controld/controld_transition.c } else if ((action & A_TE_START) && cur_state == S_STOPPING) { action 94 daemons/controld/controld_transition.c do_te_invoke(long long action, action 102 daemons/controld/controld_transition.c && pcmk_is_set(action, A_TE_INVOKE))) { action 104 daemons/controld/controld_transition.c fsa_action2string(action), action 109 daemons/controld/controld_transition.c if (action & A_TE_CANCEL) { action 118 daemons/controld/controld_transition.c } else if (action & A_TE_HALT) { action 125 daemons/controld/controld_transition.c } else if (action & A_TE_INVOKE) { action 21 daemons/controld/controld_transition.h void controld_record_action_timeout(pcmk__graph_action_t *action); action 31 daemons/controld/controld_transition.h gboolean stop_te_timer(pcmk__graph_action_t *action); action 59 daemons/controld/controld_transition.h # define abort_transition(pri, action, text, reason) \ action 60 daemons/controld/controld_transition.h abort_transition_graph(pri, action, text, reason,__func__,__LINE__); action 62 daemons/controld/controld_transition.h void te_action_confirmed(pcmk__graph_action_t *action, pcmk__graph_t *graph); action 244 daemons/controld/controld_utils.c fsa_action2string(long long action) action 248 daemons/controld/controld_utils.c switch (action) { action 440 daemons/controld/controld_utils.c crm_err("Action %.16llx is unknown", action); action 529 daemons/controld/controld_utils.c fsa_dump_actions(uint64_t action, const char *text) action 531 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_READCONFIG)) { action 534 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_STARTUP)) { action 537 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_STARTED)) { action 540 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_HA_CONNECT)) { action 543 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_HA_DISCONNECT)) { action 546 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_LRM_CONNECT)) { action 549 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_LRM_EVENT)) { action 552 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_LRM_INVOKE)) { action 555 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_LRM_DISCONNECT)) { action 558 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_DC_TIMER_STOP)) { action 561 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_DC_TIMER_START)) { action 564 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_INTEGRATE_TIMER_START)) { action 567 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_INTEGRATE_TIMER_STOP)) { action 570 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_FINALIZE_TIMER_START)) { action 573 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_FINALIZE_TIMER_STOP)) { action 576 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_ELECTION_COUNT)) { action 579 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_ELECTION_VOTE)) { action 582 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_ELECTION_CHECK)) { action 585 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_CL_JOIN_ANNOUNCE)) { action 588 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_CL_JOIN_REQUEST)) { action 591 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_CL_JOIN_RESULT)) { action 594 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_DC_JOIN_OFFER_ALL)) { action 597 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_DC_JOIN_OFFER_ONE)) { action 600 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_DC_JOIN_PROCESS_REQ)) { action 603 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_DC_JOIN_PROCESS_ACK)) { action 606 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_DC_JOIN_FINALIZE)) { action 609 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_MSG_PROCESS)) { action 612 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_MSG_ROUTE)) { action 615 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_RECOVER)) { action 618 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_DC_RELEASE)) { action 621 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_DC_RELEASED)) { action 624 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_DC_TAKEOVER)) { action 627 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_SHUTDOWN)) { action 630 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_SHUTDOWN_REQ)) { action 633 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_STOP)) { action 636 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_EXIT_0)) { action 639 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_EXIT_1)) { action 642 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_CIB_START)) { action 645 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_CIB_STOP)) { action 648 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_TE_INVOKE)) { action 651 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_TE_START)) { action 654 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_TE_STOP)) { action 657 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_TE_CANCEL)) { action 660 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_PE_INVOKE)) { action 663 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_PE_START)) { action 666 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_PE_STOP)) { action 669 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_NODE_BLOCK)) { action 672 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_UPDATE_NODESTATUS)) { action 675 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_LOG)) { action 678 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_ERROR)) { action 681 daemons/controld/controld_utils.c if (pcmk_is_set(action, A_WARN)) { action 35 daemons/controld/controld_utils.h void fsa_dump_actions(uint64_t action, const char *text); action 51 daemons/execd/cts-exec-helper.c const char *action; action 124 daemons/execd/cts-exec-helper.c { "action", 'a', 0, G_OPTION_ARG_STRING, &options.action, action 294 daemons/execd/cts-exec-helper.c options.action, action 329 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->cancel(lrmd_conn, options.rsc_id, options.action, action 404 daemons/execd/cts-exec-helper.c op_info->rsc_id, op_info->action, action 411 daemons/execd/cts-exec-helper.c print_result("API-CALL FAILURE unknown action '%s'", options.action); action 592 daemons/execd/cts-exec-helper.c options.action = PCMK_ACTION_MONITOR; action 70 daemons/execd/execd_alerts.c alert_complete(svc_action_t *action) action 72 daemons/execd/execd_alerts.c struct alert_cb_s *cb_data = (struct alert_cb_s *) (action->cb_data); action 78 daemons/execd/execd_alerts.c if (action->status != PCMK_EXEC_DONE) { action 79 daemons/execd/execd_alerts.c const char *reason = services__exit_reason(action); action 82 daemons/execd/execd_alerts.c pcmk_exec_status_str(action->status), action 88 daemons/execd/execd_alerts.c } else if (action->rc != 0) { action 91 daemons/execd/execd_alerts.c action->pid, action->rc, cb_data->client_id); action 95 daemons/execd/execd_alerts.c action->pid, cb_data->client_id); action 99 daemons/execd/execd_alerts.c free(action->cb_data); action 100 daemons/execd/execd_alerts.c action->cb_data = NULL; action 113 daemons/execd/execd_alerts.c svc_action_t *action = NULL; action 142 daemons/execd/execd_alerts.c action = services_alert_create(alert_id, alert_path, alert_timeout, params, action 144 daemons/execd/execd_alerts.c if (action->rc != PCMK_OCF_UNKNOWN) { action 149 daemons/execd/execd_alerts.c rc = services_action_user(action, CRM_DAEMON_USER); action 155 daemons/execd/execd_alerts.c if (services_alert_async(action, alert_complete) == FALSE) { action 156 daemons/execd/execd_alerts.c services_action_free(action); action 165 daemons/execd/execd_alerts.c services_action_free(action); action 57 daemons/execd/execd_commands.c char *action; action 196 daemons/execd/execd_commands.c action_matches(const lrmd_cmd_t *cmd, const char *action, guint interval_ms) action 199 daemons/execd/execd_commands.c && pcmk__str_eq(cmd->action, action, pcmk__str_casei); action 216 daemons/execd/execd_commands.c if (pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR, pcmk__str_casei)) { action 221 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, cmd->call_id); action 256 daemons/execd/execd_commands.c if (pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR, pcmk__str_casei)) { action 261 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, cmd->call_id); action 265 daemons/execd/execd_commands.c normalize_action_name(lrmd_rsc_t * rsc, const char *action) action 267 daemons/execd/execd_commands.c if (pcmk__str_eq(action, PCMK_ACTION_MONITOR, pcmk__str_casei) && action 271 daemons/execd/execd_commands.c return action; action 319 daemons/execd/execd_commands.c cmd->action = crm_element_value_copy(rsc_xml, PCMK__XA_LRMD_RSC_ACTION); action 330 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, cmd->interval_ms); action 333 daemons/execd/execd_commands.c cmd->action, 0, action 363 daemons/execd/execd_commands.c free(cmd->action); action 437 daemons/execd/execd_commands.c if (action_matches(cmd, dup->action, dup->interval_ms)) { action 478 daemons/execd/execd_commands.c rsc->rsc_id, normalize_action_name(rsc, dup->action), action 501 daemons/execd/execd_commands.c normalize_action_name(rsc, dup->action), action 514 daemons/execd/execd_commands.c crm_trace("Scheduling %s on %s", cmd->action, rsc->rsc_id); action 524 daemons/execd/execd_commands.c if (pcmk__str_eq(cmd->action, PCMK_ACTION_STOP, pcmk__str_casei)) { action 647 daemons/execd/execd_commands.c crm_xml_add(notify, PCMK__XA_LRMD_RSC_ACTION, cmd->action); action 731 daemons/execd/execd_commands.c crm_trace("Resource operation rsc:%s action:%s completed (%p %p)", cmd->rsc_id, cmd->action, action 814 daemons/execd/execd_commands.c action_complete(svc_action_t * action) action 817 daemons/execd/execd_commands.c lrmd_cmd_t *cmd = action->cb_data; action 827 daemons/execd/execd_commands.c action->id); action 832 daemons/execd/execd_commands.c if (cmd->result.exit_status != action->rc) { action 837 daemons/execd/execd_commands.c cmd->last_pid = action->pid; action 840 daemons/execd/execd_commands.c code = services_result2ocf(action->standard, cmd->action, action->rc); action 842 daemons/execd/execd_commands.c action->status, services__exit_reason(action)); action 859 daemons/execd/execd_commands.c && pcmk__strcase_any_of(cmd->action, PCMK_ACTION_START, action 867 daemons/execd/execd_commands.c cmd->real_action = cmd->action; action 868 daemons/execd/execd_commands.c cmd->action = pcmk__str_copy(PCMK_ACTION_MONITOR); action 915 daemons/execd/execd_commands.c } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_START, pcmk__str_casei) action 945 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, time_sum, timeout_left, delay); action 949 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, action 967 daemons/execd/execd_commands.c (cmd->real_action? cmd->real_action : cmd->action), action 978 daemons/execd/execd_commands.c pcmk__set_result_output(&(cmd->result), services__grab_stdout(action), action 979 daemons/execd/execd_commands.c services__grab_stderr(action)); action 1026 daemons/execd/execd_commands.c if (pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR, action 1030 daemons/execd/execd_commands.c } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_STOP, action 1054 daemons/execd/execd_commands.c if (pcmk__str_eq(cmd->action, PCMK_ACTION_START, pcmk__str_casei)) { action 1058 daemons/execd/execd_commands.c } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_STOP, action 1255 daemons/execd/execd_commands.c if (pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR, pcmk__str_casei) action 1269 daemons/execd/execd_commands.c } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_START, pcmk__str_casei)) { action 1275 daemons/execd/execd_commands.c } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_STOP, pcmk__str_casei)) { action 1278 daemons/execd/execd_commands.c } else if (pcmk__str_eq(cmd->action, PCMK_ACTION_MONITOR, action 1306 daemons/execd/execd_commands.c svc_action_t *action = NULL; action 1312 daemons/execd/execd_commands.c rsc->rsc_id, cmd->action, rsc->class, rsc->provider, rsc->type); action 1317 daemons/execd/execd_commands.c && pcmk__str_eq(cmd->action, PCMK_ACTION_STOP, pcmk__str_casei)) { action 1327 daemons/execd/execd_commands.c action = services__create_resource_action(rsc->rsc_id, rsc->class, rsc->provider, action 1329 daemons/execd/execd_commands.c normalize_action_name(rsc, cmd->action), action 1333 daemons/execd/execd_commands.c if (action == NULL) { action 1340 daemons/execd/execd_commands.c if (action->rc != PCMK_OCF_UNKNOWN) { action 1341 daemons/execd/execd_commands.c pcmk__set_result(&(cmd->result), action->rc, action->status, action 1342 daemons/execd/execd_commands.c services__exit_reason(action)); action 1343 daemons/execd/execd_commands.c services_action_free(action); action 1348 daemons/execd/execd_commands.c action->cb_data = cmd; action 1350 daemons/execd/execd_commands.c if (services_action_async(action, action_complete)) { action 1368 daemons/execd/execd_commands.c pcmk__set_result(&(cmd->result), action->rc, action->status, action 1369 daemons/execd/execd_commands.c services__exit_reason(action)); action 1370 daemons/execd/execd_commands.c services_action_free(action); action 1394 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, cmd->start_delay); action 1469 daemons/execd/execd_commands.c normalize_action_name(rsc, cmd->action), action 1655 daemons/execd/execd_commands.c cancel_op(const char *rsc_id, const char *action, guint interval_ms) action 1678 daemons/execd/execd_commands.c if (action_matches(cmd, action, interval_ms)) { action 1691 daemons/execd/execd_commands.c if (action_matches(cmd, action, interval_ms)) { action 1700 daemons/execd/execd_commands.c normalize_action_name(rsc, action), action 1745 daemons/execd/execd_commands.c cancel_op(rsc->rsc_id, cmd->action, cmd->interval_ms); action 1757 daemons/execd/execd_commands.c const char *action = crm_element_value(rsc_xml, PCMK__XA_LRMD_RSC_ACTION); action 1762 daemons/execd/execd_commands.c if (!rsc_id || !action) { action 1766 daemons/execd/execd_commands.c return cancel_op(rsc_id, action, interval_ms); action 1780 daemons/execd/execd_commands.c pcmk__s(cmd->real_action, cmd->action)); action 47 daemons/fenced/fenced_commands.c char *action; action 98 daemons/fenced/fenced_commands.c char *action; action 121 daemons/fenced/fenced_commands.c is_action_required(const char *action, const stonith_device_t *device) action 124 daemons/fenced/fenced_commands.c && pcmk__str_eq(action, PCMK_ACTION_ON, pcmk__str_none); action 128 daemons/fenced/fenced_commands.c get_action_delay_max(const stonith_device_t *device, const char *action) action 133 daemons/fenced/fenced_commands.c if (!pcmk__is_fencing_action(action)) { action 147 daemons/fenced/fenced_commands.c get_action_delay_base(const stonith_device_t *device, const char *action, action 153 daemons/fenced/fenced_commands.c if (!pcmk__is_fencing_action(action)) { action 213 daemons/fenced/fenced_commands.c get_action_timeout(const stonith_device_t *device, const char *action, action 216 daemons/fenced/fenced_commands.c if (action && device && device->params) { action 223 daemons/fenced/fenced_commands.c if (pcmk__str_eq(action, PCMK_ACTION_REBOOT, pcmk__str_none) action 227 daemons/fenced/fenced_commands.c action = PCMK_ACTION_OFF; action 231 daemons/fenced/fenced_commands.c snprintf(buffer, sizeof(buffer), "pcmk_%s_timeout", action); action 269 daemons/fenced/fenced_commands.c const char *action = NULL; action 275 daemons/fenced/fenced_commands.c action = g_hash_table_lookup(device->params, "pcmk_reboot_action"); action 278 daemons/fenced/fenced_commands.c return pcmk__s(action, PCMK_ACTION_REBOOT); action 317 daemons/fenced/fenced_commands.c free(cmd->action); action 357 daemons/fenced/fenced_commands.c cmd->action = crm_element_value_copy(op, PCMK__XA_ST_DEVICE_ACTION); action 360 daemons/fenced/fenced_commands.c if ((cmd->action == NULL) || (cmd->op == NULL) || (cmd->client == NULL)) { action 439 daemons/fenced/fenced_commands.c cmd->action, pid, action 499 daemons/fenced/fenced_commands.c stonith_action_t *action = NULL; action 524 daemons/fenced/fenced_commands.c pending_op->action, action 545 daemons/fenced/fenced_commands.c if (pcmk__is_fencing_action(cmd->action)) { action 551 daemons/fenced/fenced_commands.c crm_info("Faking success for %s watchdog operation", cmd->action); action 560 daemons/fenced/fenced_commands.c if (pcmk__str_eq(cmd->action, PCMK_ACTION_STOP, pcmk__str_none)) { action 575 daemons/fenced/fenced_commands.c action_str = cmd->action; action 576 daemons/fenced/fenced_commands.c if (pcmk__str_eq(cmd->action, PCMK_ACTION_REBOOT, pcmk__str_none) action 593 daemons/fenced/fenced_commands.c action = stonith__action_create(device->agent, action_str, cmd->target, action 600 daemons/fenced/fenced_commands.c exec_rc = stonith__execute_async(action, (void *)cmd, cmd->done_cb, action 604 daemons/fenced/fenced_commands.c cmd->done_cb(0, stonith__action_result(action), cmd); action 605 daemons/fenced/fenced_commands.c stonith__destroy_action(action); action 660 daemons/fenced/fenced_commands.c cmd->timeout = get_action_timeout(device, cmd->action, cmd->default_timeout); action 665 daemons/fenced/fenced_commands.c cmd->action, action 671 daemons/fenced/fenced_commands.c cmd->action, action 685 daemons/fenced/fenced_commands.c delay_max = get_action_delay_max(device, cmd->action); action 686 daemons/fenced/fenced_commands.c delay_base = get_action_delay_base(device, cmd->action, cmd->target); action 694 daemons/fenced/fenced_commands.c delay_base, delay_max, cmd->action, device->id); action 707 daemons/fenced/fenced_commands.c cmd->action, action 729 daemons/fenced/fenced_commands.c crm_warn("Removal of device '%s' purged operation '%s'", device->id, cmd->action); action 948 daemons/fenced/fenced_commands.c const char *action = NULL; action 954 daemons/fenced/fenced_commands.c action = crm_element_value(match, PCMK_XA_NAME); action 956 daemons/fenced/fenced_commands.c if (pcmk__str_eq(action, PCMK_ACTION_LIST, pcmk__str_none)) { action 959 daemons/fenced/fenced_commands.c } else if (pcmk__str_eq(action, PCMK_ACTION_STATUS, pcmk__str_none)) { action 962 daemons/fenced/fenced_commands.c } else if (pcmk__str_eq(action, PCMK_ACTION_REBOOT, pcmk__str_none)) { action 965 daemons/fenced/fenced_commands.c } else if (pcmk__str_eq(action, PCMK_ACTION_ON, pcmk__str_none)) { action 980 daemons/fenced/fenced_commands.c if ((action != NULL) action 983 daemons/fenced/fenced_commands.c pcmk__add_word(&(device->on_target_actions), 64, action); action 999 daemons/fenced/fenced_commands.c map_action(GHashTable *params, const char *action, const char *value) action 1001 daemons/fenced/fenced_commands.c char *key = crm_strdup_printf("pcmk_%s_action", action); action 1167 daemons/fenced/fenced_commands.c const char *action, action 1182 daemons/fenced/fenced_commands.c cmd->action = pcmk__str_copy(action); action 1966 daemons/fenced/fenced_commands.c const char *action = crm_element_value(op, PCMK__XA_ST_DEVICE_ACTION); action 1970 daemons/fenced/fenced_commands.c if ((id == NULL) || (action == NULL)) { action 1973 daemons/fenced/fenced_commands.c (action? action : "not specified")); action 1985 daemons/fenced/fenced_commands.c } else if (pcmk__str_eq(action, PCMK_ACTION_LIST, pcmk__str_none)) { action 1993 daemons/fenced/fenced_commands.c } else if (pcmk__str_eq(action, PCMK_ACTION_MONITOR, pcmk__str_none)) { action 2002 daemons/fenced/fenced_commands.c action, id); action 2008 daemons/fenced/fenced_commands.c && (strcmp(action, PCMK_ACTION_MONITOR) == 0)) { action 2011 daemons/fenced/fenced_commands.c action, id); action 2049 daemons/fenced/fenced_commands.c (search->action? search->action : "unknown action"), action 2054 daemons/fenced/fenced_commands.c free(search->action); action 2071 daemons/fenced/fenced_commands.c localhost_is_eligible(const stonith_device_t *device, const char *action, action 2077 daemons/fenced/fenced_commands.c if ((device != NULL) && (action != NULL) action 2080 daemons/fenced/fenced_commands.c action) != NULL)) { action 2084 daemons/fenced/fenced_commands.c "host, not %s", action, device->id, target); action 2089 daemons/fenced/fenced_commands.c crm_trace("'%s' operation does not support self-fencing", action); action 2109 daemons/fenced/fenced_commands.c const char *action, const char *target, action 2113 daemons/fenced/fenced_commands.c if (localhost_is_eligible(device, action, target, allow_self)) { action 2119 daemons/fenced/fenced_commands.c if (pcmk__str_eq(action, PCMK_ACTION_REBOOT, pcmk__str_none)) { action 2143 daemons/fenced/fenced_commands.c const char *action = (search == NULL)? NULL : search->action; action 2145 daemons/fenced/fenced_commands.c CRM_CHECK((dev != NULL) && (action != NULL), goto search_report_results); action 2161 daemons/fenced/fenced_commands.c if (pcmk__str_eq(action, PCMK_ACTION_ON, pcmk__str_none) action 2166 daemons/fenced/fenced_commands.c } else if (!localhost_is_eligible_with_remap(dev, action, target, action 2204 daemons/fenced/fenced_commands.c check_type, dev_id, target, action); action 2229 daemons/fenced/fenced_commands.c check_type, dev_id, target, action); action 2241 daemons/fenced/fenced_commands.c dev_id, (can? "" : " not"), pcmk__s(action, "unspecified action"), action 2259 daemons/fenced/fenced_commands.c get_capable_devices(const char *host, const char *action, int timeout, action 2275 daemons/fenced/fenced_commands.c search->action = pcmk__str_copy(action); action 2289 daemons/fenced/fenced_commands.c (search->action? search->action : "unknown action"), action 2299 daemons/fenced/fenced_commands.c char *action; action 2313 daemons/fenced/fenced_commands.c add_action_specific_attributes(xmlNode *xml, const char *action, action 2321 daemons/fenced/fenced_commands.c CRM_CHECK(xml && action && device, return); action 2324 daemons/fenced/fenced_commands.c if (is_action_required(action, device)) { action 2325 daemons/fenced/fenced_commands.c crm_trace("Action '%s' is required using %s", action, device->id); action 2330 daemons/fenced/fenced_commands.c action_specific_timeout = get_action_timeout(device, action, 0); action 2333 daemons/fenced/fenced_commands.c action, action_specific_timeout, device->id); action 2338 daemons/fenced/fenced_commands.c delay_max = get_action_delay_max(device, action); action 2341 daemons/fenced/fenced_commands.c action, delay_max, device->id); action 2345 daemons/fenced/fenced_commands.c delay_base = get_action_delay_base(device, action, target); action 2352 daemons/fenced/fenced_commands.c action, delay_max, device->id); action 2355 daemons/fenced/fenced_commands.c action, delay_base, device->id); action 2359 daemons/fenced/fenced_commands.c action, delay_base, delay_max, device->id); action 2374 daemons/fenced/fenced_commands.c add_disallowed(xmlNode *xml, const char *action, const stonith_device_t *device, action 2377 daemons/fenced/fenced_commands.c if (!localhost_is_eligible(device, action, target, allow_self)) { action 2379 daemons/fenced/fenced_commands.c action, device->id); action 2395 daemons/fenced/fenced_commands.c add_action_reply(xmlNode *xml, const char *action, action 2401 daemons/fenced/fenced_commands.c crm_xml_add(child, PCMK_XA_ID, action); action 2402 daemons/fenced/fenced_commands.c add_action_specific_attributes(child, action, device, target); action 2403 daemons/fenced/fenced_commands.c add_disallowed(child, action, device, target, allow_self); action 2459 daemons/fenced/fenced_commands.c const char *action = query->action; action 2484 daemons/fenced/fenced_commands.c && pcmk__str_eq(query->action, PCMK_ACTION_REBOOT, action 2488 daemons/fenced/fenced_commands.c action = PCMK_ACTION_OFF; action 2492 daemons/fenced/fenced_commands.c add_action_specific_attributes(dev, action, device, query->target); action 2493 daemons/fenced/fenced_commands.c if (pcmk__str_eq(query->action, PCMK_ACTION_REBOOT, pcmk__str_none)) { action 2505 daemons/fenced/fenced_commands.c add_disallowed(dev, action, device, query->target, action 2542 daemons/fenced/fenced_commands.c free(query->action); action 2572 daemons/fenced/fenced_commands.c && !pcmk__str_eq(cmd->action, PCMK_ACTION_METADATA, action 2580 daemons/fenced/fenced_commands.c && !pcmk__str_eq(cmd->action, PCMK_ACTION_METADATA, action 2587 daemons/fenced/fenced_commands.c pcmk__g_strcat(msg, "Operation '", cmd->action, "' ", NULL); action 2668 daemons/fenced/fenced_commands.c if (!stand_alone && pcmk__is_fencing_action(cmd->action) action 2674 daemons/fenced/fenced_commands.c cmd->action, cmd->target); action 2711 daemons/fenced/fenced_commands.c cmd->action, device->id); action 2758 daemons/fenced/fenced_commands.c !pcmk__str_eq(cmd->action, cmd_other->action, pcmk__str_none) || action 2766 daemons/fenced/fenced_commands.c cmd_other->action, action 2796 daemons/fenced/fenced_commands.c if (is_action_required(cmd->action, next_device)) { action 2823 daemons/fenced/fenced_commands.c && pcmk__strcase_any_of(cmd->action, PCMK_ACTION_LIST, action 2837 daemons/fenced/fenced_commands.c && !is_action_required(cmd->action, device)) { action 2960 daemons/fenced/fenced_commands.c get_capable_devices(host, cmd->action, cmd->default_timeout, action 2962 daemons/fenced/fenced_commands.c fenced_support_flag(cmd->action)); action 3158 daemons/fenced/fenced_commands.c relay_op->id, relay_op->action, action 3161 daemons/fenced/fenced_commands.c relay_op->client_name, op_id, relay_op->action, action 3242 daemons/fenced/fenced_commands.c const char *action = NULL; action 3267 daemons/fenced/fenced_commands.c action = crm_element_value(dev, PCMK__XA_ST_DEVICE_ACTION); action 3278 daemons/fenced/fenced_commands.c query->action = pcmk__str_copy(action); action 3282 daemons/fenced/fenced_commands.c get_capable_devices(target, action, timeout, action 3369 daemons/fenced/fenced_commands.c const char *action = crm_element_value(dev, PCMK__XA_ST_DEVICE_ACTION); action 3376 daemons/fenced/fenced_commands.c pcmk__request_origin(request), action, action 3379 daemons/fenced/fenced_commands.c if (stonith_check_fence_tolerance(tolerance, target, action)) { action 3389 daemons/fenced/fenced_commands.c request->peer, action, target, action 266 daemons/fenced/fenced_history.c op->action = crm_element_value_copy(xml_op, PCMK__XA_ST_DEVICE_ACTION); action 385 daemons/fenced/fenced_history.c crm_xml_add(entry, PCMK__XA_ST_DEVICE_ACTION, op->action); action 211 daemons/fenced/fenced_remote.c fenced_support_flag(op->action)); action 250 daemons/fenced/fenced_remote.c free(op->action); action 294 daemons/fenced/fenced_remote.c return ((op->phase > st_phase_requested)? PCMK_ACTION_REBOOT : op->action); action 313 daemons/fenced/fenced_remote.c strcpy(op->action, PCMK_ACTION_OFF); action 331 daemons/fenced/fenced_remote.c strcpy(op->action, PCMK_ACTION_ON); action 364 daemons/fenced/fenced_remote.c strcpy(op->action, PCMK_ACTION_REBOOT); action 385 daemons/fenced/fenced_remote.c crm_xml_add(notify_data, PCMK__XA_ST_DEVICE_ACTION, op->action); action 453 daemons/fenced/fenced_remote.c crm_xml_add(data, PCMK__XA_ST_OP, op->action); action 557 daemons/fenced/fenced_remote.c op->action, (op->target? " targeting " : ""), action 610 daemons/fenced/fenced_remote.c CRM_XS " id=%.8s", op->action, (op->target? " targeting " : ""), action 659 daemons/fenced/fenced_remote.c op->action, op->target, op->client_name, op->id); action 674 daemons/fenced/fenced_remote.c " id=%.8s", op->action, op->target, op->client_name, op->id); action 683 daemons/fenced/fenced_remote.c op->action, op->target, op->client_name, op->id); action 703 daemons/fenced/fenced_remote.c op->action, op->target, op->client_name, op->id); action 737 daemons/fenced/fenced_remote.c op->action, op->target, op->client_name, op->id); action 976 daemons/fenced/fenced_remote.c && pcmk__str_eq(op->action, PCMK_ACTION_REBOOT, pcmk__str_none)) { action 1026 daemons/fenced/fenced_remote.c if (!pcmk__str_eq(op->action, other_action, pcmk__str_none)) { action 1028 daemons/fenced/fenced_remote.c op->id, other->id, op->action, other_action); action 1048 daemons/fenced/fenced_remote.c other->action, other->target, other->client_name, action 1076 daemons/fenced/fenced_remote.c op->action, op->target, op->client_name, action 1190 daemons/fenced/fenced_remote.c op->action = crm_element_value_copy(dev, PCMK__XA_ST_DEVICE_ACTION); action 1238 daemons/fenced/fenced_remote.c (peer && dev)? "Recorded" : "Generated", op->id, op->action, action 1311 daemons/fenced/fenced_remote.c CRM_CHECK(op->action, return NULL); action 1323 daemons/fenced/fenced_remote.c CRM_XS " id=%.8s", op->action, op->target, op->id); action 1329 daemons/fenced/fenced_remote.c CRM_XS " id=%.8s", op->action, op->target, op->id); action 1335 daemons/fenced/fenced_remote.c op->action, op->target, op->id, action 1383 daemons/fenced/fenced_remote.c && pcmk__is_fencing_action(op->action) action 1418 daemons/fenced/fenced_remote.c fenced_support_flag(op->action))) { action 1439 daemons/fenced/fenced_remote.c op->action, op->target, device); action 1442 daemons/fenced/fenced_remote.c op->action, op->target); action 1491 daemons/fenced/fenced_remote.c op->action, op->target, (device? device : "any device")); action 1514 daemons/fenced/fenced_remote.c op->action, specified_timeout, device? device : "watchdog", action 1617 daemons/fenced/fenced_remote.c if (pcmk__str_eq(op->action, PCMK_ACTION_ON, pcmk__str_none) action 1648 daemons/fenced/fenced_remote.c fenced_support_flag(op->action))) { action 1779 daemons/fenced/fenced_remote.c && pcmk__str_eq(op->action, PCMK_ACTION_ON, pcmk__str_none)) { action 1830 daemons/fenced/fenced_remote.c pcmk__readable_interval(timeout_ms), op->target, op->action, action 1944 daemons/fenced/fenced_remote.c crm_xml_add(remote_op, PCMK__XA_ST_DEVICE_ACTION, op->action); action 1957 daemons/fenced/fenced_remote.c peer->host, op->action, op->target, device, action 1965 daemons/fenced/fenced_remote.c peer->host, op->action, op->target, op->client_name, action 2018 daemons/fenced/fenced_remote.c op->action, op->target, op->client_name); action 2023 daemons/fenced/fenced_remote.c CRM_XS " state=%s", op->action, op->target, op->client_name, action 2048 daemons/fenced/fenced_remote.c op->replies, op->action, op->target, op->client_name, action 2069 daemons/fenced/fenced_remote.c op->replies, op->action, op->target, op->client_name, action 2079 daemons/fenced/fenced_remote.c op->action, op->target, (device? " using " : ""), action 2124 daemons/fenced/fenced_remote.c if (pcmk__is_fencing_action(op->action)) { action 2164 daemons/fenced/fenced_remote.c const char *action, remote_fencing_op_t *op, action 2172 daemons/fenced/fenced_remote.c peer, device, action, props->custom_action_timeout[phase]); action 2179 daemons/fenced/fenced_remote.c peer, device, props->delay_max[phase], action); action 2187 daemons/fenced/fenced_remote.c peer, device, props->delay_base[phase], action); action 2191 daemons/fenced/fenced_remote.c if (pcmk__str_eq(action, PCMK_ACTION_ON, pcmk__str_none)) { action 2197 daemons/fenced/fenced_remote.c peer, device, action); action 2208 daemons/fenced/fenced_remote.c peer, action, device); action 2368 daemons/fenced/fenced_remote.c op->target, op->action, ndevices, pcmk__plural_s(ndevices), id); action 2392 daemons/fenced/fenced_remote.c fenced_support_flag(op->action)); action 2476 daemons/fenced/fenced_remote.c device, (const char *) op->devices->data, op->action, op->target); action 2527 daemons/fenced/fenced_remote.c op->action, op->target, action 2577 daemons/fenced/fenced_remote.c stonith_check_fence_tolerance(int tolerance, const char *target, const char *action) action 2584 daemons/fenced/fenced_remote.c action == NULL) { action 2597 daemons/fenced/fenced_remote.c } else if (strcmp(rop->action, action) != 0) { action 2604 daemons/fenced/fenced_remote.c target, action, tolerance, rop->delegate, rop->originator); action 27 daemons/fenced/pacemaker-fenced.h gboolean stonith_check_fence_tolerance(int tolerance, const char *target, const char *action); action 83 daemons/fenced/pacemaker-fenced.h char *action; action 314 daemons/fenced/pacemaker-fenced.h fenced_support_flag(const char *action) action 316 daemons/fenced/pacemaker-fenced.h if (pcmk__str_eq(action, PCMK_ACTION_ON, pcmk__str_none)) { action 322 include/crm/common/actions.h pcmk_action_t *action; // Action to be sequenced action 383 include/crm/common/actions.h const char *pcmk_action_text(enum action_tasks action); action 40 include/crm/common/actions_internal.h #define pcmk__set_action_flags(action, flags_to_set) do { \ action 41 include/crm/common/actions_internal.h (action)->flags = pcmk__set_flags_as(__func__, __LINE__, \ action 43 include/crm/common/actions_internal.h "Action", (action)->uuid, \ action 44 include/crm/common/actions_internal.h (action)->flags, \ action 56 include/crm/common/actions_internal.h #define pcmk__clear_action_flags(action, flags_to_clear) do { \ action 57 include/crm/common/actions_internal.h (action)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ action 59 include/crm/common/actions_internal.h "Action", (action)->uuid, \ action 60 include/crm/common/actions_internal.h (action)->flags, \ action 102 include/crm/common/actions_internal.h bool pcmk__is_fencing_action(const char *action); action 61 include/crm/fencing/internal.h void stonith__destroy_action(stonith_action_t *action); action 62 include/crm/fencing/internal.h pcmk__action_result_t *stonith__action_result(stonith_action_t *action); action 68 include/crm/fencing/internal.h int stonith__execute_async(stonith_action_t *action, void *userdata, action 176 include/crm/lrmd.h char *action; action 349 include/crm/lrmd.h int (*exec) (lrmd_t *lrmd, const char *rsc_id, const char *action, action 372 include/crm/lrmd.h int (*cancel) (lrmd_t *lrmd, const char *rsc_id, const char *action, action 103 include/crm/pengine/internal.h void pe__order_notifs_after_fencing(const pcmk_action_t *action, action 246 include/crm/pengine/internal.h extern void pe_free_action(pcmk_action_t *action); action 308 include/crm/pengine/internal.h char *pe__action2reason(const pcmk_action_t *action, enum pe_action_flags flag); action 309 include/crm/pengine/internal.h void pe_action_set_reason(pcmk_action_t *action, const char *reason, action 311 include/crm/pengine/internal.h void pe__add_action_expected_result(pcmk_action_t *action, int expected_result); action 132 include/crm/services.h char *action; action 264 include/crm/services.h const char *action, guint interval_ms, action 277 include/crm/services.h gboolean services_action_kick(const char *name, const char *action, action 370 include/crm/services.h gboolean services_action_cancel(const char *name, const char *action, action 377 include/crm/services.h gboolean services_alert_async(svc_action_t *action, action 380 include/crm/services.h enum ocf_exitcode services_result2ocf(const char *standard, const char *action, action 53 include/crm/services_compat.h svc_action_t *services_action_create(const char *name, const char *action, action 68 include/crm/services_compat.h services_get_ocf_exitcode(const char *action, int lsb_exitcode) action 71 include/crm/services_compat.h if ((action != NULL) && (strcmp(action, PCMK_ACTION_STATUS) != 0) action 72 include/crm/services_compat.h && (strcmp(action, PCMK_ACTION_MONITOR) != 0)) { action 41 include/crm/services_internal.h const char *action, action 46 include/crm/services_internal.h const char *services__exit_reason(const svc_action_t *action); action 47 include/crm/services_internal.h char *services__grab_stdout(svc_action_t *action); action 48 include/crm/services_internal.h char *services__grab_stderr(svc_action_t *action); action 50 include/crm/services_internal.h void services__set_result(svc_action_t *action, int agent_status, action 54 include/crm/services_internal.h void services__format_result(svc_action_t *action, int agent_status, action 131 include/crm/stonith-ng.h char *action; action 154 include/crm/stonith-ng.h char *action; action 385 include/crm/stonith-ng.h const char *action, int timeout, int tolerance); action 568 include/crm/stonith-ng.h const char *node, const char *action, int timeout, action 717 include/crm/stonith-ng.h const char *stonith_action_str(const char *action); action 568 include/pacemaker.h int pcmk_request_fencing(stonith_t *st, const char *target, const char *action, action 49 include/pcmki/pcmki_fence.h int pcmk__request_fencing(stonith_t *st, const char *target, const char *action, action 82 include/pcmki/pcmki_transition.h #define pcmk__set_graph_action_flags(action, flags_to_set) do { \ action 83 include/pcmki/pcmki_transition.h (action)->flags = pcmk__set_flags_as(__func__, __LINE__, \ action 86 include/pcmki/pcmki_transition.h (action)->flags, (flags_to_set), #flags_to_set); \ action 89 include/pcmki/pcmki_transition.h #define pcmk__clear_graph_action_flags(action, flags_to_clear) do { \ action 90 include/pcmki/pcmki_transition.h (action)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ action 93 include/pcmki/pcmki_transition.h (action)->flags, (flags_to_clear), #flags_to_clear); \ action 143 include/pcmki/pcmki_transition.h int (*pseudo) (pcmk__graph_t *graph, pcmk__graph_action_t *action); action 144 include/pcmki/pcmki_transition.h int (*rsc) (pcmk__graph_t *graph, pcmk__graph_action_t *action); action 145 include/pcmki/pcmki_transition.h int (*cluster) (pcmk__graph_t *graph, pcmk__graph_action_t *action); action 146 include/pcmki/pcmki_transition.h int (*fence) (pcmk__graph_t *graph, pcmk__graph_action_t *action); action 147 include/pcmki/pcmki_transition.h bool (*allowed) (pcmk__graph_t *graph, pcmk__graph_action_t *action); action 162 include/pcmki/pcmki_transition.h const pcmk__graph_action_t *action); action 166 include/pcmki/pcmki_transition.h void pcmk__log_graph_action(int log_level, pcmk__graph_action_t *action); action 169 include/pcmki/pcmki_transition.h const pcmk__graph_action_t *action, action 37 lib/common/actions.c pcmk_action_text(enum action_tasks action) action 39 lib/common/actions.c switch (action) { action 582 lib/common/actions.c pcmk__is_fencing_action(const char *action) action 584 lib/common/actions.c return pcmk__str_any_of(action, PCMK_ACTION_OFF, PCMK_ACTION_REBOOT, action 14 lib/fencing/fencing_private.h int stonith__execute(stonith_action_t *action); action 32 lib/fencing/st_actions.c char *action; action 53 lib/fencing/st_actions.c static int internal_stonith_action_execute(stonith_action_t *action); action 54 lib/fencing/st_actions.c static void log_action(stonith_action_t *action, pid_t pid); action 64 lib/fencing/st_actions.c set_result_from_svc_action(stonith_action_t *action, svc_action_t *svc_action) action 66 lib/fencing/st_actions.c pcmk__set_result(&(action->result), svc_action->rc, svc_action->status, action 68 lib/fencing/st_actions.c pcmk__set_result_output(&(action->result), action 74 lib/fencing/st_actions.c log_action(stonith_action_t *action, pid_t pid) action 79 lib/fencing/st_actions.c if (action->result.action_stderr != NULL) { action 81 lib/fencing/st_actions.c char *prefix = crm_strdup_printf("%s[%d] stderr:", action->agent, pid); action 83 lib/fencing/st_actions.c crm_log_output(LOG_WARNING, prefix, action->result.action_stderr); action 122 lib/fencing/st_actions.c make_args(const char *agent, const char *action, const char *target, action 129 lib/fencing/st_actions.c CRM_CHECK(action != NULL, return NULL); action 137 lib/fencing/st_actions.c snprintf(buffer, sizeof(buffer), "pcmk_%s_action", action); action 141 lib/fencing/st_actions.c value, action, pcmk__s(target, "no node")); action 142 lib/fencing/st_actions.c action = value; action 145 lib/fencing/st_actions.c pcmk__insert_dup(arg_list, STONITH_ATTR_ACTION_OP, action); action 164 lib/fencing/st_actions.c nodeid, action, pcmk__s(target, "no node")); action 195 lib/fencing/st_actions.c param, alias, action, pcmk__s(target, "no node")); action 215 lib/fencing/st_actions.c stonith__destroy_action(stonith_action_t *action) action 217 lib/fencing/st_actions.c if (action) { action 218 lib/fencing/st_actions.c free(action->agent); action 219 lib/fencing/st_actions.c if (action->args) { action 220 lib/fencing/st_actions.c g_hash_table_destroy(action->args); action 222 lib/fencing/st_actions.c free(action->action); action 223 lib/fencing/st_actions.c if (action->svc_action) { action 224 lib/fencing/st_actions.c services_action_free(action->svc_action); action 226 lib/fencing/st_actions.c pcmk__reset_result(&(action->result)); action 227 lib/fencing/st_actions.c free(action); action 240 lib/fencing/st_actions.c stonith__action_result(stonith_action_t *action) action 242 lib/fencing/st_actions.c return (action == NULL)? NULL : &(action->result); action 268 lib/fencing/st_actions.c stonith_action_t *action = pcmk__assert_alloc(1, sizeof(stonith_action_t)); action 270 lib/fencing/st_actions.c action->args = make_args(agent, action_name, target, target_nodeid, action 274 lib/fencing/st_actions.c action->agent = strdup(agent); action 275 lib/fencing/st_actions.c action->action = strdup(action_name); action 276 lib/fencing/st_actions.c action->timeout = action->remaining_timeout = timeout_sec; action 277 lib/fencing/st_actions.c action->max_retries = FAILURE_MAX_RETRIES; action 279 lib/fencing/st_actions.c pcmk__set_result(&(action->result), PCMK_OCF_UNKNOWN, PCMK_EXEC_UNKNOWN, action 290 lib/fencing/st_actions.c action->max_retries = atoi(value); action 294 lib/fencing/st_actions.c return action; action 298 lib/fencing/st_actions.c update_remaining_timeout(stonith_action_t * action) action 300 lib/fencing/st_actions.c int diff = time(NULL) - action->initial_start_time; action 302 lib/fencing/st_actions.c if (action->tries >= action->max_retries) { action 304 lib/fencing/st_actions.c action->agent, action->action, action->max_retries); action 305 lib/fencing/st_actions.c action->remaining_timeout = 0; action 306 lib/fencing/st_actions.c } else if ((action->result.execution_status != PCMK_EXEC_TIMEOUT) action 307 lib/fencing/st_actions.c && (diff < (action->timeout * 0.7))) { action 310 lib/fencing/st_actions.c action->remaining_timeout = action->timeout - diff; action 312 lib/fencing/st_actions.c action->remaining_timeout = 0; action 314 lib/fencing/st_actions.c return action->remaining_timeout ? TRUE : FALSE; action 532 lib/fencing/st_actions.c stonith_action_t *action = (stonith_action_t *) svc_action->cb_data; action 534 lib/fencing/st_actions.c set_result_from_svc_action(action, svc_action); action 536 lib/fencing/st_actions.c log_action(action, action->pid); action 538 lib/fencing/st_actions.c if (!pcmk__result_ok(&(action->result)) action 539 lib/fencing/st_actions.c && update_remaining_timeout(action)) { action 541 lib/fencing/st_actions.c int rc = internal_stonith_action_execute(action); action 547 lib/fencing/st_actions.c if (action->done_cb) { action 548 lib/fencing/st_actions.c action->done_cb(action->pid, &(action->result), action->userdata); action 551 lib/fencing/st_actions.c action->svc_action = NULL; // don't remove our caller action 552 lib/fencing/st_actions.c stonith__destroy_action(action); action 558 lib/fencing/st_actions.c stonith_action_t *action = (stonith_action_t *) svc_action->cb_data; action 560 lib/fencing/st_actions.c action->pid = svc_action->pid; action 561 lib/fencing/st_actions.c action->svc_action = svc_action; action 563 lib/fencing/st_actions.c if (action->fork_cb) { action 564 lib/fencing/st_actions.c (action->fork_cb) (svc_action->pid, action->userdata); action 567 lib/fencing/st_actions.c pcmk__set_result(&(action->result), PCMK_OCF_UNKNOWN, PCMK_EXEC_PENDING, action 571 lib/fencing/st_actions.c action->pid, action->action); action 575 lib/fencing/st_actions.c internal_stonith_action_execute(stonith_action_t * action) action 583 lib/fencing/st_actions.c CRM_CHECK(action != NULL, return -EINVAL); action 585 lib/fencing/st_actions.c if ((action->action == NULL) || (action->args == NULL) action 586 lib/fencing/st_actions.c || (action->agent == NULL)) { action 587 lib/fencing/st_actions.c pcmk__set_result(&(action->result), PCMK_OCF_UNKNOWN_ERROR, action 592 lib/fencing/st_actions.c if (!action->tries) { action 593 lib/fencing/st_actions.c action->initial_start_time = time(NULL); action 595 lib/fencing/st_actions.c action->tries++; action 597 lib/fencing/st_actions.c if (action->tries > 1) { action 599 lib/fencing/st_actions.c action->tries, action->agent, action->action, action->remaining_timeout); action 604 lib/fencing/st_actions.c basename(action->agent)); action 609 lib/fencing/st_actions.c set_result_from_svc_action(action, svc_action); action 614 lib/fencing/st_actions.c svc_action->timeout = 1000 * action->remaining_timeout; action 616 lib/fencing/st_actions.c svc_action->id = crm_strdup_printf("%s_%s_%dof%d", basename(action->agent), action 617 lib/fencing/st_actions.c action->action, action->tries, action 618 lib/fencing/st_actions.c action->max_retries); action 619 lib/fencing/st_actions.c svc_action->agent = strdup(action->agent); action 621 lib/fencing/st_actions.c svc_action->params = action->args; action 622 lib/fencing/st_actions.c svc_action->cb_data = (void *) action; action 631 lib/fencing/st_actions.c pcmk__reset_result(&(action->result)); action 635 lib/fencing/st_actions.c if (action->async) { action 649 lib/fencing/st_actions.c set_result_from_svc_action(action, svc_action); action 667 lib/fencing/st_actions.c stonith__execute_async(stonith_action_t * action, void *userdata, action 673 lib/fencing/st_actions.c if (!action) { action 677 lib/fencing/st_actions.c action->userdata = userdata; action 678 lib/fencing/st_actions.c action->done_cb = done; action 679 lib/fencing/st_actions.c action->fork_cb = fork_cb; action 680 lib/fencing/st_actions.c action->async = true; action 682 lib/fencing/st_actions.c return internal_stonith_action_execute(action); action 694 lib/fencing/st_actions.c stonith__execute(stonith_action_t *action) action 698 lib/fencing/st_actions.c CRM_CHECK(action != NULL, return -EINVAL); action 702 lib/fencing/st_actions.c rc = internal_stonith_action_execute(action); action 703 lib/fencing/st_actions.c } while ((rc != pcmk_ok) && update_remaining_timeout(action)); action 606 lib/fencing/st_client.c const char *action, const char *target, int timeout_sec, action 615 lib/fencing/st_client.c crm_xml_add(data, PCMK__XA_ST_DEVICE_ACTION, action); action 669 lib/fencing/st_client.c const char *action, int timeout, int tolerance, int delay) action 676 lib/fencing/st_client.c crm_xml_add(data, PCMK__XA_ST_DEVICE_ACTION, action); action 688 lib/fencing/st_client.c stonith_api_fence(stonith_t * stonith, int call_options, const char *node, const char *action, action 691 lib/fencing/st_client.c return stonith_api_fence_with_delay(stonith, call_options, node, action, action 737 lib/fencing/st_client.c kvp->action = crm_element_value_copy(op, PCMK__XA_ST_DEVICE_ACTION); action 768 lib/fencing/st_client.c free(hp->action); action 1443 lib/fencing/st_client.c event->action = crm_element_value_copy(data, action 1481 lib/fencing/st_client.c free(event->action); action 1981 lib/fencing/st_client.c const char *action = off? PCMK_ACTION_OFF : PCMK_ACTION_REBOOT; action 1986 lib/fencing/st_client.c action, nodeid, uname); action 1993 lib/fencing/st_client.c action, nodeid, uname, pcmk_strerror(rc), rc); action 2003 lib/fencing/st_client.c rc = st->cmds->fence(st, opts, name, action, timeout, 0); action 2008 lib/fencing/st_client.c action, nodeid, uname, pcmk_strerror(rc), rc); action 2010 lib/fencing/st_client.c api_log(LOG_NOTICE, "Node %u/%s kicked: %s", nodeid, uname, action); action 2114 lib/fencing/st_client.c stonith_action_str(const char *action) action 2116 lib/fencing/st_client.c if (action == NULL) { action 2118 lib/fencing/st_client.c } else if (strcmp(action, PCMK_ACTION_ON) == 0) { action 2120 lib/fencing/st_client.c } else if (strcmp(action, PCMK_ACTION_OFF) == 0) { action 2123 lib/fencing/st_client.c return action; action 2278 lib/fencing/st_client.c pcmk__str_eq(event->action, prev_hp->action, pcmk__str_none) && action 2475 lib/fencing/st_client.c stonith_action_t *action = NULL; action 2478 lib/fencing/st_client.c action = stonith__action_create(agent, PCMK_ACTION_METADATA, action 2482 lib/fencing/st_client.c rc = stonith__execute_async(action, user_data, callback, NULL); action 2484 lib/fencing/st_client.c callback(0, stonith__action_result(action), user_data); action 2485 lib/fencing/st_client.c stonith__destroy_action(action); action 2657 lib/fencing/st_client.c const char *action = pcmk__s(event->action, event->operation); action 2662 lib/fencing/st_client.c if (action == NULL) { action 2663 lib/fencing/st_client.c action = "(unknown)"; action 2700 lib/fencing/st_client.c action, target, executioner, origin, origin_node, action 102 lib/fencing/st_output.c stonith_action_str(history->action), " of ", history->target, action 462 lib/fencing/st_output.c PCMK_XA_ACTION, event->action, action 130 lib/fencing/st_rhcs.c stonith_action_t *action = stonith__action_create(agent, action 134 lib/fencing/st_rhcs.c int rc = stonith__execute(action); action 135 lib/fencing/st_rhcs.c pcmk__action_result_t *result = stonith__action_result(action); action 142 lib/fencing/st_rhcs.c stonith__destroy_action(action); action 150 lib/fencing/st_rhcs.c stonith__destroy_action(action); action 158 lib/fencing/st_rhcs.c stonith__destroy_action(action); action 164 lib/fencing/st_rhcs.c stonith__destroy_action(action); action 169 lib/fencing/st_rhcs.c stonith__destroy_action(action); action 276 lib/fencing/st_rhcs.c stonith_action_t *action = NULL; action 309 lib/fencing/st_rhcs.c action = stonith__action_create(agent, PCMK_ACTION_VALIDATE_ALL, target, 0, action 312 lib/fencing/st_rhcs.c rc = stonith__execute(action); action 313 lib/fencing/st_rhcs.c result = stonith__action_result(action); action 328 lib/fencing/st_rhcs.c stonith__destroy_action(action); action 1986 lib/lrmd/lrmd_client.c free(op_info->action); action 2045 lib/lrmd/lrmd_client.c op_info->action = crm_element_value_copy(op_xml, action 2134 lib/lrmd/lrmd_client.c svc_action_t *action = NULL; action 2151 lib/lrmd/lrmd_client.c action = services__create_resource_action(type, standard, provider, type, action 2157 lib/lrmd/lrmd_client.c if (action == NULL) { action 2160 lib/lrmd/lrmd_client.c if (action->rc != PCMK_OCF_UNKNOWN) { action 2161 lib/lrmd/lrmd_client.c services_action_free(action); action 2165 lib/lrmd/lrmd_client.c if (!services_action_sync(action)) { action 2168 lib/lrmd/lrmd_client.c services_action_free(action); action 2172 lib/lrmd/lrmd_client.c if (!action->stdout_data) { action 2175 lib/lrmd/lrmd_client.c services_action_free(action); action 2179 lib/lrmd/lrmd_client.c *output = strdup(action->stdout_data); action 2180 lib/lrmd/lrmd_client.c services_action_free(action); action 2186 lib/lrmd/lrmd_client.c lrmd_api_exec(lrmd_t *lrmd, const char *rsc_id, const char *action, action 2199 lib/lrmd/lrmd_client.c crm_xml_add(data, PCMK__XA_LRMD_RSC_ACTION, action); action 2244 lib/lrmd/lrmd_client.c lrmd_api_cancel(lrmd_t *lrmd, const char *rsc_id, const char *action, action 2251 lib/lrmd/lrmd_client.c crm_xml_add(data, PCMK__XA_LRMD_RSC_ACTION, action); action 2553 lib/lrmd/lrmd_client.c metadata_complete(svc_action_t *action) action 2555 lib/lrmd/lrmd_client.c struct metadata_cb *metadata_cb = (struct metadata_cb *) action->cb_data; action 2558 lib/lrmd/lrmd_client.c pcmk__set_result(&result, action->rc, action->status, action 2559 lib/lrmd/lrmd_client.c services__exit_reason(action)); action 2560 lib/lrmd/lrmd_client.c pcmk__set_result_output(&result, action->stdout_data, action->stderr_data); action 2592 lib/lrmd/lrmd_client.c svc_action_t *action = NULL; action 2613 lib/lrmd/lrmd_client.c action = services__create_resource_action(pcmk__s(rsc->id, rsc->type), action 2619 lib/lrmd/lrmd_client.c if (action == NULL) { action 2626 lib/lrmd/lrmd_client.c if (action->rc != PCMK_OCF_UNKNOWN) { action 2627 lib/lrmd/lrmd_client.c pcmk__set_result(&result, action->rc, action->status, action 2628 lib/lrmd/lrmd_client.c services__exit_reason(action)); action 2631 lib/lrmd/lrmd_client.c services_action_free(action); action 2635 lib/lrmd/lrmd_client.c action->cb_data = calloc(1, sizeof(struct metadata_cb)); action 2636 lib/lrmd/lrmd_client.c if (action->cb_data == NULL) { action 2637 lib/lrmd/lrmd_client.c services_action_free(action); action 2645 lib/lrmd/lrmd_client.c metadata_cb = (struct metadata_cb *) action->cb_data; action 2648 lib/lrmd/lrmd_client.c if (!services_action_async(action, metadata_complete)) { action 2649 lib/lrmd/lrmd_client.c services_action_free(action); action 54 lib/pacemaker/libpacemaker_private.h #define pcmk__set_updated_flags(au_flags, action, flags_to_set) do { \ action 57 lib/pacemaker/libpacemaker_private.h (action)->uuid, au_flags, \ action 61 lib/pacemaker/libpacemaker_private.h #define pcmk__clear_updated_flags(au_flags, action, flags_to_clear) do { \ action 64 lib/pacemaker/libpacemaker_private.h (action)->uuid, au_flags, \ action 260 lib/pacemaker/libpacemaker_private.h uint32_t (*action_flags)(pcmk_action_t *action, const pcmk_node_t *node); action 350 lib/pacemaker/libpacemaker_private.h void pcmk__update_action_for_orderings(pcmk_action_t *action, action 360 lib/pacemaker/libpacemaker_private.h void pcmk__log_action(const char *pre_text, const pcmk_action_t *action, action 372 lib/pacemaker/libpacemaker_private.h bool pcmk__action_locks_rsc_to_node(const pcmk_action_t *action); action 375 lib/pacemaker/libpacemaker_private.h void pcmk__deduplicate_action_inputs(pcmk_action_t *action); action 403 lib/pacemaker/libpacemaker_private.h bool pcmk__action_is_recurring(const pcmk_action_t *action); action 410 lib/pacemaker/libpacemaker_private.h const pcmk_action_t *action, action 428 lib/pacemaker/libpacemaker_private.h pcmk_action_t *action, action 596 lib/pacemaker/libpacemaker_private.h void pcmk__block_colocation_dependents(pcmk_action_t *action); action 708 lib/pacemaker/libpacemaker_private.h pcmk_node_t *pcmk__connection_host_for_action(const pcmk_action_t *action); action 715 lib/pacemaker/libpacemaker_private.h const pcmk_action_t *action); action 732 lib/pacemaker/libpacemaker_private.h uint32_t pcmk__primitive_action_flags(pcmk_action_t *action, action 808 lib/pacemaker/libpacemaker_private.h uint32_t pcmk__group_action_flags(pcmk_action_t *action, action 869 lib/pacemaker/libpacemaker_private.h uint32_t pcmk__clone_action_flags(pcmk_action_t *action, action 922 lib/pacemaker/libpacemaker_private.h uint32_t pcmk__bundle_action_flags(pcmk_action_t *action, action 969 lib/pacemaker/libpacemaker_private.h uint32_t pcmk__collective_action_flags(pcmk_action_t *action, action 30 lib/pacemaker/pcmk_fence.c const char *action; action 99 lib/pacemaker/pcmk_fence.c && pcmk__str_eq(hp->action, np->action, pcmk__str_none) action 125 lib/pacemaker/pcmk_fence.c && pcmk__str_eq(async_fence_data.action, e->action, pcmk__str_none)) { action 165 lib/pacemaker/pcmk_fence.c async_fence_data.action, action 187 lib/pacemaker/pcmk_fence.c pcmk__request_fencing(stonith_t *st, const char *target, const char *action, action 197 lib/pacemaker/pcmk_fence.c async_fence_data.action = action; action 224 lib/pacemaker/pcmk_fence.c pcmk_request_fencing(stonith_t *st, const char *target, const char *action, action 228 lib/pacemaker/pcmk_fence.c return pcmk__request_fencing(st, target, action, name, timeout, tolerance, action 35 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_action_t *action = user_data; action 37 lib/pacemaker/pcmk_graph_consumer.c if (action->timer != 0) { action 38 lib/pacemaker/pcmk_graph_consumer.c crm_warn("Cancelling timer for graph action %d", action->id); action 39 lib/pacemaker/pcmk_graph_consumer.c g_source_remove(action->timer); action 41 lib/pacemaker/pcmk_graph_consumer.c if (action->params != NULL) { action 42 lib/pacemaker/pcmk_graph_consumer.c g_hash_table_destroy(action->params); action 44 lib/pacemaker/pcmk_graph_consumer.c free_xml(action->xml); action 45 lib/pacemaker/pcmk_graph_consumer.c free(action); action 146 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_action_t *action = (pcmk__graph_action_t *) lpc->data; action 148 lib/pacemaker/pcmk_graph_consumer.c if (action->id == action_id) { action 151 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_graph_action_flags(action, pcmk__graph_action_confirmed); action 154 lib/pacemaker/pcmk_graph_consumer.c !pcmk_is_set(action->flags, pcmk__graph_action_confirmed)) { action 176 lib/pacemaker/pcmk_graph_consumer.c pcmk__update_graph(pcmk__graph_t *graph, const pcmk__graph_action_t *action) action 186 lib/pacemaker/pcmk_graph_consumer.c update_synapse_confirmed(synapse, action->id); action 188 lib/pacemaker/pcmk_graph_consumer.c } else if (!pcmk_is_set(action->flags, pcmk__graph_action_failed) action 190 lib/pacemaker/pcmk_graph_consumer.c update_synapse_ready(synapse, action->id); action 293 lib/pacemaker/pcmk_graph_consumer.c initiate_action(pcmk__graph_t *graph, pcmk__graph_action_t *action) action 295 lib/pacemaker/pcmk_graph_consumer.c const char *id = pcmk__xe_id(action->xml); action 298 lib/pacemaker/pcmk_graph_consumer.c CRM_CHECK(!pcmk_is_set(action->flags, pcmk__graph_action_executed), action 301 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_graph_action_flags(action, pcmk__graph_action_executed); action 302 lib/pacemaker/pcmk_graph_consumer.c switch (action->type) { action 304 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Executing pseudo-action %d (%s)", action->id, id); action 305 lib/pacemaker/pcmk_graph_consumer.c return graph_fns->pseudo(graph, action); action 308 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Executing resource action %d (%s)", action->id, id); action 309 lib/pacemaker/pcmk_graph_consumer.c return graph_fns->rsc(graph, action); action 312 lib/pacemaker/pcmk_graph_consumer.c if (pcmk__str_eq(crm_element_value(action->xml, PCMK_XA_OPERATION), action 315 lib/pacemaker/pcmk_graph_consumer.c action->id, id); action 316 lib/pacemaker/pcmk_graph_consumer.c return graph_fns->fence(graph, action); action 318 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Executing cluster action %d (%s)", action->id, id); action 319 lib/pacemaker/pcmk_graph_consumer.c return graph_fns->cluster(graph, action); action 324 lib/pacemaker/pcmk_graph_consumer.c action->xml->name, id); action 343 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_action_t *action = (pcmk__graph_action_t *) lpc->data; action 344 lib/pacemaker/pcmk_graph_consumer.c int rc = initiate_action(graph, action); action 349 lib/pacemaker/pcmk_graph_consumer.c action->xml->name, action->id, synapse->id, action 352 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_graph_action_flags(action, action 373 lib/pacemaker/pcmk_graph_consumer.c pseudo_action_dummy(pcmk__graph_t *graph, pcmk__graph_action_t *action) action 388 lib/pacemaker/pcmk_graph_consumer.c if (action->id == fail) { action 389 lib/pacemaker/pcmk_graph_consumer.c crm_err("Dummy event handler: pretending action %d failed", action->id); action 390 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_graph_action_flags(action, pcmk__graph_action_failed); action 393 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Dummy event handler: action %d initiated", action->id); action 395 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_graph_action_flags(action, pcmk__graph_action_confirmed); action 396 lib/pacemaker/pcmk_graph_consumer.c pcmk__update_graph(graph, action); action 541 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_action_t *action = NULL; action 567 lib/pacemaker/pcmk_graph_consumer.c action = calloc(1, sizeof(pcmk__graph_action_t)); action 568 lib/pacemaker/pcmk_graph_consumer.c if (action == NULL) { action 574 lib/pacemaker/pcmk_graph_consumer.c pcmk__scan_min_int(value, &(action->id), -1); action 575 lib/pacemaker/pcmk_graph_consumer.c action->type = pcmk__rsc_graph_action; action 576 lib/pacemaker/pcmk_graph_consumer.c action->xml = pcmk__xml_copy(NULL, xml_action); action 577 lib/pacemaker/pcmk_graph_consumer.c action->synapse = parent; action 578 lib/pacemaker/pcmk_graph_consumer.c action->type = action_type; action 579 lib/pacemaker/pcmk_graph_consumer.c action->params = xml2list(action->xml); action 581 lib/pacemaker/pcmk_graph_consumer.c value = crm_meta_value(action->params, PCMK_META_TIMEOUT); action 582 lib/pacemaker/pcmk_graph_consumer.c pcmk__scan_min_int(value, &(action->timeout), 0); action 587 lib/pacemaker/pcmk_graph_consumer.c value = crm_meta_value(action->params, PCMK_META_START_DELAY); action 592 lib/pacemaker/pcmk_graph_consumer.c action->timeout += start_delay; action 595 lib/pacemaker/pcmk_graph_consumer.c if (pcmk__guint_from_hash(action->params, CRM_META "_" PCMK_META_INTERVAL, action 596 lib/pacemaker/pcmk_graph_consumer.c 0, &(action->interval_ms)) != pcmk_rc_ok) { action 597 lib/pacemaker/pcmk_graph_consumer.c action->interval_ms = 0; action 600 lib/pacemaker/pcmk_graph_consumer.c value = crm_meta_value(action->params, PCMK__META_CAN_FAIL); action 605 lib/pacemaker/pcmk_graph_consumer.c pcmk__set_graph_action_flags(action, pcmk__graph_action_can_fail); action 607 lib/pacemaker/pcmk_graph_consumer.c pcmk__clear_graph_action_flags(action, pcmk__graph_action_can_fail); action 610 lib/pacemaker/pcmk_graph_consumer.c if (pcmk_is_set(action->flags, pcmk__graph_action_can_fail)) { action 616 lib/pacemaker/pcmk_graph_consumer.c crm_trace("Action %d has timer set to %dms", action->id, action->timeout); action 618 lib/pacemaker/pcmk_graph_consumer.c return action; action 661 lib/pacemaker/pcmk_graph_consumer.c for (xmlNode *action = pcmk__xe_first_child(action_set, NULL, NULL, action 663 lib/pacemaker/pcmk_graph_consumer.c action != NULL; action = pcmk__xe_next(action)) { action 666 lib/pacemaker/pcmk_graph_consumer.c action); action 839 lib/pacemaker/pcmk_graph_consumer.c const pcmk__graph_action_t *action, action 848 lib/pacemaker/pcmk_graph_consumer.c CRM_CHECK(action != NULL, return NULL); action 849 lib/pacemaker/pcmk_graph_consumer.c CRM_CHECK(action->type == pcmk__rsc_graph_action, return NULL); action 851 lib/pacemaker/pcmk_graph_consumer.c action_resource = pcmk__xe_first_child(action->xml, PCMK_XE_PRIMITIVE, NULL, action 853 lib/pacemaker/pcmk_graph_consumer.c CRM_CHECK(action_resource != NULL, crm_log_xml_warn(action->xml, "invalid"); action 857 lib/pacemaker/pcmk_graph_consumer.c crm_element_value(action->xml, PCMK_XA_OPERATION), action 858 lib/pacemaker/pcmk_graph_consumer.c action->interval_ms); action 865 lib/pacemaker/pcmk_graph_consumer.c g_hash_table_iter_init(&iter, action->params); action 78 lib/pacemaker/pcmk_graph_logging.c const pcmk__graph_action_t *action = action_iter->data; action 79 lib/pacemaker/pcmk_graph_logging.c if (action->id == id) { action 80 lib/pacemaker/pcmk_graph_logging.c return action; action 162 lib/pacemaker/pcmk_graph_logging.c pcmk__graph_action_t *action, const char *pending_inputs) action 164 lib/pacemaker/pcmk_graph_logging.c const char *key = crm_element_value(action->xml, PCMK__XA_OPERATION_KEY); action 165 lib/pacemaker/pcmk_graph_logging.c const char *host = crm_element_value(action->xml, PCMK__META_ON_NODE); action 168 lib/pacemaker/pcmk_graph_logging.c actiontype2text(action->type), key); action 172 lib/pacemaker/pcmk_graph_logging.c action->id, desc, (host? " on " : ""), (host? host : ""), action 207 lib/pacemaker/pcmk_graph_logging.c pcmk__log_graph_action(int log_level, pcmk__graph_action_t *action) action 209 lib/pacemaker/pcmk_graph_logging.c log_synapse(log_level, NULL, action->synapse); action 117 lib/pacemaker/pcmk_graph_producer.c pcmk_action_t *action = NULL; action 120 lib/pacemaker/pcmk_graph_producer.c action = get_pseudo_op(PCMK_ACTION_MAINTENANCE_NODES, scheduler); action 121 lib/pacemaker/pcmk_graph_producer.c pcmk__set_action_flags(action, pcmk_action_always_in_graph); action 137 lib/pacemaker/pcmk_graph_producer.c add_downed_nodes(xmlNode *xml, const pcmk_action_t *action) action 139 lib/pacemaker/pcmk_graph_producer.c CRM_CHECK((xml != NULL) && (action != NULL) && (action->node != NULL), action 142 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, PCMK_ACTION_DO_SHUTDOWN, pcmk__str_none)) { action 146 lib/pacemaker/pcmk_graph_producer.c add_node_to_xml_by_id(action->node->details->id, downed); action 148 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, PCMK_ACTION_STONITH, action 152 lib/pacemaker/pcmk_graph_producer.c const char *fence = g_hash_table_lookup(action->meta, action 157 lib/pacemaker/pcmk_graph_producer.c add_node_to_xml_by_id(action->node->details->id, downed); action 158 lib/pacemaker/pcmk_graph_producer.c pe_foreach_guest_node(action->node->details->data_set, action 159 lib/pacemaker/pcmk_graph_producer.c action->node, add_node_to_xml, downed); action 162 lib/pacemaker/pcmk_graph_producer.c } else if (action->rsc && action->rsc->is_remote_node action 163 lib/pacemaker/pcmk_graph_producer.c && pcmk__str_eq(action->task, PCMK_ACTION_STOP, action 173 lib/pacemaker/pcmk_graph_producer.c for (iter = action->actions_before; iter != NULL; iter = iter->next) { action 174 lib/pacemaker/pcmk_graph_producer.c input = ((pcmk__related_action_t *) iter->data)->action; action 176 lib/pacemaker/pcmk_graph_producer.c && pcmk__str_eq(action->rsc->id, input->rsc->id, pcmk__str_none) action 185 lib/pacemaker/pcmk_graph_producer.c add_node_to_xml_by_id(action->rsc->id, downed); action 200 lib/pacemaker/pcmk_graph_producer.c clone_op_key(const pcmk_action_t *action, guint interval_ms) action 202 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, PCMK_ACTION_NOTIFY, pcmk__str_none)) { action 203 lib/pacemaker/pcmk_graph_producer.c const char *n_type = g_hash_table_lookup(action->meta, "notify_type"); action 204 lib/pacemaker/pcmk_graph_producer.c const char *n_task = g_hash_table_lookup(action->meta, action 208 lib/pacemaker/pcmk_graph_producer.c return pcmk__notify_key(action->rsc->clone_name, n_type, n_task); action 210 lib/pacemaker/pcmk_graph_producer.c } else if (action->cancel_task != NULL) { action 211 lib/pacemaker/pcmk_graph_producer.c return pcmk__op_key(action->rsc->clone_name, action->cancel_task, action 214 lib/pacemaker/pcmk_graph_producer.c return pcmk__op_key(action->rsc->clone_name, action->task, interval_ms); action 226 lib/pacemaker/pcmk_graph_producer.c add_node_details(const pcmk_action_t *action, xmlNode *xml) action 228 lib/pacemaker/pcmk_graph_producer.c pcmk_node_t *router_node = pcmk__connection_host_for_action(action); action 230 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(xml, PCMK__META_ON_NODE, action->node->details->uname); action 231 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(xml, PCMK__META_ON_NODE_UUID, action->node->details->id); action 245 lib/pacemaker/pcmk_graph_producer.c add_resource_details(const pcmk_action_t *action, xmlNode *action_xml) action 258 lib/pacemaker/pcmk_graph_producer.c if (pcmk__action_locks_rsc_to_node(action)) { action 260 lib/pacemaker/pcmk_graph_producer.c (long long) action->rsc->lock_time); action 266 lib/pacemaker/pcmk_graph_producer.c (const char *) action->rsc->xml->name); action 267 lib/pacemaker/pcmk_graph_producer.c if (pcmk_is_set(action->rsc->flags, pcmk_rsc_removed) action 268 lib/pacemaker/pcmk_graph_producer.c && (action->rsc->clone_name != NULL)) { action 278 lib/pacemaker/pcmk_graph_producer.c action->rsc->id, action->rsc->clone_name); action 279 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(rsc_xml, PCMK_XA_ID, action->rsc->clone_name); action 280 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(rsc_xml, PCMK__XA_LONG_ID, action->rsc->id); action 282 lib/pacemaker/pcmk_graph_producer.c } else if (!pcmk_is_set(action->rsc->flags, pcmk_rsc_unique)) { action 283 lib/pacemaker/pcmk_graph_producer.c const char *xml_id = pcmk__xe_id(action->rsc->xml); action 286 lib/pacemaker/pcmk_graph_producer.c xml_id, action->rsc->id, action->rsc->clone_name); action 302 lib/pacemaker/pcmk_graph_producer.c if ((action->rsc->clone_name != NULL) action 303 lib/pacemaker/pcmk_graph_producer.c && !pcmk__str_eq(xml_id, action->rsc->clone_name, action 305 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(rsc_xml, PCMK__XA_LONG_ID, action->rsc->clone_name); action 307 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(rsc_xml, PCMK__XA_LONG_ID, action->rsc->id); action 311 lib/pacemaker/pcmk_graph_producer.c pcmk__assert(action->rsc->clone_name == NULL); action 312 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(rsc_xml, PCMK_XA_ID, action->rsc->id); action 317 lib/pacemaker/pcmk_graph_producer.c g_hash_table_lookup(action->rsc->meta, attr_list[lpc])); action 329 lib/pacemaker/pcmk_graph_producer.c add_action_attributes(pcmk_action_t *action, xmlNode *action_xml) action 340 lib/pacemaker/pcmk_graph_producer.c g_hash_table_foreach(action->extra, hash2field, args_xml); action 342 lib/pacemaker/pcmk_graph_producer.c if ((action->rsc != NULL) && (action->node != NULL)) { action 344 lib/pacemaker/pcmk_graph_producer.c GHashTable *params = pe_rsc_params(action->rsc, action->node, action 345 lib/pacemaker/pcmk_graph_producer.c action->rsc->cluster); action 347 lib/pacemaker/pcmk_graph_producer.c pcmk__substitute_remote_addr(action->rsc, params); action 351 lib/pacemaker/pcmk_graph_producer.c } else if ((action->rsc != NULL) action 352 lib/pacemaker/pcmk_graph_producer.c && (action->rsc->variant <= pcmk_rsc_variant_primitive)) { action 353 lib/pacemaker/pcmk_graph_producer.c GHashTable *params = pe_rsc_params(action->rsc, NULL, action 354 lib/pacemaker/pcmk_graph_producer.c action->rsc->cluster); action 359 lib/pacemaker/pcmk_graph_producer.c g_hash_table_foreach(action->meta, hash2metafield, args_xml); action 360 lib/pacemaker/pcmk_graph_producer.c if (action->rsc != NULL) { action 361 lib/pacemaker/pcmk_graph_producer.c pcmk_resource_t *parent = action->rsc; action 368 lib/pacemaker/pcmk_graph_producer.c pcmk__add_guest_meta_to_xml(args_xml, action); action 370 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, PCMK_ACTION_STONITH, pcmk__str_none) action 371 lib/pacemaker/pcmk_graph_producer.c && (action->node != NULL)) { action 378 lib/pacemaker/pcmk_graph_producer.c g_hash_table_foreach(action->node->details->attrs, hash2metafield, action 396 lib/pacemaker/pcmk_graph_producer.c create_graph_action(xmlNode *parent, pcmk_action_t *action, bool skip_details, action 403 lib/pacemaker/pcmk_graph_producer.c if ((action == NULL) || (scheduler == NULL)) { action 409 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, PCMK_ACTION_STONITH, pcmk__str_none)) { action 411 lib/pacemaker/pcmk_graph_producer.c if (pcmk_is_set(action->flags, pcmk_action_pseudo)) { action 417 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_any_of(action->task, action 422 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__str_eq(action->task, PCMK_ACTION_LRM_DELETE, action 428 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk_is_set(action->flags, pcmk_action_pseudo)) { action 429 lib/pacemaker/pcmk_graph_producer.c if (pcmk__str_eq(action->task, PCMK_ACTION_MAINTENANCE_NODES, action 440 lib/pacemaker/pcmk_graph_producer.c crm_xml_add_int(action_xml, PCMK_XA_ID, action->id); action 441 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(action_xml, PCMK_XA_OPERATION, action->task); action 443 lib/pacemaker/pcmk_graph_producer.c if ((action->rsc != NULL) && (action->rsc->clone_name != NULL)) { action 447 lib/pacemaker/pcmk_graph_producer.c if (pcmk__guint_from_hash(action->meta, PCMK_META_INTERVAL, 0, action 451 lib/pacemaker/pcmk_graph_producer.c clone_key = clone_op_key(action, interval_ms); action 454 lib/pacemaker/pcmk_graph_producer.c action->uuid); action 457 lib/pacemaker/pcmk_graph_producer.c crm_xml_add(action_xml, PCMK__XA_OPERATION_KEY, action->uuid); action 460 lib/pacemaker/pcmk_graph_producer.c if (needs_node_info && (action->node != NULL)) { action 461 lib/pacemaker/pcmk_graph_producer.c add_node_details(action, action_xml); action 462 lib/pacemaker/pcmk_graph_producer.c pcmk__insert_dup(action->meta, PCMK__META_ON_NODE, action 463 lib/pacemaker/pcmk_graph_producer.c action->node->details->uname); action 464 lib/pacemaker/pcmk_graph_producer.c pcmk__insert_dup(action->meta, PCMK__META_ON_NODE_UUID, action 465 lib/pacemaker/pcmk_graph_producer.c action->node->details->id); action 472 lib/pacemaker/pcmk_graph_producer.c if ((action->rsc != NULL) action 473 lib/pacemaker/pcmk_graph_producer.c && !pcmk_is_set(action->flags, pcmk_action_pseudo)) { action 476 lib/pacemaker/pcmk_graph_producer.c add_resource_details(action, action_xml); action 480 lib/pacemaker/pcmk_graph_producer.c add_action_attributes(action, action_xml); action 483 lib/pacemaker/pcmk_graph_producer.c if (needs_node_info && (action->node != NULL)) { action 484 lib/pacemaker/pcmk_graph_producer.c add_downed_nodes(action_xml, action); action 501 lib/pacemaker/pcmk_graph_producer.c should_add_action_to_graph(const pcmk_action_t *action) action 503 lib/pacemaker/pcmk_graph_producer.c if (!pcmk_is_set(action->flags, pcmk_action_runnable)) { action 505 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id); action 509 lib/pacemaker/pcmk_graph_producer.c if (pcmk_is_set(action->flags, pcmk_action_optional) action 510 lib/pacemaker/pcmk_graph_producer.c && !pcmk_is_set(action->flags, pcmk_action_always_in_graph)) { action 512 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id); action 519 lib/pacemaker/pcmk_graph_producer.c if ((action->rsc != NULL) action 520 lib/pacemaker/pcmk_graph_producer.c && !pcmk_is_set(action->rsc->flags, pcmk_rsc_managed) action 521 lib/pacemaker/pcmk_graph_producer.c && !pcmk__str_eq(action->task, PCMK_ACTION_MONITOR, pcmk__str_none)) { action 530 lib/pacemaker/pcmk_graph_producer.c interval_ms_s = g_hash_table_lookup(action->meta, PCMK_META_INTERVAL); action 533 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action->rsc->id); action 541 lib/pacemaker/pcmk_graph_producer.c if (pcmk_is_set(action->flags, pcmk_action_pseudo) action 542 lib/pacemaker/pcmk_graph_producer.c || pcmk__strcase_any_of(action->task, PCMK_ACTION_STONITH, action 547 lib/pacemaker/pcmk_graph_producer.c if (action->node == NULL) { action 550 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id); action 551 lib/pacemaker/pcmk_graph_producer.c pcmk__log_action("Unassigned", action, false); action 555 lib/pacemaker/pcmk_graph_producer.c if (pcmk_is_set(action->flags, pcmk_action_on_dc)) { action 558 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, pcmk__node_name(action->node)); action 560 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk__is_guest_or_bundle_node(action->node) action 561 lib/pacemaker/pcmk_graph_producer.c && !action->node->details->remote_requires_reset) { action 564 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, pcmk__node_name(action->node)); action 566 lib/pacemaker/pcmk_graph_producer.c } else if (!action->node->details->online) { action 569 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id); action 570 lib/pacemaker/pcmk_graph_producer.c pcmk__log_action("Offline node", action, false); action 573 lib/pacemaker/pcmk_graph_producer.c } else if (action->node->details->unclean) { action 576 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id); action 577 lib/pacemaker/pcmk_graph_producer.c pcmk__log_action("Unclean node", action, false); action 612 lib/pacemaker/pcmk_graph_producer.c should_add_input_to_graph(const pcmk_action_t *action, action 622 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action 623 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, input->action->id); action 626 lib/pacemaker/pcmk_graph_producer.c } else if (!pcmk_is_set(input->action->flags, pcmk_action_runnable) action 630 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action 631 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, input->action->id); action 634 lib/pacemaker/pcmk_graph_producer.c } else if (!pcmk_is_set(input->action->flags, pcmk_action_runnable) action 638 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action 639 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, input->action->id); action 643 lib/pacemaker/pcmk_graph_producer.c && !pcmk_is_set(input->action->flags, pcmk_action_runnable)) { action 646 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action 647 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, input->action->id); action 651 lib/pacemaker/pcmk_graph_producer.c && pcmk_is_set(input->action->flags, pcmk_action_migratable)) { action 654 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action 655 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, input->action->id); action 659 lib/pacemaker/pcmk_graph_producer.c && pcmk_is_set(input->action->flags, pcmk_action_migratable) action 660 lib/pacemaker/pcmk_graph_producer.c && pcmk__ends_with(input->action->uuid, "_stop_0")) { action 663 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action 664 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, input->action->id); action 668 lib/pacemaker/pcmk_graph_producer.c pcmk_node_t *input_node = input->action->node; action 670 lib/pacemaker/pcmk_graph_producer.c if ((action->rsc != NULL) action 671 lib/pacemaker/pcmk_graph_producer.c && pcmk__str_eq(action->task, PCMK_ACTION_MIGRATE_TO, action 674 lib/pacemaker/pcmk_graph_producer.c pcmk_node_t *assigned = action->rsc->allocated_to; action 683 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action 684 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, input->action->id, action 691 lib/pacemaker/pcmk_graph_producer.c } else if (!pcmk__same_node(input_node, action->node)) { action 694 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action 695 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, input->action->id, action 696 lib/pacemaker/pcmk_graph_producer.c (action->node? action->node->details->uname : "<none>"), action 701 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk_is_set(input->action->flags, pcmk_action_optional)) { action 704 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action 705 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, input->action->id); action 711 lib/pacemaker/pcmk_graph_producer.c if (input->action->node && action->node action 712 lib/pacemaker/pcmk_graph_producer.c && !pcmk__same_node(input->action->node, action->node)) { action 715 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action 716 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, input->action->id, action 717 lib/pacemaker/pcmk_graph_producer.c pcmk__node_name(action->node), action 718 lib/pacemaker/pcmk_graph_producer.c pcmk__node_name(input->action->node)); action 722 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk_is_set(input->action->flags, pcmk_action_optional)) { action 724 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action 725 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, input->action->id); action 730 lib/pacemaker/pcmk_graph_producer.c } else if (input->action->rsc action 731 lib/pacemaker/pcmk_graph_producer.c && input->action->rsc != action->rsc action 732 lib/pacemaker/pcmk_graph_producer.c && pcmk_is_set(input->action->rsc->flags, pcmk_rsc_failed) action 733 lib/pacemaker/pcmk_graph_producer.c && !pcmk_is_set(input->action->rsc->flags, pcmk_rsc_managed) action 734 lib/pacemaker/pcmk_graph_producer.c && pcmk__ends_with(input->action->uuid, "_stop_0") action 735 lib/pacemaker/pcmk_graph_producer.c && pcmk__is_clone(action->rsc)) { action 738 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, action->uuid); action 741 lib/pacemaker/pcmk_graph_producer.c } else if (pcmk_is_set(input->action->flags, pcmk_action_optional) action 742 lib/pacemaker/pcmk_graph_producer.c && !pcmk_any_flags_set(input->action->flags, action 745 lib/pacemaker/pcmk_graph_producer.c && !should_add_action_to_graph(input->action)) { action 748 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action 749 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, input->action->id); action 754 lib/pacemaker/pcmk_graph_producer.c action->uuid, action->id, action_type_str(input->action->flags), action 755 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, input->action->id, action 756 lib/pacemaker/pcmk_graph_producer.c action_node_str(input->action), action 757 lib/pacemaker/pcmk_graph_producer.c action_runnable_str(input->action->flags), action 758 lib/pacemaker/pcmk_graph_producer.c action_optional_str(input->action->flags), input->type); action 776 lib/pacemaker/pcmk_graph_producer.c const pcmk_action_t *action, pcmk__related_action_t *input) action 780 lib/pacemaker/pcmk_graph_producer.c if (pcmk_is_set(input->action->flags, pcmk_action_detect_loop)) { action 782 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, action 783 lib/pacemaker/pcmk_graph_producer.c input->action->node? input->action->node->details->uname : "", action 784 lib/pacemaker/pcmk_graph_producer.c action->uuid, action 785 lib/pacemaker/pcmk_graph_producer.c action->node? action->node->details->uname : "", action 791 lib/pacemaker/pcmk_graph_producer.c if (!should_add_input_to_graph(action, input)) { action 795 lib/pacemaker/pcmk_graph_producer.c if (input->action == init_action) { action 797 lib/pacemaker/pcmk_graph_producer.c action->uuid, action 798 lib/pacemaker/pcmk_graph_producer.c action->node? action->node->details->uname : "", action 804 lib/pacemaker/pcmk_graph_producer.c pcmk__set_action_flags(input->action, pcmk_action_detect_loop); action 808 lib/pacemaker/pcmk_graph_producer.c action->uuid, action 809 lib/pacemaker/pcmk_graph_producer.c action->node? action->node->details->uname : "", action 810 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, action 811 lib/pacemaker/pcmk_graph_producer.c input->action->node? input->action->node->details->uname : "", action 817 lib/pacemaker/pcmk_graph_producer.c for (GList *iter = input->action->actions_before; action 820 lib/pacemaker/pcmk_graph_producer.c if (pcmk__graph_has_loop(init_action, input->action, action 828 lib/pacemaker/pcmk_graph_producer.c pcmk__clear_action_flags(input->action, pcmk_action_detect_loop); action 832 lib/pacemaker/pcmk_graph_producer.c input->action->uuid, action 833 lib/pacemaker/pcmk_graph_producer.c input->action->node? input->action->node->details->uname : "", action 834 lib/pacemaker/pcmk_graph_producer.c action->uuid, action 835 lib/pacemaker/pcmk_graph_producer.c action->node? action->node->details->uname : "", action 851 lib/pacemaker/pcmk_graph_producer.c create_graph_synapse(const pcmk_action_t *action, pcmk_scheduler_t *scheduler) action 859 lib/pacemaker/pcmk_graph_producer.c if (action->rsc != NULL) { action 860 lib/pacemaker/pcmk_graph_producer.c synapse_priority = action->rsc->priority; action 862 lib/pacemaker/pcmk_graph_producer.c if (action->priority > synapse_priority) { action 863 lib/pacemaker/pcmk_graph_producer.c synapse_priority = action->priority; action 890 lib/pacemaker/pcmk_graph_producer.c pcmk_action_t *action = (pcmk_action_t *) data; action 901 lib/pacemaker/pcmk_graph_producer.c if (!pcmk_is_set(action->flags, pcmk_action_inputs_deduplicated)) { action 902 lib/pacemaker/pcmk_graph_producer.c pcmk__deduplicate_action_inputs(action); action 903 lib/pacemaker/pcmk_graph_producer.c pcmk__set_action_flags(action, pcmk_action_inputs_deduplicated); action 906 lib/pacemaker/pcmk_graph_producer.c if (pcmk_is_set(action->flags, pcmk_action_added_to_graph) action 907 lib/pacemaker/pcmk_graph_producer.c || !should_add_action_to_graph(action)) { action 910 lib/pacemaker/pcmk_graph_producer.c pcmk__set_action_flags(action, pcmk_action_added_to_graph); action 913 lib/pacemaker/pcmk_graph_producer.c action->id, action->uuid, action 914 lib/pacemaker/pcmk_graph_producer.c ((action->node == NULL)? "" : " on "), action 915 lib/pacemaker/pcmk_graph_producer.c ((action->node == NULL)? "" : action->node->details->uname)); action 917 lib/pacemaker/pcmk_graph_producer.c syn = create_graph_synapse(action, scheduler); action 921 lib/pacemaker/pcmk_graph_producer.c create_graph_action(set, action, false, scheduler); action 923 lib/pacemaker/pcmk_graph_producer.c for (GList *lpc = action->actions_before; lpc != NULL; lpc = lpc->next) { action 926 lib/pacemaker/pcmk_graph_producer.c if (should_add_input_to_graph(action, input)) { action 930 lib/pacemaker/pcmk_graph_producer.c create_graph_action(input_xml, input->action, true, scheduler); action 1070 lib/pacemaker/pcmk_graph_producer.c pcmk_action_t *action = (pcmk_action_t *) iter->data; action 1072 lib/pacemaker/pcmk_graph_producer.c if ((action->rsc != NULL) action 1073 lib/pacemaker/pcmk_graph_producer.c && (action->node != NULL) action 1074 lib/pacemaker/pcmk_graph_producer.c && action->node->details->shutdown action 1075 lib/pacemaker/pcmk_graph_producer.c && !pcmk_is_set(action->rsc->flags, pcmk_rsc_maintenance) action 1076 lib/pacemaker/pcmk_graph_producer.c && !pcmk_any_flags_set(action->flags, action 1078 lib/pacemaker/pcmk_graph_producer.c && pcmk__str_eq(action->task, PCMK_ACTION_STOP, pcmk__str_none)) { action 1085 lib/pacemaker/pcmk_graph_producer.c const bool managed = pcmk_is_set(action->rsc->flags, action 1087 lib/pacemaker/pcmk_graph_producer.c const bool failed = pcmk_is_set(action->rsc->flags, action 1091 lib/pacemaker/pcmk_graph_producer.c action->node->details->unclean? "fence" : "shut down", action 1092 lib/pacemaker/pcmk_graph_producer.c pcmk__node_name(action->node), action->rsc->id, action 1094 lib/pacemaker/pcmk_graph_producer.c (failed? " failed" : ""), action->uuid); action 1098 lib/pacemaker/pcmk_graph_producer.c add_action_to_graph((gpointer) action, (gpointer) scheduler); action 114 lib/pacemaker/pcmk_output.c pcmk_action_t *action = va_arg(args, pcmk_action_t *); action 127 lib/pacemaker/pcmk_output.c pcmk__assert((action != NULL) action 131 lib/pacemaker/pcmk_output.c source = action; action 212 lib/pacemaker/pcmk_output.c && !pcmk_is_set(action->flags, pcmk_action_runnable)) { action 218 lib/pacemaker/pcmk_output.c } else if (!pcmk_is_set(action->flags, pcmk_action_runnable)) { action 242 lib/pacemaker/pcmk_output.c pcmk_action_t *action = va_arg(args, pcmk_action_t *); action 252 lib/pacemaker/pcmk_output.c pcmk__assert((action != NULL) action 256 lib/pacemaker/pcmk_output.c source = action; action 347 lib/pacemaker/pcmk_output.c && !pcmk_is_set(action->flags, pcmk_action_runnable)) { action 356 lib/pacemaker/pcmk_output.c } else if (!pcmk_is_set(action->flags, pcmk_action_runnable)) { action 1602 lib/pacemaker/pcmk_output.c const char *action = va_arg(args, const char *); action 1609 lib/pacemaker/pcmk_output.c if (pcmk__str_eq(action, "Online", pcmk__str_none)) { action 1612 lib/pacemaker/pcmk_output.c } else if (pcmk__str_eq(action, "Offline", pcmk__str_none)) { action 1615 lib/pacemaker/pcmk_output.c } else if (pcmk__str_eq(action, "Failing", pcmk__str_none)) { action 1627 lib/pacemaker/pcmk_output.c const char *action = va_arg(args, const char *); action 1635 lib/pacemaker/pcmk_output.c PCMK_XA_ACTION, action, action 1645 lib/pacemaker/pcmk_output.c const char *action = va_arg(args, const char *); action 1652 lib/pacemaker/pcmk_output.c if (pcmk__str_eq(action, "Standby", pcmk__str_none)) { action 1655 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s ticket %s", action, ticket); action 1665 lib/pacemaker/pcmk_output.c const char *action = va_arg(args, const char *); action 1673 lib/pacemaker/pcmk_output.c PCMK_XA_ACTION, action, action 32 lib/pacemaker/pcmk_sched_actions.c action_flags_for_ordering(pcmk_action_t *action, const pcmk_node_t *node) action 38 lib/pacemaker/pcmk_sched_actions.c if (action->rsc == NULL) { action 39 lib/pacemaker/pcmk_sched_actions.c return action->flags; action 46 lib/pacemaker/pcmk_sched_actions.c flags = action->rsc->cmds->action_flags(action, NULL); action 47 lib/pacemaker/pcmk_sched_actions.c if ((node == NULL) || !pcmk__is_clone(action->rsc)) { action 57 lib/pacemaker/pcmk_sched_actions.c flags = action->rsc->cmds->action_flags(action, node); action 68 lib/pacemaker/pcmk_sched_actions.c pcmk__set_raw_action_flags(flags, action->rsc->id, action 179 lib/pacemaker/pcmk_sched_actions.c action_for_ordering(pcmk_action_t *action) action 181 lib/pacemaker/pcmk_sched_actions.c pcmk_action_t *result = action; action 182 lib/pacemaker/pcmk_sched_actions.c pcmk_resource_t *rsc = action->rsc; action 185 lib/pacemaker/pcmk_sched_actions.c && (action->uuid != NULL)) { action 186 lib/pacemaker/pcmk_sched_actions.c char *uuid = action_uuid_for_ordering(action->uuid, rsc); action 191 lib/pacemaker/pcmk_sched_actions.c "remapped action", action->uuid, uuid, rsc->id); action 192 lib/pacemaker/pcmk_sched_actions.c result = action; action 544 lib/pacemaker/pcmk_sched_actions.c pcmk_action_t *first = other->action; action 578 lib/pacemaker/pcmk_sched_actions.c other->action->uuid, pcmk__node_name(first_node), action 593 lib/pacemaker/pcmk_sched_actions.c pcmk__set_action_flags(other->action, pcmk_action_optional); action 603 lib/pacemaker/pcmk_sched_actions.c if (first != other->action) { action 605 lib/pacemaker/pcmk_sched_actions.c then->uuid, first->uuid, other->action->uuid); action 613 lib/pacemaker/pcmk_sched_actions.c if (first == other->action) { action 638 lib/pacemaker/pcmk_sched_actions.c other->action->uuid, then->uuid, first->uuid, action 651 lib/pacemaker/pcmk_sched_actions.c pcmk__update_action_for_orderings(other->action, scheduler); action 676 lib/pacemaker/pcmk_sched_actions.c pcmk__update_action_for_orderings(other->action, scheduler); action 682 lib/pacemaker/pcmk_sched_actions.c is_primitive_action(const pcmk_action_t *action) action 684 lib/pacemaker/pcmk_sched_actions.c return (action != NULL) && pcmk__is_primitive(action->rsc); action 695 lib/pacemaker/pcmk_sched_actions.c #define clear_action_flag_because(action, flag, reason) do { \ action 696 lib/pacemaker/pcmk_sched_actions.c if (pcmk_is_set((action)->flags, (flag))) { \ action 697 lib/pacemaker/pcmk_sched_actions.c pcmk__clear_action_flags(action, flag); \ action 698 lib/pacemaker/pcmk_sched_actions.c if ((action)->rsc != (reason)->rsc) { \ action 700 lib/pacemaker/pcmk_sched_actions.c pe_action_set_reason((action), reason_text, false); \ action 965 lib/pacemaker/pcmk_sched_actions.c pcmk__log_action(const char *pre_text, const pcmk_action_t *action, action 972 lib/pacemaker/pcmk_sched_actions.c CRM_CHECK(action != NULL, return); action 974 lib/pacemaker/pcmk_sched_actions.c if (!pcmk_is_set(action->flags, pcmk_action_pseudo)) { action 975 lib/pacemaker/pcmk_sched_actions.c if (action->node != NULL) { action 976 lib/pacemaker/pcmk_sched_actions.c node_uname = action->node->details->uname; action 977 lib/pacemaker/pcmk_sched_actions.c node_uuid = action->node->details->id; action 983 lib/pacemaker/pcmk_sched_actions.c switch (pcmk_parse_action(action->task)) { action 986 lib/pacemaker/pcmk_sched_actions.c if (pcmk_is_set(action->flags, pcmk_action_pseudo)) { action 988 lib/pacemaker/pcmk_sched_actions.c } else if (pcmk_is_set(action->flags, pcmk_action_optional)) { action 990 lib/pacemaker/pcmk_sched_actions.c } else if (!pcmk_is_set(action->flags, pcmk_action_runnable)) { action 998 lib/pacemaker/pcmk_sched_actions.c desc, action->id, action->uuid, action 1004 lib/pacemaker/pcmk_sched_actions.c if (pcmk_is_set(action->flags, pcmk_action_optional)) { action 1006 lib/pacemaker/pcmk_sched_actions.c } else if (pcmk_is_set(action->flags, pcmk_action_pseudo)) { action 1008 lib/pacemaker/pcmk_sched_actions.c } else if (!pcmk_is_set(action->flags, pcmk_action_runnable)) { action 1016 lib/pacemaker/pcmk_sched_actions.c desc, action->id, action->uuid, action 1017 lib/pacemaker/pcmk_sched_actions.c (action->rsc? action->rsc->id : "<none>"), action 1029 lib/pacemaker/pcmk_sched_actions.c for (iter = action->actions_before; iter != NULL; iter = iter->next) { action 1031 lib/pacemaker/pcmk_sched_actions.c pcmk__log_action("\t\t", other->action, false); action 1034 lib/pacemaker/pcmk_sched_actions.c for (iter = action->actions_after; iter != NULL; iter = iter->next) { action 1036 lib/pacemaker/pcmk_sched_actions.c pcmk__log_action("\t\t", other->action, false); action 1042 lib/pacemaker/pcmk_sched_actions.c g_list_length(action->actions_before), action 1043 lib/pacemaker/pcmk_sched_actions.c g_list_length(action->actions_after)); action 1305 lib/pacemaker/pcmk_sched_actions.c pcmk__action_locks_rsc_to_node(const pcmk_action_t *action) action 1308 lib/pacemaker/pcmk_sched_actions.c if ((action == NULL) || (action->rsc == NULL) action 1309 lib/pacemaker/pcmk_sched_actions.c || !pcmk__same_node(action->node, action->rsc->lock_node)) { action 1316 lib/pacemaker/pcmk_sched_actions.c if (action->node->details->shutdown && (action->task != NULL) action 1317 lib/pacemaker/pcmk_sched_actions.c && (strcmp(action->task, PCMK_ACTION_STOP) != 0)) { action 1337 lib/pacemaker/pcmk_sched_actions.c if (action_wrapper1->action->id < action_wrapper2->action->id) { action 1340 lib/pacemaker/pcmk_sched_actions.c if (action_wrapper1->action->id > action_wrapper2->action->id) { action 1353 lib/pacemaker/pcmk_sched_actions.c pcmk__deduplicate_action_inputs(pcmk_action_t *action) action 1359 lib/pacemaker/pcmk_sched_actions.c action->actions_before = g_list_sort(action->actions_before, action 1361 lib/pacemaker/pcmk_sched_actions.c for (item = action->actions_before; item != NULL; item = next) { action 1366 lib/pacemaker/pcmk_sched_actions.c && (input->action->id == last_input->action->id)) { action 1368 lib/pacemaker/pcmk_sched_actions.c input->action->uuid, input->action->id, action 1369 lib/pacemaker/pcmk_sched_actions.c action->uuid, action->id); action 1381 lib/pacemaker/pcmk_sched_actions.c action->actions_before = g_list_delete_link(action->actions_before, action 1405 lib/pacemaker/pcmk_sched_actions.c pcmk_action_t *action = (pcmk_action_t *) iter->data; action 1407 lib/pacemaker/pcmk_sched_actions.c if (action->rsc != NULL) { action 1410 lib/pacemaker/pcmk_sched_actions.c } else if (pcmk_is_set(action->flags, pcmk_action_optional)) { action 1414 lib/pacemaker/pcmk_sched_actions.c if (pcmk__str_eq(action->task, PCMK_ACTION_DO_SHUTDOWN, action 1418 lib/pacemaker/pcmk_sched_actions.c } else if (pcmk__str_eq(action->task, PCMK_ACTION_STONITH, action 1420 lib/pacemaker/pcmk_sched_actions.c const char *op = g_hash_table_lookup(action->meta, action 1429 lib/pacemaker/pcmk_sched_actions.c if (pcmk__is_guest_or_bundle_node(action->node)) { action 1430 lib/pacemaker/pcmk_sched_actions.c const pcmk_resource_t *remote = action->node->details->remote_rsc; action 1433 lib/pacemaker/pcmk_sched_actions.c pcmk__node_name(action->node), action 1435 lib/pacemaker/pcmk_sched_actions.c } else if (action->node != NULL) { action 1436 lib/pacemaker/pcmk_sched_actions.c node_name = crm_strdup_printf("%s", pcmk__node_name(action->node)); action 1439 lib/pacemaker/pcmk_sched_actions.c out->message(out, "node-action", task, node_name, action->reason); action 190 lib/pacemaker/pcmk_sched_bundle.c pcmk_action_t *action = NULL; action 208 lib/pacemaker/pcmk_sched_bundle.c action = pe__new_rsc_pseudo_action(rsc, PCMK_ACTION_PROMOTED, action 210 lib/pacemaker/pcmk_sched_bundle.c action->priority = PCMK_SCORE_INFINITY; action 213 lib/pacemaker/pcmk_sched_bundle.c action = pe__new_rsc_pseudo_action(rsc, PCMK_ACTION_DEMOTED, action 215 lib/pacemaker/pcmk_sched_bundle.c action->priority = PCMK_SCORE_INFINITY; action 690 lib/pacemaker/pcmk_sched_bundle.c pcmk__bundle_action_flags(pcmk_action_t *action, const pcmk_node_t *node) action 696 lib/pacemaker/pcmk_sched_bundle.c pcmk__assert((action != NULL) && pcmk__is_bundle(action->rsc)); action 698 lib/pacemaker/pcmk_sched_bundle.c bundled_resource = pe__bundled_resource(action->rsc); action 701 lib/pacemaker/pcmk_sched_bundle.c switch (get_complex_task(bundled_resource, action->task)) { action 709 lib/pacemaker/pcmk_sched_bundle.c return pcmk__collective_action_flags(action, action 717 lib/pacemaker/pcmk_sched_bundle.c containers = pe__bundle_containers(action->rsc); action 718 lib/pacemaker/pcmk_sched_bundle.c flags = pcmk__collective_action_flags(action, containers, node); action 398 lib/pacemaker/pcmk_sched_clone.c pcmk__clone_action_flags(pcmk_action_t *action, const pcmk_node_t *node) action 400 lib/pacemaker/pcmk_sched_clone.c pcmk__assert((action != NULL) && pcmk__is_clone(action->rsc)); action 402 lib/pacemaker/pcmk_sched_clone.c return pcmk__collective_action_flags(action, action->rsc->children, node); action 1089 lib/pacemaker/pcmk_sched_colocation.c pcmk_action_t *action = iter->data; action 1091 lib/pacemaker/pcmk_sched_colocation.c if (pcmk_is_set(action->flags, pcmk_action_runnable) action 1092 lib/pacemaker/pcmk_sched_colocation.c && pcmk__str_eq(action->task, task, pcmk__str_none)) { action 1094 lib/pacemaker/pcmk_sched_colocation.c pcmk__clear_action_flags(action, pcmk_action_runnable); action 1095 lib/pacemaker/pcmk_sched_colocation.c pe_action_set_reason(action, reason_text, false); action 1096 lib/pacemaker/pcmk_sched_colocation.c pcmk__block_colocation_dependents(action); action 1097 lib/pacemaker/pcmk_sched_colocation.c pcmk__update_action_for_orderings(action, rsc->cluster); action 1119 lib/pacemaker/pcmk_sched_colocation.c pcmk__block_colocation_dependents(pcmk_action_t *action) action 1126 lib/pacemaker/pcmk_sched_colocation.c if (pcmk_is_set(action->flags, pcmk_action_runnable)) { action 1130 lib/pacemaker/pcmk_sched_colocation.c is_start = pcmk__str_eq(action->task, PCMK_ACTION_START, pcmk__str_none); action 1132 lib/pacemaker/pcmk_sched_colocation.c && !pcmk__str_eq(action->task, PCMK_ACTION_PROMOTE, pcmk__str_none)) { action 1136 lib/pacemaker/pcmk_sched_colocation.c pcmk__assert(action->rsc != NULL); // Start and promote are resource actions action 1142 lib/pacemaker/pcmk_sched_colocation.c rsc = uber_parent(action->rsc); action 1151 lib/pacemaker/pcmk_sched_colocation.c action->task, NULL); action 1157 lib/pacemaker/pcmk_sched_colocation.c rsc->id, child->id, action->task); action 1163 lib/pacemaker/pcmk_sched_colocation.c rsc->id, action->rsc->id, action->task); action 1187 lib/pacemaker/pcmk_sched_colocation.c action->rsc); action 1190 lib/pacemaker/pcmk_sched_colocation.c action->rsc); action 63 lib/pacemaker/pcmk_sched_fencing.c pcmk_action_t *action = iter->data; action 65 lib/pacemaker/pcmk_sched_fencing.c switch (action->needs) { action 71 lib/pacemaker/pcmk_sched_fencing.c order_actions(stonith_op, action, pcmk__ar_ordered); action 75 lib/pacemaker/pcmk_sched_fencing.c if (pcmk__str_eq(action->task, PCMK_ACTION_START, action 91 lib/pacemaker/pcmk_sched_fencing.c action->uuid, pcmk__node_name(target)); action 92 lib/pacemaker/pcmk_sched_fencing.c order_actions(stonith_op, action, action 143 lib/pacemaker/pcmk_sched_fencing.c pcmk_action_t *action = iter->data; action 146 lib/pacemaker/pcmk_sched_fencing.c pcmk__set_action_flags(action, pcmk_action_pseudo|pcmk_action_runnable); action 162 lib/pacemaker/pcmk_sched_fencing.c order_actions(stonith_op, action, pcmk__ar_guest_allowed); action 173 lib/pacemaker/pcmk_sched_fencing.c action->uuid, (order_implicit? "after" : "because"), action 178 lib/pacemaker/pcmk_sched_fencing.c pe__order_notifs_after_fencing(action, rsc, stonith_op); action 214 lib/pacemaker/pcmk_sched_fencing.c pcmk_action_t *action = iter->data; action 216 lib/pacemaker/pcmk_sched_fencing.c if (!(action->node->details->online) || action->node->details->unclean action 226 lib/pacemaker/pcmk_sched_fencing.c action->uuid, pcmk__node_name(target)); action 232 lib/pacemaker/pcmk_sched_fencing.c pcmk__set_action_flags(action, action 239 lib/pacemaker/pcmk_sched_fencing.c order_actions(stonith_op, action, action 307 lib/pacemaker/pcmk_sched_fencing.c pcmk_action_t *action, action 328 lib/pacemaker/pcmk_sched_fencing.c order_actions(unfence, action, order); action 333 lib/pacemaker/pcmk_sched_fencing.c rsc->id, action->task); action 102 lib/pacemaker/pcmk_sched_group.c create_group_pseudo_op(pcmk_resource_t *group, const char *action) action 104 lib/pacemaker/pcmk_sched_group.c pcmk_action_t *op = custom_action(group, pcmk__op_key(group->id, action, 0), action 105 lib/pacemaker/pcmk_sched_group.c action, NULL, TRUE, group->cluster); action 533 lib/pacemaker/pcmk_sched_group.c pcmk__group_action_flags(pcmk_action_t *action, const pcmk_node_t *node) action 540 lib/pacemaker/pcmk_sched_group.c pcmk__assert(action != NULL); action 543 lib/pacemaker/pcmk_sched_group.c for (GList *iter = action->rsc->children; iter != NULL; iter = iter->next) { action 547 lib/pacemaker/pcmk_sched_group.c enum action_tasks task = get_complex_task(member, action->task); action 559 lib/pacemaker/pcmk_sched_group.c pcmk__rsc_trace(action->rsc, "%s is mandatory because %s is", action 560 lib/pacemaker/pcmk_sched_group.c action->uuid, member_action->uuid); action 563 lib/pacemaker/pcmk_sched_group.c pcmk__clear_action_flags(action, pcmk_action_optional); action 567 lib/pacemaker/pcmk_sched_group.c if (!pcmk__str_eq(task_s, action->task, pcmk__str_none) action 571 lib/pacemaker/pcmk_sched_group.c pcmk__rsc_trace(action->rsc, "%s is unrunnable because %s is", action 572 lib/pacemaker/pcmk_sched_group.c action->uuid, member_action->uuid); action 575 lib/pacemaker/pcmk_sched_group.c pcmk__clear_action_flags(action, pcmk_action_runnable); action 582 lib/pacemaker/pcmk_sched_group.c pcmk__rsc_trace(action->rsc, action 584 lib/pacemaker/pcmk_sched_group.c action->uuid, member->id, task_s); action 924 lib/pacemaker/pcmk_sched_instances.c const pcmk_action_t *action = (const pcmk_action_t *) iter->data; action 925 lib/pacemaker/pcmk_sched_instances.c const bool optional = pcmk_is_set(action->flags, pcmk_action_optional); action 927 lib/pacemaker/pcmk_sched_instances.c if (pcmk__str_eq(PCMK_ACTION_START, action->task, pcmk__str_none)) { action 929 lib/pacemaker/pcmk_sched_instances.c && pcmk_is_set(action->flags, pcmk_action_runnable)) { action 932 lib/pacemaker/pcmk_sched_instances.c action->uuid); action 936 lib/pacemaker/pcmk_sched_instances.c action->uuid, instance->id, action 940 lib/pacemaker/pcmk_sched_instances.c } else if (pcmk__str_eq(PCMK_ACTION_STOP, action->task, action 947 lib/pacemaker/pcmk_sched_instances.c && pcmk_any_flags_set(action->flags, pcmk_action_pseudo action 950 lib/pacemaker/pcmk_sched_instances.c action->uuid); action 954 lib/pacemaker/pcmk_sched_instances.c action->uuid, instance->id, action 1263 lib/pacemaker/pcmk_sched_instances.c find_instance_action(const pcmk_action_t *action, const pcmk_resource_t *instance, action 1285 lib/pacemaker/pcmk_sched_instances.c if ((for_first && !pcmk__str_any_of(action->task, PCMK_ACTION_STOP, action 1288 lib/pacemaker/pcmk_sched_instances.c || (!for_first && pcmk__str_any_of(action->task, PCMK_ACTION_PROMOTE, action 1334 lib/pacemaker/pcmk_sched_instances.c orig_action_name(const pcmk_action_t *action) action 1337 lib/pacemaker/pcmk_sched_instances.c const pcmk_resource_t *instance = action->rsc->children->data; action 1340 lib/pacemaker/pcmk_sched_instances.c const char *action_name = action->task; action 1343 lib/pacemaker/pcmk_sched_instances.c if (pcmk__strcase_any_of(action->task, PCMK_ACTION_NOTIFY, action 1346 lib/pacemaker/pcmk_sched_instances.c CRM_CHECK(parse_op_key(action->uuid, NULL, &action_type, NULL), action 1545 lib/pacemaker/pcmk_sched_instances.c pcmk__update_action_for_orderings(after->action, instance->cluster); action 1609 lib/pacemaker/pcmk_sched_instances.c #define pe__clear_action_summary_flags(flags, action, flag) do { \ action 1611 lib/pacemaker/pcmk_sched_instances.c "Action summary", action->rsc->id, \ action 1626 lib/pacemaker/pcmk_sched_instances.c pcmk__collective_action_flags(pcmk_action_t *action, const GList *instances, action 1630 lib/pacemaker/pcmk_sched_instances.c const char *action_name = orig_action_name(action); action 1651 lib/pacemaker/pcmk_sched_instances.c pcmk__rsc_trace(action->rsc, "%s has no %s action on %s", action 1656 lib/pacemaker/pcmk_sched_instances.c pcmk__rsc_trace(action->rsc, "%s has %s for %s on %s", action 1666 lib/pacemaker/pcmk_sched_instances.c action->uuid, instance_action->uuid); action 1667 lib/pacemaker/pcmk_sched_instances.c pe__clear_action_summary_flags(flags, action, action 1669 lib/pacemaker/pcmk_sched_instances.c pcmk__clear_action_flags(action, pcmk_action_optional); action 1679 lib/pacemaker/pcmk_sched_instances.c pcmk__rsc_trace(action->rsc, action 1681 lib/pacemaker/pcmk_sched_instances.c action->uuid, action_name); action 1682 lib/pacemaker/pcmk_sched_instances.c pe__clear_action_summary_flags(flags, action, pcmk_action_runnable); action 1684 lib/pacemaker/pcmk_sched_instances.c pcmk__clear_action_flags(action, pcmk_action_runnable); action 28 lib/pacemaker/pcmk_sched_migration.c add_migration_meta(pcmk_action_t *action, const pcmk_node_t *source, action 31 lib/pacemaker/pcmk_sched_migration.c pcmk__insert_meta(action, PCMK__META_MIGRATE_SOURCE, action 34 lib/pacemaker/pcmk_sched_migration.c pcmk__insert_meta(action, PCMK__META_MIGRATE_TARGET, action 241 lib/pacemaker/pcmk_sched_migration.c task_from_action_or_key(const pcmk_action_t *action, const char *key) action 245 lib/pacemaker/pcmk_sched_migration.c if (action != NULL) { action 246 lib/pacemaker/pcmk_sched_migration.c res = pcmk__str_copy(action->task); action 42 lib/pacemaker/pcmk_sched_ordering.c invert_action(const char *action) action 44 lib/pacemaker/pcmk_sched_ordering.c if (pcmk__str_eq(action, PCMK_ACTION_START, pcmk__str_none)) { action 47 lib/pacemaker/pcmk_sched_ordering.c } else if (pcmk__str_eq(action, PCMK_ACTION_STOP, pcmk__str_none)) { action 50 lib/pacemaker/pcmk_sched_ordering.c } else if (pcmk__str_eq(action, PCMK_ACTION_PROMOTE, pcmk__str_none)) { action 53 lib/pacemaker/pcmk_sched_ordering.c } else if (pcmk__str_eq(action, PCMK_ACTION_DEMOTE, pcmk__str_none)) { action 56 lib/pacemaker/pcmk_sched_ordering.c } else if (pcmk__str_eq(action, PCMK_ACTION_PROMOTED, pcmk__str_none)) { action 59 lib/pacemaker/pcmk_sched_ordering.c } else if (pcmk__str_eq(action, PCMK_ACTION_DEMOTED, pcmk__str_none)) { action 62 lib/pacemaker/pcmk_sched_ordering.c } else if (pcmk__str_eq(action, PCMK_ACTION_RUNNING, pcmk__str_none)) { action 65 lib/pacemaker/pcmk_sched_ordering.c } else if (pcmk__str_eq(action, PCMK_ACTION_STOPPED, pcmk__str_none)) { action 69 lib/pacemaker/pcmk_sched_ordering.c action); action 617 lib/pacemaker/pcmk_sched_ordering.c const char *action = crm_element_value(set, PCMK_XA_ACTION); action 621 lib/pacemaker/pcmk_sched_ordering.c if (action == NULL) { action 622 lib/pacemaker/pcmk_sched_ordering.c action = PCMK_ACTION_START; action 635 lib/pacemaker/pcmk_sched_ordering.c flags = ordering_flags_for_kind(local_kind, action, symmetry); action 656 lib/pacemaker/pcmk_sched_ordering.c key = pcmk__op_key(resource->id, action, 0); action 663 lib/pacemaker/pcmk_sched_ordering.c char *then_key = pcmk__op_key(then_rsc->id, action, 0); action 671 lib/pacemaker/pcmk_sched_ordering.c pcmk__order_resource_actions(last, action, resource, action, action 684 lib/pacemaker/pcmk_sched_ordering.c action = invert_action(action); action 686 lib/pacemaker/pcmk_sched_ordering.c flags = ordering_flags_for_kind(local_kind, action, action 696 lib/pacemaker/pcmk_sched_ordering.c pcmk__order_resource_actions(resource, action, last, action, action 1104 lib/pacemaker/pcmk_sched_ordering.c ordering_is_invalid(pcmk_action_t *action, pcmk__related_action_t *input) action 1110 lib/pacemaker/pcmk_sched_ordering.c && (input->action->rsc != NULL) action 1111 lib/pacemaker/pcmk_sched_ordering.c && pcmk__rsc_corresponds_to_guest(action->rsc, input->action->node)) { action 1114 lib/pacemaker/pcmk_sched_ordering.c input->action->rsc->id, action->rsc->id); action 1126 lib/pacemaker/pcmk_sched_ordering.c && (action->rsc != NULL) action 1127 lib/pacemaker/pcmk_sched_ordering.c && pcmk__str_eq(action->task, PCMK_ACTION_MIGRATE_TO, pcmk__str_none) action 1128 lib/pacemaker/pcmk_sched_ordering.c && pcmk__graph_has_loop(action, action, input)) { action 1139 lib/pacemaker/pcmk_sched_ordering.c pcmk_action_t *action = (pcmk_action_t *) iter->data; action 1142 lib/pacemaker/pcmk_sched_ordering.c for (GList *input_iter = action->actions_before; action 1146 lib/pacemaker/pcmk_sched_ordering.c if (ordering_is_invalid(action, input)) { action 1166 lib/pacemaker/pcmk_sched_ordering.c pcmk_action_t *action = (pcmk_action_t *) iter->data; action 1169 lib/pacemaker/pcmk_sched_ordering.c if (!pcmk__same_node(action->node, node) action 1170 lib/pacemaker/pcmk_sched_ordering.c || !pcmk__str_eq(action->task, PCMK_ACTION_STOP, pcmk__str_none)) { action 1176 lib/pacemaker/pcmk_sched_ordering.c if (pcmk_is_set(action->rsc->flags, pcmk_rsc_maintenance)) { action 1177 lib/pacemaker/pcmk_sched_ordering.c pcmk__rsc_trace(action->rsc, action 1180 lib/pacemaker/pcmk_sched_ordering.c action->uuid, pcmk__node_name(node)); action 1184 lib/pacemaker/pcmk_sched_ordering.c pcmk__rsc_trace(action->rsc, action 1187 lib/pacemaker/pcmk_sched_ordering.c action->uuid, pcmk__node_name(node)); action 1195 lib/pacemaker/pcmk_sched_ordering.c if (!pcmk_any_flags_set(action->rsc->flags, action 1197 lib/pacemaker/pcmk_sched_ordering.c pcmk__rsc_trace(action->rsc, action 1200 lib/pacemaker/pcmk_sched_ordering.c action->uuid, pcmk__node_name(node)); action 1204 lib/pacemaker/pcmk_sched_ordering.c pcmk__rsc_trace(action->rsc, "Ordering %s before shutdown of %s", action 1205 lib/pacemaker/pcmk_sched_ordering.c action->uuid, pcmk__node_name(node)); action 1206 lib/pacemaker/pcmk_sched_ordering.c pcmk__clear_action_flags(action, pcmk_action_optional); action 1207 lib/pacemaker/pcmk_sched_ordering.c pcmk__new_ordering(action->rsc, NULL, action, NULL, action 1204 lib/pacemaker/pcmk_sched_primitive.c pcmk__primitive_action_flags(pcmk_action_t *action, const pcmk_node_t *node) action 1206 lib/pacemaker/pcmk_sched_primitive.c pcmk__assert(action != NULL); action 1207 lib/pacemaker/pcmk_sched_primitive.c return (uint32_t) action->flags; action 484 lib/pacemaker/pcmk_sched_probes.c if ((after->action->rsc->variant <= pcmk_rsc_variant_group) action 488 lib/pacemaker/pcmk_sched_probes.c || (pe__const_top_resource(probe->rsc, false) != after->action->rsc) action 489 lib/pacemaker/pcmk_sched_probes.c || !pcmk__str_eq(after->action->task, PCMK_ACTION_START, action 497 lib/pacemaker/pcmk_sched_probes.c after->action->uuid, pcmk__node_name(after->action->node)); action 499 lib/pacemaker/pcmk_sched_probes.c for (GList *then_iter = after->action->actions_after; then_iter != NULL; action 504 lib/pacemaker/pcmk_sched_probes.c if (then->action->rsc->running_on action 505 lib/pacemaker/pcmk_sched_probes.c || (pe__const_top_resource(then->action->rsc, false) action 506 lib/pacemaker/pcmk_sched_probes.c != after->action->rsc) action 507 lib/pacemaker/pcmk_sched_probes.c || !pcmk__str_eq(then->action->task, PCMK_ACTION_START, action 515 lib/pacemaker/pcmk_sched_probes.c then->action->uuid, pcmk__node_name(then->action->node), action 521 lib/pacemaker/pcmk_sched_probes.c order_actions(probe, then->action, flags); action 634 lib/pacemaker/pcmk_sched_probes.c || (after_wrapper->action->rsc == NULL) action 635 lib/pacemaker/pcmk_sched_probes.c || (after_wrapper->action->rsc->variant > pcmk_rsc_variant_group) action 636 lib/pacemaker/pcmk_sched_probes.c || (after->rsc != after_wrapper->action->rsc->parent)) { action 645 lib/pacemaker/pcmk_sched_probes.c || (compatible_rsc != after_wrapper->action->rsc))) { action 653 lib/pacemaker/pcmk_sched_probes.c after_wrapper->action->uuid, action 654 lib/pacemaker/pcmk_sched_probes.c pcmk__node_name(after_wrapper->action->node), action 657 lib/pacemaker/pcmk_sched_probes.c add_restart_orderings_for_probe(probe, after_wrapper->action); action 671 lib/pacemaker/pcmk_sched_probes.c pcmk_action_t *action = iter->data; action 673 lib/pacemaker/pcmk_sched_probes.c pcmk__clear_action_flags(action, pcmk_action_detect_loop); action 710 lib/pacemaker/pcmk_sched_probes.c add_restart_orderings_for_probe(probe, then->action); action 785 lib/pacemaker/pcmk_sched_probes.c pcmk_action_t *first = before->action; action 796 lib/pacemaker/pcmk_sched_probes.c first->uuid, before->action->uuid, start->uuid); action 798 lib/pacemaker/pcmk_sched_probes.c pcmk__assert(before->action->rsc != NULL); action 799 lib/pacemaker/pcmk_sched_probes.c first_rsc = before->action->rsc; action 96 lib/pacemaker/pcmk_sched_promotable.c const pcmk_action_t *action = (const pcmk_action_t *) iter->data; action 101 lib/pacemaker/pcmk_sched_promotable.c } else if (pcmk_is_set(action->flags, pcmk_action_optional)) { action 104 lib/pacemaker/pcmk_sched_promotable.c } else if (pcmk__str_eq(PCMK_ACTION_DEMOTE, action->task, action 108 lib/pacemaker/pcmk_sched_promotable.c } else if (pcmk__str_eq(PCMK_ACTION_PROMOTE, action->task, action 435 lib/pacemaker/pcmk_sched_recurring.c pcmk_action_t *action) action 440 lib/pacemaker/pcmk_sched_recurring.c order_actions((pcmk_action_t *) iter->data, action, action 456 lib/pacemaker/pcmk_sched_recurring.c pcmk_action_t *action) action 464 lib/pacemaker/pcmk_sched_recurring.c && !pcmk_is_set(action->flags, pcmk_action_optional) action 467 lib/pacemaker/pcmk_sched_recurring.c action->uuid, pcmk__node_name(node)); action 468 lib/pacemaker/pcmk_sched_recurring.c pcmk__set_action_flags(action, pcmk_action_optional); action 473 lib/pacemaker/pcmk_sched_recurring.c action->uuid, pcmk__node_name(node)); action 474 lib/pacemaker/pcmk_sched_recurring.c pcmk__clear_action_flags(action, pcmk_action_runnable); action 479 lib/pacemaker/pcmk_sched_recurring.c NULL, NULL, action, action 738 lib/pacemaker/pcmk_sched_recurring.c pcmk__action_is_recurring(const pcmk_action_t *action) action 742 lib/pacemaker/pcmk_sched_recurring.c if (pcmk__guint_from_hash(action->meta, PCMK_META_INTERVAL, 0, action 168 lib/pacemaker/pcmk_sched_remote.c apply_remote_ordering(pcmk_action_t *action) action 171 lib/pacemaker/pcmk_sched_remote.c enum action_tasks task = pcmk_parse_action(action->task); action 172 lib/pacemaker/pcmk_sched_remote.c enum remote_connection_state state = get_remote_node_state(action->node); action 176 lib/pacemaker/pcmk_sched_remote.c if (action->rsc == NULL) { action 180 lib/pacemaker/pcmk_sched_remote.c pcmk__assert(pcmk__is_pacemaker_remote_node(action->node)); action 182 lib/pacemaker/pcmk_sched_remote.c remote_rsc = action->node->details->remote_rsc; action 186 lib/pacemaker/pcmk_sched_remote.c action->task, action->uuid, action 190 lib/pacemaker/pcmk_sched_remote.c if (pcmk__strcase_any_of(action->task, PCMK_ACTION_MIGRATE_TO, action 210 lib/pacemaker/pcmk_sched_remote.c order_start_then_action(remote_rsc, action, order_opts); action 215 lib/pacemaker/pcmk_sched_remote.c order_action_then_stop(action, remote_rsc, action 225 lib/pacemaker/pcmk_sched_remote.c pe_fence_node(remote_rsc->cluster, action->node, action 235 lib/pacemaker/pcmk_sched_remote.c order_action_then_stop(action, remote_rsc, action 242 lib/pacemaker/pcmk_sched_remote.c order_start_then_action(remote_rsc, action, pcmk__ar_none); action 254 lib/pacemaker/pcmk_sched_remote.c order_start_then_action(remote_rsc, action, pcmk__ar_none); action 260 lib/pacemaker/pcmk_sched_remote.c if (pcmk__action_is_recurring(action)) { action 265 lib/pacemaker/pcmk_sched_remote.c order_start_then_action(remote_rsc, action, action 276 lib/pacemaker/pcmk_sched_remote.c pe_fence_node(remote_rsc->cluster, action->node, action 286 lib/pacemaker/pcmk_sched_remote.c order_action_then_stop(action, remote_rsc, action 290 lib/pacemaker/pcmk_sched_remote.c order_start_then_action(remote_rsc, action, pcmk__ar_none); action 298 lib/pacemaker/pcmk_sched_remote.c apply_container_ordering(pcmk_action_t *action) action 309 lib/pacemaker/pcmk_sched_remote.c enum action_tasks task = pcmk_parse_action(action->task); action 311 lib/pacemaker/pcmk_sched_remote.c pcmk__assert(action->rsc != NULL); action 312 lib/pacemaker/pcmk_sched_remote.c pcmk__assert(action->node != NULL); action 313 lib/pacemaker/pcmk_sched_remote.c pcmk__assert(pcmk__is_pacemaker_remote_node(action->node)); action 315 lib/pacemaker/pcmk_sched_remote.c remote_rsc = action->node->details->remote_rsc; action 322 lib/pacemaker/pcmk_sched_remote.c pe_fence_node(action->rsc->cluster, action->node, "container failed", action 327 lib/pacemaker/pcmk_sched_remote.c action->task, action->uuid, action 333 lib/pacemaker/pcmk_sched_remote.c if (pcmk__strcase_any_of(action->task, PCMK_ACTION_MIGRATE_TO, action 345 lib/pacemaker/pcmk_sched_remote.c order_start_then_action(container, action, action 349 lib/pacemaker/pcmk_sched_remote.c order_start_then_action(remote_rsc, action, pcmk__ar_none); action 370 lib/pacemaker/pcmk_sched_remote.c order_action_then_stop(action, remote_rsc, pcmk__ar_none); action 376 lib/pacemaker/pcmk_sched_remote.c if (pcmk__action_is_recurring(action)) { action 382 lib/pacemaker/pcmk_sched_remote.c order_start_then_action(remote_rsc, action, action 386 lib/pacemaker/pcmk_sched_remote.c order_start_then_action(remote_rsc, action, pcmk__ar_none); action 408 lib/pacemaker/pcmk_sched_remote.c pcmk_action_t *action = iter->data; action 412 lib/pacemaker/pcmk_sched_remote.c if (action->rsc == NULL) { action 420 lib/pacemaker/pcmk_sched_remote.c if (action->rsc->is_remote_node && action 421 lib/pacemaker/pcmk_sched_remote.c pcmk__str_eq(action->task, PCMK_ACTION_CLEAR_FAILCOUNT, action 424 lib/pacemaker/pcmk_sched_remote.c pcmk__new_ordering(action->rsc, NULL, action, action->rsc, action 425 lib/pacemaker/pcmk_sched_remote.c pcmk__op_key(action->rsc->id, PCMK_ACTION_START, action 433 lib/pacemaker/pcmk_sched_remote.c if (action->node == NULL) { action 437 lib/pacemaker/pcmk_sched_remote.c if (!pcmk__is_pacemaker_remote_node(action->node)) { action 447 lib/pacemaker/pcmk_sched_remote.c if (pcmk_is_set(action->flags, pcmk_action_pseudo)) { action 451 lib/pacemaker/pcmk_sched_remote.c remote = action->node->details->remote_rsc; action 462 lib/pacemaker/pcmk_sched_remote.c if (pcmk__str_eq(action->task, PCMK_ACTION_START, pcmk__str_none)) { action 463 lib/pacemaker/pcmk_sched_remote.c for (GList *item = action->rsc->actions; item != NULL; action 467 lib/pacemaker/pcmk_sched_remote.c if (!pcmk__same_node(rsc_action->node, action->node) action 471 lib/pacemaker/pcmk_sched_remote.c action->rsc, NULL, rsc_action, action 487 lib/pacemaker/pcmk_sched_remote.c crm_trace("Container ordering for %s", action->uuid); action 488 lib/pacemaker/pcmk_sched_remote.c apply_container_ordering(action); action 491 lib/pacemaker/pcmk_sched_remote.c crm_trace("Remote ordering for %s", action->uuid); action 492 lib/pacemaker/pcmk_sched_remote.c apply_remote_ordering(action); action 546 lib/pacemaker/pcmk_sched_remote.c pcmk__connection_host_for_action(const pcmk_action_t *action) action 551 lib/pacemaker/pcmk_sched_remote.c const char *task = action->task; action 554 lib/pacemaker/pcmk_sched_remote.c || !pcmk__is_pacemaker_remote_node(action->node)) { action 558 lib/pacemaker/pcmk_sched_remote.c pcmk__assert(action->node->details->remote_rsc != NULL); action 560 lib/pacemaker/pcmk_sched_remote.c began_on = pcmk__current_node(action->node->details->remote_rsc); action 561 lib/pacemaker/pcmk_sched_remote.c ended_on = action->node->details->remote_rsc->allocated_to; action 562 lib/pacemaker/pcmk_sched_remote.c if (action->node->details->remote_rsc action 563 lib/pacemaker/pcmk_sched_remote.c && (action->node->details->remote_rsc->container == NULL) action 564 lib/pacemaker/pcmk_sched_remote.c && action->node->details->remote_rsc->partial_migration_target) { action 571 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), action 580 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), action 589 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), action 603 lib/pacemaker/pcmk_sched_remote.c task = g_hash_table_lookup(action->meta, "notify_operation"); action 624 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), action 636 lib/pacemaker/pcmk_sched_remote.c action->task, (action->rsc? action->rsc->id : "no resource"), action 685 lib/pacemaker/pcmk_sched_remote.c pcmk__add_guest_meta_to_xml(xmlNode *args_xml, const pcmk_action_t *action) action 687 lib/pacemaker/pcmk_sched_remote.c const pcmk_node_t *guest = action->node; action 695 lib/pacemaker/pcmk_sched_remote.c task = pcmk_parse_action(action->task); action 697 lib/pacemaker/pcmk_sched_remote.c task = pcmk_parse_action(g_hash_table_lookup(action->meta, action 725 lib/pacemaker/pcmk_sched_remote.c g_hash_table_lookup(action->rsc->meta, action 509 lib/pacemaker/pcmk_scheduler.c add_nondc_fencing(GList *list, pcmk_action_t *action, action 519 lib/pacemaker/pcmk_scheduler.c order_actions((pcmk_action_t *) list->data, action, pcmk__ar_ordered); action 521 lib/pacemaker/pcmk_scheduler.c return g_list_prepend(list, action); action 724 lib/pacemaker/pcmk_scheduler.c const pcmk_action_t *action = (const pcmk_action_t *) iter->data; action 726 lib/pacemaker/pcmk_scheduler.c if (!pcmk_any_flags_set(action->flags, flags)) { action 727 lib/pacemaker/pcmk_scheduler.c pcmk__log_action("\t", action, true); action 44 lib/pacemaker/pcmk_simulate.c create_action_name(const pcmk_action_t *action, bool verbose) action 50 lib/pacemaker/pcmk_simulate.c const char *task = action->task; action 52 lib/pacemaker/pcmk_simulate.c if (action->node != NULL) { action 53 lib/pacemaker/pcmk_simulate.c action_host = action->node->details->uname; action 54 lib/pacemaker/pcmk_simulate.c } else if (!pcmk_is_set(action->flags, pcmk_action_pseudo)) { action 58 lib/pacemaker/pcmk_simulate.c if (pcmk__str_eq(action->task, PCMK_ACTION_CANCEL, pcmk__str_none)) { action 60 lib/pacemaker/pcmk_simulate.c task = action->cancel_task; action 63 lib/pacemaker/pcmk_simulate.c if (action->rsc != NULL) { action 64 lib/pacemaker/pcmk_simulate.c clone_name = action->rsc->clone_name; action 71 lib/pacemaker/pcmk_simulate.c if (pcmk__guint_from_hash(action->meta, PCMK_META_INTERVAL, 0, action 76 lib/pacemaker/pcmk_simulate.c if (pcmk__strcase_any_of(action->task, PCMK_ACTION_NOTIFY, action 78 lib/pacemaker/pcmk_simulate.c const char *n_type = g_hash_table_lookup(action->meta, action 80 lib/pacemaker/pcmk_simulate.c const char *n_task = g_hash_table_lookup(action->meta, action 98 lib/pacemaker/pcmk_simulate.c } else if (pcmk__str_eq(action->task, PCMK_ACTION_STONITH, action 100 lib/pacemaker/pcmk_simulate.c const char *op = g_hash_table_lookup(action->meta, action 104 lib/pacemaker/pcmk_simulate.c prefix, action->task, op, action_host); action 106 lib/pacemaker/pcmk_simulate.c } else if (action->rsc && action_host) { action 108 lib/pacemaker/pcmk_simulate.c prefix, action->uuid, action_host); action 112 lib/pacemaker/pcmk_simulate.c prefix, action->task, action_host); action 115 lib/pacemaker/pcmk_simulate.c action_name = crm_strdup_printf("%s", action->uuid); action 119 lib/pacemaker/pcmk_simulate.c char *with_id = crm_strdup_printf("%s (%d)", action_name, action->id); action 235 lib/pacemaker/pcmk_simulate.c pcmk_action_t *action = (pcmk_action_t *) iter->data; action 239 lib/pacemaker/pcmk_simulate.c char *action_name = create_action_name(action, verbose); action 241 lib/pacemaker/pcmk_simulate.c if (pcmk_is_set(action->flags, pcmk_action_pseudo)) { action 245 lib/pacemaker/pcmk_simulate.c if (pcmk_is_set(action->flags, pcmk_action_added_to_graph)) { action 249 lib/pacemaker/pcmk_simulate.c } else if ((action->rsc != NULL) action 250 lib/pacemaker/pcmk_simulate.c && !pcmk_is_set(action->rsc->flags, pcmk_rsc_managed)) { action 257 lib/pacemaker/pcmk_simulate.c } else if (pcmk_is_set(action->flags, pcmk_action_optional)) { action 265 lib/pacemaker/pcmk_simulate.c CRM_LOG_ASSERT(!pcmk_is_set(action->flags, pcmk_action_runnable)); action 268 lib/pacemaker/pcmk_simulate.c pcmk__set_action_flags(action, pcmk_action_added_to_graph); action 276 lib/pacemaker/pcmk_simulate.c pcmk_action_t *action = (pcmk_action_t *) iter->data; action 278 lib/pacemaker/pcmk_simulate.c for (GList *before_iter = action->actions_before; action 293 lib/pacemaker/pcmk_simulate.c } else if (pcmk_is_set(before->action->flags, action 295 lib/pacemaker/pcmk_simulate.c && pcmk_is_set(action->flags, pcmk_action_added_to_graph) action 301 lib/pacemaker/pcmk_simulate.c before_name = create_action_name(before->action, verbose); action 302 lib/pacemaker/pcmk_simulate.c after_name = create_action_name(action, verbose); action 475 lib/pacemaker/pcmk_simulate.c simulate_pseudo_action(pcmk__graph_t *graph, pcmk__graph_action_t *action) action 477 lib/pacemaker/pcmk_simulate.c const char *node = crm_element_value(action->xml, PCMK__META_ON_NODE); action 478 lib/pacemaker/pcmk_simulate.c const char *task = crm_element_value(action->xml, PCMK__XA_OPERATION_KEY); action 480 lib/pacemaker/pcmk_simulate.c pcmk__set_graph_action_flags(action, pcmk__graph_action_confirmed); action 483 lib/pacemaker/pcmk_simulate.c pcmk__update_graph(graph, action); action 497 lib/pacemaker/pcmk_simulate.c simulate_resource_action(pcmk__graph_t *graph, pcmk__graph_action_t *action) action 508 lib/pacemaker/pcmk_simulate.c const char *operation = crm_element_value(action->xml, PCMK_XA_OPERATION); action 509 lib/pacemaker/pcmk_simulate.c const char *target_rc_s = crm_meta_value(action->params, action 514 lib/pacemaker/pcmk_simulate.c xmlNode *action_rsc = pcmk__xe_first_child(action->xml, PCMK_XE_PRIMITIVE, action 517 lib/pacemaker/pcmk_simulate.c char *node = crm_element_value_copy(action->xml, PCMK__META_ON_NODE); action 519 lib/pacemaker/pcmk_simulate.c const char *router_node = crm_element_value(action->xml, action 529 lib/pacemaker/pcmk_simulate.c crm_log_xml_err(action->xml, "Bad"); action 541 lib/pacemaker/pcmk_simulate.c crm_log_xml_err(action->xml, "No ID"); action 573 lib/pacemaker/pcmk_simulate.c uuid = crm_element_value_copy(action->xml, PCMK__META_ON_NODE_UUID); action 585 lib/pacemaker/pcmk_simulate.c action->id, resource); action 592 lib/pacemaker/pcmk_simulate.c op = pcmk__event_from_graph_action(cib_resource, action, PCMK_EXEC_DONE, action 637 lib/pacemaker/pcmk_simulate.c action->id, op->rc); action 638 lib/pacemaker/pcmk_simulate.c pcmk__set_graph_action_flags(action, pcmk__graph_action_failed); action 654 lib/pacemaker/pcmk_simulate.c pcmk__set_graph_action_flags(action, pcmk__graph_action_confirmed); action 655 lib/pacemaker/pcmk_simulate.c pcmk__update_graph(graph, action); action 669 lib/pacemaker/pcmk_simulate.c simulate_cluster_action(pcmk__graph_t *graph, pcmk__graph_action_t *action) action 671 lib/pacemaker/pcmk_simulate.c const char *node = crm_element_value(action->xml, PCMK__META_ON_NODE); action 672 lib/pacemaker/pcmk_simulate.c const char *task = crm_element_value(action->xml, PCMK_XA_OPERATION); action 673 lib/pacemaker/pcmk_simulate.c xmlNode *rsc = pcmk__xe_first_child(action->xml, PCMK_XE_PRIMITIVE, NULL, action 676 lib/pacemaker/pcmk_simulate.c pcmk__set_graph_action_flags(action, pcmk__graph_action_confirmed); action 678 lib/pacemaker/pcmk_simulate.c pcmk__update_graph(graph, action); action 692 lib/pacemaker/pcmk_simulate.c simulate_fencing_action(pcmk__graph_t *graph, pcmk__graph_action_t *action) action 694 lib/pacemaker/pcmk_simulate.c const char *op = crm_meta_value(action->params, PCMK__META_STONITH_ACTION); action 695 lib/pacemaker/pcmk_simulate.c char *target = crm_element_value_copy(action->xml, PCMK__META_ON_NODE); action 733 lib/pacemaker/pcmk_simulate.c pcmk__set_graph_action_flags(action, pcmk__graph_action_confirmed); action 734 lib/pacemaker/pcmk_simulate.c pcmk__update_graph(graph, action); action 1409 lib/pengine/clone.c pcmk_action_t *action = NULL; action 1416 lib/pengine/clone.c action = pe__new_rsc_pseudo_action(clone, PCMK_ACTION_PROMOTE, action 1428 lib/pengine/clone.c action, action 1433 lib/pengine/clone.c action = pe__new_rsc_pseudo_action(clone, PCMK_ACTION_DEMOTE, action 1445 lib/pengine/clone.c action, action 22 lib/pengine/pe_actions.c static void unpack_operation(pcmk_action_t *action, const xmlNode *xml_obj, action 26 lib/pengine/pe_actions.c add_singleton(pcmk_scheduler_t *scheduler, pcmk_action_t *action) action 31 lib/pengine/pe_actions.c g_hash_table_insert(scheduler->singletons, action->uuid, action); action 59 lib/pengine/pe_actions.c pcmk_action_t *action = NULL; action 71 lib/pengine/pe_actions.c action = matches->data; action 73 lib/pengine/pe_actions.c return action; action 172 lib/pengine/pe_actions.c pcmk_action_t *action = pcmk__assert_alloc(1, sizeof(pcmk_action_t)); action 174 lib/pengine/pe_actions.c action->rsc = rsc; action 175 lib/pengine/pe_actions.c action->task = pcmk__str_copy(task); action 176 lib/pengine/pe_actions.c action->uuid = key; action 179 lib/pengine/pe_actions.c action->node = pe__copy_node(node); action 184 lib/pengine/pe_actions.c pcmk__set_action_flags(action, pcmk_action_on_dc); action 187 lib/pengine/pe_actions.c pcmk__set_action_flags(action, pcmk_action_runnable); action 189 lib/pengine/pe_actions.c pcmk__set_action_flags(action, pcmk_action_optional); action 191 lib/pengine/pe_actions.c pcmk__clear_action_flags(action, pcmk_action_optional); action 195 lib/pengine/pe_actions.c action->meta = pcmk__strkey_table(free, free); action 200 lib/pengine/pe_actions.c action->op_entry = pcmk__find_action_config(rsc, task, interval_ms, action 206 lib/pengine/pe_actions.c if ((action->op_entry == NULL) && (strstr(key, "_notify_") != NULL)) { action 207 lib/pengine/pe_actions.c action->op_entry = find_exact_action_config(rsc, PCMK_ACTION_NOTIFY, action 211 lib/pengine/pe_actions.c unpack_operation(action, action->op_entry, interval_ms); action 219 lib/pengine/pe_actions.c action->id = scheduler->action_id++; action 221 lib/pengine/pe_actions.c scheduler->actions = g_list_prepend(scheduler->actions, action); action 223 lib/pengine/pe_actions.c add_singleton(scheduler, action); action 225 lib/pengine/pe_actions.c rsc->actions = g_list_prepend(rsc->actions, action); action 227 lib/pengine/pe_actions.c return action; action 269 lib/pengine/pe_actions.c update_action_optional(pcmk_action_t *action, gboolean optional) action 272 lib/pengine/pe_actions.c if ((action->rsc != NULL) && (action->node != NULL) action 273 lib/pengine/pe_actions.c && !pcmk_is_set(action->flags, pcmk_action_pseudo) action 274 lib/pengine/pe_actions.c && !pcmk_is_set(action->rsc->flags, pcmk_rsc_managed) action 275 lib/pengine/pe_actions.c && (g_hash_table_lookup(action->meta, PCMK_META_INTERVAL) == NULL)) { action 276 lib/pengine/pe_actions.c pcmk__rsc_debug(action->rsc, action 278 lib/pengine/pe_actions.c action->uuid, pcmk__node_name(action->node), action 279 lib/pengine/pe_actions.c action->rsc->id); action 280 lib/pengine/pe_actions.c pcmk__set_action_flags(action, pcmk_action_optional); action 285 lib/pengine/pe_actions.c pcmk__clear_action_flags(action, pcmk_action_optional); action 325 lib/pengine/pe_actions.c update_resource_action_runnable(pcmk_action_t *action, action 328 lib/pengine/pe_actions.c if (pcmk_is_set(action->flags, pcmk_action_pseudo)) { action 332 lib/pengine/pe_actions.c if (action->node == NULL) { action 333 lib/pengine/pe_actions.c pcmk__rsc_trace(action->rsc, "%s is unrunnable (unallocated)", action 334 lib/pengine/pe_actions.c action->uuid); action 335 lib/pengine/pe_actions.c pcmk__clear_action_flags(action, pcmk_action_runnable); action 337 lib/pengine/pe_actions.c } else if (!pcmk_is_set(action->flags, pcmk_action_on_dc) action 338 lib/pengine/pe_actions.c && !(action->node->details->online) action 339 lib/pengine/pe_actions.c && (!pcmk__is_guest_or_bundle_node(action->node) action 340 lib/pengine/pe_actions.c || action->node->details->remote_requires_reset)) { action 341 lib/pengine/pe_actions.c pcmk__clear_action_flags(action, pcmk_action_runnable); action 343 lib/pengine/pe_actions.c action->uuid, pcmk__node_name(action->node)); action 344 lib/pengine/pe_actions.c if (pcmk_is_set(action->rsc->flags, pcmk_rsc_managed) action 345 lib/pengine/pe_actions.c && pcmk__str_eq(action->task, PCMK_ACTION_STOP, pcmk__str_casei) action 346 lib/pengine/pe_actions.c && !(action->node->details->unclean)) { action 347 lib/pengine/pe_actions.c pe_fence_node(scheduler, action->node, "stop is unrunnable", false); action 350 lib/pengine/pe_actions.c } else if (!pcmk_is_set(action->flags, pcmk_action_on_dc) action 351 lib/pengine/pe_actions.c && action->node->details->pending) { action 352 lib/pengine/pe_actions.c pcmk__clear_action_flags(action, pcmk_action_runnable); action 355 lib/pengine/pe_actions.c action->uuid, pcmk__node_name(action->node)); action 357 lib/pengine/pe_actions.c } else if (action->needs == pcmk_requires_nothing) { action 358 lib/pengine/pe_actions.c pe_action_set_reason(action, NULL, TRUE); action 359 lib/pengine/pe_actions.c if (pcmk__is_guest_or_bundle_node(action->node) action 360 lib/pengine/pe_actions.c && !pe_can_fence(scheduler, action->node)) { action 366 lib/pengine/pe_actions.c pcmk__rsc_debug(action->rsc, action 369 lib/pengine/pe_actions.c action->uuid, pcmk__node_name(action->node)); action 370 lib/pengine/pe_actions.c pcmk__clear_action_flags(action, pcmk_action_runnable); action 372 lib/pengine/pe_actions.c pcmk__rsc_trace(action->rsc, action 374 lib/pengine/pe_actions.c action->uuid, pcmk__node_name(action->node)); action 375 lib/pengine/pe_actions.c pcmk__set_action_flags(action, pcmk_action_runnable); action 379 lib/pengine/pe_actions.c switch (effective_quorum_policy(action->rsc, scheduler)) { action 381 lib/pengine/pe_actions.c pcmk__rsc_debug(action->rsc, action 383 lib/pengine/pe_actions.c action->uuid, pcmk__node_name(action->node)); action 384 lib/pengine/pe_actions.c pcmk__clear_action_flags(action, pcmk_action_runnable); action 385 lib/pengine/pe_actions.c pe_action_set_reason(action, "no quorum", true); action 389 lib/pengine/pe_actions.c if (!action->rsc->fns->active(action->rsc, TRUE) action 390 lib/pengine/pe_actions.c || (action->rsc->next_role > action->rsc->role)) { action 391 lib/pengine/pe_actions.c pcmk__rsc_debug(action->rsc, action 393 lib/pengine/pe_actions.c action->uuid, action 394 lib/pengine/pe_actions.c pcmk__node_name(action->node)); action 395 lib/pengine/pe_actions.c pcmk__clear_action_flags(action, pcmk_action_runnable); action 396 lib/pengine/pe_actions.c pe_action_set_reason(action, "quorum freeze", true); action 402 lib/pengine/pe_actions.c pcmk__set_action_flags(action, pcmk_action_runnable); action 417 lib/pengine/pe_actions.c const pcmk_action_t *action) action 422 lib/pengine/pe_actions.c if (pcmk__str_eq(action->task, PCMK_ACTION_STOP, pcmk__str_casei)) { action 425 lib/pengine/pe_actions.c } else if (pcmk__str_eq(action->task, PCMK_ACTION_START, pcmk__str_casei)) { action 426 lib/pengine/pe_actions.c if (pcmk_is_set(action->flags, pcmk_action_runnable)) { action 1095 lib/pengine/pe_actions.c unpack_operation(pcmk_action_t *action, const xmlNode *xml_obj, action 1100 lib/pengine/pe_actions.c action->meta = pcmk__unpack_action_meta(action->rsc, action->node, action 1101 lib/pengine/pe_actions.c action->task, interval_ms, xml_obj); action 1102 lib/pengine/pe_actions.c action->needs = pcmk__action_requires(action->rsc, action->task); action 1104 lib/pengine/pe_actions.c value = g_hash_table_lookup(action->meta, PCMK_META_ON_FAIL); action 1105 lib/pengine/pe_actions.c action->on_fail = pcmk__parse_on_fail(action->rsc, action->task, action 1108 lib/pengine/pe_actions.c action->fail_role = pcmk__role_after_failure(action->rsc, action->task, action 1109 lib/pengine/pe_actions.c action->on_fail, action->meta); action 1133 lib/pengine/pe_actions.c pcmk_action_t *action = NULL; action 1137 lib/pengine/pe_actions.c action = find_existing_action(key, rsc, on_node, scheduler); action 1138 lib/pengine/pe_actions.c if (action == NULL) { action 1139 lib/pengine/pe_actions.c action = new_action(key, task, rsc, on_node, optional, scheduler); action 1144 lib/pengine/pe_actions.c update_action_optional(action, optional); action 1152 lib/pengine/pe_actions.c if ((action->node != NULL) && (action->op_entry != NULL) action 1153 lib/pengine/pe_actions.c && !pcmk_is_set(action->flags, pcmk_action_attrs_evaluated)) { action 1155 lib/pengine/pe_actions.c GHashTable *attrs = action->node->details->attrs; action 1157 lib/pengine/pe_actions.c if (action->extra != NULL) { action 1158 lib/pengine/pe_actions.c g_hash_table_destroy(action->extra); action 1160 lib/pengine/pe_actions.c action->extra = pcmk__unpack_action_rsc_params(action->op_entry, action 1162 lib/pengine/pe_actions.c pcmk__set_action_flags(action, pcmk_action_attrs_evaluated); action 1165 lib/pengine/pe_actions.c update_resource_action_runnable(action, scheduler); action 1166 lib/pengine/pe_actions.c update_resource_flags_for_action(rsc, action); action 1169 lib/pengine/pe_actions.c if (action->extra == NULL) { action 1170 lib/pengine/pe_actions.c action->extra = pcmk__strkey_table(free, free); action 1173 lib/pengine/pe_actions.c return action; action 1396 lib/pengine/pe_actions.c pe_free_action(pcmk_action_t *action) action 1398 lib/pengine/pe_actions.c if (action == NULL) { action 1401 lib/pengine/pe_actions.c g_list_free_full(action->actions_before, free); action 1402 lib/pengine/pe_actions.c g_list_free_full(action->actions_after, free); action 1403 lib/pengine/pe_actions.c if (action->extra) { action 1404 lib/pengine/pe_actions.c g_hash_table_destroy(action->extra); action 1406 lib/pengine/pe_actions.c if (action->meta) { action 1407 lib/pengine/pe_actions.c g_hash_table_destroy(action->meta); action 1409 lib/pengine/pe_actions.c free(action->cancel_task); action 1410 lib/pengine/pe_actions.c free(action->reason); action 1411 lib/pengine/pe_actions.c free(action->task); action 1412 lib/pengine/pe_actions.c free(action->uuid); action 1413 lib/pengine/pe_actions.c free(action->node); action 1414 lib/pengine/pe_actions.c free(action); action 1457 lib/pengine/pe_actions.c pcmk_action_t *action = (pcmk_action_t *) gIter->data; action 1459 lib/pengine/pe_actions.c if (uuid != NULL && !pcmk__str_eq(uuid, action->uuid, pcmk__str_casei)) { action 1462 lib/pengine/pe_actions.c } else if (task != NULL && !pcmk__str_eq(task, action->task, pcmk__str_casei)) { action 1466 lib/pengine/pe_actions.c return action; action 1468 lib/pengine/pe_actions.c } else if (action->node == NULL) { action 1471 lib/pengine/pe_actions.c } else if (pcmk__same_node(on_node, action->node)) { action 1472 lib/pengine/pe_actions.c return action; action 1488 lib/pengine/pe_actions.c pcmk_action_t *action = (pcmk_action_t *) gIter->data; action 1490 lib/pengine/pe_actions.c if (!pcmk__str_eq(key, action->uuid, pcmk__str_casei)) { action 1495 lib/pengine/pe_actions.c result = g_list_prepend(result, action); action 1497 lib/pengine/pe_actions.c } else if (action->node == NULL) { action 1501 lib/pengine/pe_actions.c action->node = pe__copy_node(on_node); action 1502 lib/pengine/pe_actions.c result = g_list_prepend(result, action); action 1504 lib/pengine/pe_actions.c } else if (pcmk__same_node(on_node, action->node)) { action 1506 lib/pengine/pe_actions.c result = g_list_prepend(result, action); action 1525 lib/pengine/pe_actions.c pcmk_action_t *action = (pcmk_action_t *) gIter->data; action 1527 lib/pengine/pe_actions.c if ((action->node != NULL) action 1528 lib/pengine/pe_actions.c && pcmk__str_eq(key, action->uuid, pcmk__str_casei) action 1529 lib/pengine/pe_actions.c && pcmk__str_eq(on_node->details->id, action->node->details->id, action 1533 lib/pengine/pe_actions.c result = g_list_prepend(result, action); action 1579 lib/pengine/pe_actions.c pe__action2reason(const pcmk_action_t *action, enum pe_action_flags flag) action 1599 lib/pengine/pe_actions.c (action->rsc == NULL)? "" : " ", action 1600 lib/pengine/pe_actions.c (action->rsc == NULL)? "" : action->rsc->id, action 1601 lib/pengine/pe_actions.c action->task); action 1604 lib/pengine/pe_actions.c void pe_action_set_reason(pcmk_action_t *action, const char *reason, action 1607 lib/pengine/pe_actions.c if (action->reason != NULL && overwrite) { action 1608 lib/pengine/pe_actions.c pcmk__rsc_trace(action->rsc, "Changing %s reason from '%s' to '%s'", action 1609 lib/pengine/pe_actions.c action->uuid, action->reason, action 1611 lib/pengine/pe_actions.c } else if (action->reason == NULL) { action 1612 lib/pengine/pe_actions.c pcmk__rsc_trace(action->rsc, "Set %s reason to '%s'", action 1613 lib/pengine/pe_actions.c action->uuid, pcmk__s(reason, "(none)")); action 1619 lib/pengine/pe_actions.c pcmk__str_update(&action->reason, reason); action 1807 lib/pengine/pe_actions.c pcmk_action_t *action = NULL; action 1811 lib/pengine/pe_actions.c action = custom_action(rsc, pcmk__op_key(rsc->id, task, 0), task, NULL, action 1813 lib/pengine/pe_actions.c pcmk__set_action_flags(action, pcmk_action_pseudo); action 1815 lib/pengine/pe_actions.c pcmk__set_action_flags(action, pcmk_action_runnable); action 1817 lib/pengine/pe_actions.c return action; action 1830 lib/pengine/pe_actions.c pe__add_action_expected_result(pcmk_action_t *action, int expected_result) action 1832 lib/pengine/pe_actions.c pcmk__assert((action != NULL) && (action->meta != NULL)); action 1834 lib/pengine/pe_actions.c g_hash_table_insert(action->meta, pcmk__str_copy(PCMK__META_OP_TARGET_RC), action 260 lib/pengine/pe_notif.c pcmk_action_t *action) action 265 lib/pengine/pe_notif.c pcmk__insert_meta(action, nvpair->name, nvpair->value); action 281 lib/pengine/pe_notif.c new_notify_pseudo_action(pcmk_resource_t *rsc, const pcmk_action_t *action, action 287 lib/pengine/pe_notif.c pcmk__notify_key(rsc->id, notif_type, action->task), action 289 lib/pengine/pe_notif.c pcmk_is_set(action->flags, pcmk_action_optional), action 293 lib/pengine/pe_notif.c pcmk__insert_meta(notify, "notify_key_operation", action->task); action 433 lib/pengine/pe_notif.c pcmk_action_t *action, pcmk_action_t *complete) action 443 lib/pengine/pe_notif.c n_data->action = task; action 445 lib/pengine/pe_notif.c if (action != NULL) { // Need "pre-" pseudo-actions action 448 lib/pengine/pe_notif.c n_data->pre = new_notify_pseudo_action(rsc, action, PCMK_ACTION_NOTIFY, action 452 lib/pengine/pe_notif.c pcmk__insert_meta(n_data->pre, "notify_operation", n_data->action); action 455 lib/pengine/pe_notif.c n_data->pre_done = new_notify_pseudo_action(rsc, action, action 460 lib/pengine/pe_notif.c pcmk__insert_meta(n_data->pre_done, "notify_operation", n_data->action); action 464 lib/pengine/pe_notif.c order_actions(n_data->pre_done, action, pcmk__ar_ordered); action 479 lib/pengine/pe_notif.c pcmk__insert_meta(n_data->post, "notify_operation", n_data->action); action 493 lib/pengine/pe_notif.c "notify_operation", n_data->action); action 502 lib/pengine/pe_notif.c if ((action != NULL) && (complete != NULL)) { action 679 lib/pengine/pe_notif.c && pcmk__str_eq(n_data->action, PCMK_ACTION_STOP, pcmk__str_none)) { action 686 lib/pengine/pe_notif.c && pcmk__str_eq(n_data->action, PCMK_ACTION_START, pcmk__str_none)) { action 695 lib/pengine/pe_notif.c && pcmk__str_eq(n_data->action, PCMK_ACTION_DEMOTE, pcmk__str_none)) { action 704 lib/pengine/pe_notif.c && pcmk__str_eq(n_data->action, PCMK_ACTION_PROMOTE, pcmk__str_none)) { action 781 lib/pengine/pe_notif.c find_remote_start(pcmk_action_t *action) action 783 lib/pengine/pe_notif.c if ((action != NULL) && (action->node != NULL)) { action 784 lib/pengine/pe_notif.c pcmk_resource_t *remote_rsc = action->node->details->remote_rsc; action 808 lib/pengine/pe_notif.c enum action_tasks task = pcmk_parse_action(n_data->action); action 840 lib/pengine/pe_notif.c rsc->id, n_data->action); action 848 lib/pengine/pe_notif.c rsc->id, n_data->action); action 856 lib/pengine/pe_notif.c rsc->id, n_data->action); action 867 lib/pengine/pe_notif.c rsc->id, n_data->action); action 49 lib/pengine/pe_status_private.h const char *action; action 81 lib/pengine/pe_status_private.h pcmk_action_t *action, action 4204 lib/pengine/unpack.c order_after_remote_fencing(pcmk_action_t *action, pcmk_resource_t *remote_conn, action 4213 lib/pengine/unpack.c order_actions(fence, action, pcmk__ar_first_implies_then); action 482 lib/pengine/utils.c if ((after->action == then) action 489 lib/pengine/utils.c wrapper->action = then; action 496 lib/pengine/utils.c wrapper->action = first; action 199 lib/services/services.c const char *agent, const char *action) action 225 lib/services/services.c if (pcmk__str_empty(action)) { action 237 lib/services/services.c const char *agent, const char *action) action 255 lib/services/services.c && pcmk__str_eq(action, PCMK_ACTION_MONITOR, pcmk__str_casei)) { action 256 lib/services/services.c action = PCMK_ACTION_STATUS; action 258 lib/services/services.c op->action = strdup(action); action 259 lib/services/services.c if (op->action == NULL) { action 275 lib/services/services.c const char *action, guint interval_ms, int timeout, action 305 lib/services/services.c action)) { action 312 lib/services/services.c op->id = pcmk__op_key(name, action, interval_ms); action 315 lib/services/services.c action) != pcmk_rc_ok) { action 317 lib/services/services.c action, name, strerror(ENOMEM)); action 348 lib/services/services.c action, name, strerror(rc)); action 357 lib/services/services.c const char *action, guint interval_ms, int timeout, action 361 lib/services/services.c provider, agent, action, interval_ms, timeout, action 436 lib/services/services.c svc_action_t *action = services_action_create_generic(exec, NULL); action 438 lib/services/services.c action->id = pcmk__str_copy(id); action 439 lib/services/services.c action->standard = pcmk__str_copy(PCMK_RESOURCE_CLASS_ALERT); action 440 lib/services/services.c action->timeout = timeout; action 441 lib/services/services.c action->params = params; action 442 lib/services/services.c action->sequence = sequence; action 443 lib/services/services.c action->cb_data = cb_data; action 444 lib/services/services.c return action; action 483 lib/services/services.c services_alert_async(svc_action_t *action, void (*cb)(svc_action_t *op)) action 485 lib/services/services.c action->synchronous = false; action 486 lib/services/services.c action->opaque->callback = cb; action 487 lib/services/services.c return services__execute_file(action) == pcmk_rc_ok; action 527 lib/services/services.c crm_trace("Removing timer for call %s to %s", op->action, op->rsc); action 568 lib/services/services.c services_result2ocf(const char *standard, const char *action, int exit_status) action 594 lib/services/services.c return services__lsb2ocf(action, exit_status); action 640 lib/services/services.c free(op->action); action 684 lib/services/services.c services_action_cancel(const char *name, const char *action, guint interval_ms) action 687 lib/services/services.c char *id = pcmk__op_key(name, action, interval_ms); action 752 lib/services/services.c services_action_kick(const char *name, const char *action, guint interval_ms) action 755 lib/services/services.c char *id = pcmk__op_key(name, action, interval_ms); action 1055 lib/services/services.c if (pcmk__str_eq(op->action, PCMK_ACTION_META_DATA, pcmk__str_casei)) { action 1068 lib/services/services.c op->rsc, op->action, op->interval_ms, op->opaque->exec, op->rc); action 1322 lib/services/services.c services__set_result(svc_action_t *action, int agent_status, action 1325 lib/services/services.c if (action == NULL) { action 1329 lib/services/services.c action->rc = agent_status; action 1330 lib/services/services.c action->status = exec_status; action 1332 lib/services/services.c if (!pcmk__str_eq(action->opaque->exit_reason, reason, action 1334 lib/services/services.c free(action->opaque->exit_reason); action 1335 lib/services/services.c action->opaque->exit_reason = (reason == NULL)? NULL : strdup(reason); action 1351 lib/services/services.c services__format_result(svc_action_t *action, int agent_status, action 1359 lib/services/services.c if (action == NULL) { action 1363 lib/services/services.c action->rc = agent_status; action 1364 lib/services/services.c action->status = exec_status; action 1372 lib/services/services.c free(action->opaque->exit_reason); action 1373 lib/services/services.c action->opaque->exit_reason = reason; action 1385 lib/services/services.c services__set_cancelled(svc_action_t *action) action 1387 lib/services/services.c if (action != NULL) { action 1388 lib/services/services.c action->status = PCMK_EXEC_CANCELLED; action 1389 lib/services/services.c free(action->opaque->exit_reason); action 1390 lib/services/services.c action->opaque->exit_reason = NULL; action 1403 lib/services/services.c services__action_kind(const svc_action_t *action) action 1405 lib/services/services.c if ((action == NULL) || (action->standard == NULL)) { action 1407 lib/services/services.c } else if (pcmk__str_eq(action->standard, PCMK_RESOURCE_CLASS_STONITH, action 1410 lib/services/services.c } else if (pcmk__str_eq(action->standard, PCMK_RESOURCE_CLASS_ALERT, action 1427 lib/services/services.c services__exit_reason(const svc_action_t *action) action 1429 lib/services/services.c return action->opaque->exit_reason; action 1443 lib/services/services.c services__grab_stdout(svc_action_t *action) action 1445 lib/services/services.c char *output = action->stdout_data; action 1447 lib/services/services.c action->stdout_data = NULL; action 1462 lib/services/services.c services__grab_stderr(svc_action_t *action) action 1464 lib/services/services.c char *output = action->stderr_data; action 1466 lib/services/services.c action->stderr_data = NULL; action 777 lib/services/services_linux.c && pcmk__str_eq(op->action, PCMK_ACTION_STATUS, pcmk__str_casei)) { action 814 lib/services/services_linux.c && pcmk__str_eq(op->action, PCMK_ACTION_STATUS, pcmk__str_casei)) { action 851 lib/services/services_linux.c && pcmk__str_eq(op->action, PCMK_ACTION_STATUS, pcmk__str_casei)) { action 889 lib/services/services_linux.c && pcmk__str_eq(op->action, PCMK_ACTION_STATUS, pcmk__str_casei)) { action 1013 lib/services/services_linux.c if (pcmk__str_eq(op->action, PCMK_ACTION_STOP, pcmk__str_casei)) { action 276 lib/services/services_lsb.c op->opaque->args[1] = strdup(op->action); action 293 lib/services/services_lsb.c services__lsb2ocf(const char *action, int exit_status) action 296 lib/services/services_lsb.c if (!pcmk__str_any_of(action, PCMK_ACTION_STATUS, PCMK_ACTION_MONITOR, action 331 lib/services/services_lsb.c services_action_create(const char *name, const char *action, action 335 lib/services/services_lsb.c action, interval_ms, timeout, NULL, 0); action 19 lib/services/services_lsb.h enum ocf_exitcode services__lsb2ocf(const char *action, int exit_status); action 52 lib/services/services_nagios.c if (pcmk__str_eq(op->action, PCMK_ACTION_MONITOR, pcmk__str_casei) action 149 lib/services/services_ocf.c op->opaque->args[1] = strdup(op->action); action 48 lib/services/services_private.h const char *services__action_kind(const svc_action_t *action); action 85 lib/services/services_private.h void services__set_cancelled(svc_action_t *action); action 312 lib/services/systemd.c if (pcmk__str_eq(op->action, PCMK_ACTION_STOP, pcmk__str_casei)) { action 326 lib/services/systemd.c op->action, op->agent, action 465 lib/services/systemd.c || pcmk__str_eq(op->action, action 752 lib/services/systemd.c op->action, pcmk__s(op->rsc, "unknown resource")); action 763 lib/services/systemd.c op->action, pcmk__s(op->rsc, "unknown resource"), path); action 956 lib/services/systemd.c if (pcmk__str_any_of(op->action, PCMK_ACTION_MONITOR, PCMK_ACTION_STATUS, action 980 lib/services/systemd.c } else if (pcmk__str_eq(op->action, PCMK_ACTION_START, pcmk__str_none)) { action 984 lib/services/systemd.c } else if (pcmk__str_eq(op->action, PCMK_ACTION_STOP, pcmk__str_none)) { action 988 lib/services/systemd.c } else if (pcmk__str_eq(op->action, "restart", pcmk__str_none)) { action 996 lib/services/systemd.c pcmk__s(op->action, "(unspecified)")); action 1014 lib/services/systemd.c pcmk__str_eq(op->action, action 1055 lib/services/systemd.c op->action, op->agent, op->rsc); action 1058 lib/services/systemd.c "did not complete in time", op->action, op->agent); action 1084 lib/services/systemd.c if ((op->action == NULL) || (op->agent == NULL)) { action 1097 lib/services/systemd.c (op->synchronous? "" : "a"), op->action, op->agent, action 1100 lib/services/systemd.c if (pcmk__str_eq(op->action, PCMK_ACTION_META_DATA, pcmk__str_casei)) { action 428 lib/services/upstart.c if (pcmk__str_eq(op->action, PCMK_ACTION_STOP, pcmk__str_casei)) { action 439 lib/services/upstart.c } else if (pcmk__str_eq(op->action, PCMK_ACTION_START, pcmk__str_casei) action 449 lib/services/upstart.c op->action, op->agent, pcmk__s(op->rsc, "with unknown name"), action 478 lib/services/upstart.c } else if (pcmk__str_eq(op->action, PCMK_ACTION_STOP, pcmk__str_none)) { action 487 lib/services/upstart.c "return type was unexpected", op->action, action 497 lib/services/upstart.c op->action, pcmk__s(op->rsc, "unknown resource"), path); action 534 lib/services/upstart.c const char *action = op->action; action 543 lib/services/upstart.c if ((op->action == NULL) || (op->agent == NULL)) { action 555 lib/services/upstart.c if (pcmk__str_eq(op->action, PCMK_ACTION_META_DATA, pcmk__str_casei)) { action 562 lib/services/upstart.c if (pcmk__str_eq(action, PCMK_ACTION_STOP, pcmk__str_none)) { action 579 lib/services/upstart.c if (pcmk__strcase_any_of(op->action, PCMK_ACTION_MONITOR, action 615 lib/services/upstart.c } else if (pcmk__str_eq(action, PCMK_ACTION_START, pcmk__str_none)) { action 616 lib/services/upstart.c action = "Start"; action 618 lib/services/upstart.c } else if (pcmk__str_eq(action, PCMK_ACTION_STOP, pcmk__str_none)) { action 619 lib/services/upstart.c action = "Stop"; action 621 lib/services/upstart.c } else if (pcmk__str_eq(action, "restart", pcmk__str_none)) { action 622 lib/services/upstart.c action = "Restart"; action 636 lib/services/upstart.c action, pcmk__s(op->rsc, "unknown resource"), job); action 641 lib/services/upstart.c action); // method name action 682 lib/services/upstart.c } else if (pcmk__str_eq(op->action, PCMK_ACTION_STOP, pcmk__str_none)) { action 689 lib/services/upstart.c op->action); action 697 lib/services/upstart.c crm_debug("Call to %s passed: %s", op->action, path); action 184 maint/gnulib/lib/c-stack.c c_stack_action (_GL_ASYNC_SAFE void (*action) (int)) action 186 maint/gnulib/lib/c-stack.c segv_action = action ? action : null_action; action 208 maint/gnulib/lib/c-stack.c c_stack_action (_GL_ASYNC_SAFE void (*action) (_GL_UNUSED int) ) action 100 maint/gnulib/lib/fatal-signal.c struct sigaction action; action 102 maint/gnulib/lib/fatal-signal.c if (sigaction (fatal_signals[i], NULL, &action) >= 0 action 103 maint/gnulib/lib/fatal-signal.c && get_handler (&action) == SIG_IGN) action 122 maint/gnulib/lib/fatal-signal.c volatile action_t action; action 162 maint/gnulib/lib/fatal-signal.c action_t action; action 168 maint/gnulib/lib/fatal-signal.c action = actions[n].action; action 170 maint/gnulib/lib/fatal-signal.c action (sig); action 188 maint/gnulib/lib/fatal-signal.c struct sigaction action; action 190 maint/gnulib/lib/fatal-signal.c action.sa_handler = &fatal_signal_handler; action 194 maint/gnulib/lib/fatal-signal.c action.sa_flags = SA_NODEFER; action 195 maint/gnulib/lib/fatal-signal.c sigemptyset (&action.sa_mask); action 203 maint/gnulib/lib/fatal-signal.c sigaction (sig, &action, &saved_sigactions[sig]); action 214 maint/gnulib/lib/fatal-signal.c at_fatal_signal (action_t action) action 270 maint/gnulib/lib/fatal-signal.c actions[actions_count].action = action; action 178 maint/gnulib/lib/fcntl.c static int klibc_fcntl (int fd, int action, /* arg */...); action 202 maint/gnulib/lib/fcntl.c fcntl (int fd, int action, /* arg */...) action 210 maint/gnulib/lib/fcntl.c va_start (arg, action); action 211 maint/gnulib/lib/fcntl.c switch (action) action 259 maint/gnulib/lib/fcntl.c switch (action) action 328 maint/gnulib/lib/fcntl.c result = fcntl (fd, action); action 424 maint/gnulib/lib/fcntl.c result = fcntl (fd, action, x); action 432 maint/gnulib/lib/fcntl.c result = fcntl (fd, action, p); action 551 maint/gnulib/lib/fcntl.c klibc_fcntl (int fd, int action, /* arg */...) action 558 maint/gnulib/lib/fcntl.c va_start (arg_ptr, action); action 560 maint/gnulib/lib/fcntl.c result = fcntl (fd, action, arg); action 567 maint/gnulib/lib/fcntl.c switch (action) action 138 maint/gnulib/lib/fcntl.in.h _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); action 139 maint/gnulib/lib/fcntl.in.h _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); action 145 maint/gnulib/lib/fcntl.in.h _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); action 150 maint/gnulib/lib/fcntl.in.h _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); action 237 maint/gnulib/lib/gl_anytree_oset.h void (*action) (const void * /*elt*/, void * /*action_data*/), action 245 maint/gnulib/lib/gl_anytree_oset.h action (elt, action_data); action 292 maint/gnulib/lib/gl_array_oset.c void (*action) (const void * /*elt*/, void * /*action_data*/), action 300 maint/gnulib/lib/gl_array_oset.c action (elt, action_data); action 158 maint/gnulib/lib/gl_oset.h void (*action) (const void *elt, void *action_data), action 227 maint/gnulib/lib/gl_oset.h void (*action) (const void * /*elt*/, void * /*action_data*/), action 296 maint/gnulib/lib/gl_oset.h void (*action) (const void * /*elt*/, void * /*action_data*/), action 300 maint/gnulib/lib/gl_oset.h ->update (set, elt, action, action_data); action 113 maint/gnulib/lib/gl_oset.hh void (*action) (ELTYPE * /*elt*/, DT * /*action_data*/), action 117 maint/gnulib/lib/gl_oset.hh reinterpret_cast<void (*) (const void *, void *)> (action), action 212 maint/gnulib/lib/search.in.h (const void *vroot, _gl_search_action_fn action) action 215 maint/gnulib/lib/search.in.h (const void *vroot, _gl_search_action_fn action)); action 219 maint/gnulib/lib/search.in.h (const void *vroot, _gl_search_action_fn action) action 223 maint/gnulib/lib/search.in.h (const void *vroot, _gl_search_action_fn action)); action 64 maint/gnulib/lib/sigpipe-die.c struct sigaction action; action 66 maint/gnulib/lib/sigpipe-die.c action.sa_handler = sigpipe_die_handler; action 67 maint/gnulib/lib/sigpipe-die.c action.sa_flags = 0; action 68 maint/gnulib/lib/sigpipe-die.c sigemptyset (&action.sa_mask); action 69 maint/gnulib/lib/sigpipe-die.c if (sigaction (SIGPIPE, &action, NULL) >= 0) action 1174 maint/gnulib/lib/sigsegv.c struct sigaction action; action 1177 maint/gnulib/lib/sigsegv.c action.sa_sigaction = &sigsegv_handler; action 1179 maint/gnulib/lib/sigsegv.c action.sa_handler = (void (*) (int)) &sigsegv_handler; action 1189 maint/gnulib/lib/sigsegv.c sigemptyset (&action.sa_mask); action 1191 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGHUP); action 1194 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGINT); action 1197 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGQUIT); action 1200 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGPIPE); action 1203 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGALRM); action 1206 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGTERM); action 1209 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGUSR1); action 1212 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGUSR2); action 1215 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGCHLD); action 1218 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGCLD); action 1221 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGURG); action 1224 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGIO); action 1227 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGPOLL); action 1230 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGXCPU); action 1233 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGXFSZ); action 1236 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGVTALRM); action 1239 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGPROF); action 1242 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGPWR); action 1245 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGLOST); action 1248 maint/gnulib/lib/sigsegv.c sigaddset (&action.sa_mask,SIGWINCH); action 1253 maint/gnulib/lib/sigsegv.c action.sa_flags = SA_SIGINFO; action 1255 maint/gnulib/lib/sigsegv.c action.sa_flags = 0; action 1263 maint/gnulib/lib/sigsegv.c action.sa_flags |= SA_ONSTACK; action 1265 maint/gnulib/lib/sigsegv.c sigaction (sig, &action, (struct sigaction *) NULL); action 61 maint/gnulib/lib/spawn_faction_addchdir.c rec->action.chdir_action.path = path_copy; action 61 maint/gnulib/lib/spawn_faction_addclose.c rec->action.open_action.fd = fd; action 61 maint/gnulib/lib/spawn_faction_adddup2.c rec->action.dup2_action.fd = fd; action 62 maint/gnulib/lib/spawn_faction_adddup2.c rec->action.dup2_action.newfd = newfd; action 60 maint/gnulib/lib/spawn_faction_addfchdir.c rec->action.fchdir_action.fd = fd; action 74 maint/gnulib/lib/spawn_faction_addopen.c rec->action.open_action.fd = fd; action 75 maint/gnulib/lib/spawn_faction_addopen.c rec->action.open_action.path = path_copy; action 76 maint/gnulib/lib/spawn_faction_addopen.c rec->action.open_action.oflag = oflag; action 77 maint/gnulib/lib/spawn_faction_addopen.c rec->action.open_action.mode = mode; action 45 maint/gnulib/lib/spawn_faction_destroy.c free (sa->action.open_action.path); action 48 maint/gnulib/lib/spawn_faction_destroy.c free (sa->action.chdir_action.path); action 57 maint/gnulib/lib/spawn_int.h } action; action 569 maint/gnulib/lib/spawni.c struct __spawn_action *action = &file_actions->_actions[cnt]; action 571 maint/gnulib/lib/spawni.c switch (action->tag) action 575 maint/gnulib/lib/spawni.c int fd = action->action.close_action.fd; action 583 maint/gnulib/lib/spawni.c int newfd = action->action.open_action.fd; action 584 maint/gnulib/lib/spawni.c const char *filename = action->action.open_action.path; action 585 maint/gnulib/lib/spawni.c int flags = action->action.open_action.oflag; action 586 maint/gnulib/lib/spawni.c mode_t mode = action->action.open_action.mode; action 596 maint/gnulib/lib/spawni.c int oldfd = action->action.dup2_action.fd; action 597 maint/gnulib/lib/spawni.c int newfd = action->action.dup2_action.newfd; action 605 maint/gnulib/lib/spawni.c char *newdir = action->action.chdir_action.path; action 829 maint/gnulib/lib/spawni.c struct __spawn_action *action = &file_actions->_actions[cnt]; action 831 maint/gnulib/lib/spawni.c switch (action->tag) action 834 maint/gnulib/lib/spawni.c if (close_not_cancel (action->action.close_action.fd) != 0) action 841 maint/gnulib/lib/spawni.c int new_fd = open_not_cancel (action->action.open_action.path, action 842 maint/gnulib/lib/spawni.c action->action.open_action.oflag action 844 maint/gnulib/lib/spawni.c action->action.open_action.mode); action 851 maint/gnulib/lib/spawni.c if (new_fd != action->action.open_action.fd) action 853 maint/gnulib/lib/spawni.c if (dup2 (new_fd, action->action.open_action.fd) action 854 maint/gnulib/lib/spawni.c != action->action.open_action.fd) action 866 maint/gnulib/lib/spawni.c if (dup2 (action->action.dup2_action.fd, action 867 maint/gnulib/lib/spawni.c action->action.dup2_action.newfd) action 868 maint/gnulib/lib/spawni.c != action->action.dup2_action.newfd) action 874 maint/gnulib/lib/spawni.c if (chdir (action->action.chdir_action.path) < 0) action 880 maint/gnulib/lib/spawni.c if (fchdir (action->action.fchdir_action.fd) < 0) action 55 maint/gnulib/lib/supersede.c struct supersede_final_action *action) action 72 maint/gnulib/lib/supersede.c action->final_rename_temp = temp_filename; action 73 maint/gnulib/lib/supersede.c action->final_rename_dest = canon_filename; action 80 maint/gnulib/lib/supersede.c struct supersede_final_action *action) action 111 maint/gnulib/lib/supersede.c action->final_rename_temp = NULL; action 112 maint/gnulib/lib/supersede.c action->final_rename_dest = NULL; action 125 maint/gnulib/lib/supersede.c fd = create_temp_file (canon_filename, flags, mode, action); action 137 maint/gnulib/lib/supersede.c action->final_rename_temp = NULL; action 138 maint/gnulib/lib/supersede.c action->final_rename_dest = NULL; action 155 maint/gnulib/lib/supersede.c action->final_rename_temp = NULL; action 156 maint/gnulib/lib/supersede.c action->final_rename_dest = NULL; action 168 maint/gnulib/lib/supersede.c action); action 180 maint/gnulib/lib/supersede.c action->final_rename_temp = NULL; action 181 maint/gnulib/lib/supersede.c action->final_rename_dest = NULL; action 197 maint/gnulib/lib/supersede.c action->final_rename_temp = NULL; action 198 maint/gnulib/lib/supersede.c action->final_rename_dest = NULL; action 216 maint/gnulib/lib/supersede.c action->final_rename_temp = NULL; action 217 maint/gnulib/lib/supersede.c action->final_rename_dest = NULL; action 231 maint/gnulib/lib/supersede.c fd = create_temp_file (canon_filename, flags, mode, action); action 241 maint/gnulib/lib/supersede.c action->final_rename_temp = NULL; action 242 maint/gnulib/lib/supersede.c action->final_rename_dest = NULL; action 249 maint/gnulib/lib/supersede.c after_close_actions (int ret, const struct supersede_final_action *action) action 254 maint/gnulib/lib/supersede.c if (action->final_rename_temp != NULL) action 257 maint/gnulib/lib/supersede.c ignore_value (unlink (action->final_rename_temp)); action 258 maint/gnulib/lib/supersede.c free (action->final_rename_temp); action 259 maint/gnulib/lib/supersede.c free (action->final_rename_dest); action 265 maint/gnulib/lib/supersede.c if (action->final_rename_temp != NULL) action 270 maint/gnulib/lib/supersede.c if (stat (action->final_rename_temp, &temp_statbuf) < 0) action 275 maint/gnulib/lib/supersede.c ignore_value (unlink (action->final_rename_temp)); action 276 maint/gnulib/lib/supersede.c free (action->final_rename_temp); action 277 maint/gnulib/lib/supersede.c free (action->final_rename_dest); action 282 maint/gnulib/lib/supersede.c if (stat (action->final_rename_dest, &dest_statbuf) >= 0) action 291 maint/gnulib/lib/supersede.c ignore_value (utimens (action->final_rename_temp, ts)); action 297 maint/gnulib/lib/supersede.c ignore_value (chown (action->final_rename_temp, action 304 maint/gnulib/lib/supersede.c switch (qcopy_acl (action->final_rename_dest, -1, action 305 maint/gnulib/lib/supersede.c action->final_rename_temp, -1, action 312 maint/gnulib/lib/supersede.c ignore_value (unlink (action->final_rename_temp)); action 313 maint/gnulib/lib/supersede.c free (action->final_rename_temp); action 314 maint/gnulib/lib/supersede.c free (action->final_rename_dest); action 319 maint/gnulib/lib/supersede.c chmod (action->final_rename_temp, dest_statbuf.st_mode); action 338 maint/gnulib/lib/supersede.c if (!MoveFileEx (action->final_rename_temp, action->final_rename_dest, action 349 maint/gnulib/lib/supersede.c ignore_value (unlink (action->final_rename_temp)); action 350 maint/gnulib/lib/supersede.c free (action->final_rename_temp); action 351 maint/gnulib/lib/supersede.c free (action->final_rename_dest); action 356 maint/gnulib/lib/supersede.c if (rename (action->final_rename_temp, action->final_rename_dest) < 0) action 359 maint/gnulib/lib/supersede.c ignore_value (unlink (action->final_rename_temp)); action 360 maint/gnulib/lib/supersede.c free (action->final_rename_temp); action 361 maint/gnulib/lib/supersede.c free (action->final_rename_dest); action 367 maint/gnulib/lib/supersede.c unregister_temporary_file (action->final_rename_temp); action 369 maint/gnulib/lib/supersede.c free (action->final_rename_temp); action 370 maint/gnulib/lib/supersede.c free (action->final_rename_dest); action 377 maint/gnulib/lib/supersede.c close_supersede (int fd, const struct supersede_final_action *action) action 381 maint/gnulib/lib/supersede.c free (action->final_rename_temp); action 382 maint/gnulib/lib/supersede.c free (action->final_rename_dest); action 387 maint/gnulib/lib/supersede.c if (action->final_rename_temp != NULL) action 391 maint/gnulib/lib/supersede.c return after_close_actions (ret, action); action 397 maint/gnulib/lib/supersede.c struct supersede_final_action *action) action 444 maint/gnulib/lib/supersede.c action); action 453 maint/gnulib/lib/supersede.c close_supersede (-1, action); action 460 maint/gnulib/lib/supersede.c fclose_supersede (FILE *stream, const struct supersede_final_action *action) action 465 maint/gnulib/lib/supersede.c if (action->final_rename_temp != NULL) action 469 maint/gnulib/lib/supersede.c return after_close_actions (ret, action); action 474 maint/gnulib/lib/supersede.c fwriteerror_supersede (FILE *stream, const struct supersede_final_action *action) action 479 maint/gnulib/lib/supersede.c if (action->final_rename_temp != NULL) action 483 maint/gnulib/lib/supersede.c return after_close_actions (ret, action); action 97 maint/gnulib/lib/supersede.h struct supersede_final_action *action); action 103 maint/gnulib/lib/supersede.h const struct supersede_final_action *action); action 138 maint/gnulib/lib/supersede.h struct supersede_final_action *action); action 144 maint/gnulib/lib/supersede.h const struct supersede_final_action *action); action 151 maint/gnulib/lib/supersede.h const struct supersede_final_action *action); action 597 maint/gnulib/lib/term-style-control.c struct sigaction action; action 599 maint/gnulib/lib/term-style-control.c return (sigaction (sig, NULL, &action) >= 0 action 600 maint/gnulib/lib/term-style-control.c && get_handler (&action) == SIG_IGN); action 712 maint/gnulib/lib/term-style-control.c struct sigaction action; action 713 maint/gnulib/lib/term-style-control.c action.sa_handler = SIG_DFL; action 714 maint/gnulib/lib/term-style-control.c action.sa_flags = SA_NODEFER; action 715 maint/gnulib/lib/term-style-control.c sigemptyset (&action.sa_mask); action 716 maint/gnulib/lib/term-style-control.c sigaction (sig, &action, NULL); action 745 maint/gnulib/lib/term-style-control.c struct sigaction action; action 746 maint/gnulib/lib/term-style-control.c action.sa_handler = &stopping_signal_handler; action 751 maint/gnulib/lib/term-style-control.c action.sa_flags = SA_NODEFER; action 752 maint/gnulib/lib/term-style-control.c sigemptyset (&action.sa_mask); action 753 maint/gnulib/lib/term-style-control.c sigaction (sig, &action, NULL); action 794 maint/gnulib/lib/term-style-control.c struct sigaction action; action 795 maint/gnulib/lib/term-style-control.c action.sa_handler = &continuing_signal_handler; action 799 maint/gnulib/lib/term-style-control.c action.sa_flags = SA_NODEFER; action 800 maint/gnulib/lib/term-style-control.c sigemptyset (&action.sa_mask); action 801 maint/gnulib/lib/term-style-control.c sigaction (sig, &action, NULL); action 835 maint/gnulib/lib/term-style-control.c struct sigaction action; action 836 maint/gnulib/lib/term-style-control.c action.sa_handler = &stopping_signal_handler; action 840 maint/gnulib/lib/term-style-control.c action.sa_flags = SA_NODEFER; action 841 maint/gnulib/lib/term-style-control.c sigemptyset (&action.sa_mask); action 842 maint/gnulib/lib/term-style-control.c sigaction (sig, &action, NULL); action 620 maint/gnulib/lib/tsearch.c trecurse (const void *vroot, __action_fn_t action, int level) action 625 maint/gnulib/lib/tsearch.c (*action) (root, leaf, level); action 628 maint/gnulib/lib/tsearch.c (*action) (root, preorder, level); action 630 maint/gnulib/lib/tsearch.c trecurse (root->left, action, level + 1); action 631 maint/gnulib/lib/tsearch.c (*action) (root, postorder, level); action 633 maint/gnulib/lib/tsearch.c trecurse (root->right, action, level + 1); action 634 maint/gnulib/lib/tsearch.c (*action) (root, endorder, level); action 643 maint/gnulib/lib/tsearch.c __twalk (const void *vroot, __action_fn_t action) action 649 maint/gnulib/lib/tsearch.c if (root != NULL && action != NULL) action 650 maint/gnulib/lib/tsearch.c trecurse (root, action, 0); action 347 maint/gnulib/tests/test-asyncsafe-linked_list-strong.c struct sigaction action; action 348 maint/gnulib/tests/test-asyncsafe-linked_list-strong.c action.sa_handler = sigint_handler; action 349 maint/gnulib/tests/test-asyncsafe-linked_list-strong.c action.sa_flags = SA_RESTART | SA_NODEFER; action 350 maint/gnulib/tests/test-asyncsafe-linked_list-strong.c sigemptyset (&action.sa_mask); action 351 maint/gnulib/tests/test-asyncsafe-linked_list-strong.c ASSERT (sigaction (MY_SIGNAL, &action, NULL) == 0); action 469 maint/gnulib/tests/test-asyncsafe-linked_list-weak.c struct sigaction action; action 470 maint/gnulib/tests/test-asyncsafe-linked_list-weak.c action.sa_handler = sigint_handler; action 471 maint/gnulib/tests/test-asyncsafe-linked_list-weak.c action.sa_flags = SA_RESTART | SA_NODEFER; action 472 maint/gnulib/tests/test-asyncsafe-linked_list-weak.c sigemptyset (&action.sa_mask); action 473 maint/gnulib/tests/test-asyncsafe-linked_list-weak.c ASSERT (sigaction (MY_SIGNAL, &action, NULL) == 0); action 72 maint/gnulib/tests/test-oset-c++.cc ASSERT (set1.update (A, action, &data) == 1); action 61 maint/gnulib/tests/test-oset-update.h ASSERT (gl_oset_update (set1, B, action, &data) == 1); action 83 maint/gnulib/tests/test-oset-update.h ASSERT (gl_oset_update (set1, D, action, &data) == 0); action 105 maint/gnulib/tests/test-oset-update.h ASSERT (gl_oset_update (set1, A, action, &data) == -1); action 124 maint/gnulib/tests/test-oset-update.h ASSERT (gl_oset_update (set1, A, action, &data) == 0); action 32 maint/gnulib/tests/test-supersede-fopen.h struct supersede_final_action action; action 36 maint/gnulib/tests/test-supersede-fopen.h &action); action 43 maint/gnulib/tests/test-supersede-fopen.h ASSERT (fclose_supersede (fp, &action) == 0); action 59 maint/gnulib/tests/test-supersede-fopen.h struct supersede_final_action action; action 63 maint/gnulib/tests/test-supersede-fopen.h &action); action 81 maint/gnulib/tests/test-supersede-fopen.h ASSERT (fclose_supersede (fp, &action) == 0); action 107 maint/gnulib/tests/test-supersede-fopen.h struct supersede_final_action action; action 111 maint/gnulib/tests/test-supersede-fopen.h &action); action 115 maint/gnulib/tests/test-supersede-fopen.h ASSERT (fclose_supersede (fp, &action) == 0); action 131 maint/gnulib/tests/test-supersede-fopen.h struct supersede_final_action action; action 135 maint/gnulib/tests/test-supersede-fopen.h &action); action 153 maint/gnulib/tests/test-supersede-fopen.h ASSERT (fclose_supersede (fp, &action) == 0); action 188 maint/gnulib/tests/test-supersede-fopen.h struct supersede_final_action action; action 192 maint/gnulib/tests/test-supersede-fopen.h &action); action 196 maint/gnulib/tests/test-supersede-fopen.h ASSERT (fclose_supersede (fp, &action) == 0); action 217 maint/gnulib/tests/test-supersede-fopen.h struct supersede_final_action action; action 221 maint/gnulib/tests/test-supersede-fopen.h &action); action 228 maint/gnulib/tests/test-supersede-fopen.h ASSERT (fclose_supersede (fp, &action) == 0); action 251 maint/gnulib/tests/test-supersede-fopen.h struct supersede_final_action action; action 255 maint/gnulib/tests/test-supersede-fopen.h &action); action 32 maint/gnulib/tests/test-supersede-open.h struct supersede_final_action action; action 35 maint/gnulib/tests/test-supersede-open.h &action); action 42 maint/gnulib/tests/test-supersede-open.h ASSERT (close_supersede (fd, &action) == 0); action 58 maint/gnulib/tests/test-supersede-open.h struct supersede_final_action action; action 61 maint/gnulib/tests/test-supersede-open.h &action); action 79 maint/gnulib/tests/test-supersede-open.h ASSERT (close_supersede (fd, &action) == 0); action 105 maint/gnulib/tests/test-supersede-open.h struct supersede_final_action action; action 108 maint/gnulib/tests/test-supersede-open.h &action); action 112 maint/gnulib/tests/test-supersede-open.h ASSERT (close_supersede (fd, &action) == 0); action 128 maint/gnulib/tests/test-supersede-open.h struct supersede_final_action action; action 132 maint/gnulib/tests/test-supersede-open.h &action); action 150 maint/gnulib/tests/test-supersede-open.h ASSERT (close_supersede (fd, &action) == 0); action 185 maint/gnulib/tests/test-supersede-open.h struct supersede_final_action action; action 189 maint/gnulib/tests/test-supersede-open.h &action); action 193 maint/gnulib/tests/test-supersede-open.h ASSERT (close_supersede (fd, &action) == 0); action 214 maint/gnulib/tests/test-supersede-open.h struct supersede_final_action action; action 218 maint/gnulib/tests/test-supersede-open.h &action); action 225 maint/gnulib/tests/test-supersede-open.h ASSERT (close_supersede (fd, &action) == 0); action 248 maint/gnulib/tests/test-supersede-open.h struct supersede_final_action action; action 252 maint/gnulib/tests/test-supersede-open.h &action); action 171 maint/gnulib/tests/test-tsearch.c mangle_tree (enum order how, enum action what, void **root, int lag) action 246 tools/crm_resource_print.c const char *action = va_arg(args, const char *); action 259 tools/crm_resource_print.c action, action 273 tools/crm_resource_print.c action, action 291 tools/crm_resource_print.c const char *action G_GNUC_UNUSED = va_arg(args, const char *); action 414 tools/crm_resource_print.c const char *action = va_arg(args, const char *); action 437 tools/crm_resource_print.c out->message(out, "agent-status", status, action, rsc_name, class, provider, action 442 tools/crm_resource_print.c && pcmk__str_eq(action, PCMK_ACTION_VALIDATE_ALL, pcmk__str_casei)) { action 474 tools/crm_resource_print.c const char *action = va_arg(args, const char *); action 485 tools/crm_resource_print.c PCMK_XA_ACTION, action, action 511 tools/crm_resource_print.c out->message(out, "agent-status", status, action, rsc_name, class, provider, action 1879 tools/crm_resource_runtime.c action_is_pending(const pcmk_action_t *action) action 1881 tools/crm_resource_runtime.c if (pcmk_any_flags_set(action->flags, action 1883 tools/crm_resource_runtime.c || !pcmk_is_set(action->flags, pcmk_action_runnable) action 1884 tools/crm_resource_runtime.c || pcmk__str_eq(PCMK_ACTION_NOTIFY, action->task, pcmk__str_casei)) { action 1901 tools/crm_resource_runtime.c for (const GList *action = actions; action != NULL; action = action->next) { action 1902 tools/crm_resource_runtime.c const pcmk_action_t *a = (const pcmk_action_t *) action->data; action 1915 tools/crm_resource_runtime.c GList *action; action 1918 tools/crm_resource_runtime.c for (action = actions; action != NULL; action = action->next) { action 1919 tools/crm_resource_runtime.c pcmk_action_t *a = (pcmk_action_t *) action->data; action 2043 tools/crm_resource_runtime.c const char *action = NULL; action 2046 tools/crm_resource_runtime.c action = PCMK_ACTION_VALIDATE_ALL; action 2049 tools/crm_resource_runtime.c action = PCMK_ACTION_MONITOR; action 2053 tools/crm_resource_runtime.c action = rsc_action+6; action 2055 tools/crm_resource_runtime.c action = rsc_action; action 2058 tools/crm_resource_runtime.c return action; action 2134 tools/crm_resource_runtime.c const char *action = get_action(rsc_action); action 2147 tools/crm_resource_runtime.c rsc_class, rsc_prov, rsc_type, action, action 2152 tools/crm_resource_runtime.c action, rsc_class, (rsc_prov? ":" : ""), action 2179 tools/crm_resource_runtime.c enum ocf_exitcode ocf_code = services_result2ocf(class, action, op->rc); action 2202 tools/crm_resource_runtime.c get_action_timeout(pcmk_resource_t *rsc, const char *action) action 2205 tools/crm_resource_runtime.c xmlNode *op = pcmk__find_action_config(rsc, action, 0, true); action 2206 tools/crm_resource_runtime.c GHashTable *meta = pcmk__unpack_action_meta(rsc, NULL, action, 0, op); action 41 tools/stonith_admin.c char action = 0; action 430 tools/stonith_admin.c action = 'K'; action 435 tools/stonith_admin.c action = 'I'; action 439 tools/stonith_admin.c action = 'L'; action 444 tools/stonith_admin.c action = 'R'; action 449 tools/stonith_admin.c action = 'Q'; action 454 tools/stonith_admin.c action = 'D'; action 459 tools/stonith_admin.c action = 's'; action 464 tools/stonith_admin.c action = 'L'; action 471 tools/stonith_admin.c action = 'M'; action 476 tools/stonith_admin.c action = 'B'; action 483 tools/stonith_admin.c action = 'F'; action 490 tools/stonith_admin.c action = 'U'; action 496 tools/stonith_admin.c action = 'C'; action 502 tools/stonith_admin.c action = 'h'; action 507 tools/stonith_admin.c action = 'H'; action 512 tools/stonith_admin.c action = 'r'; action 517 tools/stonith_admin.c action = 'd'; action 521 tools/stonith_admin.c if (action == 0) { action 554 tools/stonith_admin.c switch (action) {