xml_op 663 crmd/lrm.c xmlNode *xml_op = NULL; xml_op 688 crmd/lrm.c xml_op = create_operation_update(parent, op, caller_version, target_rc, fsa_our_uname, src, LOG_DEBUG); xml_op 689 crmd/lrm.c if (xml_op == NULL) { xml_op 745 crmd/lrm.c crm_xml_add(xml_op, XML_ATTR_RA_VERSION, metadata->ra_version); xml_op 749 crmd/lrm.c append_restart_list(op, metadata, xml_op, caller_version); xml_op 750 crmd/lrm.c append_secure_list(op, metadata, xml_op, caller_version); xml_op 629 crmd/messages.c xmlNode *xml_op = get_message_xml(stored_msg, F_CRM_DATA); xml_op 631 crmd/messages.c if (xml_op) { xml_op 632 crmd/messages.c xmlNode *xml_rsc = first_named_child(xml_op, XML_CIB_TAG_RESOURCE); xml_op 633 crmd/messages.c xmlNode *xml_attrs = first_named_child(xml_op, XML_TAG_ATTRS); xml_op 646 crmd/messages.c uname = crm_element_value(xml_op, XML_LRM_ATTR_TARGET); xml_op 653 crmd/messages.c if (crm_element_value(xml_op, XML_LRM_ATTR_ROUTER_NODE)) { xml_op 314 crmd/te_actions.c xmlNode *xml_op = NULL; xml_op 375 crmd/te_actions.c xml_op = create_operation_update(rsc, op, CRM_FEATURE_SET, target_rc, target, __FUNCTION__, LOG_INFO); xml_op 381 crmd/te_actions.c crm_log_xml_trace(xml_op, "Op"); xml_op 125 include/crm/pengine/internal.h uint32_t flags, xmlNode *xml_op, xml_op 269 include/crm/pengine/internal.h int get_target_rc(xmlNode * xml_op); xml_op 296 include/crm/pengine/internal.h op_digest_cache_t *rsc_action_digest_cmp(resource_t * rsc, xmlNode * xml_op, node_t * node, xml_op 442 lib/common/operations.c xmlNode *xml_op; xml_op 446 lib/common/operations.c xml_op = create_xml_node(parent, XML_ATTR_OP); xml_op 447 lib/common/operations.c crm_xml_set_id(xml_op, "%s-%s-%s", prefix, task, interval); xml_op 448 lib/common/operations.c crm_xml_add(xml_op, XML_LRM_ATTR_INTERVAL, interval); xml_op 449 lib/common/operations.c crm_xml_add(xml_op, "name", task); xml_op 451 lib/common/operations.c crm_xml_add(xml_op, XML_ATTR_TIMEOUT, timeout); xml_op 453 lib/common/operations.c return xml_op; xml_op 467 lib/common/operations.c xmlNode *xml_op = NULL; xml_op 536 lib/common/operations.c xml_op = find_entity(parent, XML_LRM_TAG_RSC_OP, op_id); xml_op 537 lib/common/operations.c if (xml_op == NULL) { xml_op 538 lib/common/operations.c xml_op = create_xml_node(parent, XML_LRM_TAG_RSC_OP); xml_op 553 lib/common/operations.c crm_xml_add(xml_op, XML_ATTR_ID, op_id); xml_op 554 lib/common/operations.c crm_xml_add(xml_op, XML_LRM_ATTR_TASK_KEY, key); xml_op 555 lib/common/operations.c crm_xml_add(xml_op, XML_LRM_ATTR_TASK, task); xml_op 556 lib/common/operations.c crm_xml_add(xml_op, XML_ATTR_ORIGIN, origin); xml_op 557 lib/common/operations.c crm_xml_add(xml_op, XML_ATTR_CRM_VERSION, caller_version); xml_op 558 lib/common/operations.c crm_xml_add(xml_op, XML_ATTR_TRANSITION_KEY, op->user_data); xml_op 559 lib/common/operations.c crm_xml_add(xml_op, XML_ATTR_TRANSITION_MAGIC, magic); xml_op 560 lib/common/operations.c crm_xml_add(xml_op, XML_LRM_ATTR_EXIT_REASON, exit_reason == NULL ? "" : exit_reason); xml_op 561 lib/common/operations.c crm_xml_add(xml_op, XML_LRM_ATTR_TARGET, node); /* For context during triage */ xml_op 563 lib/common/operations.c crm_xml_add_int(xml_op, XML_LRM_ATTR_CALLID, op->call_id); xml_op 564 lib/common/operations.c crm_xml_add_int(xml_op, XML_LRM_ATTR_RC, op->rc); xml_op 565 lib/common/operations.c crm_xml_add_int(xml_op, XML_LRM_ATTR_OPSTATUS, op->op_status); xml_op 566 lib/common/operations.c crm_xml_add_int(xml_op, XML_LRM_ATTR_INTERVAL, op->interval); xml_op 576 lib/common/operations.c crm_xml_add_int(xml_op, XML_RSC_OP_LAST_RUN, op->t_run); xml_op 577 lib/common/operations.c crm_xml_add_int(xml_op, XML_RSC_OP_LAST_CHANGE, op->t_run); xml_op 581 lib/common/operations.c crm_xml_add_int(xml_op, XML_RSC_OP_LAST_CHANGE, op->t_rcchange); xml_op 585 lib/common/operations.c crm_xml_add_int(xml_op, XML_RSC_OP_LAST_CHANGE, op->t_run); xml_op 588 lib/common/operations.c crm_xml_add_int(xml_op, XML_RSC_OP_T_EXEC, op->exec_time); xml_op 589 lib/common/operations.c crm_xml_add_int(xml_op, XML_RSC_OP_T_QUEUE, op->queue_time); xml_op 600 lib/common/operations.c crm_xml_add(xml_op, name, crm_meta_value(op->params, name)); xml_op 603 lib/common/operations.c crm_xml_add(xml_op, name, crm_meta_value(op->params, name)); xml_op 606 lib/common/operations.c append_digest(op, xml_op, caller_version, magic, LOG_DEBUG); xml_op 622 lib/common/operations.c return xml_op; xml_op 73 lib/pengine/failcounts.c block_failure(node_t *node, resource_t *rsc, xmlNode *xml_op, xml_op 99 lib/pengine/failcounts.c if (xml_op) { xml_op 100 lib/pengine/failcounts.c should_block = is_matched_failure(xml_name, pref, xml_op); xml_op 238 lib/pengine/failcounts.c uint32_t flags, xmlNode *xml_op, pe_working_set_t *data_set) xml_op 268 lib/pengine/failcounts.c && block_failure(node, rsc, xml_op, data_set)) { xml_op 296 lib/pengine/failcounts.c flags, xml_op, data_set); xml_op 45 lib/pengine/unpack.c gboolean unpack_rsc_op(resource_t * rsc, node_t * node, xmlNode * xml_op, xmlNode ** last_failure, xml_op 2410 lib/pengine/unpack.c unpack_rsc_migration(resource_t *rsc, node_t *node, xmlNode *xml_op, pe_working_set_t * data_set) xml_op 2435 lib/pengine/unpack.c crm_element_value_int(xml_op, XML_LRM_ATTR_CALLID, &task_id); xml_op 2440 lib/pengine/unpack.c crm_element_value(xml_op, XML_LRM_ATTR_MIGRATE_SOURCE); xml_op 2442 lib/pengine/unpack.c crm_element_value(xml_op, XML_LRM_ATTR_MIGRATE_TARGET); xml_op 2460 lib/pengine/unpack.c pe_rsc_trace(rsc, "Detected dangling migration op: %s on %s", ID(xml_op), xml_op 2502 lib/pengine/unpack.c unpack_rsc_migration_failure(resource_t *rsc, node_t *node, xmlNode *xml_op, pe_working_set_t * data_set) xml_op 2504 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); xml_op 2510 lib/pengine/unpack.c const char *migrate_source = crm_element_value(xml_op, XML_LRM_ATTR_MIGRATE_SOURCE); xml_op 2511 lib/pengine/unpack.c const char *migrate_target = crm_element_value(xml_op, XML_LRM_ATTR_MIGRATE_TARGET); xml_op 2540 lib/pengine/unpack.c const char *migrate_source = crm_element_value(xml_op, XML_LRM_ATTR_MIGRATE_SOURCE); xml_op 2541 lib/pengine/unpack.c const char *migrate_target = crm_element_value(xml_op, XML_LRM_ATTR_MIGRATE_TARGET); xml_op 2601 lib/pengine/unpack.c static const char *get_op_key(xmlNode *xml_op) xml_op 2603 lib/pengine/unpack.c const char *key = crm_element_value(xml_op, XML_LRM_ATTR_TASK_KEY); xml_op 2605 lib/pengine/unpack.c key = ID(xml_op); xml_op 2611 lib/pengine/unpack.c unpack_rsc_op_failure(resource_t * rsc, node_t * node, int rc, xmlNode * xml_op, xmlNode ** last_failure, xml_op 2618 lib/pengine/unpack.c const char *key = get_op_key(xml_op); xml_op 2619 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); xml_op 2620 lib/pengine/unpack.c const char *op_version = crm_element_value(xml_op, XML_ATTR_CRM_VERSION); xml_op 2624 lib/pengine/unpack.c *last_failure = xml_op; xml_op 2626 lib/pengine/unpack.c crm_element_value_int(xml_op, XML_LRM_ATTR_INTERVAL, &interval); xml_op 2637 lib/pengine/unpack.c record_failed_op(xml_op, node, rsc, data_set); xml_op 2659 lib/pengine/unpack.c unpack_rsc_migration_failure(rsc, node, xml_op, data_set); xml_op 2735 lib/pengine/unpack.c resource_t *rsc, int rc, int target_rc, node_t * node, xmlNode * xml_op, enum action_fail_response * on_fail, pe_working_set_t * data_set) xml_op 2740 lib/pengine/unpack.c const char *key = get_op_key(xml_op); xml_op 2741 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); xml_op 2746 lib/pengine/unpack.c crm_element_value_int(xml_op, XML_LRM_ATTR_INTERVAL, &interval); xml_op 2856 lib/pengine/unpack.c static bool check_operation_expiry(resource_t *rsc, node_t *node, int rc, xmlNode *xml_op, pe_working_set_t * data_set) xml_op 2862 lib/pengine/unpack.c const char *key = get_op_key(xml_op); xml_op 2863 lib/pengine/unpack.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); xml_op 2868 lib/pengine/unpack.c if (safe_str_eq(crm_element_value(xml_op, XML_LRM_ATTR_TASK), "monitor") && xml_op 2869 lib/pengine/unpack.c safe_str_neq(crm_element_value(xml_op, XML_LRM_ATTR_INTERVAL), "0")) { xml_op 2885 lib/pengine/unpack.c if (strstr(ID(xml_op), "last_failure")) { xml_op 2898 lib/pengine/unpack.c if (crm_element_value_int(xml_op, XML_RSC_OP_LAST_CHANGE, &last_run) == 0) { xml_op 2910 lib/pengine/unpack.c xml_op, data_set)) { xml_op 2913 lib/pengine/unpack.c xml_op, data_set) == 0) { xml_op 2919 lib/pengine/unpack.c } else if (rsc->remote_reconnect_interval && strstr(ID(xml_op), "last_failure")) { xml_op 2925 lib/pengine/unpack.c } else if (strstr(ID(xml_op), "last_failure") && xml_op 2930 lib/pengine/unpack.c digest_data = rsc_action_digest_cmp(rsc, xml_op, node, data_set); xml_op 2955 lib/pengine/unpack.c crm_element_value_int(xml_op, XML_LRM_ATTR_INTERVAL, &interval); xml_op 2972 lib/pengine/unpack.c int get_target_rc(xmlNode *xml_op) xml_op 2977 lib/pengine/unpack.c const char *key = crm_element_value(xml_op, XML_ATTR_TRANSITION_KEY); xml_op 3001 lib/pengine/unpack.c update_resource_state(resource_t * rsc, node_t * node, xmlNode * xml_op, const char * task, int rc, xml_op 3007 lib/pengine/unpack.c CRM_ASSERT(xml_op); xml_op 3017 lib/pengine/unpack.c const char *op_key = get_op_key(xml_op); xml_op 3050 lib/pengine/unpack.c unpack_rsc_migration(rsc, node, xml_op, data_set); xml_op 3091 lib/pengine/unpack.c unpack_rsc_op(resource_t * rsc, node_t * node, xmlNode * xml_op, xmlNode ** last_failure, xml_op 3102 lib/pengine/unpack.c int target_rc = get_target_rc(xml_op); xml_op 3111 lib/pengine/unpack.c CRM_CHECK(xml_op != NULL, return FALSE); xml_op 3113 lib/pengine/unpack.c task_key = get_op_key(xml_op); xml_op 3115 lib/pengine/unpack.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); xml_op 3116 lib/pengine/unpack.c key = crm_element_value(xml_op, XML_ATTR_TRANSITION_KEY); xml_op 3118 lib/pengine/unpack.c crm_element_value_int(xml_op, XML_LRM_ATTR_RC, &rc); xml_op 3119 lib/pengine/unpack.c crm_element_value_int(xml_op, XML_LRM_ATTR_CALLID, &task_id); xml_op 3120 lib/pengine/unpack.c crm_element_value_int(xml_op, XML_LRM_ATTR_OPSTATUS, &status); xml_op 3121 lib/pengine/unpack.c crm_element_value_int(xml_op, XML_LRM_ATTR_INTERVAL, &interval); xml_op 3152 lib/pengine/unpack.c expired = check_operation_expiry(rsc, node, rc, xml_op, data_set); xml_op 3162 lib/pengine/unpack.c record_failed_op(xml_op, node, rsc, data_set); xml_op 3171 lib/pengine/unpack.c record_failed_op(xml_op, node, rsc, data_set); xml_op 3176 lib/pengine/unpack.c const char *magic = crm_element_value(xml_op, XML_ATTR_TRANSITION_MAGIC); xml_op 3192 lib/pengine/unpack.c crm_xml_add(xml_op, XML_LRM_ATTR_RESTART_DIGEST, "calculated-failure-timeout"); xml_op 3198 lib/pengine/unpack.c status = determine_op_status(rsc, rc, target_rc, node, xml_op, on_fail, data_set); xml_op 3219 lib/pengine/unpack.c const char *migrate_target = crm_element_value(xml_op, XML_LRM_ATTR_MIGRATE_TARGET); xml_op 3243 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, rc, *last_failure, on_fail, data_set); xml_op 3256 lib/pengine/unpack.c unpack_rsc_op_failure(rsc, node, rc, xml_op, last_failure, on_fail, data_set); xml_op 3273 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, target_rc, *last_failure, on_fail, data_set); xml_op 3274 lib/pengine/unpack.c crm_xml_add(xml_op, XML_ATTR_UNAME, node->details->uname); xml_op 3277 lib/pengine/unpack.c record_failed_op(xml_op, node, rsc, data_set); xml_op 3284 lib/pengine/unpack.c unpack_rsc_op_failure(rsc, node, rc, xml_op, last_failure, on_fail, data_set); xml_op 1890 lib/pengine/utils.c node_t * node, xmlNode * xml_op, pe_working_set_t * data_set) xml_op 1927 lib/pengine/utils.c if(xml_op) { xml_op 1928 lib/pengine/utils.c secure_list = crm_element_value(xml_op, XML_LRM_ATTR_OP_SECURE); xml_op 1929 lib/pengine/utils.c restart_list = crm_element_value(xml_op, XML_LRM_ATTR_OP_RESTART); xml_op 1931 lib/pengine/utils.c op_version = crm_element_value(xml_op, XML_ATTR_CRM_VERSION); xml_op 1933 lib/pengine/utils.c ra_version = crm_element_value(xml_op, XML_ATTR_RA_VERSION); xml_op 1965 lib/pengine/utils.c if(xml_op && crm_element_value(xml_op, XML_LRM_ATTR_RESTART_DIGEST) != NULL) { xml_op 1980 lib/pengine/utils.c rsc_action_digest_cmp(resource_t * rsc, xmlNode * xml_op, node_t * node, xml_op 1989 lib/pengine/utils.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); xml_op 1990 lib/pengine/utils.c const char *interval_s = crm_element_value(xml_op, XML_LRM_ATTR_INTERVAL); xml_op 1997 lib/pengine/utils.c op_version = crm_element_value(xml_op, XML_ATTR_CRM_VERSION); xml_op 1998 lib/pengine/utils.c digest_all = crm_element_value(xml_op, XML_LRM_ATTR_OP_DIGEST); xml_op 1999 lib/pengine/utils.c digest_restart = crm_element_value(xml_op, XML_LRM_ATTR_RESTART_DIGEST); xml_op 2003 lib/pengine/utils.c data = rsc_action_digest(rsc, task, key, node, xml_op, data_set); xml_op 2010 lib/pengine/utils.c op_version, crm_element_value(xml_op, XML_ATTR_TRANSITION_MAGIC)); xml_op 2022 lib/pengine/utils.c op_version, crm_element_value(xml_op, XML_ATTR_TRANSITION_MAGIC)); xml_op 200 pengine/allocate.c CancelXmlOp(resource_t * rsc, xmlNode * xml_op, node_t * active_node, xml_op 211 pengine/allocate.c CRM_CHECK(xml_op != NULL, return); xml_op 214 pengine/allocate.c task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); xml_op 215 pengine/allocate.c call_id = crm_element_value(xml_op, XML_LRM_ATTR_CALLID); xml_op 216 pengine/allocate.c interval_s = crm_element_value(xml_op, XML_LRM_ATTR_INTERVAL); xml_op 244 pengine/allocate.c check_action_definition(resource_t * rsc, node_t * active_node, xmlNode * xml_op, xml_op 253 pengine/allocate.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); xml_op 261 pengine/allocate.c interval_s = crm_element_value(xml_op, XML_LRM_ATTR_INTERVAL); xml_op 274 pengine/allocate.c CancelXmlOp(rsc, xml_op, active_node, "orphan", data_set); xml_op 301 pengine/allocate.c digest_data = rsc_action_digest_cmp(rsc, xml_op, active_node, data_set); xml_op 304 pengine/allocate.c digest_secure = crm_element_value(xml_op, XML_LRM_ATTR_SECURE_DIGEST); xml_op 314 pengine/allocate.c crm_element_value(xml_op, XML_ATTR_TRANSITION_MAGIC)); xml_op 332 pengine/allocate.c const char *digest_restart = crm_element_value(xml_op, XML_LRM_ATTR_RESTART_DIGEST); xml_op 1413 tools/crm_mon.c xmlNode *xml_op, const char *task, const char *interval, int rc) xml_op 1416 tools/crm_mon.c const char *call = crm_element_value(xml_op, XML_LRM_ATTR_CALLID); xml_op 1448 tools/crm_mon.c value = crm_element_value(xml_op, attr); xml_op 1457 tools/crm_mon.c value = crm_element_value(xml_op, attr); xml_op 1466 tools/crm_mon.c value = crm_element_value(xml_op, attr); xml_op 1472 tools/crm_mon.c value = crm_element_value(xml_op, attr); xml_op 1537 tools/crm_mon.c xmlNode *xml_op = (xmlNode *) gIter->data; xml_op 1538 tools/crm_mon.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); xml_op 1539 tools/crm_mon.c const char *interval = crm_element_value(xml_op, XML_LRM_ATTR_INTERVAL); xml_op 1540 tools/crm_mon.c const char *op_rc = crm_element_value(xml_op, XML_LRM_ATTR_RC); xml_op 1560 tools/crm_mon.c print_op_history(stream, data_set, node, xml_op, task, interval, rc); xml_op 2732 tools/crm_mon.c print_failed_action(FILE *stream, xmlNode *xml_op) xml_op 2734 tools/crm_mon.c const char *op_key = crm_element_value(xml_op, XML_LRM_ATTR_TASK_KEY); xml_op 2736 tools/crm_mon.c const char *last = crm_element_value(xml_op, XML_RSC_OP_LAST_CHANGE); xml_op 2737 tools/crm_mon.c const char *node = crm_element_value(xml_op, XML_ATTR_UNAME); xml_op 2738 tools/crm_mon.c const char *call = crm_element_value(xml_op, XML_LRM_ATTR_CALLID); xml_op 2739 tools/crm_mon.c const char *exit_reason = crm_element_value(xml_op, XML_LRM_ATTR_EXIT_REASON); xml_op 2740 tools/crm_mon.c int rc = crm_parse_int(crm_element_value(xml_op, XML_LRM_ATTR_RC), "0"); xml_op 2741 tools/crm_mon.c int status = crm_parse_int(crm_element_value(xml_op, XML_LRM_ATTR_OPSTATUS), "0"); xml_op 2746 tools/crm_mon.c op_key = ID(xml_op); xml_op 2800 tools/crm_mon.c crm_element_value(xml_op, XML_RSC_OP_T_QUEUE), xml_op 2801 tools/crm_mon.c crm_element_value(xml_op, XML_RSC_OP_T_EXEC)); xml_op 2808 tools/crm_mon.c crm_element_value(xml_op, XML_RSC_OP_T_QUEUE), xml_op 2809 tools/crm_mon.c crm_element_value(xml_op, XML_RSC_OP_T_EXEC)); xml_op 2816 tools/crm_mon.c crm_element_value(xml_op, XML_RSC_OP_T_QUEUE), xml_op 2817 tools/crm_mon.c crm_element_value(xml_op, XML_RSC_OP_T_EXEC), xml_op 2818 tools/crm_mon.c crm_parse_int(crm_element_value(xml_op, XML_LRM_ATTR_INTERVAL), "0"), xml_op 2819 tools/crm_mon.c crm_element_value(xml_op, XML_LRM_ATTR_TASK)); xml_op 2858 tools/crm_mon.c xmlNode *xml_op = NULL; xml_op 2881 tools/crm_mon.c for (xml_op = __xml_first_child(data_set->failed); xml_op != NULL; xml_op 2882 tools/crm_mon.c xml_op = __xml_next(xml_op)) { xml_op 2883 tools/crm_mon.c print_failed_action(stream, xml_op); xml_op 1101 tools/crm_resource.c for (xmlNode *xml_op = __xml_first_child(data_set.failed); xml_op != NULL; xml_op 1102 tools/crm_resource.c xml_op = __xml_next(xml_op)) { xml_op 1104 tools/crm_resource.c const char *node = crm_element_value(xml_op, XML_ATTR_UNAME); xml_op 1105 tools/crm_resource.c const char *task = crm_element_value(xml_op, XML_LRM_ATTR_TASK); xml_op 1106 tools/crm_resource.c const char *task_interval = crm_element_value(xml_op, XML_LRM_ATTR_INTERVAL); xml_op 1107 tools/crm_resource.c const char *resource_name = crm_element_value(xml_op, XML_LRM_ATTR_RSCID); xml_op 175 tools/crm_resource_print.c xmlNode *xml_op = (xmlNode *) lpc->data; xml_op 177 tools/crm_resource_print.c const char *op_rsc = crm_element_value(xml_op, "resource"); xml_op 178 tools/crm_resource_print.c const char *last = crm_element_value(xml_op, XML_RSC_OP_LAST_CHANGE); xml_op 179 tools/crm_resource_print.c const char *status_s = crm_element_value(xml_op, XML_LRM_ATTR_OPSTATUS); xml_op 180 tools/crm_resource_print.c const char *op_key = crm_element_value(xml_op, XML_LRM_ATTR_TASK_KEY); xml_op 191 tools/crm_resource_print.c op_key ? op_key : ID(xml_op), xml_op 192 tools/crm_resource_print.c crm_element_value(xml_op, XML_ATTR_UNAME), xml_op 193 tools/crm_resource_print.c crm_element_value(xml_op, XML_LRM_ATTR_CALLID), xml_op 194 tools/crm_resource_print.c crm_element_value(xml_op, XML_LRM_ATTR_RC)); xml_op 199 tools/crm_resource_print.c crm_strip_trailing_newline(ctime(&run_at)), crm_element_value(xml_op, XML_RSC_OP_T_EXEC));