task 257 daemons/controld/controld_callbacks.c const char *task = crm_element_value(down->xml, XML_LRM_ATTR_TASK); task 259 daemons/controld/controld_callbacks.c if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 265 daemons/controld/controld_callbacks.c } else if (!appeared && pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 275 daemons/controld/controld_callbacks.c task, node->uname, down->id); task 278 daemons/controld/controld_callbacks.c task, node->uname, down->id); task 288 daemons/controld/controld_callbacks.c task, down->id); task 271 daemons/controld/controld_execd.c const char *rsc_id, lrmd_rsc_info_t *rsc, const char *task, task 274 daemons/controld/controld_execd.c lrmd_event_data_t *op = construct_op(lrm_state, input->xml, rsc_id, task); task 364 daemons/controld/controld_fencing.c const char *task = NULL; task 386 daemons/controld/controld_fencing.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 387 daemons/controld/controld_fencing.c if (task && pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 339 daemons/controld/controld_messages.c const char *task = crm_element_value(msg, F_CRM_TASK); task 350 daemons/controld/controld_messages.c } else if (pcmk__str_eq(task, CRM_OP_HELLO, pcmk__str_casei)) { task 379 daemons/controld/controld_messages.c if (pcmk__strcase_any_of(task, CRM_OP_NODE_INFO, task 397 daemons/controld/controld_messages.c } else if (is_for_crm && pcmk__str_eq(task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 43 daemons/controld/controld_te_actions.c const char *task = crm_element_value(pseudo->xml, XML_LRM_ATTR_TASK); task 46 daemons/controld/controld_te_actions.c if (pcmk__str_eq(task, CRM_OP_MAINTENANCE_NODES, pcmk__str_casei)) { task 58 daemons/controld/controld_te_actions.c cmd = create_request(task, pseudo->xml, node->uname, task 94 daemons/controld/controld_te_actions.c const char *task = NULL; task 103 daemons/controld/controld_te_actions.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 109 daemons/controld/controld_te_actions.c if (pcmk__str_eq(task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 119 daemons/controld/controld_te_actions.c crm_err("Corrupted command (id=%s) %s: no node", crm_str(id), crm_str(task)); task 133 daemons/controld/controld_te_actions.c (no_wait? " without waiting" : ""), crm_str(task), on_node); task 135 daemons/controld/controld_te_actions.c if (is_local && pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 143 daemons/controld/controld_te_actions.c } else if (pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 149 daemons/controld/controld_te_actions.c cmd = create_request(task, action->xml, router_node, CRM_SYSTEM_CRMD, CRM_SYSTEM_TENGINE, NULL); task 169 daemons/controld/controld_te_actions.c action->id, task, on_node, action->timeout, graph->network_delay); task 282 daemons/controld/controld_te_actions.c const char *task = NULL; task 295 daemons/controld/controld_te_actions.c crm_err("Corrupted command(id=%s) %s: no node", ID(action->xml), crm_str(task)); task 299 daemons/controld/controld_te_actions.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 321 daemons/controld/controld_te_actions.c task, task_uuid, (is_local? " locally" : ""), on_node, task 369 daemons/controld/controld_te_actions.c action->id, task, task_uuid, on_node, action->timeout); task 373 daemons/controld/controld_te_actions.c action->id, task, task_uuid, on_node, action->timeout, graph->network_delay); task 440 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 454 daemons/controld/controld_te_actions.c if ((target == NULL) && pcmk__strcase_any_of(task, CRMD_ACTION_MIGRATE, task 475 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 501 daemons/controld/controld_te_actions.c if (pcmk__strcase_any_of(task, CRMD_ACTION_MIGRATE, CRMD_ACTION_MIGRATED, NULL)) { task 517 daemons/controld/controld_te_actions.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 530 daemons/controld/controld_te_actions.c if ((target == NULL) && pcmk__strcase_any_of(task, CRMD_ACTION_MIGRATE, task 658 daemons/controld/controld_te_callbacks.c const char *task = NULL; task 669 daemons/controld/controld_te_callbacks.c task = crm_element_value(timer->action->xml, XML_LRM_ATTR_TASK); task 676 daemons/controld/controld_te_callbacks.c (on_node? on_node : ""), (task? task : "unknown action"), task 683 daemons/controld/controld_te_callbacks.c (on_node? on_node : ""), (task? task : "unknown action"), task 694 daemons/controld/controld_te_callbacks.c && controld_action_is_recordable(task)) { task 54 daemons/controld/controld_te_events.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 56 daemons/controld/controld_te_events.c if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 116 daemons/controld/controld_te_events.c char *task = NULL; task 135 daemons/controld/controld_te_events.c CRM_CHECK(parse_op_key(id, &rsc_id, &task, &interval_ms), task 139 daemons/controld/controld_te_events.c if ((interval_ms > 0) || pcmk__str_eq(task, CRMD_ACTION_PROMOTE, pcmk__str_casei) task 140 daemons/controld/controld_te_events.c || pcmk__str_eq(task, CRMD_ACTION_DEMOTE, pcmk__str_casei)) { task 143 daemons/controld/controld_te_events.c } else if (pcmk__str_eq(task, CRMD_ACTION_START, pcmk__str_casei)) { task 150 daemons/controld/controld_te_events.c } else if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 174 daemons/controld/controld_te_events.c rsc_id, on_uname, task, rc, value, now); task 178 daemons/controld/controld_te_events.c attr_name = pcmk__failcount_name(rsc_id, task, interval_ms); task 186 daemons/controld/controld_te_events.c attr_name = pcmk__lastfailure_name(rsc_id, task, interval_ms); task 195 daemons/controld/controld_te_events.c free(task); task 228 daemons/controld/controld_te_events.c const char *task = NULL; task 232 daemons/controld/controld_te_events.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 233 daemons/controld/controld_te_events.c if (!pcmk__str_eq(CRMD_ACTION_CANCEL, task, pcmk__str_casei)) { task 237 daemons/controld/controld_te_events.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); task 238 daemons/controld/controld_te_events.c if (!pcmk__str_eq(task, id, pcmk__str_casei)) { task 239 daemons/controld/controld_te_events.c crm_trace("Wrong key %s for %s on %s", task, id, node); task 28 daemons/controld/controld_transition.h extern const char *get_rsc_state(const char *task, enum op_status status); task 155 daemons/pacemakerd/pcmkd_messages.c const char *task = NULL; task 167 daemons/pacemakerd/pcmkd_messages.c task = crm_element_value(msg, F_CRM_TASK); task 168 daemons/pacemakerd/pcmkd_messages.c if (pcmk__str_eq(task, CRM_OP_QUIT, pcmk__str_none)) { task 172 daemons/pacemakerd/pcmkd_messages.c } else if (pcmk__str_eq(task, CRM_OP_RM_NODE_CACHE, pcmk__str_none)) { task 177 daemons/pacemakerd/pcmkd_messages.c } else if (pcmk__str_eq(task, CRM_OP_PING, pcmk__str_none)) { task 183 daemons/pacemakerd/pcmkd_messages.c crm_str(task), pcmk__client_name(c)); task 42 include/crm/common/ipc.h #define create_request(task, xml_data, host_to, sys_to, sys_from, uuid_from) \ task 43 include/crm/common/ipc.h create_request_adv(task, xml_data, host_to, sys_to, sys_from, uuid_from, \ task 46 include/crm/common/ipc.h xmlNode *create_request_adv(const char *task, xmlNode *xml_data, task 71 include/crm/common/util.h const char *task, const char *interval_spec, task 223 include/crm/crm.h crm_action_str(const char *task, guint interval_ms) { task 224 include/crm/crm.h if ((task != NULL) && (interval_ms == 0) task 225 include/crm/crm.h && (strcasecmp(task, RSC_STATUS) == 0)) { task 228 include/crm/crm.h return task; task 251 include/crm/lrmd.h lrmd_event_data_t *lrmd_new_event(const char *rsc_id, const char *task, task 28 include/crm/lrmd_internal.h const char *target, const char *task, task 138 include/crm/pengine/common.h const char *task2text(enum action_tasks task); task 139 include/crm/pengine/common.h enum action_tasks text2task(const char *task); task 363 include/crm/pengine/internal.h extern pe_action_t *custom_action(pe_resource_t * rsc, char *key, const char *task, pe_node_t * on_node, task 415 include/crm/pengine/internal.h extern pe_action_t *find_first_action(GList *input, const char *uuid, const char *task, task 425 include/crm/pengine/internal.h const char *task, bool require_node); task 487 include/crm/pengine/internal.h op_digest_cache_t *pe__calculate_digests(pe_resource_t *rsc, const char *task, task 415 include/crm/pengine/pe_types.h char *task; task 80 include/pcmki/pcmki_sched_utils.h pe_action_t *create_pseudo_resource_op(pe_resource_t * rsc, const char *task, bool optional, bool runnable, pe_working_set_t *data_set); task 139 lib/common/attrd_client.c const char *task = NULL; task 159 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_UPDATE; task 165 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_UPDATE; task 169 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_REFRESH; task 173 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_UPDATE_BOTH; task 177 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_UPDATE_DELAY; task 181 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_QUERY; task 185 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_PEER_REMOVE; task 198 lib/common/attrd_client.c crm_xml_add(update, PCMK__XA_TASK, task); task 212 lib/common/ipc_pacemakerd.c do_pacemakerd_api_call(pcmk_ipc_api_t *api, const char *ipc_name, const char *task) task 222 lib/common/ipc_pacemakerd.c cmd = create_request(task, NULL, NULL, CRM_SYSTEM_MCP, task 40 lib/common/messages.c create_request_adv(const char *task, xmlNode * msg_data, task 50 lib/common/messages.c (task? task : "_empty_"), task 70 lib/common/messages.c crm_xml_add(request, F_CRM_TASK, task); task 472 lib/common/operations.c crm_create_op_xml(xmlNode *parent, const char *prefix, const char *task, task 477 lib/common/operations.c CRM_CHECK(prefix && task && interval_spec, return NULL); task 480 lib/common/operations.c crm_xml_set_id(xml_op, "%s-%s-%s", prefix, task, interval_spec); task 482 lib/common/operations.c crm_xml_add(xml_op, "name", task); task 312 lib/lrmd/lrmd_alerts.c const char *target, const char *task, const char *desc, task 323 lib/lrmd/lrmd_alerts.c params = alert_key2param(params, PCMK__alert_key_task, task); task 194 lib/lrmd/lrmd_client.c lrmd_new_event(const char *rsc_id, const char *task, guint interval_ms) task 203 lib/lrmd/lrmd_client.c if (task != NULL) { task 204 lib/lrmd/lrmd_client.c event->op_type = strdup(task); task 732 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 742 lib/pacemaker/pcmk_output.c ((task == NULL)? "unknown" : task)); task 743 lib/pacemaker/pcmk_output.c } else if (pcmk__str_eq(task, "monitor", pcmk__str_none)) { task 747 lib/pacemaker/pcmk_output.c ((task == NULL)? "unknown" : task)); task 802 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 812 lib/pacemaker/pcmk_output.c "task", crm_str(task), task 1028 lib/pacemaker/pcmk_output.c char *task = va_arg(args, char *); task 1032 lib/pacemaker/pcmk_output.c if (task == NULL) { task 1035 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "%s %s '%s'", task, node_name, reason); task 1037 lib/pacemaker/pcmk_output.c crm_notice(" * %s %s\n", task, node_name); task 1047 lib/pacemaker/pcmk_output.c char *task = va_arg(args, char *); task 1051 lib/pacemaker/pcmk_output.c if (task == NULL) { task 1055 lib/pacemaker/pcmk_output.c "task", task, task 1060 lib/pacemaker/pcmk_output.c crm_notice(" * %s %s\n", task, node_name); task 1071 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1079 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Cluster action: %s for %s on %s", task, ID(rsc), node); task 1081 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Cluster action: %s on %s", task, node); task 1092 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1102 lib/pacemaker/pcmk_output.c "task", task, task 1361 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1367 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Pseudo action: %s%s%s", task, node ? " on " : "", task 1377 lib/pacemaker/pcmk_output.c const char *task = va_arg(args, const char *); task 1386 lib/pacemaker/pcmk_output.c "task", task, task 88 lib/pacemaker/pcmk_resource.c const char *task = NULL; task 107 lib/pacemaker/pcmk_resource.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 110 lib/pacemaker/pcmk_resource.c if (task == NULL) { // Assume start if no history is available task 111 lib/pacemaker/pcmk_resource.c task = RSC_START; task 116 lib/pacemaker/pcmk_resource.c digests = pe__calculate_digests(rsc, task, &interval_ms, node, xml_op, task 118 lib/pacemaker/pcmk_resource.c rc = out->message(out, "digests", rsc, node, task, interval_ms, digests); task 175 lib/pacemaker/pcmk_sched_allocate.c const char *task = NULL; task 181 lib/pacemaker/pcmk_sched_allocate.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 186 lib/pacemaker/pcmk_sched_allocate.c rsc->id, task, interval_ms, task 189 lib/pacemaker/pcmk_sched_allocate.c cancel = pe_cancel_op(rsc, task, interval_ms, active_node, data_set); task 203 lib/pacemaker/pcmk_sched_allocate.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 213 lib/pacemaker/pcmk_sched_allocate.c key = pcmk__op_key(rsc->id, task, interval_ms); task 234 lib/pacemaker/pcmk_sched_allocate.c rsc->id, task, interval_ms, active_node->details->uname); task 235 lib/pacemaker/pcmk_sched_allocate.c if ((interval_ms == 0) && pcmk__str_eq(task, RSC_STATUS, pcmk__str_casei)) { task 237 lib/pacemaker/pcmk_sched_allocate.c task = RSC_START; task 239 lib/pacemaker/pcmk_sched_allocate.c } else if ((interval_ms == 0) && pcmk__str_eq(task, RSC_MIGRATED, pcmk__str_casei)) { task 241 lib/pacemaker/pcmk_sched_allocate.c task = RSC_START; task 242 lib/pacemaker/pcmk_sched_allocate.c } else if ((interval_ms == 0) && pcmk__str_eq(task, RSC_PROMOTE, pcmk__str_casei)) { task 244 lib/pacemaker/pcmk_sched_allocate.c task = RSC_START; task 260 lib/pacemaker/pcmk_sched_allocate.c PCMK__OP_FMT " on %s changed: %s", rsc->id, task, task 270 lib/pacemaker/pcmk_sched_allocate.c key = pcmk__op_key(rsc->id, task, interval_ms); task 272 lib/pacemaker/pcmk_sched_allocate.c required = custom_action(rsc, key, task, NULL, TRUE, TRUE, data_set); task 285 lib/pacemaker/pcmk_sched_allocate.c key = pcmk__op_key(rsc->id, task, interval_ms); task 295 lib/pacemaker/pcmk_sched_allocate.c op = custom_action(rsc, key, task, active_node, TRUE, TRUE, data_set); task 300 lib/pacemaker/pcmk_sched_allocate.c pe_rsc_trace(rsc, "Reloading '%s' action for resource %s", task, rsc->id); task 314 lib/pacemaker/pcmk_sched_allocate.c required = custom_action(rsc, key, task, NULL, TRUE, TRUE, data_set); task 375 lib/pacemaker/pcmk_sched_allocate.c const char *task = NULL; task 435 lib/pacemaker/pcmk_sched_allocate.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 443 lib/pacemaker/pcmk_sched_allocate.c } else if ((interval_ms > 0) || pcmk__strcase_any_of(task, RSC_STATUS, RSC_START, task 1701 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(dc_down->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 1707 lib/pacemaker/pcmk_sched_allocate.c dc_down->task, dc_down->node->details->uname); task 1754 lib/pacemaker/pcmk_sched_allocate.c char *task = NULL; task 1757 lib/pacemaker/pcmk_sched_allocate.c if (parse_op_key(original_key, NULL, &task, &interval_ms)) { task 1758 lib/pacemaker/pcmk_sched_allocate.c key = pcmk__op_key(rsc->id, task, interval_ms); task 1766 lib/pacemaker/pcmk_sched_allocate.c free(task); task 1924 lib/pacemaker/pcmk_sched_allocate.c enum action_tasks task = text2task(action->task); task 1941 lib/pacemaker/pcmk_sched_allocate.c action->task, action->uuid, task 1947 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__strcase_any_of(action->task, CRMD_ACTION_MIGRATE, CRMD_ACTION_MIGRATED, NULL)) { task 1951 lib/pacemaker/pcmk_sched_allocate.c task = stop_rsc; task 1954 lib/pacemaker/pcmk_sched_allocate.c switch (task) { task 1996 lib/pacemaker/pcmk_sched_allocate.c if(task != no_action) { task 2089 lib/pacemaker/pcmk_sched_allocate.c enum action_tasks task = text2task(action->task); task 2105 lib/pacemaker/pcmk_sched_allocate.c action->task, action->uuid, task 2109 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__strcase_any_of(action->task, CRMD_ACTION_MIGRATE, CRMD_ACTION_MIGRATED, NULL)) { task 2113 lib/pacemaker/pcmk_sched_allocate.c task = stop_rsc; task 2116 lib/pacemaker/pcmk_sched_allocate.c switch (task) { task 2184 lib/pacemaker/pcmk_sched_allocate.c if(task == monitor_rsc && state == remote_state_failed) { task 2234 lib/pacemaker/pcmk_sched_allocate.c pcmk__str_eq(action->task, CRM_OP_CLEAR_FAILCOUNT, pcmk__str_casei)) { task 2278 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(action->task, RSC_START, pcmk__str_casei)) { task 2284 lib/pacemaker/pcmk_sched_allocate.c && pcmk__str_eq(rsc_action->task, RSC_STOP, pcmk__str_casei)) { task 2320 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(rh_action->task, CRM_OP_FENCE, pcmk__str_casei) task 2331 lib/pacemaker/pcmk_sched_allocate.c if ((pcmk__str_eq(rh_action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) task 2379 lib/pacemaker/pcmk_sched_allocate.c if (lh_action && !pcmk__str_eq(lh_action->task, RSC_STOP, pcmk__str_casei)) { task 2393 lib/pacemaker/pcmk_sched_allocate.c if (rh_action && pcmk__str_eq(rh_action->task, RSC_STOP, pcmk__str_casei)) { task 2485 lib/pacemaker/pcmk_sched_allocate.c if (!pcmk__str_eq(probe->task, RSC_STATUS, pcmk__str_casei)) { task 2508 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(after->task, RSC_START, pcmk__str_casei)) { task 2511 lib/pacemaker/pcmk_sched_allocate.c } else if (pcmk__str_eq(after->task, RSC_PROMOTE, pcmk__str_casei)) { task 2744 lib/pacemaker/pcmk_sched_allocate.c } else if(!pcmk__str_eq(first->task, RSC_START, pcmk__str_casei)) { task 3001 lib/pacemaker/pcmk_sched_allocate.c && pcmk__str_eq(action->task, RSC_STOP, pcmk__str_none) task 3035 lib/pacemaker/pcmk_sched_allocate.c char *task = NULL; task 3051 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 3052 lib/pacemaker/pcmk_sched_allocate.c task = strdup("Shutdown"); task 3053 lib/pacemaker/pcmk_sched_allocate.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 3055 lib/pacemaker/pcmk_sched_allocate.c task = crm_strdup_printf("Fence (%s)", op); task 3058 lib/pacemaker/pcmk_sched_allocate.c out->message(out, "node-action", task, node_name, action->reason); task 3061 lib/pacemaker/pcmk_sched_allocate.c free(task); task 571 lib/pacemaker/pcmk_sched_bundle.c enum action_tasks task = get_complex_task(data->child, action->task, TRUE); task 572 lib/pacemaker/pcmk_sched_bundle.c switch(task) { task 695 lib/pacemaker/pcmk_sched_bundle.c enum action_tasks task = clone_child_action(first); task 696 lib/pacemaker/pcmk_sched_bundle.c const char *first_task = task2text(task); task 703 lib/pacemaker/pcmk_sched_bundle.c if (strstr(first->task, "stop") && first_replica && first_replica->child) { task 710 lib/pacemaker/pcmk_sched_bundle.c NULL, task2text(task), node); task 712 lib/pacemaker/pcmk_sched_bundle.c first_action = find_first_action(first_child->actions, NULL, task2text(task), node); task 716 lib/pacemaker/pcmk_sched_bundle.c if (strstr(then->task, "mote") task 726 lib/pacemaker/pcmk_sched_bundle.c NULL, then->task, node); task 728 lib/pacemaker/pcmk_sched_bundle.c then_action = find_first_action(then_child->actions, NULL, then->task, node); task 748 lib/pacemaker/pcmk_sched_bundle.c && !pcmk__str_any_of(then->task, RSC_STOP, RSC_DEMOTE, NULL)) { task 750 lib/pacemaker/pcmk_sched_bundle.c then->task, then_child->id); task 754 lib/pacemaker/pcmk_sched_bundle.c then->task, then_child->id, task 778 lib/pacemaker/pcmk_sched_bundle.c then_child->id, then_action, task2text(task)); task 849 lib/pacemaker/pcmk_sched_bundle.c pe_action_t *then_child_action = find_first_action(then_child->actions, NULL, then->task, node); task 784 lib/pacemaker/pcmk_sched_clone.c } else if (pcmk__str_eq(RSC_STOP, action->task, pcmk__str_casei)) { task 788 lib/pacemaker/pcmk_sched_clone.c } else if (pcmk__str_eq(RSC_START, action->task, pcmk__str_casei)) { task 807 lib/pacemaker/pcmk_sched_clone.c find_rsc_action(pe_resource_t *rsc, const char *task, gboolean active_only, task 814 lib/pacemaker/pcmk_sched_clone.c possible = pe__resource_actions(rsc, NULL, task, FALSE); task 1223 lib/pacemaker/pcmk_sched_clone.c if (pcmk__strcase_any_of(action->task, "notify", "notified", NULL)) { task 1250 lib/pacemaker/pcmk_sched_clone.c result = get_complex_task(child, action->task, TRUE); task 1267 lib/pacemaker/pcmk_sched_clone.c enum action_tasks task = clone_child_action(action); task 1269 lib/pacemaker/pcmk_sched_clone.c const char *task_s = task2text(task); task 456 lib/pacemaker/pcmk_sched_constraints.c char *task = crm_strdup_printf(CRM_OP_RELAXED_CLONE ":%s", id); task 457 lib/pacemaker/pcmk_sched_constraints.c pe_action_t *unordered_action = get_pseudo_op(task, data_set); task 458 lib/pacemaker/pcmk_sched_constraints.c free(task); task 1440 lib/pacemaker/pcmk_sched_constraints.c res = strdup(action->task); task 1906 lib/pacemaker/pcmk_sched_constraints.c char *task = crm_strdup_printf(CRM_OP_RELAXED_SET ":%s", ID(set1)); task 1907 lib/pacemaker/pcmk_sched_constraints.c pe_action_t *unordered_action = get_pseudo_op(task, data_set); task 1909 lib/pacemaker/pcmk_sched_constraints.c free(task); task 68 lib/pacemaker/pcmk_sched_graph.c int task = no_action; task 87 lib/pacemaker/pcmk_sched_graph.c task = text2task(raw_task); task 88 lib/pacemaker/pcmk_sched_graph.c switch (task) { task 100 lib/pacemaker/pcmk_sched_graph.c task--; task 105 lib/pacemaker/pcmk_sched_graph.c task = no_action; task 109 lib/pacemaker/pcmk_sched_graph.c task = no_action; task 113 lib/pacemaker/pcmk_sched_graph.c if (task != no_action) { task 115 lib/pacemaker/pcmk_sched_graph.c uuid = pcmk__notify_key(rid, "confirmed-post", task2text(task + 1)); task 118 lib/pacemaker/pcmk_sched_graph.c uuid = pcmk__op_key(rid, task2text(task + 1), 0); task 436 lib/pacemaker/pcmk_sched_graph.c && pcmk__str_eq(first->task, RSC_STOP, pcmk__str_casei) task 470 lib/pacemaker/pcmk_sched_graph.c if (!pcmk__str_eq(action->task, RSC_START, pcmk__str_casei)) { task 490 lib/pacemaker/pcmk_sched_graph.c && pcmk__str_eq(action->task, RSC_START, pcmk__str_casei)) { task 573 lib/pacemaker/pcmk_sched_graph.c if (first->rsc && first->rsc->variant == pe_group && pcmk__str_eq(first->task, RSC_START, pcmk__str_casei)) { task 580 lib/pacemaker/pcmk_sched_graph.c if (then->rsc && then->rsc->variant == pe_group && pcmk__str_eq(then->task, RSC_START, pcmk__str_casei)) { task 607 lib/pacemaker/pcmk_sched_graph.c if (!strcmp(first->task, CRMD_ACTION_RELOAD_AGENT)) { task 744 lib/pacemaker/pcmk_sched_graph.c } else if (!pcmk__str_eq(action->task, RSC_STOP, pcmk__str_casei)) { task 792 lib/pacemaker/pcmk_sched_graph.c const char *task = action->task; task 794 lib/pacemaker/pcmk_sched_graph.c if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei) task 812 lib/pacemaker/pcmk_sched_graph.c action->task, (action->rsc? action->rsc->id : "no resource"), task 821 lib/pacemaker/pcmk_sched_graph.c action->task, (action->rsc? action->rsc->id : "no resource"), task 830 lib/pacemaker/pcmk_sched_graph.c action->task, (action->rsc? action->rsc->id : "no resource"), task 843 lib/pacemaker/pcmk_sched_graph.c if (pcmk__str_eq(task, "notify", pcmk__str_casei)) { task 844 lib/pacemaker/pcmk_sched_graph.c task = g_hash_table_lookup(action->meta, "notify_operation"); task 859 lib/pacemaker/pcmk_sched_graph.c if (pcmk__strcase_any_of(task, "cancel", "stop", "demote", "migrate_from", task 863 lib/pacemaker/pcmk_sched_graph.c action->task, (action->rsc? action->rsc->id : "no resource"), task 875 lib/pacemaker/pcmk_sched_graph.c action->task, (action->rsc? action->rsc->id : "no resource"), task 986 lib/pacemaker/pcmk_sched_graph.c if (pcmk__str_eq(action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 992 lib/pacemaker/pcmk_sched_graph.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 1004 lib/pacemaker/pcmk_sched_graph.c && pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 1016 lib/pacemaker/pcmk_sched_graph.c && pcmk__str_eq(input->task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 1040 lib/pacemaker/pcmk_sched_graph.c if (action->node->details->shutdown && action->task task 1041 lib/pacemaker/pcmk_sched_graph.c && strcmp(action->task, RSC_STOP)) { task 1063 lib/pacemaker/pcmk_sched_graph.c if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 1070 lib/pacemaker/pcmk_sched_graph.c } else if (pcmk__str_eq(action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 1073 lib/pacemaker/pcmk_sched_graph.c } else if (pcmk__str_eq(action->task, CRM_OP_CLEAR_FAILCOUNT, pcmk__str_casei)) { task 1076 lib/pacemaker/pcmk_sched_graph.c } else if (pcmk__str_eq(action->task, CRM_OP_LRM_REFRESH, pcmk__str_casei)) { task 1079 lib/pacemaker/pcmk_sched_graph.c } else if (pcmk__str_eq(action->task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 1088 lib/pacemaker/pcmk_sched_graph.c if (pcmk__str_eq(action->task, CRM_OP_MAINTENANCE_NODES, pcmk__str_casei)) { task 1103 lib/pacemaker/pcmk_sched_graph.c crm_xml_add(action_xml, XML_LRM_ATTR_TASK, action->task); task 1114 lib/pacemaker/pcmk_sched_graph.c if (pcmk__str_eq(action->task, RSC_NOTIFY, pcmk__str_casei)) { task 1129 lib/pacemaker/pcmk_sched_graph.c action->task, interval_ms); task 1319 lib/pacemaker/pcmk_sched_graph.c enum action_tasks task = text2task(action->task); task 1321 lib/pacemaker/pcmk_sched_graph.c if(task == action_notify || task == action_notified) { task 1323 lib/pacemaker/pcmk_sched_graph.c task = text2task(n_task); task 1327 lib/pacemaker/pcmk_sched_graph.c switch (task) { task 1354 lib/pacemaker/pcmk_sched_graph.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei) && action->node) { task 1390 lib/pacemaker/pcmk_sched_graph.c && pcmk__str_eq(action->task, CRM_OP_PROBED, pcmk__str_casei)) { task 1413 lib/pacemaker/pcmk_sched_graph.c } else if (!pcmk__str_eq(wrapper->action->task, RSC_START, pcmk__str_casei)) { task 1439 lib/pacemaker/pcmk_sched_graph.c && !pcmk__str_eq(action->task, RSC_STATUS, pcmk__str_casei)) { task 1453 lib/pacemaker/pcmk_sched_graph.c pcmk__strcase_any_of(action->task, CRM_OP_FENCE, CRM_OP_SHUTDOWN, NULL)) { task 1607 lib/pacemaker/pcmk_sched_graph.c if (action->rsc && pcmk__str_eq(action->task, RSC_MIGRATE, pcmk__str_casei)) { task 1791 lib/pacemaker/pcmk_sched_graph.c && pcmk__str_eq(action->task, RSC_MIGRATE, pcmk__str_casei) task 207 lib/pacemaker/pcmk_sched_group.c if (pcmk__str_eq(RSC_STOP, action->task, pcmk__str_casei) task 213 lib/pacemaker/pcmk_sched_group.c } else if (pcmk__str_eq(RSC_START, action->task, pcmk__str_casei) task 432 lib/pacemaker/pcmk_sched_group.c enum action_tasks task = get_complex_task(child, action->task, TRUE); task 433 lib/pacemaker/pcmk_sched_group.c const char *task_s = task2text(task); task 447 lib/pacemaker/pcmk_sched_group.c if (!pcmk__str_eq(task_s, action->task, pcmk__str_casei) task 458 lib/pacemaker/pcmk_sched_group.c } else if (task != stop_rsc && task != action_demote) { task 483 lib/pacemaker/pcmk_sched_group.c pe_action_t *child_action = find_first_action(child->actions, NULL, then->task, node); task 856 lib/pacemaker/pcmk_sched_native.c mon->task, interval_ms / 1000, rsc->id, node_uname); task 1091 lib/pacemaker/pcmk_sched_native.c crm_notice(" Start recurring %s (%us) for %s on %s", stopped_mon->task, task 2092 lib/pacemaker/pcmk_sched_native.c && pcmk__str_eq(then->task, RSC_START, pcmk__str_casei)) { task 2145 lib/pacemaker/pcmk_sched_native.c } else if ((then_rsc_role == RSC_ROLE_STOPPED) && pcmk__str_eq(then->task, RSC_STOP, pcmk__str_casei)) { task 2149 lib/pacemaker/pcmk_sched_native.c && pcmk__str_eq(then->task, RSC_START, pcmk__str_casei) task 2502 lib/pacemaker/pcmk_sched_native.c rsc->id, action->task); task 2921 lib/pacemaker/pcmk_sched_native.c if (pcmk__str_eq(action->task, RSC_START, pcmk__str_casei) task 212 lib/pacemaker/pcmk_sched_notif.c const char *task = NULL; task 231 lib/pacemaker/pcmk_sched_notif.c task = g_hash_table_lookup(op->meta, "notify_operation"); task 233 lib/pacemaker/pcmk_sched_notif.c pe_rsc_trace(rsc, "Creating notify actions for %s: %s (%s-%s)", op->uuid, rsc->id, value, task); task 235 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, value, task); task 236 lib/pacemaker/pcmk_sched_notif.c trigger = custom_action(rsc, key, op->task, node, task 279 lib/pacemaker/pcmk_sched_notif.c } else if (pcmk__str_eq(mon->task, RSC_CANCEL, pcmk__str_casei)) { task 314 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, "pre", start->task); task 325 lib/pacemaker/pcmk_sched_notif.c add_hash_param(n_data->pre->meta, "notify_key_operation", start->task); task 328 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, "confirmed-pre", start->task); task 339 lib/pacemaker/pcmk_sched_notif.c add_hash_param(n_data->pre_done->meta, "notify_key_operation", start->task); task 347 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, "post", end->task); task 364 lib/pacemaker/pcmk_sched_notif.c add_hash_param(n_data->post->meta, "notify_key_operation", end->task); task 367 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, "confirmed-post", end->task); task 384 lib/pacemaker/pcmk_sched_notif.c add_hash_param(n_data->post_done->meta, "notify_key_operation", end->task); task 454 lib/pacemaker/pcmk_sched_notif.c enum action_tasks task; task 464 lib/pacemaker/pcmk_sched_notif.c task = text2task(op->task); task 466 lib/pacemaker/pcmk_sched_notif.c if(task == stop_rsc && op->node->details->unclean) { task 476 lib/pacemaker/pcmk_sched_notif.c switch (task) { task 642 lib/pacemaker/pcmk_sched_notif.c enum action_tasks task = text2task(n_data->action); task 662 lib/pacemaker/pcmk_sched_notif.c enum action_tasks t = text2task(op->task); task 677 lib/pacemaker/pcmk_sched_notif.c switch (task) { task 714 lib/pacemaker/pcmk_sched_notif.c if (task == stop_rsc || task == action_demote) { task 729 lib/pacemaker/pcmk_sched_notif.c if (task == action_demote || stop == NULL task 743 lib/pacemaker/pcmk_sched_notif.c } else if (task == start_rsc || task == action_promote) { task 758 lib/pacemaker/pcmk_sched_notif.c if ((task != start_rsc) || (start == NULL) task 123 lib/pacemaker/pcmk_sched_promotable.c } else if (pcmk__str_eq(RSC_DEMOTE, action->task, pcmk__str_casei)) { task 126 lib/pacemaker/pcmk_sched_promotable.c } else if (pcmk__str_eq(RSC_PROMOTE, action->task, pcmk__str_casei)) { task 68 lib/pacemaker/pcmk_sched_transition.c update_failcounts(xmlNode * cib_node, const char *resource, const char *task, task 81 lib/pacemaker/pcmk_sched_transition.c name = pcmk__failcount_name(resource, task, interval_ms); task 85 lib/pacemaker/pcmk_sched_transition.c name = pcmk__lastfailure_name(resource, task, interval_ms); task 117 lib/pacemaker/pcmk_sched_transition.c create_op(xmlNode *cib_resource, const char *task, guint interval_ms, task 123 lib/pacemaker/pcmk_sched_transition.c op = lrmd_new_event(ID(cib_resource), task, interval_ms); task 535 lib/pacemaker/pcmk_sched_transition.c char *task = NULL; task 556 lib/pacemaker/pcmk_sched_transition.c parse_op_key(key, &resource, &task, &interval_ms); task 569 lib/pacemaker/pcmk_sched_transition.c update_failcounts(cib_node, resource, task, interval_ms, outcome); task 575 lib/pacemaker/pcmk_sched_transition.c op = create_op(cib_resource, task, interval_ms, outcome); task 586 lib/pacemaker/pcmk_sched_transition.c free(task); task 600 lib/pacemaker/pcmk_sched_transition.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK_KEY); task 603 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-pseudo-action", node, task); task 750 lib/pacemaker/pcmk_sched_transition.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 754 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-cluster-action", node, task, rsc); task 316 lib/pacemaker/pcmk_sched_utils.c if(pcmk__str_eq(RSC_STOP, op->task, pcmk__str_casei)) { task 319 lib/pacemaker/pcmk_sched_utils.c } else if(pcmk__str_eq(RSC_START, op->task, pcmk__str_casei)) { task 377 lib/pacemaker/pcmk_sched_utils.c switch (text2task(action->task)) { task 472 lib/pacemaker/pcmk_sched_utils.c create_pseudo_resource_op(pe_resource_t * rsc, const char *task, bool optional, bool runnable, pe_working_set_t *data_set) task 474 lib/pacemaker/pcmk_sched_utils.c pe_action_t *action = custom_action(rsc, pcmk__op_key(rsc->id, task, 0), task 475 lib/pacemaker/pcmk_sched_utils.c task, NULL, optional, TRUE, data_set); task 497 lib/pacemaker/pcmk_sched_utils.c pe_cancel_op(pe_resource_t *rsc, const char *task, guint interval_ms, task 504 lib/pacemaker/pcmk_sched_utils.c char *key = pcmk__op_key(rsc->id, task, interval_ms); task 509 lib/pacemaker/pcmk_sched_utils.c free(cancel_op->task); task 510 lib/pacemaker/pcmk_sched_utils.c cancel_op->task = strdup(RSC_CANCEL); task 513 lib/pacemaker/pcmk_sched_utils.c cancel_op->cancel_task = strdup(task); task 515 lib/pacemaker/pcmk_sched_utils.c add_hash_param(cancel_op->meta, XML_LRM_ATTR_TASK, task); task 618 lib/pacemaker/pcmk_sched_utils.c const char *task = NULL; task 627 lib/pacemaker/pcmk_sched_utils.c task = op->op_type; task 638 lib/pacemaker/pcmk_sched_utils.c if (pcmk__str_any_of(task, CRMD_ACTION_RELOAD, CRMD_ACTION_RELOAD_AGENT, task 641 lib/pacemaker/pcmk_sched_utils.c task = CRMD_ACTION_START; task 643 lib/pacemaker/pcmk_sched_utils.c task = CRMD_ACTION_STATUS; task 647 lib/pacemaker/pcmk_sched_utils.c key = pcmk__op_key(op->rsc_id, task, op->interval_ms); task 648 lib/pacemaker/pcmk_sched_utils.c if (pcmk__str_eq(task, CRMD_ACTION_NOTIFY, pcmk__str_none)) { task 702 lib/pacemaker/pcmk_sched_utils.c crm_xml_add(xml_op, XML_LRM_ATTR_TASK, task); task 185 lib/pacemaker/pcmk_trans_graph.c const char *task = NULL; task 187 lib/pacemaker/pcmk_trans_graph.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 188 lib/pacemaker/pcmk_trans_graph.c CRM_CHECK(task != NULL, return FALSE); task 190 lib/pacemaker/pcmk_trans_graph.c if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 354 lib/pengine/common.c text2task(const char *task) task 356 lib/pengine/common.c if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 358 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STOPPED, pcmk__str_casei)) { task 360 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_START, pcmk__str_casei)) { task 362 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STARTED, pcmk__str_casei)) { task 364 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 366 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 368 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 370 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_NOTIFY, pcmk__str_casei)) { task 372 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_NOTIFIED, pcmk__str_casei)) { task 374 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 376 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTE, pcmk__str_casei)) { task 378 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTED, pcmk__str_casei)) { task 380 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTED, pcmk__str_casei)) { task 384 lib/pengine/common.c if (pcmk__str_eq(task, CRMD_ACTION_CANCEL, pcmk__str_casei)) { task 386 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DELETE, pcmk__str_casei)) { task 388 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 390 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_PROBED, pcmk__str_casei)) { task 392 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_LRM_REFRESH, pcmk__str_casei)) { task 394 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATE, pcmk__str_casei)) { task 396 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 399 lib/pengine/common.c crm_trace("Unsupported action: %s", task); task 406 lib/pengine/common.c task2text(enum action_tasks task) task 410 lib/pengine/common.c switch (task) { task 140 lib/pengine/pe_digest.c const char *task, guint *interval_ms, task 172 lib/pengine/pe_digest.c action = custom_action(rsc, pcmk__op_key(rsc->id, task, *interval_ms), task 173 lib/pengine/pe_digest.c task, node, TRUE, FALSE, data_set); task 321 lib/pengine/pe_digest.c pe__calculate_digests(pe_resource_t *rsc, const char *task, guint *interval_ms, task 337 lib/pengine/pe_digest.c calculate_main_digest(data, rsc, node, params, task, interval_ms, xml_op, task 362 lib/pengine/pe_digest.c rsc_action_digest(pe_resource_t *rsc, const char *task, guint interval_ms, task 367 lib/pengine/pe_digest.c char *key = pcmk__op_key(rsc->id, task, interval_ms); task 371 lib/pengine/pe_digest.c data = pe__calculate_digests(rsc, task, &interval_ms, node, xml_op, task 399 lib/pengine/pe_digest.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 410 lib/pengine/pe_digest.c data = rsc_action_digest(rsc, task, interval_ms, node, xml_op, task 418 lib/pengine/pe_digest.c interval_ms, task, rsc->id, node->details->uname, task 431 lib/pengine/pe_digest.c interval_ms, task, rsc->id, node->details->uname, task 132 lib/pengine/pe_output.c const char *task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 141 lib/pengine/pe_output.c if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei) task 143 lib/pengine/pe_output.c task = "probe"; task 147 lib/pengine/pe_output.c if (pcmk__str_eq(task, CRMD_ACTION_NOTIFY, pcmk__str_casei) || (pcmk__str_eq(task, "probe", pcmk__str_casei) && (op_rc_i == 7))) { task 253 lib/pengine/pe_output.c op_history_string(xmlNode *xml_op, const char *task, const char *interval_ms_s, task 296 lib/pengine/pe_output.c buf = crm_strdup_printf("(%s) %s:%s%s%s%s rc=%d (%s)", call, task, task 315 lib/pengine/pe_output.c buf = crm_strdup_printf("(%s) %s%s%s", call, task, task 2164 lib/pengine/pe_output.c const char *task = va_arg(args, const char *); task 2169 lib/pengine/pe_output.c char *buf = op_history_string(xml_op, task, interval_ms_s, rc, task 2183 lib/pengine/pe_output.c const char *task = va_arg(args, const char *); task 2191 lib/pengine/pe_output.c "task", task, task 2488 lib/pengine/pe_output.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 2497 lib/pengine/pe_output.c if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei) task 2499 lib/pengine/pe_output.c task = "probe"; task 2514 lib/pengine/pe_output.c out->message(out, "op-history", xml_op, task, interval_ms_s, task 2203 lib/pengine/unpack.c const char *task = NULL; task 2244 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2246 lib/pengine/unpack.c key = pcmk__op_key(rsc->id, task, interval_ms); task 2248 lib/pengine/unpack.c custom_action(rsc, key, task, node, TRUE, TRUE, data_set); task 2258 lib/pengine/unpack.c const char *task = NULL; task 2270 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2273 lib/pengine/unpack.c if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei) task 2277 lib/pengine/unpack.c } else if (pcmk__strcase_any_of(task, CRMD_ACTION_START, CRMD_ACTION_MIGRATED, NULL)) { task 2280 lib/pengine/unpack.c } else if ((implied_monitor_start <= *stop_index) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 2286 lib/pengine/unpack.c } else if (pcmk__strcase_any_of(task, CRMD_ACTION_PROMOTE, CRMD_ACTION_DEMOTE, NULL)) { task 2342 lib/pengine/unpack.c const char *task = NULL; task 2403 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2404 lib/pengine/unpack.c if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 2995 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3000 lib/pengine/unpack.c CRM_CHECK(task != NULL, return); task 3005 lib/pengine/unpack.c if ((interval_ms == 0) && !strcmp(task, CRMD_ACTION_STATUS)) { task 3019 lib/pengine/unpack.c (is_probe? "probe" : task), rsc->id, node->details->uname, task 3026 lib/pengine/unpack.c (is_probe? "probe" : task), rsc->id, node->details->uname, task 3044 lib/pengine/unpack.c action = custom_action(rsc, strdup(key), task, NULL, TRUE, FALSE, data_set); task 3051 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_STOP)) { task 3054 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATE)) { task 3057 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATED)) { task 3060 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_PROMOTE)) { task 3063 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_DEMOTE)) { task 3157 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3162 lib/pengine/unpack.c CRM_CHECK(task != NULL, return PCMK_LRM_OP_ERROR); task 3169 lib/pengine/unpack.c if ((interval_ms == 0) && !strcmp(task, CRMD_ACTION_STATUS)) { task 3171 lib/pengine/unpack.c task = "probe"; task 3250 lib/pengine/unpack.c && !strcmp(task, CRMD_ACTION_STOP)) { task 3254 lib/pengine/unpack.c CRM_XS " rc=%d id=%s", rsc->id, task, task 3268 lib/pengine/unpack.c rc, task, rsc->id, node->details->uname, task 3279 lib/pengine/unpack.c should_clear_for_param_change(xmlNode *xml_op, const char *task, task 3283 lib/pengine/unpack.c if (!strcmp(task, "start") || !strcmp(task, "monitor")) { task 3330 lib/pengine/unpack.c const char *task, guint interval_ms, task 3355 lib/pengine/unpack.c && (interval_ms != 0) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3401 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3417 lib/pengine/unpack.c && !should_ignore_failure_timeout(rsc, xml_op, task, interval_ms, task 3467 lib/pengine/unpack.c && should_clear_for_param_change(xml_op, task, rsc, node, data_set)) { task 3487 lib/pengine/unpack.c "fencing of %s completes", task, rsc->id); task 3492 lib/pengine/unpack.c if (expired && (interval_ms == 0) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3521 lib/pengine/unpack.c get_action_on_fail(pe_resource_t *rsc, const char *key, const char *task, pe_working_set_t * data_set) task 3524 lib/pengine/unpack.c pe_action_t *action = custom_action(rsc, strdup(key), task, NULL, TRUE, FALSE, data_set); task 3533 lib/pengine/unpack.c update_resource_state(pe_resource_t * rsc, pe_node_t * node, xmlNode * xml_op, const char * task, int rc, task 3547 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3561 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_START, pcmk__str_casei)) { task 3565 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 3569 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 3573 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTE, pcmk__str_casei)) { task 3581 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 3585 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATE, pcmk__str_casei)) { task 3674 lib/pengine/unpack.c const char *task = NULL; task 3685 lib/pengine/unpack.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3696 lib/pengine/unpack.c CRM_CHECK(task != NULL, return); task 3700 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_NOTIFY) || task 3701 lib/pengine/unpack.c !strcmp(task, CRMD_ACTION_METADATA)) { task 3711 lib/pengine/unpack.c task_key, task, task_id, status, rc, node->details->uname, role2text(rsc->role)); task 3736 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_STATUS)) { task 3783 lib/pengine/unpack.c ID(xml_op), task, rsc->id, node->details->uname, task 3788 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_START)) { task 3792 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_PROMOTE)) { task 3795 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATE) && node->details->unclean) { task 3806 lib/pengine/unpack.c if ((interval_ms != 0) || strcmp(task, CRMD_ACTION_STATUS)) { task 3807 lib/pengine/unpack.c rsc->pending_task = strdup(task); task 3825 lib/pengine/unpack.c task, rsc->id, node->details->uname, task 3827 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, rc, *last_failure, on_fail, data_set); task 3831 lib/pengine/unpack.c failure_strategy = get_action_on_fail(rsc, task_key, task, data_set); task 3836 lib/pengine/unpack.c task, rsc->id, node->details->uname, status, rc, task 3867 lib/pengine/unpack.c failure_strategy = get_action_on_fail(rsc, task_key, task, data_set); task 3870 lib/pengine/unpack.c && !strcmp(task, CRMD_ACTION_STOP))) { task 3874 lib/pengine/unpack.c task, services_ocf_exitcode_str(rc), task 3879 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, target_rc, *last_failure, on_fail, data_set); task 3917 lib/pengine/unpack.c rsc->id, task, role2text(rsc->role), task 415 lib/pengine/utils.c custom_action(pe_resource_t * rsc, char *key, const char *task, task 423 lib/pengine/utils.c CRM_CHECK(task != NULL, free(key); return NULL); task 443 lib/pengine/utils.c task, rsc ? rsc->id : "<NULL>", task 449 lib/pengine/utils.c action->id, task, (rsc? rsc->id : "no resource"), task 460 lib/pengine/utils.c task, (rsc? rsc->id : "no resource"), key, task 471 lib/pengine/utils.c action->task = strdup(task); task 477 lib/pengine/utils.c if (pcmk__str_eq(task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 519 lib/pengine/utils.c enum action_tasks a_task = text2task(action->task); task 672 lib/pengine/utils.c if (pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei) task 680 lib/pengine/utils.c } else if (pcmk__str_eq(action->task, CRMD_ACTION_DEMOTE, pcmk__str_casei) && !value) { task 715 lib/pengine/utils.c } else if (pcmk__str_eq(action->task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 958 lib/pengine/utils.c bool is_probe = pcmk__str_eq(action->task, RSC_STATUS, pcmk__str_casei) task 971 lib/pengine/utils.c .op_name = action->task, task 1062 lib/pengine/utils.c && (pcmk__str_eq(action->task, RSC_START, pcmk__str_casei) task 1083 lib/pengine/utils.c if (!pcmk__strcase_any_of(action->task, RSC_START, RSC_PROMOTE, NULL)) { task 1177 lib/pengine/utils.c && !(pcmk__str_eq(action->task, CRMD_ACTION_STATUS, pcmk__str_casei) task 1179 lib/pengine/utils.c && !pcmk__str_eq(action->task, CRMD_ACTION_START, pcmk__str_casei)) { task 1199 lib/pengine/utils.c } else if (value == NULL && pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 1230 lib/pengine/utils.c if (pcmk__str_eq(action->task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 1364 lib/pengine/utils.c free(action->task); task 1387 lib/pengine/utils.c } else if (pcmk__str_eq(CRMD_ACTION_CANCEL, action->task, pcmk__str_casei)) { task 1407 lib/pengine/utils.c enum action_tasks task = text2task(name); task 1410 lib/pengine/utils.c return task; task 1413 lib/pengine/utils.c switch (task) { task 1419 lib/pengine/utils.c return task - 1; task 1424 lib/pengine/utils.c return task; task 1428 lib/pengine/utils.c find_first_action(GList *input, const char *uuid, const char *task, pe_node_t * on_node) task 1432 lib/pengine/utils.c CRM_CHECK(uuid || task, return NULL); task 1440 lib/pengine/utils.c } else if (task != NULL && !pcmk__str_eq(task, action->task, pcmk__str_casei)) { task 1547 lib/pengine/utils.c const char *task, bool require_node) task 1550 lib/pengine/utils.c char *key = pcmk__op_key(rsc->id, task, 0); task 2266 lib/pengine/utils.c reason_text = crm_strdup_printf("%s %s%c %s", change, reason->task, text?':':0, text?text:""); task 2268 lib/pengine/utils.c reason_text = crm_strdup_printf("%s %s %s%c %s", change, reason->rsc->id, reason->task, text?':':0, text?text:"NA"); task 1766 tools/crm_mon.c send_custom_trap(const char *node, const char *rsc, const char *task, int target_rc, int rc, task 1785 tools/crm_mon.c setenv("CRM_notify_task", task, 1); task 1817 tools/crm_mon.c char *task = NULL; task 1854 tools/crm_mon.c if (parse_op_key(id, &rsc, &task, NULL) == FALSE) { task 1885 tools/crm_mon.c crm_notice("%s of %s on %s completed: %s", task, rsc, node, desc); task 1892 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); task 1896 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); task 1900 tools/crm_mon.c send_custom_trap(node, rsc, task, target_rc, rc, status, desc); task 1904 tools/crm_mon.c free(task); task 1542 tools/crm_resource_runtime.c || pcmk__str_eq("notify", action->task, pcmk__str_casei)) { task 434 tools/crm_simulate.c const char *task = action->task; task 442 tools/crm_simulate.c if (pcmk__str_eq(action->task, RSC_CANCEL, pcmk__str_casei)) { task 444 tools/crm_simulate.c task = action->cancel_task; task 461 tools/crm_simulate.c if (pcmk__strcase_any_of(action->task, RSC_NOTIFY, RSC_NOTIFIED, NULL)) { task 470 tools/crm_simulate.c key = pcmk__op_key(clone_name, task, interval_ms); task 480 tools/crm_simulate.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 483 tools/crm_simulate.c action_name = crm_strdup_printf("%s%s '%s' %s", prefix, action->task, op, action_host); task 489 tools/crm_simulate.c action_name = crm_strdup_printf("%s%s %s", prefix, action->task, action_host);