task 239 daemons/controld/controld_callbacks.c const char *task = crm_element_value(down->xml, XML_LRM_ATTR_TASK); task 241 daemons/controld/controld_callbacks.c if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 247 daemons/controld/controld_callbacks.c } else if (!appeared && pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 257 daemons/controld/controld_callbacks.c task, node->uname, down->id); task 260 daemons/controld/controld_callbacks.c task, node->uname, down->id); task 270 daemons/controld/controld_callbacks.c task, down->id); task 269 daemons/controld/controld_execd.c const char *rsc_id, lrmd_rsc_info_t *rsc, const char *task, task 272 daemons/controld/controld_execd.c lrmd_event_data_t *op = construct_op(lrm_state, input->xml, rsc_id, task); task 366 daemons/controld/controld_fencing.c const char *task = NULL; task 388 daemons/controld/controld_fencing.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 389 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 95 daemons/controld/controld_te_actions.c const char *task = NULL; task 104 daemons/controld/controld_te_actions.c task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 110 daemons/controld/controld_te_actions.c if (pcmk__str_eq(task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 120 daemons/controld/controld_te_actions.c crm_err("Corrupted command (id=%s) %s: no node", crm_str(id), crm_str(task)); task 134 daemons/controld/controld_te_actions.c (no_wait? " without waiting" : ""), crm_str(task), on_node); task 136 daemons/controld/controld_te_actions.c if (is_local && pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 144 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 676 daemons/controld/controld_te_callbacks.c const char *task = NULL; task 687 daemons/controld/controld_te_callbacks.c task = crm_element_value(timer->action->xml, XML_LRM_ATTR_TASK); task 694 daemons/controld/controld_te_callbacks.c (on_node? on_node : ""), (task? task : "unknown action"), task 701 daemons/controld/controld_te_callbacks.c (on_node? on_node : ""), (task? task : "unknown action"), task 712 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 566 daemons/pacemakerd/pacemakerd.c const char *task = NULL; task 578 daemons/pacemakerd/pacemakerd.c task = crm_element_value(msg, F_CRM_TASK); task 579 daemons/pacemakerd/pacemakerd.c if (pcmk__str_eq(task, CRM_OP_QUIT, pcmk__str_none)) { task 603 daemons/pacemakerd/pacemakerd.c } else if (pcmk__str_eq(task, CRM_OP_RM_NODE_CACHE, pcmk__str_none)) { task 608 daemons/pacemakerd/pacemakerd.c } else if (pcmk__str_eq(task, CRM_OP_PING, pcmk__str_none)) { task 614 daemons/pacemakerd/pacemakerd.c crm_str(task)); 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 132 include/crm/common/util.h const char *task, const char *interval_spec, task 220 include/crm/crm.h crm_action_str(const char *task, guint interval_ms) { task 221 include/crm/crm.h if ((task != NULL) && (interval_ms == 0) task 222 include/crm/crm.h && (strcasecmp(task, RSC_STATUS) == 0)) { task 225 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 27 include/crm/lrmd_internal.h const char *target, const char *task, task 126 include/crm/pengine/common.h const char *task2text(enum action_tasks task); task 127 include/crm/pengine/common.h enum action_tasks text2task(const char *task); task 403 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 455 include/crm/pengine/internal.h extern pe_action_t *find_first_action(GListPtr input, const char *uuid, const char *task, task 465 include/crm/pengine/internal.h const char *task, bool require_node); task 395 include/crm/pengine/pe_types.h char *task; task 81 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 141 lib/common/attrd_client.c const char *task = NULL; task 161 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_UPDATE; task 167 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_UPDATE; task 171 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_REFRESH; task 175 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_UPDATE_BOTH; task 179 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_UPDATE_DELAY; task 183 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_QUERY; task 187 lib/common/attrd_client.c task = PCMK__ATTRD_CMD_PEER_REMOVE; task 200 lib/common/attrd_client.c crm_xml_add(update, PCMK__XA_TASK, task); 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 474 lib/common/operations.c crm_create_op_xml(xmlNode *parent, const char *prefix, const char *task, task 479 lib/common/operations.c CRM_CHECK(prefix && task && interval_spec, return NULL); task 482 lib/common/operations.c crm_xml_set_id(xml_op, "%s-%s-%s", prefix, task, interval_spec); task 484 lib/common/operations.c crm_xml_add(xml_op, "name", task); task 311 lib/lrmd/lrmd_alerts.c const char *target, const char *task, const char *desc, task 322 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 201 lib/pacemaker/pcmk_sched_allocate.c const char *task = NULL; task 207 lib/pacemaker/pcmk_sched_allocate.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 212 lib/pacemaker/pcmk_sched_allocate.c rsc->id, task, interval_ms, task 215 lib/pacemaker/pcmk_sched_allocate.c cancel = pe_cancel_op(rsc, task, interval_ms, active_node, data_set); task 229 lib/pacemaker/pcmk_sched_allocate.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 239 lib/pacemaker/pcmk_sched_allocate.c key = pcmk__op_key(rsc->id, task, interval_ms); task 260 lib/pacemaker/pcmk_sched_allocate.c rsc->id, task, interval_ms, active_node->details->uname); task 261 lib/pacemaker/pcmk_sched_allocate.c if ((interval_ms == 0) && pcmk__str_eq(task, RSC_STATUS, pcmk__str_casei)) { task 263 lib/pacemaker/pcmk_sched_allocate.c task = RSC_START; task 265 lib/pacemaker/pcmk_sched_allocate.c } else if ((interval_ms == 0) && pcmk__str_eq(task, RSC_MIGRATED, pcmk__str_casei)) { task 267 lib/pacemaker/pcmk_sched_allocate.c task = RSC_START; task 268 lib/pacemaker/pcmk_sched_allocate.c } else if ((interval_ms == 0) && pcmk__str_eq(task, RSC_PROMOTE, pcmk__str_casei)) { task 270 lib/pacemaker/pcmk_sched_allocate.c task = RSC_START; task 286 lib/pacemaker/pcmk_sched_allocate.c rsc->id, task, interval_ms, active_node->details->uname, task 295 lib/pacemaker/pcmk_sched_allocate.c key = pcmk__op_key(rsc->id, task, interval_ms); task 297 lib/pacemaker/pcmk_sched_allocate.c required = custom_action(rsc, key, task, NULL, TRUE, TRUE, data_set); task 310 lib/pacemaker/pcmk_sched_allocate.c key = pcmk__op_key(rsc->id, task, interval_ms); task 320 lib/pacemaker/pcmk_sched_allocate.c op = custom_action(rsc, key, task, active_node, TRUE, TRUE, data_set); task 325 lib/pacemaker/pcmk_sched_allocate.c pe_rsc_trace(rsc, "Reloading '%s' action for resource %s", task, rsc->id); task 338 lib/pacemaker/pcmk_sched_allocate.c required = custom_action(rsc, key, task, NULL, TRUE, TRUE, data_set); task 399 lib/pacemaker/pcmk_sched_allocate.c const char *task = NULL; task 459 lib/pacemaker/pcmk_sched_allocate.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 467 lib/pacemaker/pcmk_sched_allocate.c } else if ((interval_ms > 0) || pcmk__strcase_any_of(task, RSC_STATUS, RSC_START, task 1719 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(dc_down->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 1725 lib/pacemaker/pcmk_sched_allocate.c dc_down->task, dc_down->node->details->uname); task 1772 lib/pacemaker/pcmk_sched_allocate.c char *task = NULL; task 1775 lib/pacemaker/pcmk_sched_allocate.c if (parse_op_key(original_key, NULL, &task, &interval_ms)) { task 1776 lib/pacemaker/pcmk_sched_allocate.c key = pcmk__op_key(rsc->id, task, interval_ms); task 1784 lib/pacemaker/pcmk_sched_allocate.c free(task); task 1942 lib/pacemaker/pcmk_sched_allocate.c enum action_tasks task = text2task(action->task); task 1959 lib/pacemaker/pcmk_sched_allocate.c action->task, action->uuid, task 1965 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__strcase_any_of(action->task, CRMD_ACTION_MIGRATE, CRMD_ACTION_MIGRATED, NULL)) { task 1969 lib/pacemaker/pcmk_sched_allocate.c task = stop_rsc; task 1972 lib/pacemaker/pcmk_sched_allocate.c switch (task) { task 2014 lib/pacemaker/pcmk_sched_allocate.c if(task != no_action) { task 2107 lib/pacemaker/pcmk_sched_allocate.c enum action_tasks task = text2task(action->task); task 2123 lib/pacemaker/pcmk_sched_allocate.c action->task, action->uuid, task 2127 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__strcase_any_of(action->task, CRMD_ACTION_MIGRATE, CRMD_ACTION_MIGRATED, NULL)) { task 2131 lib/pacemaker/pcmk_sched_allocate.c task = stop_rsc; task 2134 lib/pacemaker/pcmk_sched_allocate.c switch (task) { task 2202 lib/pacemaker/pcmk_sched_allocate.c if(task == monitor_rsc && state == remote_state_failed) { task 2252 lib/pacemaker/pcmk_sched_allocate.c pcmk__str_eq(action->task, CRM_OP_CLEAR_FAILCOUNT, pcmk__str_casei)) { task 2296 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(action->task, RSC_START, pcmk__str_casei)) { task 2302 lib/pacemaker/pcmk_sched_allocate.c && pcmk__str_eq(rsc_action->task, RSC_STOP, pcmk__str_casei)) { task 2338 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(rh_action->task, CRM_OP_FENCE, pcmk__str_casei) task 2349 lib/pacemaker/pcmk_sched_allocate.c if ((pcmk__str_eq(rh_action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) task 2397 lib/pacemaker/pcmk_sched_allocate.c if (lh_action && !pcmk__str_eq(lh_action->task, RSC_STOP, pcmk__str_casei)) { task 2411 lib/pacemaker/pcmk_sched_allocate.c if (rh_action && pcmk__str_eq(rh_action->task, RSC_STOP, pcmk__str_casei)) { task 2503 lib/pacemaker/pcmk_sched_allocate.c if (!pcmk__str_eq(probe->task, RSC_STATUS, pcmk__str_casei)) { task 2526 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(after->task, RSC_START, pcmk__str_casei)) { task 2529 lib/pacemaker/pcmk_sched_allocate.c } else if (pcmk__str_eq(after->task, RSC_PROMOTE, pcmk__str_casei)) { task 2762 lib/pacemaker/pcmk_sched_allocate.c } else if(!pcmk__str_eq(first->task, RSC_START, pcmk__str_casei)) { task 2991 lib/pacemaker/pcmk_sched_allocate.c && pcmk__str_eq(action->task, RSC_STOP, pcmk__str_none) task 3024 lib/pacemaker/pcmk_sched_allocate.c char *task = NULL; task 3040 lib/pacemaker/pcmk_sched_allocate.c if (pcmk__str_eq(action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 3041 lib/pacemaker/pcmk_sched_allocate.c task = strdup("Shutdown"); task 3042 lib/pacemaker/pcmk_sched_allocate.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 3044 lib/pacemaker/pcmk_sched_allocate.c task = crm_strdup_printf("Fence (%s)", op); task 3047 lib/pacemaker/pcmk_sched_allocate.c if(task == NULL) { task 3050 lib/pacemaker/pcmk_sched_allocate.c printf(" * %s %s '%s'\n", task, node_name, action->reason); task 3052 lib/pacemaker/pcmk_sched_allocate.c printf(" * %s %s\n", task, node_name); task 3054 lib/pacemaker/pcmk_sched_allocate.c crm_notice(" * %s %s '%s'\n", task, node_name, action->reason); task 3056 lib/pacemaker/pcmk_sched_allocate.c crm_notice(" * %s %s\n", task, node_name); task 3060 lib/pacemaker/pcmk_sched_allocate.c free(task); task 561 lib/pacemaker/pcmk_sched_bundle.c enum action_tasks task = get_complex_task(data->child, action->task, TRUE); task 562 lib/pacemaker/pcmk_sched_bundle.c switch(task) { task 685 lib/pacemaker/pcmk_sched_bundle.c enum action_tasks task = clone_child_action(first); task 686 lib/pacemaker/pcmk_sched_bundle.c const char *first_task = task2text(task); task 693 lib/pacemaker/pcmk_sched_bundle.c if (strstr(first->task, "stop") && first_replica && first_replica->child) { task 700 lib/pacemaker/pcmk_sched_bundle.c NULL, task2text(task), node); task 702 lib/pacemaker/pcmk_sched_bundle.c first_action = find_first_action(first_child->actions, NULL, task2text(task), node); task 706 lib/pacemaker/pcmk_sched_bundle.c if (strstr(then->task, "mote") task 716 lib/pacemaker/pcmk_sched_bundle.c NULL, then->task, node); task 718 lib/pacemaker/pcmk_sched_bundle.c then_action = find_first_action(then_child->actions, NULL, then->task, node); task 738 lib/pacemaker/pcmk_sched_bundle.c && !pcmk__str_any_of(then->task, RSC_STOP, RSC_DEMOTE, NULL)) { task 740 lib/pacemaker/pcmk_sched_bundle.c then->task, then_child->id); task 744 lib/pacemaker/pcmk_sched_bundle.c then->task, then_child->id, task 768 lib/pacemaker/pcmk_sched_bundle.c then_child->id, then_action, task2text(task)); task 839 lib/pacemaker/pcmk_sched_bundle.c pe_action_t *then_child_action = find_first_action(then_child->actions, NULL, then->task, node); task 730 lib/pacemaker/pcmk_sched_clone.c } else if (pcmk__str_eq(RSC_STOP, action->task, pcmk__str_casei)) { task 734 lib/pacemaker/pcmk_sched_clone.c } else if (pcmk__str_eq(RSC_START, action->task, pcmk__str_casei)) { task 753 lib/pacemaker/pcmk_sched_clone.c find_rsc_action(pe_resource_t *rsc, const char *task, gboolean active_only, task 760 lib/pacemaker/pcmk_sched_clone.c possible = pe__resource_actions(rsc, NULL, task, FALSE); task 1173 lib/pacemaker/pcmk_sched_clone.c if (pcmk__strcase_any_of(action->task, "notify", "notified", NULL)) { task 1200 lib/pacemaker/pcmk_sched_clone.c result = get_complex_task(child, action->task, TRUE); task 1217 lib/pacemaker/pcmk_sched_clone.c enum action_tasks task = clone_child_action(action); task 1219 lib/pacemaker/pcmk_sched_clone.c const char *task_s = task2text(task); task 453 lib/pacemaker/pcmk_sched_constraints.c char *task = crm_strdup_printf(CRM_OP_RELAXED_CLONE ":%s", id); task 454 lib/pacemaker/pcmk_sched_constraints.c pe_action_t *unordered_action = get_pseudo_op(task, data_set); task 455 lib/pacemaker/pcmk_sched_constraints.c free(task); task 1434 lib/pacemaker/pcmk_sched_constraints.c res = strdup(action->task); task 1900 lib/pacemaker/pcmk_sched_constraints.c char *task = crm_strdup_printf(CRM_OP_RELAXED_SET ":%s", ID(set1)); task 1901 lib/pacemaker/pcmk_sched_constraints.c pe_action_t *unordered_action = get_pseudo_op(task, data_set); task 1903 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 432 lib/pacemaker/pcmk_sched_graph.c && pcmk__str_eq(first->task, RSC_STOP, pcmk__str_casei) task 465 lib/pacemaker/pcmk_sched_graph.c if (!pcmk__str_eq(action->task, RSC_START, pcmk__str_casei)) { task 485 lib/pacemaker/pcmk_sched_graph.c && pcmk__str_eq(action->task, RSC_START, pcmk__str_casei)) { task 567 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 574 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 601 lib/pacemaker/pcmk_sched_graph.c if (!strcmp(first->task, CRMD_ACTION_RELOAD)) { task 738 lib/pacemaker/pcmk_sched_graph.c } else if (!pcmk__str_eq(action->task, RSC_STOP, pcmk__str_casei)) { task 787 lib/pacemaker/pcmk_sched_graph.c const char *task = action->task; task 789 lib/pacemaker/pcmk_sched_graph.c if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei) task 836 lib/pacemaker/pcmk_sched_graph.c if (pcmk__str_eq(task, "notify", pcmk__str_casei)) { task 837 lib/pacemaker/pcmk_sched_graph.c task = g_hash_table_lookup(action->meta, "notify_operation"); task 841 lib/pacemaker/pcmk_sched_graph.c if (pcmk__strcase_any_of(task, "stop", "demote", "migrate_from", "migrate_to", task 957 lib/pacemaker/pcmk_sched_graph.c if (pcmk__str_eq(action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 963 lib/pacemaker/pcmk_sched_graph.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 975 lib/pacemaker/pcmk_sched_graph.c && pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 987 lib/pacemaker/pcmk_sched_graph.c && pcmk__str_eq(input->task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 1011 lib/pacemaker/pcmk_sched_graph.c if (action->node->details->shutdown && action->task task 1012 lib/pacemaker/pcmk_sched_graph.c && strcmp(action->task, RSC_STOP)) { task 1034 lib/pacemaker/pcmk_sched_graph.c if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 1041 lib/pacemaker/pcmk_sched_graph.c } else if (pcmk__str_eq(action->task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 1044 lib/pacemaker/pcmk_sched_graph.c } else if (pcmk__str_eq(action->task, CRM_OP_CLEAR_FAILCOUNT, pcmk__str_casei)) { task 1047 lib/pacemaker/pcmk_sched_graph.c } else if (pcmk__str_eq(action->task, CRM_OP_LRM_REFRESH, pcmk__str_casei)) { task 1050 lib/pacemaker/pcmk_sched_graph.c } else if (pcmk__str_eq(action->task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 1059 lib/pacemaker/pcmk_sched_graph.c if (pcmk__str_eq(action->task, CRM_OP_MAINTENANCE_NODES, pcmk__str_casei)) { task 1074 lib/pacemaker/pcmk_sched_graph.c crm_xml_add(action_xml, XML_LRM_ATTR_TASK, action->task); task 1085 lib/pacemaker/pcmk_sched_graph.c if (pcmk__str_eq(action->task, RSC_NOTIFY, pcmk__str_casei)) { task 1100 lib/pacemaker/pcmk_sched_graph.c action->task, interval_ms); task 1270 lib/pacemaker/pcmk_sched_graph.c enum action_tasks task = text2task(action->task); task 1272 lib/pacemaker/pcmk_sched_graph.c if(task == action_notify || task == action_notified) { task 1274 lib/pacemaker/pcmk_sched_graph.c task = text2task(n_task); task 1278 lib/pacemaker/pcmk_sched_graph.c switch (task) { task 1305 lib/pacemaker/pcmk_sched_graph.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei) && action->node) { task 1341 lib/pacemaker/pcmk_sched_graph.c && pcmk__str_eq(action->task, CRM_OP_PROBED, pcmk__str_casei)) { task 1364 lib/pacemaker/pcmk_sched_graph.c } else if (!pcmk__str_eq(wrapper->action->task, RSC_START, pcmk__str_casei)) { task 1390 lib/pacemaker/pcmk_sched_graph.c && !pcmk__str_eq(action->task, RSC_STATUS, pcmk__str_casei)) { task 1404 lib/pacemaker/pcmk_sched_graph.c pcmk__strcase_any_of(action->task, CRM_OP_FENCE, CRM_OP_SHUTDOWN, NULL)) { task 1558 lib/pacemaker/pcmk_sched_graph.c if (action->rsc && pcmk__str_eq(action->task, RSC_MIGRATE, pcmk__str_casei)) { task 1742 lib/pacemaker/pcmk_sched_graph.c && pcmk__str_eq(action->task, RSC_MIGRATE, pcmk__str_casei) task 149 lib/pacemaker/pcmk_sched_group.c if (pcmk__str_eq(RSC_STOP, action->task, pcmk__str_casei) task 155 lib/pacemaker/pcmk_sched_group.c } else if (pcmk__str_eq(RSC_START, action->task, pcmk__str_casei) task 388 lib/pacemaker/pcmk_sched_group.c enum action_tasks task = get_complex_task(child, action->task, TRUE); task 389 lib/pacemaker/pcmk_sched_group.c const char *task_s = task2text(task); task 403 lib/pacemaker/pcmk_sched_group.c if (!pcmk__str_eq(task_s, action->task, pcmk__str_casei) task 414 lib/pacemaker/pcmk_sched_group.c } else if (task != stop_rsc && task != action_demote) { task 439 lib/pacemaker/pcmk_sched_group.c pe_action_t *child_action = find_first_action(child->actions, NULL, then->task, node); task 859 lib/pacemaker/pcmk_sched_native.c mon->task, interval_ms / 1000, rsc->id, node_uname); task 1096 lib/pacemaker/pcmk_sched_native.c crm_notice(" Start recurring %s (%us) for %s on %s", stopped_mon->task, task 2102 lib/pacemaker/pcmk_sched_native.c && pcmk__str_eq(then->task, RSC_START, pcmk__str_casei)) { task 2155 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 2159 lib/pacemaker/pcmk_sched_native.c && pcmk__str_eq(then->task, RSC_START, pcmk__str_casei) task 2778 lib/pacemaker/pcmk_sched_native.c rsc->id, action->task); task 3200 lib/pacemaker/pcmk_sched_native.c if (pcmk__str_eq(action->task, RSC_START, pcmk__str_casei) task 210 lib/pacemaker/pcmk_sched_notif.c const char *task = NULL; task 229 lib/pacemaker/pcmk_sched_notif.c task = g_hash_table_lookup(op->meta, "notify_operation"); task 231 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 233 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, value, task); task 234 lib/pacemaker/pcmk_sched_notif.c trigger = custom_action(rsc, key, op->task, node, task 277 lib/pacemaker/pcmk_sched_notif.c } else if (pcmk__str_eq(mon->task, RSC_CANCEL, pcmk__str_casei)) { task 312 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, "pre", start->task); task 326 lib/pacemaker/pcmk_sched_notif.c add_hash_param(n_data->pre->meta, "notify_key_operation", start->task); task 329 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, "confirmed-pre", start->task); task 343 lib/pacemaker/pcmk_sched_notif.c add_hash_param(n_data->pre_done->meta, "notify_key_operation", start->task); task 351 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, "post", end->task); task 371 lib/pacemaker/pcmk_sched_notif.c add_hash_param(n_data->post->meta, "notify_key_operation", end->task); task 374 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, "confirmed-post", end->task); task 394 lib/pacemaker/pcmk_sched_notif.c add_hash_param(n_data->post_done->meta, "notify_key_operation", end->task); task 464 lib/pacemaker/pcmk_sched_notif.c enum action_tasks task; task 474 lib/pacemaker/pcmk_sched_notif.c task = text2task(op->task); task 476 lib/pacemaker/pcmk_sched_notif.c if(task == stop_rsc && op->node->details->unclean) { task 486 lib/pacemaker/pcmk_sched_notif.c switch (task) { task 648 lib/pacemaker/pcmk_sched_notif.c enum action_tasks task = text2task(n_data->action); task 668 lib/pacemaker/pcmk_sched_notif.c enum action_tasks t = text2task(op->task); task 683 lib/pacemaker/pcmk_sched_notif.c switch (task) { task 720 lib/pacemaker/pcmk_sched_notif.c if (task == stop_rsc || task == action_demote) { task 735 lib/pacemaker/pcmk_sched_notif.c if (task == action_demote || stop == NULL task 749 lib/pacemaker/pcmk_sched_notif.c } else if (task == start_rsc || task == action_promote) { task 764 lib/pacemaker/pcmk_sched_notif.c if ((task != start_rsc) || (start == NULL) task 121 lib/pacemaker/pcmk_sched_promotable.c } else if (pcmk__str_eq(RSC_DEMOTE, action->task, pcmk__str_casei)) { task 124 lib/pacemaker/pcmk_sched_promotable.c } else if (pcmk__str_eq(RSC_PROMOTE, action->task, pcmk__str_casei)) { task 80 lib/pacemaker/pcmk_sched_transition.c update_failcounts(xmlNode * cib_node, const char *resource, const char *task, task 93 lib/pacemaker/pcmk_sched_transition.c name = pcmk__failcount_name(resource, task, interval_ms); task 97 lib/pacemaker/pcmk_sched_transition.c name = pcmk__lastfailure_name(resource, task, interval_ms); task 129 lib/pacemaker/pcmk_sched_transition.c create_op(xmlNode *cib_resource, const char *task, guint interval_ms, task 135 lib/pacemaker/pcmk_sched_transition.c op = lrmd_new_event(ID(cib_resource), task, interval_ms); task 539 lib/pacemaker/pcmk_sched_transition.c char *task = NULL; task 560 lib/pacemaker/pcmk_sched_transition.c parse_op_key(key, &resource, &task, &interval_ms); task 573 lib/pacemaker/pcmk_sched_transition.c update_failcounts(cib_node, resource, task, interval_ms, outcome); task 579 lib/pacemaker/pcmk_sched_transition.c op = create_op(cib_resource, task, interval_ms, outcome); task 590 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 604 lib/pacemaker/pcmk_sched_transition.c quiet_log(" * Pseudo action: %s%s%s\n", task, node ? " on " : "", node ? node : ""); task 756 lib/pacemaker/pcmk_sched_transition.c const char *task = crm_element_value(action->xml, XML_LRM_ATTR_TASK); task 762 lib/pacemaker/pcmk_sched_transition.c quiet_log(" * Cluster action: %s for %s on %s\n", task, ID(rsc), node); task 764 lib/pacemaker/pcmk_sched_transition.c quiet_log(" * Cluster action: %s on %s\n", task, node); task 314 lib/pacemaker/pcmk_sched_utils.c if(pcmk__str_eq(RSC_STOP, op->task, pcmk__str_casei)) { task 318 lib/pacemaker/pcmk_sched_utils.c } else if(pcmk__str_eq(RSC_START, op->task, pcmk__str_casei)) { task 376 lib/pacemaker/pcmk_sched_utils.c switch (text2task(action->task)) { task 471 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 473 lib/pacemaker/pcmk_sched_utils.c pe_action_t *action = custom_action(rsc, pcmk__op_key(rsc->id, task, 0), task 474 lib/pacemaker/pcmk_sched_utils.c task, NULL, optional, TRUE, data_set); task 496 lib/pacemaker/pcmk_sched_utils.c pe_cancel_op(pe_resource_t *rsc, const char *task, guint interval_ms, task 503 lib/pacemaker/pcmk_sched_utils.c char *key = pcmk__op_key(rsc->id, task, interval_ms); task 508 lib/pacemaker/pcmk_sched_utils.c free(cancel_op->task); task 509 lib/pacemaker/pcmk_sched_utils.c cancel_op->task = strdup(RSC_CANCEL); task 512 lib/pacemaker/pcmk_sched_utils.c cancel_op->cancel_task = strdup(task); task 514 lib/pacemaker/pcmk_sched_utils.c add_hash_param(cancel_op->meta, XML_LRM_ATTR_TASK, task); task 617 lib/pacemaker/pcmk_sched_utils.c const char *task = NULL; task 626 lib/pacemaker/pcmk_sched_utils.c task = op->op_type; task 631 lib/pacemaker/pcmk_sched_utils.c if (pcmk__str_eq(task, "reload", pcmk__str_none)) { task 633 lib/pacemaker/pcmk_sched_utils.c task = CRMD_ACTION_START; task 635 lib/pacemaker/pcmk_sched_utils.c task = CRMD_ACTION_STATUS; task 639 lib/pacemaker/pcmk_sched_utils.c key = pcmk__op_key(op->rsc_id, task, op->interval_ms); task 640 lib/pacemaker/pcmk_sched_utils.c if (pcmk__str_eq(task, CRMD_ACTION_NOTIFY, pcmk__str_none)) { task 694 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 358 lib/pengine/common.c text2task(const char *task) task 360 lib/pengine/common.c if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 362 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STOPPED, pcmk__str_casei)) { task 364 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_START, pcmk__str_casei)) { task 366 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STARTED, pcmk__str_casei)) { task 368 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_SHUTDOWN, pcmk__str_casei)) { task 370 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_FENCE, pcmk__str_casei)) { task 372 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 374 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_NOTIFY, pcmk__str_casei)) { task 376 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_NOTIFIED, pcmk__str_casei)) { task 378 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 380 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTE, pcmk__str_casei)) { task 382 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTED, pcmk__str_casei)) { task 384 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTED, pcmk__str_casei)) { task 388 lib/pengine/common.c if (pcmk__str_eq(task, CRMD_ACTION_CANCEL, pcmk__str_casei)) { task 390 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_DELETE, pcmk__str_casei)) { task 392 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 394 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_PROBED, pcmk__str_casei)) { task 396 lib/pengine/common.c } else if (pcmk__str_eq(task, CRM_OP_LRM_REFRESH, pcmk__str_casei)) { task 398 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATE, pcmk__str_casei)) { task 400 lib/pengine/common.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 403 lib/pengine/common.c crm_trace("Unsupported action: %s", task); task 410 lib/pengine/common.c task2text(enum action_tasks task) task 414 lib/pengine/common.c switch (task) { task 86 lib/pengine/pe_output.c op_history_string(xmlNode *xml_op, const char *task, const char *interval_ms_s, task 136 lib/pengine/pe_output.c buf = crm_strdup_printf("(%s) %s:%s%s%s%s%s rc=%d (%s)", call, task, task 160 lib/pengine/pe_output.c buf = crm_strdup_printf("(%s) %s%s%s", call, task, task 1508 lib/pengine/pe_output.c const char *task = va_arg(args, const char *); task 1513 lib/pengine/pe_output.c char *buf = op_history_string(xml_op, task, interval_ms_s, rc, print_timing); task 1525 lib/pengine/pe_output.c const char *task = va_arg(args, const char *); task 1536 lib/pengine/pe_output.c xmlSetProp(node, (pcmkXmlStr) "task", (pcmkXmlStr) task); task 2141 lib/pengine/unpack.c const char *task = NULL; task 2182 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2184 lib/pengine/unpack.c key = pcmk__op_key(rsc->id, task, interval_ms); task 2186 lib/pengine/unpack.c custom_action(rsc, key, task, node, TRUE, TRUE, data_set); task 2196 lib/pengine/unpack.c const char *task = NULL; task 2208 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2211 lib/pengine/unpack.c if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei) task 2215 lib/pengine/unpack.c } else if (pcmk__strcase_any_of(task, CRMD_ACTION_START, CRMD_ACTION_MIGRATED, NULL)) { task 2218 lib/pengine/unpack.c } else if ((implied_monitor_start <= *stop_index) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 2224 lib/pengine/unpack.c } else if (pcmk__strcase_any_of(task, CRMD_ACTION_PROMOTE, CRMD_ACTION_DEMOTE, NULL)) { task 2269 lib/pengine/unpack.c const char *task = NULL; task 2331 lib/pengine/unpack.c task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 2332 lib/pengine/unpack.c if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 2912 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 2917 lib/pengine/unpack.c CRM_CHECK(task != NULL, return); task 2922 lib/pengine/unpack.c if ((interval_ms == 0) && !strcmp(task, CRMD_ACTION_STATUS)) { task 2936 lib/pengine/unpack.c (is_probe? "probe" : task), rsc->id, node->details->uname, task 2943 lib/pengine/unpack.c (is_probe? "probe" : task), rsc->id, node->details->uname, task 2961 lib/pengine/unpack.c action = custom_action(rsc, strdup(key), task, NULL, TRUE, FALSE, data_set); task 2968 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_STOP)) { task 2971 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATE)) { task 2974 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATED)) { task 2977 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_PROMOTE)) { task 2980 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_DEMOTE)) { task 3073 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3078 lib/pengine/unpack.c CRM_CHECK(task != NULL, return PCMK_LRM_OP_ERROR); task 3085 lib/pengine/unpack.c if ((interval_ms == 0) && !strcmp(task, CRMD_ACTION_STATUS)) { task 3087 lib/pengine/unpack.c task = "probe"; task 3166 lib/pengine/unpack.c && !strcmp(task, CRMD_ACTION_STOP)) { task 3170 lib/pengine/unpack.c CRM_XS " rc=%d id=%s", rsc->id, task, task 3184 lib/pengine/unpack.c rc, task, rsc->id, node->details->uname, task 3195 lib/pengine/unpack.c should_clear_for_param_change(xmlNode *xml_op, const char *task, task 3199 lib/pengine/unpack.c if (!strcmp(task, "start") || !strcmp(task, "monitor")) { task 3246 lib/pengine/unpack.c const char *task, guint interval_ms, task 3271 lib/pengine/unpack.c && (interval_ms != 0) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3317 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3333 lib/pengine/unpack.c && !should_ignore_failure_timeout(rsc, xml_op, task, interval_ms, task 3383 lib/pengine/unpack.c && should_clear_for_param_change(xml_op, task, rsc, node, data_set)) { task 3403 lib/pengine/unpack.c "fencing of %s completes", task, rsc->id); task 3408 lib/pengine/unpack.c if (expired && (interval_ms == 0) && pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3437 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 3440 lib/pengine/unpack.c pe_action_t *action = custom_action(rsc, strdup(key), task, NULL, TRUE, FALSE, data_set); task 3449 lib/pengine/unpack.c update_resource_state(pe_resource_t * rsc, pe_node_t * node, xmlNode * xml_op, const char * task, int rc, task 3463 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei)) { task 3477 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_START, pcmk__str_casei)) { task 3481 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 3485 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 3489 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_DEMOTE, pcmk__str_casei)) { task 3497 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATED, pcmk__str_casei)) { task 3501 lib/pengine/unpack.c } else if (pcmk__str_eq(task, CRMD_ACTION_MIGRATE, pcmk__str_casei)) { task 3589 lib/pengine/unpack.c const char *task = NULL; task 3600 lib/pengine/unpack.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 3611 lib/pengine/unpack.c CRM_CHECK(task != NULL, return); task 3615 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_NOTIFY) || task 3616 lib/pengine/unpack.c !strcmp(task, CRMD_ACTION_METADATA)) { task 3626 lib/pengine/unpack.c task_key, task, task_id, status, rc, node->details->uname, role2text(rsc->role)); task 3651 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_STATUS)) { task 3698 lib/pengine/unpack.c ID(xml_op), task, rsc->id, node->details->uname, task 3703 lib/pengine/unpack.c if (!strcmp(task, CRMD_ACTION_START)) { task 3707 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_PROMOTE)) { task 3710 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATE) && node->details->unclean) { task 3721 lib/pengine/unpack.c if ((interval_ms != 0) || strcmp(task, CRMD_ACTION_STATUS)) { task 3722 lib/pengine/unpack.c rsc->pending_task = strdup(task); task 3740 lib/pengine/unpack.c task, rsc->id, node->details->uname, task 3742 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, rc, *last_failure, on_fail, data_set); task 3746 lib/pengine/unpack.c failure_strategy = get_action_on_fail(rsc, task_key, task, data_set); task 3751 lib/pengine/unpack.c task, rsc->id, node->details->uname, status, rc, task 3782 lib/pengine/unpack.c failure_strategy = get_action_on_fail(rsc, task_key, task, data_set); task 3785 lib/pengine/unpack.c && !strcmp(task, CRMD_ACTION_STOP))) { task 3789 lib/pengine/unpack.c task, services_ocf_exitcode_str(rc), task 3794 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, target_rc, *last_failure, on_fail, data_set); task 3832 lib/pengine/unpack.c rsc->id, task, role2text(rsc->role), task 465 lib/pengine/utils.c custom_action(pe_resource_t * rsc, char *key, const char *task, task 473 lib/pengine/utils.c CRM_CHECK(task != NULL, free(key); return NULL); task 493 lib/pengine/utils.c task, rsc ? rsc->id : "<NULL>", task 499 lib/pengine/utils.c action->id, task, (rsc? rsc->id : "no resource"), task 510 lib/pengine/utils.c task, (rsc? rsc->id : "no resource"), key, task 521 lib/pengine/utils.c action->task = strdup(task); task 527 lib/pengine/utils.c if (pcmk__str_eq(task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 569 lib/pengine/utils.c enum action_tasks a_task = text2task(action->task); task 716 lib/pengine/utils.c if (pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei) task 724 lib/pengine/utils.c } else if (pcmk__str_eq(action->task, CRMD_ACTION_DEMOTE, pcmk__str_casei) && !value) { task 756 lib/pengine/utils.c } else if (pcmk__str_eq(action->task, CRM_OP_LRM_DELETE, pcmk__str_casei)) { task 1008 lib/pengine/utils.c .op_name = action->task, task 1028 lib/pengine/utils.c if (pcmk__str_eq(action->task, RSC_STATUS, pcmk__str_casei) task 1100 lib/pengine/utils.c && (pcmk__str_eq(action->task, RSC_START, pcmk__str_casei) task 1101 lib/pengine/utils.c || (pcmk__str_eq(action->task, RSC_STATUS, pcmk__str_casei) task 1122 lib/pengine/utils.c if (!pcmk__strcase_any_of(action->task, RSC_START, RSC_PROMOTE, NULL)) { task 1216 lib/pengine/utils.c && !(pcmk__str_eq(action->task, CRMD_ACTION_STATUS, pcmk__str_casei) task 1218 lib/pengine/utils.c && !pcmk__str_eq(action->task, CRMD_ACTION_START, pcmk__str_casei)) { task 1238 lib/pengine/utils.c } else if (value == NULL && pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei)) { task 1269 lib/pengine/utils.c if (pcmk__str_eq(action->task, CRMD_ACTION_PROMOTE, pcmk__str_casei)) { task 1439 lib/pengine/utils.c free(action->task); task 1462 lib/pengine/utils.c } else if (pcmk__str_eq(CRMD_ACTION_CANCEL, action->task, pcmk__str_casei)) { task 1482 lib/pengine/utils.c enum action_tasks task = text2task(name); task 1485 lib/pengine/utils.c return task; task 1488 lib/pengine/utils.c switch (task) { task 1494 lib/pengine/utils.c return task - 1; task 1499 lib/pengine/utils.c return task; task 1503 lib/pengine/utils.c find_first_action(GListPtr input, const char *uuid, const char *task, pe_node_t * on_node) task 1507 lib/pengine/utils.c CRM_CHECK(uuid || task, return NULL); task 1515 lib/pengine/utils.c } else if (task != NULL && !pcmk__str_eq(task, action->task, pcmk__str_casei)) { task 1622 lib/pengine/utils.c const char *task, bool require_node) task 1625 lib/pengine/utils.c char *key = pcmk__op_key(rsc->id, task, 0); task 2054 lib/pengine/utils.c rsc_action_digest(pe_resource_t *rsc, const char *task, const char *key, task 2063 lib/pengine/utils.c pe_action_t *action = custom_action(rsc, strdup(key), task, node, TRUE, FALSE, data_set); task 2157 lib/pengine/utils.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 2168 lib/pengine/utils.c key = pcmk__op_key(rsc->id, task, interval_ms); task 2169 lib/pengine/utils.c data = rsc_action_digest(rsc, task, key, node, xml_op, task 2666 lib/pengine/utils.c reason_text = crm_strdup_printf("%s %s%c %s", change, reason->task, text?':':0, text?text:""); task 2668 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 1581 tools/crm_mon.c send_custom_trap(const char *node, const char *rsc, const char *task, int target_rc, int rc, task 1600 tools/crm_mon.c setenv("CRM_notify_task", task, 1); task 1632 tools/crm_mon.c char *task = NULL; task 1669 tools/crm_mon.c if (parse_op_key(id, &rsc, &task, NULL) == FALSE) { task 1700 tools/crm_mon.c crm_notice("%s of %s on %s completed: %s", task, rsc, node, desc); task 1707 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); task 1711 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); task 1715 tools/crm_mon.c send_custom_trap(node, rsc, task, target_rc, rc, status, desc); task 1719 tools/crm_mon.c free(task); task 137 tools/crm_mon_print.c const char *task = crm_element_value(rsc_op, XML_LRM_ATTR_TASK); task 144 tools/crm_mon_print.c if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei) task 146 tools/crm_mon_print.c task = "probe"; task 150 tools/crm_mon_print.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 186 tools/crm_mon_print.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); task 193 tools/crm_mon_print.c if (pcmk__str_eq(task, CRMD_ACTION_STATUS, pcmk__str_casei) task 195 tools/crm_mon_print.c task = "probe"; task 208 tools/crm_mon_print.c out->message(out, "op-history", xml_op, task, interval_ms_s, task 1536 tools/crm_resource_runtime.c || pcmk__str_eq("notify", action->task, pcmk__str_casei)) { task 525 tools/crm_simulate.c const char *task = action->task; task 533 tools/crm_simulate.c if (pcmk__str_eq(action->task, RSC_CANCEL, pcmk__str_casei)) { task 535 tools/crm_simulate.c task = action->cancel_task; task 552 tools/crm_simulate.c if (pcmk__strcase_any_of(action->task, RSC_NOTIFY, RSC_NOTIFIED, NULL)) { task 561 tools/crm_simulate.c key = pcmk__op_key(clone_name, task, interval_ms); task 571 tools/crm_simulate.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei)) { task 574 tools/crm_simulate.c action_name = crm_strdup_printf("%s%s '%s' %s", prefix, action->task, op, action_host); task 580 tools/crm_simulate.c action_name = crm_strdup_printf("%s%s %s", prefix, action->task, action_host);