diff --git a/include/crm/common/Makefile.am b/include/crm/common/Makefile.am index ce0b881301..58dea9f96e 100644 --- a/include/crm/common/Makefile.am +++ b/include/crm/common/Makefile.am @@ -1,47 +1,48 @@ # # Copyright 2004-2024 the Pacemaker project contributors # # The version control history for this file may have further details. # # This source code is licensed under the GNU General Public License version 2 # or later (GPLv2+) WITHOUT ANY WARRANTY. # MAINTAINERCLEANFILES = Makefile.in headerdir=$(pkgincludedir)/crm/common header_HEADERS = acl.h \ actions.h \ agents.h \ agents_compat.h \ cib.h \ ipc.h \ ipc_controld.h \ ipc_pacemakerd.h \ ipc_schedulerd.h \ iso8601.h \ logging.h \ logging_compat.h \ mainloop.h \ mainloop_compat.h \ nodes.h \ nodes_internal.h \ nvpair.h \ options.h \ output.h \ resources.h \ results.h \ results_compat.h \ roles.h \ rules.h \ scheduler.h \ scheduler_types.h \ tags.h \ tickets.h \ util.h \ util_compat.h \ xml.h \ - xml_compat.h + xml_compat.h \ + xml_names.h noinst_HEADERS = $(wildcard *internal.h) diff --git a/include/crm/common/xml.h b/include/crm/common/xml.h index 63b61ec5d8..616577754d 100644 --- a/include/crm/common/xml.h +++ b/include/crm/common/xml.h @@ -1,302 +1,302 @@ /* * Copyright 2004-2024 the Pacemaker project contributors * * The version control history for this file may have further details. * * This source code is licensed under the GNU Lesser General Public License * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY. */ #ifndef PCMK__CRM_COMMON_XML__H # define PCMK__CRM_COMMON_XML__H # include # include # include # include # include # include # include # include # include # include # include #ifdef __cplusplus extern "C" { #endif /** * \file * \brief Wrappers for and extensions to libxml2 * \ingroup core */ /* Define compression parameters for IPC messages * * Compression costs a LOT, so we don't want to do it unless we're hitting * message limits. Currently, we use 128KB as the threshold, because higher * values don't play well with the heartbeat stack. With an earlier limit of * 10KB, compressing 184 of 1071 messages accounted for 23% of the total CPU * used by the cib. */ # define CRM_BZ2_BLOCKS 4 # define CRM_BZ2_WORK 20 # define CRM_BZ2_THRESHOLD 128 * 1024 typedef const xmlChar *pcmkXmlStr; gboolean add_message_xml(xmlNode * msg, const char *field, xmlNode * xml); xmlNode *get_message_xml(const xmlNode *msg, const char *field); /* * \brief xmlCopyPropList ACLs-sensitive replacement expading i++ notation * * The gist is the same as with \c{xmlCopyPropList(target, src->properties)}. * The function exits prematurely when any attribute cannot be copied for * ACLs violation. Even without bailing out, the result can possibly be * incosistent with expectations in that case, hence the caller shall, * aposteriori, verify that no document-level-tracked denial was indicated * with \c{xml_acl_denied(target)} and drop whole such intermediate object. * * \param[in,out] target Element to receive attributes from #src element * \param[in] src Element carrying attributes to copy over to #target * * \note Original commit 1c632c506 sadly haven't stated which otherwise * assumed behaviours of xmlCopyPropList were missing beyond otherwise * custom extensions like said ACLs and "atomic increment" (that landed * later on, anyway). */ void copy_in_properties(xmlNode *target, const xmlNode *src); void expand_plus_plus(xmlNode * target, const char *name, const char *value); void fix_plus_plus_recursive(xmlNode * target); /* * Create a node named "name" as a child of "parent" * If parent is NULL, creates an unconnected node. * * Returns the created node * */ xmlNode *create_xml_node(xmlNode * parent, const char *name); /* * Create a node named "name" as a child of "parent", giving it the provided * text content. * If parent is NULL, creates an unconnected node. * * Returns the created node * */ xmlNode *pcmk_create_xml_text_node(xmlNode * parent, const char *name, const char *content); /* * Create a new HTML node named "element_name" as a child of "parent", giving it the * provided text content. Optionally, apply a CSS #id and #class. * * Returns the created node. */ xmlNode *pcmk_create_html_node(xmlNode * parent, const char *element_name, const char *id, const char *class_name, const char *text); /* * */ void purge_diff_markers(xmlNode * a_node); /* * Returns a deep copy of src_node * */ xmlNode *copy_xml(xmlNode * src_node); /* * Add a copy of xml_node to new_parent */ xmlNode *add_node_copy(xmlNode * new_parent, xmlNode * xml_node); /* * XML I/O Functions * * Whitespace between tags is discarded. */ xmlNode *filename2xml(const char *filename); xmlNode *stdin2xml(void); xmlNode *string2xml(const char *input); int write_xml_fd(const xmlNode *xml, const char *filename, int fd, gboolean compress); int write_xml_file(const xmlNode *xml, const char *filename, gboolean compress); char *dump_xml_formatted(const xmlNode *xml); char *dump_xml_formatted_with_text(const xmlNode *xml); char *dump_xml_unformatted(const xmlNode *xml); /* * Diff related Functions */ xmlNode *diff_xml_object(xmlNode * left, xmlNode * right, gboolean suppress); xmlNode *subtract_xml_object(xmlNode * parent, xmlNode * left, xmlNode * right, gboolean full, gboolean * changed, const char *marker); gboolean can_prune_leaf(xmlNode * xml_node); /* * Searching & Modifying */ xmlNode *find_xml_node(const xmlNode *root, const char *search_path, gboolean must_find); void xml_remove_prop(xmlNode * obj, const char *name); gboolean replace_xml_child(xmlNode * parent, xmlNode * child, xmlNode * update, gboolean delete_only); gboolean update_xml_child(xmlNode * child, xmlNode * to_update); int find_xml_children(xmlNode ** children, xmlNode * root, const char *tag, const char *field, const char *value, gboolean search_matches); xmlNode *get_xpath_object(const char *xpath, xmlNode * xml_obj, int error_level); xmlNode *get_xpath_object_relative(const char *xpath, xmlNode * xml_obj, int error_level); static inline const char * crm_map_element_name(const xmlNode *xml) { /* Can't use PCMK__XE_PROMOTED_LEGACY or PCMK_XE_CLONE because this header - * is included in msg_xml.h + * is included in xml_names.h */ if (xml == NULL) { return NULL; } else if (strcmp((const char *) xml->name, "master") == 0) { return "clone"; } else { return (const char *) xml->name; } } char *calculate_on_disk_digest(xmlNode * local_cib); char *calculate_operation_digest(xmlNode * local_cib, const char *version); char *calculate_xml_versioned_digest(xmlNode * input, gboolean sort, gboolean do_filter, const char *version); /* schema-related functions (from schemas.c) */ gboolean validate_xml(xmlNode * xml_blob, const char *validation, gboolean to_logs); gboolean validate_xml_verbose(const xmlNode *xml_blob); /*! * \brief Update CIB XML to most recent schema version * * "Update" means either actively employ XSLT-based transformation(s) * (if intermediate product to transform valid per its declared schema version, * transformation available, proceeded successfully with a result valid per * expectated newer schema version), or just try to bump the marked validating * schema until all gradually rising schema versions attested or the first * such attempt subsequently fails to validate. Which of the two styles will * be used depends on \p transform parameter (positive/negative, respectively). * * \param[in,out] xml_blob XML tree representing CIB, may be swapped with * an "updated" one * \param[out] best The highest configuration version (per its index * in the global schemas table) it was possible to * reach during the update steps while ensuring * the validity of the result; if no validation * success was observed against possibly multiple * schemas, the value is less or equal the result * of \c get_schema_version applied on the input * \p xml_blob value (unless that function maps it * to -1, then 0 would be used instead) * \param[in] max When \p transform is positive, this allows to * set upper boundary schema (per its index in the * global schemas table) beyond which it's forbidden * to update by the means of XSLT transformation * \param[in] transform Whether to employ XSLT-based transformation so * as to allow overcoming possible incompatibilities * between major schema versions (see above) * \param[in] to_logs If true, output notable progress info to * internal log streams; if false, to stderr * * \return \c pcmk_ok if no non-recoverable error encountered (up to * caller to evaluate if the update satisfies the requirements * per returned \p best value), negative value carrying the reason * otherwise */ int update_validation(xmlNode **xml_blob, int *best, int max, gboolean transform, gboolean to_logs); int get_schema_version(const char *name); const char *get_schema_name(int version); const char *xml_latest_schema(void); gboolean cli_config_update(xmlNode ** xml, int *best_version, gboolean to_logs); /*! * \brief Initialize the CRM XML subsystem * * This method sets global XML settings and loads pacemaker schemas into the cache. */ void crm_xml_init(void); void crm_xml_cleanup(void); void pcmk_free_xml_subtree(xmlNode *xml); void free_xml(xmlNode * child); xmlNode *first_named_child(const xmlNode *parent, const char *name); xmlNode *crm_next_same_xml(const xmlNode *sibling); xmlNode *sorted_xml(xmlNode * input, xmlNode * parent, gboolean recursive); xmlXPathObjectPtr xpath_search(const xmlNode *xml_top, const char *path); void crm_foreach_xpath_result(xmlNode *xml, const char *xpath, void (*helper)(xmlNode*, void*), void *user_data); xmlNode *expand_idref(xmlNode * input, xmlNode * top); void freeXpathObject(xmlXPathObjectPtr xpathObj); xmlNode *getXpathResult(xmlXPathObjectPtr xpathObj, int index); void dedupXpathResults(xmlXPathObjectPtr xpathObj); static inline int numXpathResults(xmlXPathObjectPtr xpathObj) { if(xpathObj == NULL || xpathObj->nodesetval == NULL) { return 0; } return xpathObj->nodesetval->nodeNr; } bool xml_tracking_changes(xmlNode * xml); bool xml_document_dirty(xmlNode *xml); void xml_track_changes(xmlNode * xml, const char *user, xmlNode *acl_source, bool enforce_acls); void xml_calculate_changes(xmlNode *old_xml, xmlNode *new_xml); void xml_calculate_significant_changes(xmlNode *old_xml, xmlNode *new_xml); void xml_accept_changes(xmlNode * xml); bool xml_patch_versions(const xmlNode *patchset, int add[3], int del[3]); xmlNode *xml_create_patchset( int format, xmlNode *source, xmlNode *target, bool *config, bool manage_version); int xml_apply_patchset(xmlNode *xml, xmlNode *patchset, bool check_version); void patchset_process_digest(xmlNode *patch, xmlNode *source, xmlNode *target, bool with_digest); void save_xml_to_file(const xmlNode *xml, const char *desc, const char *filename); char * crm_xml_escape(const char *text); void crm_xml_sanitize_id(char *id); void crm_xml_set_id(xmlNode *xml, const char *format, ...) G_GNUC_PRINTF(2, 3); #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) #include #endif #ifdef __cplusplus } #endif #endif diff --git a/include/crm/msg_xml.h b/include/crm/common/xml_names.h similarity index 98% copy from include/crm/msg_xml.h copy to include/crm/common/xml_names.h index 83a94a0b77..e4f457076e 100644 --- a/include/crm/msg_xml.h +++ b/include/crm/common/xml_names.h @@ -1,450 +1,444 @@ /* * Copyright 2004-2024 the Pacemaker project contributors * * The version control history for this file may have further details. * * This source code is licensed under the GNU Lesser General Public License * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY. */ -#ifndef PCMK__CRM_MSG_XML__H -# define PCMK__CRM_MSG_XML__H - -# include - -#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) -#include -#endif +#ifndef PCMK__CRM_COMMON_XML_NAMES__H +# define PCMK__CRM_COMMON_XML_NAMES__H #ifdef __cplusplus extern "C" { #endif -/* This file defines constants for various XML syntax (mainly element and - * attribute names). +/* This file defines constants for XML element and attribute names. * * For consistency, new constants should start with "PCMK_", followed by: * * "XE" for XML element names * * "XA" for XML attribute names * * "OPT" for cluster option (property) names * * "META" for meta-attribute names * * "VALUE" for enumerated values for various options * * "NODE_ATTR" for node attribute names * * Old names that don't follow this policy should eventually be deprecated and * replaced with names that do. * * Symbols should be public if the user may specify them somewhere (especially * the CIB) or if they're part of a well-defined structure that a user may need * to parse. They should be internal if they're used only internally to * Pacemaker (such as daemon IPC/CPG message XML). * * Constants belong in the following locations: - * * "XE" and "XA": msg_xml.h and xml_names_internal.h + * * "XE" and "XA": xml_names.h and xml_names_internal.h * * "OPT", "META", and "VALUE": options.h and options_internal.h * * "NODE_ATTR": nodes.h and nodes_internal.h * * For meta-attributes that can be specified as either XML attributes or nvpair * names, use "META" unless using both "XA" and "META" constants adds clarity. * An example is operation attributes, which can be specified either as * attributes of the PCMK_XE_OP element or as nvpairs in a meta-attribute set * beneath the PCMK_XE_OP element. */ /* * XML elements */ #define PCMK_XE_ACL_GROUP "acl_group" #define PCMK_XE_ACL_PERMISSION "acl_permission" #define PCMK_XE_ACL_ROLE "acl_role" #define PCMK_XE_ACL_TARGET "acl_target" #define PCMK_XE_ACLS "acls" #define PCMK_XE_ACTION "action" #define PCMK_XE_ACTIONS "actions" #define PCMK_XE_AGENT "agent" #define PCMK_XE_AGENT_STATUS "agent-status" #define PCMK_XE_AGENTS "agents" #define PCMK_XE_ALERT "alert" #define PCMK_XE_ALERTS "alerts" #define PCMK_XE_ALLOCATIONS "allocations" #define PCMK_XE_ALLOCATIONS_UTILIZATIONS "allocations_utilizations" #define PCMK_XE_ATTRIBUTE "attribute" #define PCMK_XE_BAN "ban" #define PCMK_XE_BANS "bans" #define PCMK_XE_BUNDLE "bundle" #define PCMK_XE_CAPACITY "capacity" #define PCMK_XE_CHANGE "change" #define PCMK_XE_CHANGE_ATTR "change-attr" #define PCMK_XE_CHANGE_LIST "change-list" #define PCMK_XE_CHANGE_RESULT "change-result" #define PCMK_XE_CHECK "check" #define PCMK_XE_CIB "cib" #define PCMK_XE_CLONE "clone" #define PCMK_XE_CLUSTER_ACTION "cluster_action" #define PCMK_XE_CLUSTER_INFO "cluster-info" #define PCMK_XE_CLUSTER_OPTIONS "cluster_options" #define PCMK_XE_CLUSTER_PROPERTY_SET "cluster_property_set" #define PCMK_XE_CLUSTER_STATUS "cluster_status" #define PCMK_XE_COMMAND "command" #define PCMK_XE_CONFIGURATION "configuration" #define PCMK_XE_CONSTRAINTS "constraints" #define PCMK_XE_CONTENT "content" #define PCMK_XE_CRM_CONFIG "crm_config" #define PCMK_XE_CRM_MON "crm_mon" #define PCMK_XE_CRM_MON_DISCONNECTED "crm-mon-disconnected" #define PCMK_XE_CURRENT_DC "current_dc" #define PCMK_XE_DATE_EXPRESSION "date_expression" #define PCMK_XE_DATE_SPEC "date_spec" #define PCMK_XE_DC "dc" #define PCMK_XE_DIFF "diff" #define PCMK_XE_DIGEST "digest" #define PCMK_XE_DIGESTS "digests" #define PCMK_XE_DOCKER "docker" #define PCMK_XE_DURATION "duration" #define PCMK_XE_ERROR "error" #define PCMK_XE_ERRORS "errors" #define PCMK_XE_EXPRESSION "expression" #define PCMK_XE_FAILURE "failure" #define PCMK_XE_FAILURES "failures" #define PCMK_XE_FEATURE "feature" #define PCMK_XE_FEATURES "features" #define PCMK_XE_FENCE_EVENT "fence_event" #define PCMK_XE_FENCE_HISTORY "fence_history" #define PCMK_XE_FENCING_ACTION "fencing_action" #define PCMK_XE_FENCING_LEVEL "fencing-level" #define PCMK_XE_FENCING_TOPOLOGY "fencing-topology" #define PCMK_XE_GROUP "group" #define PCMK_XE_INJECT_ATTR "inject_attr" #define PCMK_XE_INJECT_SPEC "inject_spec" #define PCMK_XE_INSTANCE_ATTRIBUTES "instance_attributes" #define PCMK_XE_INSTRUCTION "instruction" #define PCMK_XE_ITEM "item" #define PCMK_XE_LAST_CHANGE "last_change" #define PCMK_XE_LAST_FENCED "last-fenced" #define PCMK_XE_LAST_UPDATE "last_update" #define PCMK_XE_LIST "list" #define PCMK_XE_LONGDESC "longdesc" #define PCMK_XE_META_ATTRIBUTES "meta_attributes" #define PCMK_XE_METADATA "metadata" #define PCMK_XE_MODIFICATIONS "modifications" #define PCMK_XE_MODIFY_NODE "modify_node" #define PCMK_XE_MODIFY_TICKET "modify_ticket" #define PCMK_XE_NETWORK "network" #define PCMK_XE_NODE "node" #define PCMK_XE_NODE_ACTION "node_action" #define PCMK_XE_NODE_ATTRIBUTES "node_attributes" #define PCMK_XE_NODE_HISTORY "node_history" #define PCMK_XE_NODE_INFO "node-info" #define PCMK_XE_NODE_WEIGHT "node_weight" #define PCMK_XE_NODES "nodes" #define PCMK_XE_NODES_CONFIGURED "nodes_configured" #define PCMK_XE_NVPAIR "nvpair" #define PCMK_XE_OBJ_REF "obj_ref" #define PCMK_XE_OP "op" #define PCMK_XE_OP_DEFAULTS "op_defaults" #define PCMK_XE_OP_EXPRESSION "op_expression" #define PCMK_XE_OPERATION "operation" #define PCMK_XE_OPERATION_HISTORY "operation_history" #define PCMK_XE_OPERATIONS "operations" #define PCMK_XE_OPTION "option" #define PCMK_XE_OUTPUT "output" #define PCMK_XE_OVERRIDE "override" #define PCMK_XE_OVERRIDES "overrides" #define PCMK_XE_PACEMAKER_RESULT "pacemaker-result" #define PCMK_XE_PACEMAKERD "pacemakerd" #define PCMK_XE_PARAMETER "parameter" #define PCMK_XE_PARAMETERS "parameters" #define PCMK_XE_PODMAN "podman" #define PCMK_XE_PORT_MAPPING "port-mapping" #define PCMK_XE_POSITION "position" #define PCMK_XE_PRIMITIVE "primitive" #define PCMK_XE_PROMOTION_SCORE "promotion_score" #define PCMK_XE_PROVIDER "provider" #define PCMK_XE_PROVIDERS "providers" #define PCMK_XE_PSEUDO_ACTION "pseudo_action" #define PCMK_XE_REASON "reason" #define PCMK_XE_RECIPIENT "recipient" #define PCMK_XE_REPLICA "replica" #define PCMK_XE_RESOURCE "resource" #define PCMK_XE_RESOURCE_AGENT "resource-agent" #define PCMK_XE_RESOURCE_AGENT_ACTION "resource-agent-action" #define PCMK_XE_RESOURCE_CONFIG "resource_config" #define PCMK_XE_RESOURCE_HISTORY "resource_history" #define PCMK_XE_RESOURCE_REF "resource_ref" #define PCMK_XE_RESOURCE_SET "resource_set" #define PCMK_XE_RESOURCES "resources" #define PCMK_XE_RESOURCES_CONFIGURED "resources_configured" #define PCMK_XE_RESULT_CODE "result-code" #define PCMK_XE_REVISED_CLUSTER_STATUS "revised_cluster_status" #define PCMK_XE_ROLE "role" #define PCMK_XE_RSC_ACTION "rsc_action" #define PCMK_XE_RSC_COLOCATION "rsc_colocation" #define PCMK_XE_RSC_DEFAULTS "rsc_defaults" #define PCMK_XE_RSC_EXPRESSION "rsc_expression" #define PCMK_XE_RSC_LOCATION "rsc_location" #define PCMK_XE_RSC_ORDER "rsc_order" #define PCMK_XE_RSC_TICKET "rsc_ticket" #define PCMK_XE_RULE "rule" #define PCMK_XE_RULE_CHECK "rule-check" #define PCMK_XE_SELECT "select" #define PCMK_XE_SELECT_ATTRIBUTES "select_attributes" #define PCMK_XE_SELECT_FENCING "select_fencing" #define PCMK_XE_SELECT_NODES "select_nodes" #define PCMK_XE_SELECT_RESOURCES "select_resources" #define PCMK_XE_SHADOW "shadow" #define PCMK_XE_SHORTDESC "shortdesc" #define PCMK_XE_SOURCE "source" #define PCMK_XE_STACK "stack" #define PCMK_XE_STATUS "status" #define PCMK_XE_STORAGE "storage" #define PCMK_XE_STORAGE_MAPPING "storage-mapping" #define PCMK_XE_SUMMARY "summary" #define PCMK_XE_TAG "tag" #define PCMK_XE_TAGS "tags" #define PCMK_XE_TARGET "target" #define PCMK_XE_TEMPLATE "template" #define PCMK_XE_TICKET "ticket" #define PCMK_XE_TICKETS "tickets" #define PCMK_XE_TIMING "timing" #define PCMK_XE_TIMINGS "timings" #define PCMK_XE_TRANSITION "transition" #define PCMK_XE_UTILIZATION "utilization" #define PCMK_XE_UTILIZATIONS "utilizations" #define PCMK_XE_VALIDATE "validate" #define PCMK_XE_VERSION "version" #define PCMK_XE_XML "xml" #define PCMK_XE_XML_PATCHSET "xml-patchset" /* * XML attributes */ #define PCMK_XA_ACTION "action" #define PCMK_XA_ACTIVE "active" #define PCMK_XA_ADD_HOST "add-host" #define PCMK_XA_ADMIN_EPOCH "admin_epoch" #define PCMK_XA_AGENT "agent" #define PCMK_XA_API_VERSION "api-version" #define PCMK_XA_ATTRIBUTE "attribute" #define PCMK_XA_AUTHOR "author" #define PCMK_XA_BLOCKED "blocked" #define PCMK_XA_BOOLEAN_OP "boolean-op" #define PCMK_XA_BUILD "build" #define PCMK_XA_CACHED "cached" #define PCMK_XA_CALL "call" #define PCMK_XA_CIB_LAST_WRITTEN "cib-last-written" #define PCMK_XA_CIB_NODE "cib_node" #define PCMK_XA_CLASS "class" #define PCMK_XA_CLIENT "client" #define PCMK_XA_CODE "code" #define PCMK_XA_COMMENT "comment" #define PCMK_XA_COMPLETED "completed" #define PCMK_XA_CONTROL_PORT "control-port" #define PCMK_XA_COUNT "count" #define PCMK_XA_CRM_DEBUG_ORIGIN "crm-debug-origin" #define PCMK_XA_CRM_FEATURE_SET "crm_feature_set" #define PCMK_XA_CRM_TIMESTAMP "crm-timestamp" #define PCMK_XA_CRMD "crmd" #define PCMK_XA_DAYS "days" #define PCMK_XA_DC_UUID "dc-uuid" #define PCMK_XA_DEFAULT "default" #define PCMK_XA_DELEGATE "delegate" #define PCMK_XA_DESCRIPTION "description" #define PCMK_XA_DEST "dest" #define PCMK_XA_DEVICES "devices" #define PCMK_XA_DISABLED "disabled" #define PCMK_XA_DURATION "duration" #define PCMK_XA_END "end" #define PCMK_XA_EPOCH "epoch" #define PCMK_XA_EXEC "exec" #define PCMK_XA_EXEC_TIME "exec-time" #define PCMK_XA_EXECUTION_CODE "execution_code" #define PCMK_XA_EXECUTION_DATE "execution-date" #define PCMK_XA_EXECUTION_MESSAGE "execution_message" #define PCMK_XA_EXIT_REASON "exit-reason" #define PCMK_XA_EXITCODE "exitcode" #define PCMK_XA_EXITREASON "exitreason" #define PCMK_XA_EXITSTATUS "exitstatus" #define PCMK_XA_EXPECTED "expected" #define PCMK_XA_EXPECTED_UP "expected_up" #define PCMK_XA_EXTENDED_STATUS "extended-status" #define PCMK_XA_FAIL_COUNT "fail-count" #define PCMK_XA_FAILED "failed" #define PCMK_XA_FAILURE_IGNORED "failure_ignored" #define PCMK_XA_FEATURE_SET "feature_set" #define PCMK_XA_FEATURES "features" #define PCMK_XA_FILE "file" #define PCMK_XA_FIRST "first" #define PCMK_XA_FIRST_ACTION "first-action" #define PCMK_XA_FOR "for" #define PCMK_XA_FORMAT "format" #define PCMK_XA_FUNCTION "function" #define PCMK_XA_HASH "hash" #define PCMK_XA_HAVE_QUORUM "have-quorum" #define PCMK_XA_HEALTH "health" #define PCMK_XA_HOST "host" #define PCMK_XA_HOST_INTERFACE "host-interface" #define PCMK_XA_HOST_NETMASK "host-netmask" #define PCMK_XA_HOURS "hours" #define PCMK_XA_ID "id" #define PCMK_XA_ID_AS_RESOURCE "id_as_resource" #define PCMK_XA_ID_REF "id-ref" #define PCMK_XA_IMAGE "image" #define PCMK_XA_INDEX "index" #define PCMK_XA_INFLUENCE "influence" #define PCMK_XA_INSTANCE "instance" #define PCMK_XA_INTERNAL_PORT "internal-port" #define PCMK_XA_INTERVAL "interval" #define PCMK_XA_IP_RANGE_START "ip-range-start" #define PCMK_XA_IS_DC "is_dc" #define PCMK_XA_KIND "kind" #define PCMK_XA_LANG "lang" #define PCMK_XA_LAST_FAILURE "last-failure" #define PCMK_XA_LAST_GRANTED "last-granted" #define PCMK_XA_LAST_RC_CHANGE "last-rc-change" #define PCMK_XA_LAST_UPDATED "last_updated" #define PCMK_XA_LOCKED_TO "locked_to" #define PCMK_XA_LOCKED_TO_HYPHEN "locked-to" #define PCMK_XA_LOSS_POLICY "loss-policy" #define PCMK_XA_MAINTENANCE "maintenance" #define PCMK_XA_MAINTENANCE_MODE "maintenance-mode" #define PCMK_XA_MANAGED "managed" #define PCMK_XA_MESSAGE "message" #define PCMK_XA_MINUTES "minutes" #define PCMK_XA_MIXED_VERSION "mixed_version" #define PCMK_XA_MONTHDAYS "monthdays" #define PCMK_XA_MONTHS "months" #define PCMK_XA_MULTI_STATE "multi_state" #define PCMK_XA_NAME "name" #define PCMK_XA_NETWORK "network" #define PCMK_XA_NEXT_ROLE "next-role" #define PCMK_XA_NO_QUORUM_PANIC "no-quorum-panic" #define PCMK_XA_NO_QUORUM_POLICY "no-quorum-policy" #define PCMK_XA_NODE "node" #define PCMK_XA_NODE_ATTRIBUTE "node-attribute" #define PCMK_XA_NODE_NAME "node_name" #define PCMK_XA_NODE_PATH "node_path" #define PCMK_XA_NODEID "nodeid" #define PCMK_XA_NODES_RUNNING_ON "nodes_running_on" #define PCMK_XA_NUM_UPDATES "num_updates" #define PCMK_XA_NUMBER "number" #define PCMK_XA_NUMBER_RESOURCES "number_resources" #define PCMK_XA_OBJECT_TYPE "object-type" #define PCMK_XA_ONLINE "online" #define PCMK_XA_OP "op" #define PCMK_XA_OP_KEY "op_key" #define PCMK_XA_OPERATION "operation" #define PCMK_XA_OPTIONS "options" #define PCMK_XA_ORIGIN "origin" #define PCMK_XA_ORPHAN "orphan" #define PCMK_XA_ORPHANED "orphaned" #define PCMK_XA_PACEMAKERD_STATE "pacemakerd-state" #define PCMK_XA_PATH "path" #define PCMK_XA_PENDING "pending" #define PCMK_XA_PORT "port" #define PCMK_XA_PRESENT "present" #define PCMK_XA_PRIORITY_FENCING_DELAY_MS "priority-fencing-delay-ms" #define PCMK_XA_PROGRAM "program" #define PCMK_XA_PROMOTABLE "promotable" #define PCMK_XA_PROMOTED_MAX "promoted-max" #define PCMK_XA_PROMOTED_ONLY "promoted-only" #define PCMK_XA_PROVIDER "provider" #define PCMK_XA_QUEUE_TIME "queue-time" #define PCMK_XA_QUEUED "queued" #define PCMK_XA_QUORUM "quorum" #define PCMK_XA_RANGE "range" #define PCMK_XA_RC "rc" #define PCMK_XA_RC_TEXT "rc_text" #define PCMK_XA_REASON "reason" #define PCMK_XA_REFERENCE "reference" #define PCMK_XA_RELOADABLE "reloadable" #define PCMK_XA_REMAIN_STOPPED "remain_stopped" #define PCMK_XA_REMOTE_CLEAR_PORT "remote-clear-port" #define PCMK_XA_REMOTE_NODE "remote_node" #define PCMK_XA_REMOTE_TLS_PORT "remote-tls-port" #define PCMK_XA_REPLICAS "replicas" #define PCMK_XA_REPLICAS_PER_HOST "replicas-per-host" #define PCMK_XA_REQUEST "request" #define PCMK_XA_REQUIRE_ALL "require-all" #define PCMK_XA_RESOURCE "resource" #define PCMK_XA_RESOURCE_AGENT "resource_agent" #define PCMK_XA_RESOURCE_DISCOVERY "resource-discovery" #define PCMK_XA_RESOURCES_RUNNING "resources_running" #define PCMK_XA_RESULT "result" #define PCMK_XA_ROLE "role" #define PCMK_XA_RSC "rsc" #define PCMK_XA_RSC_PATTERN "rsc-pattern" #define PCMK_XA_RSC_ROLE "rsc-role" #define PCMK_XA_RULE_ID "rule-id" #define PCMK_XA_RUN_COMMAND "run-command" #define PCMK_XA_RUNNING "running" #define PCMK_XA_RUNNING_ON "running_on" #define PCMK_XA_SCOPE "scope" #define PCMK_XA_SCORE "score" #define PCMK_XA_SCORE_ATTRIBUTE "score-attribute" #define PCMK_XA_SEQUENTIAL "sequential" #define PCMK_XA_SECONDS "seconds" #define PCMK_XA_SHUTDOWN "shutdown" #define PCMK_XA_SOURCE "source" #define PCMK_XA_SOURCE_DIR "source-dir" #define PCMK_XA_SOURCE_DIR_ROOT "source-dir-root" #define PCMK_XA_SPEC "spec" #define PCMK_XA_STANDARD "standard" #define PCMK_XA_STANDBY "standby" #define PCMK_XA_STANDBY_ONFAIL "standby_onfail" #define PCMK_XA_START "start" #define PCMK_XA_STATE "state" #define PCMK_XA_STATUS "status" #define PCMK_XA_STONITH_ENABLED "stonith-enabled" #define PCMK_XA_STONITH_TIMEOUT_MS "stonith-timeout-ms" #define PCMK_XA_STOP_ALL_RESOURCES "stop-all-resources" #define PCMK_XA_SYMMETRIC_CLUSTER "symmetric-cluster" #define PCMK_XA_SYMMETRICAL "symmetrical" #define PCMK_XA_SYS_FROM "sys_from" #define PCMK_XA_TARGET "target" #define PCMK_XA_TARGET_ATTRIBUTE "target-attribute" #define PCMK_XA_TARGET_DIR "target-dir" #define PCMK_XA_TARGET_PATTERN "target-pattern" #define PCMK_XA_TARGET_ROLE "target_role" #define PCMK_XA_TARGET_VALUE "target-value" #define PCMK_XA_TASK "task" #define PCMK_XA_TEMPLATE "template" #define PCMK_XA_TICKET "ticket" #define PCMK_XA_TIME "time" #define PCMK_XA_THEN "then" #define PCMK_XA_THEN_ACTION "then-action" #define PCMK_XA_TYPE "type" #define PCMK_XA_UNAME "uname" #define PCMK_XA_UNCLEAN "unclean" #define PCMK_XA_UNHEALTHY "unhealthy" #define PCMK_XA_UNIQUE "unique" #define PCMK_XA_UNMANAGED "unmanaged" #define PCMK_XA_UPDATE_CLIENT "update-client" #define PCMK_XA_UPDATE_ORIGIN "update-origin" #define PCMK_XA_UPDATE_USER "update-user" #define PCMK_XA_USER "user" #define PCMK_XA_VALID "valid" #define PCMK_XA_VALIDATE_WITH "validate-with" #define PCMK_XA_VALUE "value" #define PCMK_XA_VALUE_SOURCE "value-source" #define PCMK_XA_VERSION "version" #define PCMK_XA_WATCHDOG "watchdog" #define PCMK_XA_WEEKDAYS "weekdays" #define PCMK_XA_WEEKS "weeks" #define PCMK_XA_WEEKYEARS "weekyears" #define PCMK_XA_WEIGHT "weight" #define PCMK_XA_WHEN "when" #define PCMK_XA_WITH_QUORUM "with_quorum" #define PCMK_XA_WITH_RSC "with-rsc" #define PCMK_XA_WITH_RSC_ROLE "with-rsc-role" #define PCMK_XA_XPATH "xpath" #define PCMK_XA_YEARDAYS "yeardays" #define PCMK_XA_YEARS "years" + #ifdef __cplusplus } #endif -#endif +#endif // PCMK__CRM_COMMON_XML_NAMES__H diff --git a/include/crm/compatibility.h b/include/crm/compatibility.h index 2a57920f27..b1a30364ed 100644 --- a/include/crm/compatibility.h +++ b/include/crm/compatibility.h @@ -1,243 +1,244 @@ /* * Copyright 2004-2024 the Pacemaker project contributors * * The version control history for this file may have further details. * * This source code is licensed under the GNU General Public License version 2 * or later (GPLv2+) WITHOUT ANY WARRANTY. */ #ifndef PCMK__CRM_COMPATIBILITY__H # define PCMK__CRM_COMPATIBILITY__H -#include +#include // PCMK_XE_PROMOTABLE_LEGACY +#include #include // enum pe_obj_types #ifdef __cplusplus extern "C" { #endif /* This file allows external code that uses Pacemaker libraries to transition * more easily from old APIs to current ones. Any code that compiled with an * earlier API but not with the current API can include this file and have a * good chance of compiling again. * * Everything here is deprecated and will be removed at the next major Pacemaker * release (i.e. 3.0), so it should only be used during a transitionary period * while the external code is being updated to the current API. */ /* Heartbeat-specific definitions. Support for heartbeat has been removed * entirely, so any code branches relying on these should be deleted. */ #define ACTIVESTATUS "active" #define DEADSTATUS "dead" #define PINGSTATUS "ping" #define JOINSTATUS "join" #define LEAVESTATUS "leave" #define NORMALNODE "normal" #define CRM_NODE_EVICTED "evicted" #define CRM_LEGACY_CONFIG_DIR "/var/lib/heartbeat/crm" #define HA_VARLIBHBDIR "/var/lib/heartbeat" #define pcmk_cluster_heartbeat 0x0004 /* Corosync-version-1-specific definitions */ /* Support for corosync version 1 has been removed entirely, so any code * branches relying on these should be deleted. */ #define PCMK_SERVICE_ID 9 #define CRM_SERVICE PCMK_SERVICE_ID #define XML_ATTR_EXPECTED_VOTES "expected-quorum-votes" #define crm_class_members 1 #define crm_class_notify 2 #define crm_class_nodeid 3 #define crm_class_rmpeer 4 #define crm_class_quorum 5 #define pcmk_cluster_classic_ais 0x0010 #define pcmk_cluster_cman 0x0040 #define ais_fd_sync -1 // These are always true now #define CS_USES_LIBQB 1 #define HAVE_CMAP 1 #define SUPPORT_CS_QUORUM 1 #define SUPPORT_AIS 1 #define AIS_COROSYNC 1 // These are always false now #define HAVE_CONFDB 0 #define SUPPORT_CMAN 0 #define SUPPORT_PLUGIN 0 #define SUPPORT_STONITH_CONFIG 0 #define is_classic_ais_cluster() 0 #define is_cman_cluster() 0 // These have newer names #define is_openais_cluster() is_corosync_cluster() #if SUPPORT_COROSYNC #define SUPPORT_CS #endif /* Isolation-specific definitions. Support for the resource isolation feature * has been removed * entirely, so any code branches relying on these should be * deleted. */ #define XML_RSC_ATTR_ISOLATION_INSTANCE "isolation-instance" #define XML_RSC_ATTR_ISOLATION_WRAPPER "isolation-wrapper" #define XML_RSC_ATTR_ISOLATION_HOST "isolation-host" #define XML_RSC_ATTR_ISOLATION "isolation" /* Schema-related definitions */ // This has been renamed #define CRM_DTD_DIRECTORY CRM_SCHEMA_DIRECTORY /* Exit-code-related definitions */ #define DAEMON_RESPAWN_STOP CRM_EX_FATAL #define pcmk_err_panic CRM_EX_PANIC // Deprecated symbols that were removed #define APPNAME_LEN 256 #define CRM_NODE_ACTIVE CRM_NODE_MEMBER #define CRM_OP_DIE "die_no_respawn" #define CRM_OP_RETRIVE_CIB "retrieve_cib" #define CRM_OP_HBEAT "dc_beat" #define CRM_OP_ABORT "abort" #define CRM_OP_DEBUG_UP "debug_inc" #define CRM_OP_DEBUG_DOWN "debug_dec" #define CRM_OP_EVENTCC "event_cc" #define CRM_OP_TEABORT "te_abort" #define CRM_OP_TEABORTED "te_abort_confirmed" #define CRM_OP_TE_HALT "te_halt" #define CRM_OP_TECOMPLETE "te_complete" #define CRM_OP_TETIMEOUT "te_timeout" #define CRM_OP_TRANSITION "transition" #define CRM_OP_NODES_PROBED "probe_nodes_complete" #define DOT_ALL_FSA_INPUTS 1 #define DOT_FSA_ACTIONS 1 #define F_LRMD_CANCEL_CALLID "lrmd_cancel_callid" #define F_LRMD_RSC_METADATA "lrmd_rsc_metadata_res" #define F_LRMD_IPC_PROXY_NODE "lrmd_ipc_proxy_node" #define INSTANCE(x) crm_element_value(x, XML_CIB_ATTR_INSTANCE) #define LOG_DEBUG_2 LOG_TRACE #define LOG_DEBUG_3 LOG_TRACE #define LOG_DEBUG_4 LOG_TRACE #define LOG_DEBUG_5 LOG_TRACE #define LOG_DEBUG_6 LOG_TRACE #define LRMD_OP_RSC_CHK_REG "lrmd_rsc_check_register" #define MAX_IPC_FAIL 5 #define NAME(x) crm_element_value(x, PCMK_XA_NAME) #define MSG_LOG 1 #define PE_OBJ_T_NATIVE "native" #define PE_OBJ_T_GROUP "group" #define PE_OBJ_T_INCARNATION "clone" #define PE_OBJ_T_MASTER "master" #define SERVICE_SCRIPT "/sbin/service" #define SOCKET_LEN 1024 #define TSTAMP(x) crm_element_value(x, PCMK_XA_CRM_TIMESTAMP) #define XML_ATTR_TAGNAME F_XML_TAGNAME #define XML_ATTR_FILTER_TYPE "type-filter" #define XML_ATTR_FILTER_ID "id-filter" #define XML_ATTR_FILTER_PRIORITY "priority-filter" #define XML_ATTR_DC "is_dc" #define XML_MSG_TAG "crm_message" #define XML_MSG_TAG_DATA "msg_data" #define XML_FAIL_TAG_RESOURCE "failed_resource" #define XML_FAILRES_ATTR_RESID "resource_id" #define XML_FAILRES_ATTR_REASON PCMK_XA_REASON #define XML_FAILRES_ATTR_RESSTATUS "resource_status" #define XML_ATTR_RESULT PCMK_XA_RESULT #define XML_ATTR_SECTION "section" #define XML_CIB_TAG_DOMAIN "domain" #define XML_CIB_TAG_CONSTRAINT "constraint" #define XML_RSC_ATTR_STATE "clone-state" #define XML_RSC_ATTR_PRIORITY PCMK_META_PRIORITY #define XML_OP_ATTR_DEPENDENT "dependent-on" #define XML_LRM_TAG_AGENTS "lrm_agents" #define XML_LRM_TAG_AGENT "lrm_agent" #define XML_LRM_TAG_ATTRIBUTES "attributes" #define XML_CIB_ATTR_HEALTH "health" #define XML_CIB_ATTR_WEIGHT "weight" #define XML_CIB_ATTR_CLEAR "clear_on" #define XML_CIB_ATTR_STONITH "stonith" #define XML_CIB_ATTR_STANDBY "standby" #define XML_RULE_ATTR_SCORE_MANGLED "score-attribute-mangled" #define XML_RULE_ATTR_RESULT PCMK_XA_RESULT #define XML_NODE_ATTR_STATE "state" #define XML_ATTR_LRM_PROBE "lrm-is-probe" #define XML_ATTR_TE_ALLOWFAIL "op_allow_fail" #define VALUE(x) crm_element_value(x, PCMK_XA_VALUE) #define action_wrapper_s pe_action_wrapper_s #define add_cib_op_callback(cib, id, flag, data, fn) do { \ cib->cmds->register_callback(cib, id, 120, flag, data, #fn, fn); \ } while(0) #define cib_default_options = cib_none #define crm_remote_baremetal 0x0004 #define crm_remote_container 0x0002 #define crm_element_value_const crm_element_value #define crm_element_value_const_int crm_element_value_int #define n_object_classes 3 #define no_quorum_policy_e pe_quorum_policy #define node_s pe_node_s #define node_shared_s pe_node_shared_s #define pe_action_failure_is_fatal 0x00020 #define pe_rsc_munging 0x00000800ULL #define pe_rsc_try_reload 0x00001000ULL #define pe_rsc_shutdown 0x00020000ULL #define pe_rsc_migrating 0x00400000ULL #define pe_rsc_unexpectedly_running 0x02000000ULL #define pe_rsc_have_unfencing 0x80000000ULL #define resource_s pe_resource_s #define ticket_s pe_ticket_s #define node_score_infinity 1000000 /* Clone terminology definitions */ // These can no longer be used in a switch together #define pe_master pcmk_rsc_variant_clone static inline enum pe_obj_types get_resource_type(const char *name) { if (safe_str_eq(name, PCMK_XE_PRIMITIVE)) { return pcmk_rsc_variant_primitive; } else if (safe_str_eq(name, PCMK_XE_GROUP)) { return pcmk_rsc_variant_group; } else if (safe_str_eq(name, PCMK_XE_CLONE) || safe_str_eq(name, PCMK_XE_PROMOTABLE_LEGACY)) { return pcmk_rsc_variant_clone; } else if (safe_str_eq(name, PCMK_XE_BUNDLE)) { return pcmk_rsc_variant_bundle; } return pcmk_rsc_variant_unknown; } static inline const char * get_resource_typename(enum pe_obj_types type) { switch (type) { case pcmk_rsc_variant_primitive: return PCMK_XE_PRIMITIVE; case pcmk_rsc_variant_group: return PCMK_XE_GROUP; case pcmk_rsc_variant_clone: return PCMK_XE_CLONE; case pcmk_rsc_variant_bundle: return PCMK_XE_BUNDLE; case pcmk_rsc_variant_unknown: return "unknown"; } return ""; } #ifdef __cplusplus } #endif #endif diff --git a/include/crm/msg_xml.h b/include/crm/msg_xml.h index 83a94a0b77..4bb40bdaf6 100644 --- a/include/crm/msg_xml.h +++ b/include/crm/msg_xml.h @@ -1,450 +1,17 @@ /* * Copyright 2004-2024 the Pacemaker project contributors * * The version control history for this file may have further details. * * This source code is licensed under the GNU Lesser General Public License * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY. */ #ifndef PCMK__CRM_MSG_XML__H # define PCMK__CRM_MSG_XML__H -# include - #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) #include #endif -#ifdef __cplusplus -extern "C" { -#endif - -/* This file defines constants for various XML syntax (mainly element and - * attribute names). - * - * For consistency, new constants should start with "PCMK_", followed by: - * * "XE" for XML element names - * * "XA" for XML attribute names - * * "OPT" for cluster option (property) names - * * "META" for meta-attribute names - * * "VALUE" for enumerated values for various options - * * "NODE_ATTR" for node attribute names - * - * Old names that don't follow this policy should eventually be deprecated and - * replaced with names that do. - * - * Symbols should be public if the user may specify them somewhere (especially - * the CIB) or if they're part of a well-defined structure that a user may need - * to parse. They should be internal if they're used only internally to - * Pacemaker (such as daemon IPC/CPG message XML). - * - * Constants belong in the following locations: - * * "XE" and "XA": msg_xml.h and xml_names_internal.h - * * "OPT", "META", and "VALUE": options.h and options_internal.h - * * "NODE_ATTR": nodes.h and nodes_internal.h - * - * For meta-attributes that can be specified as either XML attributes or nvpair - * names, use "META" unless using both "XA" and "META" constants adds clarity. - * An example is operation attributes, which can be specified either as - * attributes of the PCMK_XE_OP element or as nvpairs in a meta-attribute set - * beneath the PCMK_XE_OP element. - */ - -/* - * XML elements - */ - -#define PCMK_XE_ACL_GROUP "acl_group" -#define PCMK_XE_ACL_PERMISSION "acl_permission" -#define PCMK_XE_ACL_ROLE "acl_role" -#define PCMK_XE_ACL_TARGET "acl_target" -#define PCMK_XE_ACLS "acls" -#define PCMK_XE_ACTION "action" -#define PCMK_XE_ACTIONS "actions" -#define PCMK_XE_AGENT "agent" -#define PCMK_XE_AGENT_STATUS "agent-status" -#define PCMK_XE_AGENTS "agents" -#define PCMK_XE_ALERT "alert" -#define PCMK_XE_ALERTS "alerts" -#define PCMK_XE_ALLOCATIONS "allocations" -#define PCMK_XE_ALLOCATIONS_UTILIZATIONS "allocations_utilizations" -#define PCMK_XE_ATTRIBUTE "attribute" -#define PCMK_XE_BAN "ban" -#define PCMK_XE_BANS "bans" -#define PCMK_XE_BUNDLE "bundle" -#define PCMK_XE_CAPACITY "capacity" -#define PCMK_XE_CHANGE "change" -#define PCMK_XE_CHANGE_ATTR "change-attr" -#define PCMK_XE_CHANGE_LIST "change-list" -#define PCMK_XE_CHANGE_RESULT "change-result" -#define PCMK_XE_CHECK "check" -#define PCMK_XE_CIB "cib" -#define PCMK_XE_CLONE "clone" -#define PCMK_XE_CLUSTER_ACTION "cluster_action" -#define PCMK_XE_CLUSTER_INFO "cluster-info" -#define PCMK_XE_CLUSTER_OPTIONS "cluster_options" -#define PCMK_XE_CLUSTER_PROPERTY_SET "cluster_property_set" -#define PCMK_XE_CLUSTER_STATUS "cluster_status" -#define PCMK_XE_COMMAND "command" -#define PCMK_XE_CONFIGURATION "configuration" -#define PCMK_XE_CONSTRAINTS "constraints" -#define PCMK_XE_CONTENT "content" -#define PCMK_XE_CRM_CONFIG "crm_config" -#define PCMK_XE_CRM_MON "crm_mon" -#define PCMK_XE_CRM_MON_DISCONNECTED "crm-mon-disconnected" -#define PCMK_XE_CURRENT_DC "current_dc" -#define PCMK_XE_DATE_EXPRESSION "date_expression" -#define PCMK_XE_DATE_SPEC "date_spec" -#define PCMK_XE_DC "dc" -#define PCMK_XE_DIFF "diff" -#define PCMK_XE_DIGEST "digest" -#define PCMK_XE_DIGESTS "digests" -#define PCMK_XE_DOCKER "docker" -#define PCMK_XE_DURATION "duration" -#define PCMK_XE_ERROR "error" -#define PCMK_XE_ERRORS "errors" -#define PCMK_XE_EXPRESSION "expression" -#define PCMK_XE_FAILURE "failure" -#define PCMK_XE_FAILURES "failures" -#define PCMK_XE_FEATURE "feature" -#define PCMK_XE_FEATURES "features" -#define PCMK_XE_FENCE_EVENT "fence_event" -#define PCMK_XE_FENCE_HISTORY "fence_history" -#define PCMK_XE_FENCING_ACTION "fencing_action" -#define PCMK_XE_FENCING_LEVEL "fencing-level" -#define PCMK_XE_FENCING_TOPOLOGY "fencing-topology" -#define PCMK_XE_GROUP "group" -#define PCMK_XE_INJECT_ATTR "inject_attr" -#define PCMK_XE_INJECT_SPEC "inject_spec" -#define PCMK_XE_INSTANCE_ATTRIBUTES "instance_attributes" -#define PCMK_XE_INSTRUCTION "instruction" -#define PCMK_XE_ITEM "item" -#define PCMK_XE_LAST_CHANGE "last_change" -#define PCMK_XE_LAST_FENCED "last-fenced" -#define PCMK_XE_LAST_UPDATE "last_update" -#define PCMK_XE_LIST "list" -#define PCMK_XE_LONGDESC "longdesc" -#define PCMK_XE_META_ATTRIBUTES "meta_attributes" -#define PCMK_XE_METADATA "metadata" -#define PCMK_XE_MODIFICATIONS "modifications" -#define PCMK_XE_MODIFY_NODE "modify_node" -#define PCMK_XE_MODIFY_TICKET "modify_ticket" -#define PCMK_XE_NETWORK "network" -#define PCMK_XE_NODE "node" -#define PCMK_XE_NODE_ACTION "node_action" -#define PCMK_XE_NODE_ATTRIBUTES "node_attributes" -#define PCMK_XE_NODE_HISTORY "node_history" -#define PCMK_XE_NODE_INFO "node-info" -#define PCMK_XE_NODE_WEIGHT "node_weight" -#define PCMK_XE_NODES "nodes" -#define PCMK_XE_NODES_CONFIGURED "nodes_configured" -#define PCMK_XE_NVPAIR "nvpair" -#define PCMK_XE_OBJ_REF "obj_ref" -#define PCMK_XE_OP "op" -#define PCMK_XE_OP_DEFAULTS "op_defaults" -#define PCMK_XE_OP_EXPRESSION "op_expression" -#define PCMK_XE_OPERATION "operation" -#define PCMK_XE_OPERATION_HISTORY "operation_history" -#define PCMK_XE_OPERATIONS "operations" -#define PCMK_XE_OPTION "option" -#define PCMK_XE_OUTPUT "output" -#define PCMK_XE_OVERRIDE "override" -#define PCMK_XE_OVERRIDES "overrides" -#define PCMK_XE_PACEMAKER_RESULT "pacemaker-result" -#define PCMK_XE_PACEMAKERD "pacemakerd" -#define PCMK_XE_PARAMETER "parameter" -#define PCMK_XE_PARAMETERS "parameters" -#define PCMK_XE_PODMAN "podman" -#define PCMK_XE_PORT_MAPPING "port-mapping" -#define PCMK_XE_POSITION "position" -#define PCMK_XE_PRIMITIVE "primitive" -#define PCMK_XE_PROMOTION_SCORE "promotion_score" -#define PCMK_XE_PROVIDER "provider" -#define PCMK_XE_PROVIDERS "providers" -#define PCMK_XE_PSEUDO_ACTION "pseudo_action" -#define PCMK_XE_REASON "reason" -#define PCMK_XE_RECIPIENT "recipient" -#define PCMK_XE_REPLICA "replica" -#define PCMK_XE_RESOURCE "resource" -#define PCMK_XE_RESOURCE_AGENT "resource-agent" -#define PCMK_XE_RESOURCE_AGENT_ACTION "resource-agent-action" -#define PCMK_XE_RESOURCE_CONFIG "resource_config" -#define PCMK_XE_RESOURCE_HISTORY "resource_history" -#define PCMK_XE_RESOURCE_REF "resource_ref" -#define PCMK_XE_RESOURCE_SET "resource_set" -#define PCMK_XE_RESOURCES "resources" -#define PCMK_XE_RESOURCES_CONFIGURED "resources_configured" -#define PCMK_XE_RESULT_CODE "result-code" -#define PCMK_XE_REVISED_CLUSTER_STATUS "revised_cluster_status" -#define PCMK_XE_ROLE "role" -#define PCMK_XE_RSC_ACTION "rsc_action" -#define PCMK_XE_RSC_COLOCATION "rsc_colocation" -#define PCMK_XE_RSC_DEFAULTS "rsc_defaults" -#define PCMK_XE_RSC_EXPRESSION "rsc_expression" -#define PCMK_XE_RSC_LOCATION "rsc_location" -#define PCMK_XE_RSC_ORDER "rsc_order" -#define PCMK_XE_RSC_TICKET "rsc_ticket" -#define PCMK_XE_RULE "rule" -#define PCMK_XE_RULE_CHECK "rule-check" -#define PCMK_XE_SELECT "select" -#define PCMK_XE_SELECT_ATTRIBUTES "select_attributes" -#define PCMK_XE_SELECT_FENCING "select_fencing" -#define PCMK_XE_SELECT_NODES "select_nodes" -#define PCMK_XE_SELECT_RESOURCES "select_resources" -#define PCMK_XE_SHADOW "shadow" -#define PCMK_XE_SHORTDESC "shortdesc" -#define PCMK_XE_SOURCE "source" -#define PCMK_XE_STACK "stack" -#define PCMK_XE_STATUS "status" -#define PCMK_XE_STORAGE "storage" -#define PCMK_XE_STORAGE_MAPPING "storage-mapping" -#define PCMK_XE_SUMMARY "summary" -#define PCMK_XE_TAG "tag" -#define PCMK_XE_TAGS "tags" -#define PCMK_XE_TARGET "target" -#define PCMK_XE_TEMPLATE "template" -#define PCMK_XE_TICKET "ticket" -#define PCMK_XE_TICKETS "tickets" -#define PCMK_XE_TIMING "timing" -#define PCMK_XE_TIMINGS "timings" -#define PCMK_XE_TRANSITION "transition" -#define PCMK_XE_UTILIZATION "utilization" -#define PCMK_XE_UTILIZATIONS "utilizations" -#define PCMK_XE_VALIDATE "validate" -#define PCMK_XE_VERSION "version" -#define PCMK_XE_XML "xml" -#define PCMK_XE_XML_PATCHSET "xml-patchset" - - -/* - * XML attributes - */ - -#define PCMK_XA_ACTION "action" -#define PCMK_XA_ACTIVE "active" -#define PCMK_XA_ADD_HOST "add-host" -#define PCMK_XA_ADMIN_EPOCH "admin_epoch" -#define PCMK_XA_AGENT "agent" -#define PCMK_XA_API_VERSION "api-version" -#define PCMK_XA_ATTRIBUTE "attribute" -#define PCMK_XA_AUTHOR "author" -#define PCMK_XA_BLOCKED "blocked" -#define PCMK_XA_BOOLEAN_OP "boolean-op" -#define PCMK_XA_BUILD "build" -#define PCMK_XA_CACHED "cached" -#define PCMK_XA_CALL "call" -#define PCMK_XA_CIB_LAST_WRITTEN "cib-last-written" -#define PCMK_XA_CIB_NODE "cib_node" -#define PCMK_XA_CLASS "class" -#define PCMK_XA_CLIENT "client" -#define PCMK_XA_CODE "code" -#define PCMK_XA_COMMENT "comment" -#define PCMK_XA_COMPLETED "completed" -#define PCMK_XA_CONTROL_PORT "control-port" -#define PCMK_XA_COUNT "count" -#define PCMK_XA_CRM_DEBUG_ORIGIN "crm-debug-origin" -#define PCMK_XA_CRM_FEATURE_SET "crm_feature_set" -#define PCMK_XA_CRM_TIMESTAMP "crm-timestamp" -#define PCMK_XA_CRMD "crmd" -#define PCMK_XA_DAYS "days" -#define PCMK_XA_DC_UUID "dc-uuid" -#define PCMK_XA_DEFAULT "default" -#define PCMK_XA_DELEGATE "delegate" -#define PCMK_XA_DESCRIPTION "description" -#define PCMK_XA_DEST "dest" -#define PCMK_XA_DEVICES "devices" -#define PCMK_XA_DISABLED "disabled" -#define PCMK_XA_DURATION "duration" -#define PCMK_XA_END "end" -#define PCMK_XA_EPOCH "epoch" -#define PCMK_XA_EXEC "exec" -#define PCMK_XA_EXEC_TIME "exec-time" -#define PCMK_XA_EXECUTION_CODE "execution_code" -#define PCMK_XA_EXECUTION_DATE "execution-date" -#define PCMK_XA_EXECUTION_MESSAGE "execution_message" -#define PCMK_XA_EXIT_REASON "exit-reason" -#define PCMK_XA_EXITCODE "exitcode" -#define PCMK_XA_EXITREASON "exitreason" -#define PCMK_XA_EXITSTATUS "exitstatus" -#define PCMK_XA_EXPECTED "expected" -#define PCMK_XA_EXPECTED_UP "expected_up" -#define PCMK_XA_EXTENDED_STATUS "extended-status" -#define PCMK_XA_FAIL_COUNT "fail-count" -#define PCMK_XA_FAILED "failed" -#define PCMK_XA_FAILURE_IGNORED "failure_ignored" -#define PCMK_XA_FEATURE_SET "feature_set" -#define PCMK_XA_FEATURES "features" -#define PCMK_XA_FILE "file" -#define PCMK_XA_FIRST "first" -#define PCMK_XA_FIRST_ACTION "first-action" -#define PCMK_XA_FOR "for" -#define PCMK_XA_FORMAT "format" -#define PCMK_XA_FUNCTION "function" -#define PCMK_XA_HASH "hash" -#define PCMK_XA_HAVE_QUORUM "have-quorum" -#define PCMK_XA_HEALTH "health" -#define PCMK_XA_HOST "host" -#define PCMK_XA_HOST_INTERFACE "host-interface" -#define PCMK_XA_HOST_NETMASK "host-netmask" -#define PCMK_XA_HOURS "hours" -#define PCMK_XA_ID "id" -#define PCMK_XA_ID_AS_RESOURCE "id_as_resource" -#define PCMK_XA_ID_REF "id-ref" -#define PCMK_XA_IMAGE "image" -#define PCMK_XA_INDEX "index" -#define PCMK_XA_INFLUENCE "influence" -#define PCMK_XA_INSTANCE "instance" -#define PCMK_XA_INTERNAL_PORT "internal-port" -#define PCMK_XA_INTERVAL "interval" -#define PCMK_XA_IP_RANGE_START "ip-range-start" -#define PCMK_XA_IS_DC "is_dc" -#define PCMK_XA_KIND "kind" -#define PCMK_XA_LANG "lang" -#define PCMK_XA_LAST_FAILURE "last-failure" -#define PCMK_XA_LAST_GRANTED "last-granted" -#define PCMK_XA_LAST_RC_CHANGE "last-rc-change" -#define PCMK_XA_LAST_UPDATED "last_updated" -#define PCMK_XA_LOCKED_TO "locked_to" -#define PCMK_XA_LOCKED_TO_HYPHEN "locked-to" -#define PCMK_XA_LOSS_POLICY "loss-policy" -#define PCMK_XA_MAINTENANCE "maintenance" -#define PCMK_XA_MAINTENANCE_MODE "maintenance-mode" -#define PCMK_XA_MANAGED "managed" -#define PCMK_XA_MESSAGE "message" -#define PCMK_XA_MINUTES "minutes" -#define PCMK_XA_MIXED_VERSION "mixed_version" -#define PCMK_XA_MONTHDAYS "monthdays" -#define PCMK_XA_MONTHS "months" -#define PCMK_XA_MULTI_STATE "multi_state" -#define PCMK_XA_NAME "name" -#define PCMK_XA_NETWORK "network" -#define PCMK_XA_NEXT_ROLE "next-role" -#define PCMK_XA_NO_QUORUM_PANIC "no-quorum-panic" -#define PCMK_XA_NO_QUORUM_POLICY "no-quorum-policy" -#define PCMK_XA_NODE "node" -#define PCMK_XA_NODE_ATTRIBUTE "node-attribute" -#define PCMK_XA_NODE_NAME "node_name" -#define PCMK_XA_NODE_PATH "node_path" -#define PCMK_XA_NODEID "nodeid" -#define PCMK_XA_NODES_RUNNING_ON "nodes_running_on" -#define PCMK_XA_NUM_UPDATES "num_updates" -#define PCMK_XA_NUMBER "number" -#define PCMK_XA_NUMBER_RESOURCES "number_resources" -#define PCMK_XA_OBJECT_TYPE "object-type" -#define PCMK_XA_ONLINE "online" -#define PCMK_XA_OP "op" -#define PCMK_XA_OP_KEY "op_key" -#define PCMK_XA_OPERATION "operation" -#define PCMK_XA_OPTIONS "options" -#define PCMK_XA_ORIGIN "origin" -#define PCMK_XA_ORPHAN "orphan" -#define PCMK_XA_ORPHANED "orphaned" -#define PCMK_XA_PACEMAKERD_STATE "pacemakerd-state" -#define PCMK_XA_PATH "path" -#define PCMK_XA_PENDING "pending" -#define PCMK_XA_PORT "port" -#define PCMK_XA_PRESENT "present" -#define PCMK_XA_PRIORITY_FENCING_DELAY_MS "priority-fencing-delay-ms" -#define PCMK_XA_PROGRAM "program" -#define PCMK_XA_PROMOTABLE "promotable" -#define PCMK_XA_PROMOTED_MAX "promoted-max" -#define PCMK_XA_PROMOTED_ONLY "promoted-only" -#define PCMK_XA_PROVIDER "provider" -#define PCMK_XA_QUEUE_TIME "queue-time" -#define PCMK_XA_QUEUED "queued" -#define PCMK_XA_QUORUM "quorum" -#define PCMK_XA_RANGE "range" -#define PCMK_XA_RC "rc" -#define PCMK_XA_RC_TEXT "rc_text" -#define PCMK_XA_REASON "reason" -#define PCMK_XA_REFERENCE "reference" -#define PCMK_XA_RELOADABLE "reloadable" -#define PCMK_XA_REMAIN_STOPPED "remain_stopped" -#define PCMK_XA_REMOTE_CLEAR_PORT "remote-clear-port" -#define PCMK_XA_REMOTE_NODE "remote_node" -#define PCMK_XA_REMOTE_TLS_PORT "remote-tls-port" -#define PCMK_XA_REPLICAS "replicas" -#define PCMK_XA_REPLICAS_PER_HOST "replicas-per-host" -#define PCMK_XA_REQUEST "request" -#define PCMK_XA_REQUIRE_ALL "require-all" -#define PCMK_XA_RESOURCE "resource" -#define PCMK_XA_RESOURCE_AGENT "resource_agent" -#define PCMK_XA_RESOURCE_DISCOVERY "resource-discovery" -#define PCMK_XA_RESOURCES_RUNNING "resources_running" -#define PCMK_XA_RESULT "result" -#define PCMK_XA_ROLE "role" -#define PCMK_XA_RSC "rsc" -#define PCMK_XA_RSC_PATTERN "rsc-pattern" -#define PCMK_XA_RSC_ROLE "rsc-role" -#define PCMK_XA_RULE_ID "rule-id" -#define PCMK_XA_RUN_COMMAND "run-command" -#define PCMK_XA_RUNNING "running" -#define PCMK_XA_RUNNING_ON "running_on" -#define PCMK_XA_SCOPE "scope" -#define PCMK_XA_SCORE "score" -#define PCMK_XA_SCORE_ATTRIBUTE "score-attribute" -#define PCMK_XA_SEQUENTIAL "sequential" -#define PCMK_XA_SECONDS "seconds" -#define PCMK_XA_SHUTDOWN "shutdown" -#define PCMK_XA_SOURCE "source" -#define PCMK_XA_SOURCE_DIR "source-dir" -#define PCMK_XA_SOURCE_DIR_ROOT "source-dir-root" -#define PCMK_XA_SPEC "spec" -#define PCMK_XA_STANDARD "standard" -#define PCMK_XA_STANDBY "standby" -#define PCMK_XA_STANDBY_ONFAIL "standby_onfail" -#define PCMK_XA_START "start" -#define PCMK_XA_STATE "state" -#define PCMK_XA_STATUS "status" -#define PCMK_XA_STONITH_ENABLED "stonith-enabled" -#define PCMK_XA_STONITH_TIMEOUT_MS "stonith-timeout-ms" -#define PCMK_XA_STOP_ALL_RESOURCES "stop-all-resources" -#define PCMK_XA_SYMMETRIC_CLUSTER "symmetric-cluster" -#define PCMK_XA_SYMMETRICAL "symmetrical" -#define PCMK_XA_SYS_FROM "sys_from" -#define PCMK_XA_TARGET "target" -#define PCMK_XA_TARGET_ATTRIBUTE "target-attribute" -#define PCMK_XA_TARGET_DIR "target-dir" -#define PCMK_XA_TARGET_PATTERN "target-pattern" -#define PCMK_XA_TARGET_ROLE "target_role" -#define PCMK_XA_TARGET_VALUE "target-value" -#define PCMK_XA_TASK "task" -#define PCMK_XA_TEMPLATE "template" -#define PCMK_XA_TICKET "ticket" -#define PCMK_XA_TIME "time" -#define PCMK_XA_THEN "then" -#define PCMK_XA_THEN_ACTION "then-action" -#define PCMK_XA_TYPE "type" -#define PCMK_XA_UNAME "uname" -#define PCMK_XA_UNCLEAN "unclean" -#define PCMK_XA_UNHEALTHY "unhealthy" -#define PCMK_XA_UNIQUE "unique" -#define PCMK_XA_UNMANAGED "unmanaged" -#define PCMK_XA_UPDATE_CLIENT "update-client" -#define PCMK_XA_UPDATE_ORIGIN "update-origin" -#define PCMK_XA_UPDATE_USER "update-user" -#define PCMK_XA_USER "user" -#define PCMK_XA_VALID "valid" -#define PCMK_XA_VALIDATE_WITH "validate-with" -#define PCMK_XA_VALUE "value" -#define PCMK_XA_VALUE_SOURCE "value-source" -#define PCMK_XA_VERSION "version" -#define PCMK_XA_WATCHDOG "watchdog" -#define PCMK_XA_WEEKDAYS "weekdays" -#define PCMK_XA_WEEKS "weeks" -#define PCMK_XA_WEEKYEARS "weekyears" -#define PCMK_XA_WEIGHT "weight" -#define PCMK_XA_WHEN "when" -#define PCMK_XA_WITH_QUORUM "with_quorum" -#define PCMK_XA_WITH_RSC "with-rsc" -#define PCMK_XA_WITH_RSC_ROLE "with-rsc-role" -#define PCMK_XA_XPATH "xpath" -#define PCMK_XA_YEARDAYS "yeardays" -#define PCMK_XA_YEARS "years" - -#ifdef __cplusplus -} -#endif - -#endif +#endif // PCMK__CRM_MSG_XML__H diff --git a/include/crm/msg_xml_compat.h b/include/crm/msg_xml_compat.h index 35969bc684..05f5299656 100644 --- a/include/crm/msg_xml_compat.h +++ b/include/crm/msg_xml_compat.h @@ -1,1020 +1,1022 @@ /* * Copyright 2004-2024 the Pacemaker project contributors * * The version control history for this file may have further details. * * This source code is licensed under the GNU Lesser General Public License * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY. */ #ifndef PCMK__CRM_MSG_XML_COMPAT__H # define PCMK__CRM_MSG_XML_COMPAT__H #include // PCMK_STONITH_PROVIDES +#include +#include #ifdef __cplusplus extern "C" { #endif /** * \file * \brief Deprecated Pacemaker XML constants API * \ingroup core * \deprecated Do not include this header directly. The XML constants in this * header, and the header itself, will be removed in a future * release. */ //! \deprecated Use PCMK_META_CLONE_MAX instead #define XML_RSC_ATTR_INCARNATION_MAX PCMK_META_CLONE_MAX //! \deprecated Use PCMK_META_CLONE_MIN instead #define XML_RSC_ATTR_INCARNATION_MIN PCMK_META_CLONE_MIN //! \deprecated Use PCMK_META_CLONE_NODE_MAX instead #define XML_RSC_ATTR_INCARNATION_NODEMAX PCMK_META_CLONE_NODE_MAX //! \deprecated Use PCMK_META_PROMOTED_MAX instead #define XML_RSC_ATTR_PROMOTED_MAX PCMK_META_PROMOTED_MAX //! \deprecated Use PCMK_META_PROMOTED_NODE_MAX instead #define XML_RSC_ATTR_PROMOTED_NODEMAX PCMK_META_PROMOTED_NODE_MAX //! \deprecated Use PCMK_STONITH_PROVIDES instead #define XML_RSC_ATTR_PROVIDES PCMK_STONITH_PROVIDES //! \deprecated Do not use #define PCMK_XE_PROMOTABLE_LEGACY "master" //! \deprecated Do not use #define XML_CIB_TAG_MASTER PCMK_XE_PROMOTABLE_LEGACY //! \deprecated Do not use #define PCMK_XA_PROMOTED_MAX_LEGACY "master-max" //! \deprecated Do not use #define PCMK_XE_PROMOTED_MAX_LEGACY PCMK_XA_PROMOTED_MAX_LEGACY //! \deprecated Do not use #define XML_RSC_ATTR_MASTER_MAX PCMK_XA_PROMOTED_MAX_LEGACY //! \deprecated Do not use #define PCMK_XA_PROMOTED_NODE_MAX_LEGACY "master-node-max" //! \deprecated Do not use #define PCMK_XE_PROMOTED_NODE_MAX_LEGACY PCMK_XA_PROMOTED_NODE_MAX_LEGACY //! \deprecated Do not use #define XML_RSC_ATTR_MASTER_NODEMAX PCMK_XA_PROMOTED_NODE_MAX_LEGACY //! \deprecated Use PCMK_META_MIGRATION_THRESHOLD instead #define XML_RSC_ATTR_FAIL_STICKINESS PCMK_META_MIGRATION_THRESHOLD //! \deprecated Use PCMK_META_FAILURE_TIMEOUT instead #define XML_RSC_ATTR_FAIL_TIMEOUT PCMK_META_FAILURE_TIMEOUT //! \deprecated Do not use (will be removed in a future release) #define XML_ATTR_RA_VERSION "ra-version" //! \deprecated Do not use (will be removed in a future release) #define XML_TAG_FRAGMENT "cib_fragment" //! \deprecated Do not use (will be removed in a future release) #define XML_TAG_RSC_VER_ATTRS "rsc_versioned_attrs" //! \deprecated Do not use (will be removed in a future release) #define XML_TAG_OP_VER_ATTRS "op_versioned_attrs" //! \deprecated Do not use (will be removed in a future release) #define XML_TAG_OP_VER_META "op_versioned_meta" //! \deprecated Use \p PCMK_XA_ID instead #define XML_ATTR_UUID "id" //! \deprecated Do not use (will be removed in a future release) #define XML_ATTR_VERBOSE "verbose" //! \deprecated Do not use (will be removed in a future release) #define XML_CIB_TAG_DOMAINS "domains" //! \deprecated Do not use (will be removed in a future release) #define XML_CIB_ATTR_SOURCE "source" //! \deprecated Do not use #define XML_NODE_EXPECTED "expected" //! \deprecated Do not use #define XML_NODE_IN_CLUSTER "in_ccm" //! \deprecated Do not use #define XML_NODE_IS_PEER "crmd" //! \deprecated Do not use #define XML_NODE_JOIN_STATE "join" //! \deprecated Do not use (will be removed in a future release) #define XML_RSC_OP_LAST_RUN "last-run" //! \deprecated Use name member directly #define TYPE(x) (((x) == NULL)? NULL : (const char *) ((x)->name)) //! \deprecated Use \c PCMK_OPT_CLUSTER_RECHECK_INTERVAL instead #define XML_CONFIG_ATTR_RECHECK PCMK_OPT_CLUSTER_RECHECK_INTERVAL //! \deprecated Use \c PCMK_OPT_DC_DEADTIME instead #define XML_CONFIG_ATTR_DC_DEADTIME PCMK_OPT_DC_DEADTIME //! \deprecated Use \c PCMK_OPT_ELECTION_TIMEOUT instead #define XML_CONFIG_ATTR_ELECTION_FAIL PCMK_OPT_ELECTION_TIMEOUT //! \deprecated Use \c PCMK_OPT_FENCE_REACTION instead #define XML_CONFIG_ATTR_FENCE_REACTION PCMK_OPT_FENCE_REACTION //! \deprecated Use \c PCMK_OPT_HAVE_WATCHDOG instead #define XML_ATTR_HAVE_WATCHDOG PCMK_OPT_HAVE_WATCHDOG //! \deprecated Use \c PCMK_OPT_NODE_PENDING_TIMEOUT instead #define XML_CONFIG_ATTR_NODE_PENDING_TIMEOUT PCMK_OPT_NODE_PENDING_TIMEOUT //! \deprecated Use \c PCMK_OPT_PRIORITY_FENCING_DELAY instead #define XML_CONFIG_ATTR_PRIORITY_FENCING_DELAY PCMK_OPT_PRIORITY_FENCING_DELAY //! \deprecated Use \c PCMK_OPT_SHUTDOWN_ESCALATION instead #define XML_CONFIG_ATTR_FORCE_QUIT PCMK_OPT_SHUTDOWN_ESCALATION //! \deprecated Use \c PCMK_OPT_SHUTDOWN_LOCK instead #define XML_CONFIG_ATTR_SHUTDOWN_LOCK PCMK_OPT_SHUTDOWN_LOCK //! \deprecated Use \c PCMK_OPT_SHUTDOWN_LOCK_LIMIT instead #define XML_CONFIG_ATTR_SHUTDOWN_LOCK_LIMIT PCMK_OPT_SHUTDOWN_LOCK_LIMIT //! \deprecated Use \c PCMK_XA_CRM_FEATURE_SET instead #define XML_ATTR_CRM_VERSION PCMK_XA_CRM_FEATURE_SET //! \deprecated Do not use #define XML_ATTR_DIGEST "digest" //! \deprecated Use \c PCMK_XA_VALIDATE_WITH instead #define XML_ATTR_VALIDATION PCMK_XA_VALIDATE_WITH //! \deprecated Use \c PCMK_XA_NO_QUORUM_PANIC instead #define XML_ATTR_QUORUM_PANIC PCMK_XA_NO_QUORUM_PANIC //! \deprecated Use \c PCMK_XA_HAVE_QUORUM instead #define XML_ATTR_HAVE_QUORUM PCMK_XA_HAVE_QUORUM //! \deprecated Use \c PCMK_XA_EPOCH instead #define XML_ATTR_GENERATION PCMK_XA_EPOCH //! \deprecated Use \c PCMK_XA_ADMIN_EPOCH instead #define XML_ATTR_GENERATION_ADMIN PCMK_XA_ADMIN_EPOCH //! \deprecated Use \c PCMK_XA_NUM_UPDATES instead #define XML_ATTR_NUMUPDATES PCMK_XA_NUM_UPDATES //! \deprecated Use \c PCMK_XA_CRM_DEBUG_ORIGIN instead #define XML_ATTR_ORIGIN PCMK_XA_CRM_DEBUG_ORIGIN //! \deprecated Use \c PCMK_XA_CRM_TIMESTAMP instead #define XML_ATTR_TSTAMP PCMK_XA_CRM_TIMESTAMP //! \deprecated Use \c PCMK_XA_CIB_LAST_WRITTEN instead #define XML_CIB_ATTR_WRITTEN PCMK_XA_CIB_LAST_WRITTEN //! \deprecated Use \c PCMK_XA_VERSION instead #define XML_ATTR_VERSION PCMK_XA_VERSION //! \deprecated Use \c PCMK_XA_DESCRIPTION instead #define XML_ATTR_DESC PCMK_XA_DESCRIPTION //! \deprecated Use \c PCMK_XA_ID instead #define XML_ATTR_ID PCMK_XA_ID //! \deprecated Use \c PCMK_XA_ID instead #define XML_FAILCIB_ATTR_ID PCMK_XA_ID //! \deprecated Use \c PCMK_META_CONTAINER_ATTR_TARGET instead #define XML_RSC_ATTR_TARGET PCMK_META_CONTAINER_ATTR_TARGET //! \deprecated Do not use #define XML_RSC_ATTR_RESTART "restart-type" //! \deprecated Use \c PCMK_META_ORDERED instead #define XML_RSC_ATTR_ORDERED PCMK_META_ORDERED //! \deprecated Use \c PCMK_META_INTERLEAVE instead #define XML_RSC_ATTR_INTERLEAVE PCMK_META_INTERLEAVE //! \deprecated Do not use #define XML_RSC_ATTR_INCARNATION "clone" //! \deprecated Use \c PCMK_META_PROMOTABLE instead #define XML_RSC_ATTR_PROMOTABLE PCMK_META_PROMOTABLE //! \deprecated Use \c PCMK_META_IS_MANAGED instead #define XML_RSC_ATTR_MANAGED PCMK_META_IS_MANAGED //! \deprecated Use \c PCMK_META_TARGET_ROLE instead #define XML_RSC_ATTR_TARGET_ROLE PCMK_META_TARGET_ROLE //! \deprecated Use \c PCMK_META_GLOBALLY_UNIQUE instead #define XML_RSC_ATTR_UNIQUE PCMK_META_GLOBALLY_UNIQUE //! \deprecated Use \c PCMK_META_NOTIFY instead #define XML_RSC_ATTR_NOTIFY PCMK_META_NOTIFY //! \deprecated Use \c PCMK_META_RESOURCE_STICKINESS instead #define XML_RSC_ATTR_STICKINESS PCMK_META_RESOURCE_STICKINESS //! \deprecated Use \c PCMK_META_MULTIPLE_ACTIVE instead #define XML_RSC_ATTR_MULTIPLE PCMK_META_MULTIPLE_ACTIVE //! \deprecated Use \c PCMK_META_REQUIRES instead #define XML_RSC_ATTR_REQUIRES PCMK_META_REQUIRES //! \deprecated Do not use #define XML_RSC_ATTR_CONTAINER "container" //! \deprecated Do not use #define XML_RSC_ATTR_INTERNAL_RSC "internal_rsc" //! \deprecated Use \c PCMK_META_MAINTENANCE instead #define XML_RSC_ATTR_MAINTENANCE PCMK_META_MAINTENANCE //! \deprecated Use \c PCMK_META_REMOTE_NODE instead #define XML_RSC_ATTR_REMOTE_NODE PCMK_META_REMOTE_NODE //! \deprecated Do not use #define XML_RSC_ATTR_CLEAR_OP "clear_failure_op" //! \deprecated Do not use #define XML_RSC_ATTR_CLEAR_INTERVAL "clear_failure_interval" //! \deprecated Use \c PCMK_META_CRITICAL instead #define XML_RSC_ATTR_CRITICAL PCMK_META_CRITICAL //! \deprecated Use \c PCMK_META_ALLOW_MIGRATE instead #define XML_OP_ATTR_ALLOW_MIGRATE PCMK_META_ALLOW_MIGRATE //! \deprecated Use \c PCMK_VALUE_TRUE instead #define XML_BOOLEAN_YES PCMK_VALUE_TRUE //! \deprecated Use \c PCMK_VALUE_FALSE instead #define XML_BOOLEAN_NO PCMK_VALUE_FALSE //! \deprecated Use \c PCMK_REMOTE_RA_ADDR instead #define XML_RSC_ATTR_REMOTE_RA_ADDR PCMK_REMOTE_RA_ADDR //! \deprecated Use \c PCMK_REMOTE_RA_SERVER instead #define XML_RSC_ATTR_REMOTE_RA_SERVER PCMK_REMOTE_RA_SERVER //! \deprecated Use \c PCMK_REMOTE_RA_PORT instead #define XML_RSC_ATTR_REMOTE_RA_PORT PCMK_REMOTE_RA_PORT //! \deprecated Use \c PCMK_REMOTE_RA_RECONNECT_INTERVAL instead #define XML_REMOTE_ATTR_RECONNECT_INTERVAL PCMK_REMOTE_RA_RECONNECT_INTERVAL //! \deprecated Use \c PCMK_XA_NAME instead #define XML_ATTR_NAME PCMK_XA_NAME //! \deprecated Use \c PCMK_XA_NAME instead #define XML_NVPAIR_ATTR_NAME PCMK_XA_NAME //! \deprecated Use \c PCMK_XA_VALUE instead #define XML_EXPR_ATTR_VALUE PCMK_XA_VALUE //! \deprecated Use \c PCMK_XA_VALUE instead #define XML_NVPAIR_ATTR_VALUE PCMK_XA_VALUE //! \deprecated Use \c PCMK_XA_VALUE instead #define XML_ALERT_ATTR_REC_VALUE PCMK_XA_VALUE //! \deprecated Use \c PCMK_XA_ID_REF instead #define XML_ATTR_IDREF PCMK_XA_ID_REF //! \deprecated Do not use #define XML_ATTR_ID_LONG "long-id" //! \deprecated Use \c PCMK_XA_TYPE instead #define XML_ATTR_TYPE PCMK_XA_TYPE //! \deprecated Use \c PCMK_XA_TYPE instead #define XML_EXPR_ATTR_TYPE PCMK_XA_TYPE //! \deprecated Use \c PCMK_XA_PROVIDER instead #define XML_AGENT_ATTR_PROVIDER PCMK_XA_PROVIDER //! \deprecated Use \c PCMK_XA_CLASS instead #define XML_AGENT_ATTR_CLASS PCMK_XA_CLASS //! \deprecated Use \c PCMK_XE_OP instead #define XML_ATTR_OP PCMK_XE_OP //! \deprecated Use \c PCMK_XA_DC_UUID instead #define XML_ATTR_DC_UUID PCMK_XA_DC_UUID //! \deprecated Use \c PCMK_XA_UPDATE_ORIGIN instead #define XML_ATTR_UPDATE_ORIG PCMK_XA_UPDATE_ORIGIN //! \deprecated Use \c PCMK_XA_UPDATE_CLIENT instead #define XML_ATTR_UPDATE_CLIENT PCMK_XA_UPDATE_CLIENT //! \deprecated Use \c PCMK_XA_UPDATE_USER instead #define XML_ATTR_UPDATE_USER PCMK_XA_UPDATE_USER //! \deprecated Use \c PCMK_XA_REQUEST instead #define XML_ATTR_REQUEST PCMK_XA_REQUEST //! \deprecated Do not use #define XML_ATTR_RESPONSE "response" //! \deprecated Use \c PCMK_XA_UNAME instead #define XML_ATTR_UNAME PCMK_XA_UNAME //! \deprecated Use \c PCMK_XA_REFERENCE instead #define XML_ATTR_REFERENCE PCMK_XA_REFERENCE //! \deprecated Use \c PCMK_XA_REFERENCE instead #define XML_ACL_ATTR_REF PCMK_XA_REFERENCE //! \deprecated Use \c PCMK_XA_REFERENCE instead #define F_CRM_REFERENCE PCMK_XA_REFERENCE //! \deprecated Do not use #define XML_ATTR_TRANSITION_MAGIC "transition-magic" //! \deprecated Do not use #define XML_ATTR_TRANSITION_KEY "transition-key" //! \deprecated Use \c PCMK_XA_INDEX instead #define XML_ATTR_STONITH_INDEX PCMK_XA_INDEX //! \deprecated Use \c PCMK_XA_TARGET instead #define XML_ATTR_STONITH_TARGET PCMK_XA_TARGET //! \deprecated Use \c PCMK_XA_TARGET_VALUE instead #define XML_ATTR_STONITH_TARGET_VALUE PCMK_XA_TARGET_VALUE //! \deprecated Use \c PCMK_XA_TARGET_PATTERN instead #define XML_ATTR_STONITH_TARGET_PATTERN PCMK_XA_TARGET_PATTERN //! \deprecated Use \c PCMK_XA_TARGET_ATTRIBUTE instead #define XML_ATTR_STONITH_TARGET_ATTRIBUTE PCMK_XA_TARGET_ATTRIBUTE //! \deprecated Use \c PCMK_XA_DEVICES instead #define XML_ATTR_STONITH_DEVICES PCMK_XA_DEVICES #ifndef F_ORIG //! \deprecated Do not use #define F_ORIG "src" #endif //! \deprecated Do not use #define F_CRM_HOST_FROM F_ORIG #ifndef F_SEQ //! \deprecated Do not use #define F_SEQ "seq" #endif #ifndef F_SUBTYPE //! \deprecated Do not use #define F_SUBTYPE "subt" #endif //! \deprecated Do not use #define F_CRM_MSG_TYPE F_SUBTYPE #ifndef F_TYPE //! \deprecated Do not use #define F_TYPE "t" #endif #ifndef F_CLIENTNAME //! \deprecated Do not use #define F_CLIENTNAME "cn" #endif #ifndef F_XML_TAGNAME //! \deprecated Do not use #define F_XML_TAGNAME "__name__" #endif //! \deprecated Use \c PCMK_VALUE_TRUE instead #define XML_BOOLEAN_TRUE PCMK_VALUE_TRUE //! \deprecated Use \c PCMK_VALUE_FALSE instead #define XML_BOOLEAN_FALSE PCMK_VALUE_FALSE //! \deprecated Do not use #define F_CRM_TASK "crm_task" //! \deprecated Do not use #define F_CRM_HOST_TO "crm_host_to" //! \deprecated Do not use #define F_CRM_SYS_TO "crm_sys_to" //! \deprecated Do not use #define F_CRM_SYS_FROM "crm_sys_from" //! \deprecated Use \c PCMK_XA_VERSION instead #define F_CRM_VERSION PCMK_XA_VERSION //! \deprecated Use \c PCMK_XA_ORIGIN instead #define F_CRM_ORIGIN PCMK_XA_ORIGIN //! \deprecated Do not use #define F_CRM_USER "crm_user" //! \deprecated Do not use #define F_CRM_JOIN_ID "join_id" //! \deprecated Do not use #define F_CRM_DC_LEAVING "dc-leaving" //! \deprecated Do not use #define F_CRM_ELECTION_ID "election-id" //! \deprecated Do not use #define F_CRM_ELECTION_AGE_S "election-age-sec" //! \deprecated Do not use #define F_CRM_ELECTION_AGE_US "election-age-nano-sec" //! \deprecated Do not use #define F_CRM_ELECTION_OWNER "election-owner" //! \deprecated Do not use #define F_CRM_TGRAPH "crm-tgraph-file" //! \deprecated Do not use #define F_CRM_TGRAPH_INPUT "crm-tgraph-in" //! \deprecated Do not use #define F_CRM_THROTTLE_MODE "crm-limit-mode" //! \deprecated Do not use #define F_CRM_THROTTLE_MAX "crm-limit-max" //! \deprecated Use \c PCMK_XA_RESULT instead #define XML_PING_ATTR_STATUS PCMK_XA_RESULT //! \deprecated Do not use #define XML_PING_ATTR_SYSFROM "crm_subsystem" //! \deprecated Do not use #define XML_PING_ATTR_CRMDSTATE "crmd_state" //! \deprecated Do not use #define XML_PING_ATTR_PACEMAKERDSTATE "pacemakerd_state" //! \deprecated Do not use #define XML_FAILCIB_ATTR_OBJTYPE "object_type" //! \deprecated Use \c PCMK_XA_OPERATION instead #define XML_FAILCIB_ATTR_OP PCMK_XA_OPERATION //! \deprecated Use \c PCMK_XA_OPERATION instead #define XML_LRM_ATTR_TASK PCMK_XA_OPERATION //! \deprecated Use \c PCMK_XA_OPERATION instead #define XML_EXPR_ATTR_OPERATION PCMK_XA_OPERATION //! \deprecated Use \c PCMK_XA_OPERATION instead #define XML_DIFF_OP PCMK_XA_OPERATION //! \deprecated Use \c PCMK_XA_REASON instead #define XML_FAILCIB_ATTR_REASON PCMK_XA_REASON //! \deprecated Use \c PCMK_META_TIMEOUT instead #define XML_ATTR_TIMEOUT PCMK_META_TIMEOUT //! \deprecated Use \c PCMK_META_TIMEOUT instead #define XML_ALERT_ATTR_TIMEOUT PCMK_META_TIMEOUT //! \deprecated Use \c PCMK_XA_PATH instead #define XML_ALERT_ATTR_PATH PCMK_XA_PATH //! \deprecated Use \c PCMK_XA_PATH instead #define XML_DIFF_PATH PCMK_XA_PATH //! \deprecated Use \c PCMK_META_TIMESTAMP_FORMAT instead #define XML_ALERT_ATTR_TSTAMP_FORMAT PCMK_META_TIMESTAMP_FORMAT //! \deprecated Use \c PCMK_META_INTERVAL instead #define XML_LRM_ATTR_INTERVAL PCMK_META_INTERVAL //! \deprecated Use \c PCMK_META_INTERVAL instead #define XML_LRM_ATTR_INTERVAL_MS PCMK_META_INTERVAL //! \deprecated Do not use #define XML_CIB_ATTR_REPLACE "replace" //! \deprecated Do not use #define XML_COLOC_ATTR_SOURCE_INSTANCE "rsc-instance" //! \deprecated Do not use #define XML_COLOC_ATTR_TARGET_INSTANCE "with-rsc-instance" //! \deprecated Use \c PCMK_META_ON_FAIL instead #define XML_OP_ATTR_ON_FAIL PCMK_META_ON_FAIL //! \deprecated Use \c PCMK_META_START_DELAY instead #define XML_OP_ATTR_START_DELAY PCMK_META_START_DELAY //! \deprecated Use \c PCMK_META_INTERVAL_ORIGIN instead #define XML_OP_ATTR_ORIGIN PCMK_META_INTERVAL_ORIGIN //! \deprecated Use \c PCMK_META_RECORD_PENDING instead #define XML_OP_ATTR_PENDING PCMK_META_RECORD_PENDING //! \deprecated Do not use #define XML_OP_ATTR_DIGESTS_ALL "digests-all" //! \deprecated Do not use #define XML_OP_ATTR_DIGESTS_SECURE "digests-secure" //! \deprecated Do not use #define XML_CIB_ATTR_PRIORITY "priority" //! \deprecated Do not use #define XML_LRM_ATTR_TASK_KEY "operation_key" //! \deprecated Do not use #define XML_LRM_ATTR_TARGET "on_node" //! \deprecated Do not use #define XML_LRM_ATTR_TARGET_UUID "on_node_uuid" //! \deprecated Do not use #define XML_ORDER_ATTR_FIRST_INSTANCE "first-instance" //! \deprecated Do not use #define XML_ORDER_ATTR_THEN_INSTANCE "then-instance" //! \deprecated Do not use #define XML_TAG_DIFF_ADDED "diff-added" //! \deprecated Do not use #define XML_TAG_DIFF_REMOVED "diff-removed" //! \deprecated Do not use #define XML_ATTR_TE_NOWAIT "op_no_wait" //! \deprecated Do not use #define XML_ATTR_TE_TARGET_RC "op_target_rc" //! \deprecated Do not use #define XML_LRM_ATTR_ROUTER_NODE "router_node" //! \deprecated Do not use #define XML_LRM_ATTR_RSCID "rsc-id" //! \deprecated Do not use #define XML_LRM_ATTR_OPSTATUS "op-status" //! \deprecated Do not use #define XML_LRM_ATTR_RC "rc-code" //! \deprecated Do not use #define XML_LRM_ATTR_CALLID "call-id" //! \deprecated Do not use #define XML_LRM_ATTR_OP_DIGEST "op-digest" //! \deprecated Do not use #define XML_LRM_ATTR_OP_RESTART "op-force-restart" //! \deprecated Do not use #define XML_LRM_ATTR_OP_SECURE "op-secure-params" //! \deprecated Do not use #define XML_LRM_ATTR_RESTART_DIGEST "op-restart-digest" //! \deprecated Do not use #define XML_LRM_ATTR_SECURE_DIGEST "op-secure-digest" //! \deprecated Use \c PCMK_XA_EXIT_REASON instead #define XML_LRM_ATTR_EXIT_REASON PCMK_XA_EXIT_REASON //! \deprecated Use \c PCMK_XA_LAST_RC_CHANGE instead #define XML_RSC_OP_LAST_CHANGE PCMK_XA_LAST_RC_CHANGE //! \deprecated Use \c PCMK_XA_EXEC_TIME instead #define XML_RSC_OP_T_EXEC PCMK_XA_EXEC_TIME //! \deprecated Use \c PCMK_XA_QUEUE_TIME instead #define XML_RSC_OP_T_QUEUE PCMK_XA_QUEUE_TIME //! \deprecated Do not use #define XML_LRM_ATTR_MIGRATE_SOURCE "migrate_source" //! \deprecated Do not use #define XML_LRM_ATTR_MIGRATE_TARGET "migrate_target" //! \deprecated Use \c PCMK_XA_SCORE instead #define XML_RULE_ATTR_SCORE PCMK_XA_SCORE //! \deprecated Use \c PCMK_XA_SCORE_ATTRIBUTE instead #define XML_RULE_ATTR_SCORE_ATTRIBUTE PCMK_XA_SCORE_ATTRIBUTE //! \deprecated Use \c PCMK_XE_ROLE instead #define XML_ACL_TAG_ROLE_REF PCMK_XE_ROLE //! \deprecated Use \c PCMK_XA_ROLE instead #define XML_RULE_ATTR_ROLE PCMK_XA_ROLE //! \deprecated Use \c PCMK_XA_BOOLEAN_OP instead #define XML_RULE_ATTR_BOOLEAN_OP PCMK_XA_BOOLEAN_OP //! \deprecated Use \c PCMK_XA_ATTRIBUTE instead #define XML_EXPR_ATTR_ATTRIBUTE PCMK_XA_ATTRIBUTE //! \deprecated Use \c PCMK_XA_ATTRIBUTE instead #define XML_ACL_ATTR_ATTRIBUTE PCMK_XA_ATTRIBUTE //! \deprecated Use \c PCMK_XA_VALUE_SOURCE instead #define XML_EXPR_ATTR_VALUE_SOURCE PCMK_XA_VALUE_SOURCE //! \deprecated Use \c PCMK_XA_SYMMETRICAL instead #define XML_CONS_ATTR_SYMMETRICAL PCMK_XA_SYMMETRICAL //! \deprecated Use \c PCMK_XA_RESOURCE_DISCOVERY instead #define XML_LOCATION_ATTR_DISCOVERY PCMK_XA_RESOURCE_DISCOVERY //! \deprecated Use \c PCMK_XE_PARAMETERS instead #define XML_TAG_PARAMS PCMK_XE_PARAMETERS //! \deprecated Use \c PCMK_XA_RSC instead #define XML_COLOC_ATTR_SOURCE PCMK_XA_RSC //! \deprecated Use \c PCMK_XA_RSC instead #define XML_LOC_ATTR_SOURCE PCMK_XA_RSC //! \deprecated Use \c PCMK_XA_RSC_ROLE instead #define XML_COLOC_ATTR_SOURCE_ROLE PCMK_XA_RSC_ROLE //! \deprecated Use \c PCMK_XA_WITH_RSC instead #define XML_COLOC_ATTR_TARGET PCMK_XA_WITH_RSC //! \deprecated Use \c PCMK_XA_WITH_RSC_ROLE instead #define XML_COLOC_ATTR_TARGET_ROLE PCMK_XA_WITH_RSC_ROLE //! \deprecated Use \c PCMK_XA_NODE_ATTRIBUTE instead #define XML_COLOC_ATTR_NODE_ATTR PCMK_XA_NODE_ATTRIBUTE //! \deprecated Use \c PCMK_XA_INFLUENCE instead #define XML_COLOC_ATTR_INFLUENCE PCMK_XA_INFLUENCE //! \deprecated Use \c PCMK_XA_RSC_PATTERN instead #define XML_LOC_ATTR_SOURCE_PATTERN PCMK_XA_RSC_PATTERN //! \deprecated Use \c PCMK_XA_FIRST instead #define XML_ORDER_ATTR_FIRST PCMK_XA_FIRST //! \deprecated Use \c PCMK_XA_THEN instead #define XML_ORDER_ATTR_THEN PCMK_XA_THEN //! \deprecated Use \c PCMK_XA_FIRST_ACTION instead #define XML_ORDER_ATTR_FIRST_ACTION PCMK_XA_FIRST_ACTION //! \deprecated Use \c PCMK_XA_THEN_ACTION instead #define XML_ORDER_ATTR_THEN_ACTION PCMK_XA_THEN_ACTION //! \deprecated Use \c PCMK_XA_KIND instead #define XML_ORDER_ATTR_KIND PCMK_XA_KIND //! \deprecated Use \c PCMK_XA_KIND instead #define XML_ACL_ATTR_KIND PCMK_XA_KIND //! \deprecated Use \c PCMK_XA_TICKET instead #define XML_TICKET_ATTR_TICKET PCMK_XA_TICKET //! \deprecated Use \c PCMK_XA_LOSS_POLICY instead #define XML_TICKET_ATTR_LOSS_POLICY PCMK_XA_LOSS_POLICY //! \deprecated Do not use #define XML_ACL_ATTR_REFv1 "ref" //! \deprecated Use \c PCMK_XA_OBJECT_TYPE instead #define XML_ACL_ATTR_TAG PCMK_XA_OBJECT_TYPE //! \deprecated Do not use #define XML_ACL_ATTR_TAGv1 "tag" //! \deprecated Use \c PCMK_XA_XPATH instead #define XML_ACL_ATTR_XPATH PCMK_XA_XPATH //! \deprecated Do not use #define XML_CRM_TAG_PING "ping_response" //! \deprecated Use \c PCMK_XE_CIB instead #define XML_TAG_CIB PCMK_XE_CIB //! \deprecated Use \c PCMK_XE_CONFIGURATION instead #define XML_CIB_TAG_CONFIGURATION PCMK_XE_CONFIGURATION //! \deprecated Use \c PCMK_XE_STATUS instead #define XML_CIB_TAG_STATUS PCMK_XE_STATUS //! \deprecated Use \c PCMK_XE_RESOURCES instead #define XML_CIB_TAG_RESOURCES PCMK_XE_RESOURCES //! \deprecated Use \c PCMK_XE_NODES instead #define XML_CIB_TAG_NODES PCMK_XE_NODES //! \deprecated Use \c PCMK_XE_CONSTRAINTS instead #define XML_CIB_TAG_CONSTRAINTS PCMK_XE_CONSTRAINTS //! \deprecated Use \c PCMK_XE_CRM_CONFIG instead #define XML_CIB_TAG_CRMCONFIG PCMK_XE_CRM_CONFIG //! \deprecated Use \c PCMK_XE_OP_DEFAULTS instead #define XML_CIB_TAG_OPCONFIG PCMK_XE_OP_DEFAULTS //! \deprecated Use \c PCMK_XE_RSC_DEFAULTS instead #define XML_CIB_TAG_RSCCONFIG PCMK_XE_RSC_DEFAULTS //! \deprecated Use \c PCMK_XE_ACLS instead #define XML_CIB_TAG_ACLS PCMK_XE_ACLS //! \deprecated Use \c PCMK_XE_ALERTS instead #define XML_CIB_TAG_ALERTS PCMK_XE_ALERTS //! \deprecated Use \c PCMK_XE_ALERT instead #define XML_CIB_TAG_ALERT PCMK_XE_ALERT //! \deprecated Use \c PCMK_XE_RECIPIENT instead #define XML_CIB_TAG_ALERT_RECIPIENT PCMK_XE_RECIPIENT //! \deprecated Use \c PCMK_XE_SELECT instead #define XML_CIB_TAG_ALERT_SELECT PCMK_XE_SELECT //! \deprecated Use \c PCMK_XE_SELECT_ATTRIBUTES instead #define XML_CIB_TAG_ALERT_ATTRIBUTES PCMK_XE_SELECT_ATTRIBUTES //! \deprecated Use \c PCMK_XE_SELECT_FENCING instead #define XML_CIB_TAG_ALERT_FENCING PCMK_XE_SELECT_FENCING //! \deprecated Use \c PCMK_XE_SELECT_NODES instead #define XML_CIB_TAG_ALERT_NODES PCMK_XE_SELECT_NODES //! \deprecated Use \c PCMK_XE_SELECT_RESOURCES instead #define XML_CIB_TAG_ALERT_RESOURCES PCMK_XE_SELECT_RESOURCES //! \deprecated Use \c PCMK_XE_ATTRIBUTE instead #define XML_CIB_TAG_ALERT_ATTR PCMK_XE_ATTRIBUTE //! \deprecated Do not use #define XML_CIB_TAG_STATE "node_state" //! \deprecated Use \c PCMK_XE_NODE instead #define XML_CIB_TAG_NODE PCMK_XE_NODE //! \deprecated Use \c PCMK_XE_NVPAIR instead #define XML_CIB_TAG_NVPAIR PCMK_XE_NVPAIR //! \deprecated Use \c PCMK_XE_CLUSTER_PROPERTY_SET instead #define XML_CIB_TAG_PROPSET PCMK_XE_CLUSTER_PROPERTY_SET //! \deprecated Use \c PCMK_XE_INSTANCE_ATTRIBUTES instead #define XML_TAG_ATTR_SETS PCMK_XE_INSTANCE_ATTRIBUTES //! \deprecated Use \c PCMK_XE_META_ATTRIBUTES instead #define XML_TAG_META_SETS PCMK_XE_META_ATTRIBUTES //! \deprecated Do not use #define XML_TAG_ATTRS "attributes" //! \deprecated Do not use #define XML_TAG_PARAM "param" //! \deprecated Use \c PCMK_XE_UTILIZATION instead #define XML_TAG_UTILIZATION PCMK_XE_UTILIZATION //! \deprecated Use \c PCMK_XE_RESOURCE_REF instead #define XML_TAG_RESOURCE_REF PCMK_XE_RESOURCE_REF //! \deprecated Use \c PCMK_XE_PRIMITIVE instead #define XML_CIB_TAG_RESOURCE PCMK_XE_PRIMITIVE //! \deprecated Use \c PCMK_XE_GROUP instead #define XML_CIB_TAG_GROUP PCMK_XE_GROUP //! \deprecated Use \c PCMK_XE_CLONE instead #define XML_CIB_TAG_INCARNATION PCMK_XE_CLONE //! \deprecated Use \c PCMK_XE_BUNDLE instead #define XML_CIB_TAG_CONTAINER PCMK_XE_BUNDLE //! \deprecated Use \c PCMK_XE_TEMPLATE instead #define XML_CIB_TAG_RSC_TEMPLATE PCMK_XE_TEMPLATE //! \deprecated Do not use #define XML_CIB_TAG_LRM "lrm" //! \deprecated Do not use #define XML_LRM_TAG_RESOURCES "lrm_resources" //! \deprecated Do not use #define XML_LRM_TAG_RESOURCE "lrm_resource" //! \deprecated Do not use #define XML_LRM_TAG_RSC_OP "lrm_rsc_op" //! \deprecated Do not use #define XML_TAG_GRAPH "transition_graph" //! \deprecated Do not use #define XML_GRAPH_TAG_RSC_OP "rsc_op" //! \deprecated Do not use #define XML_GRAPH_TAG_PSEUDO_EVENT "pseudo_event" //! \deprecated Do not use #define XML_GRAPH_TAG_CRM_EVENT "crm_event" //! \deprecated Do not use #define XML_GRAPH_TAG_DOWNED "downed" //! \deprecated Do not use #define XML_GRAPH_TAG_MAINTENANCE "maintenance" //! \deprecated Use \c PCMK_XE_RULE instead #define XML_TAG_RULE PCMK_XE_RULE //! \deprecated Use \c PCMK_XE_EXPRESSION instead #define XML_TAG_EXPRESSION PCMK_XE_EXPRESSION //! \deprecated Use \c PCMK_XE_RSC_COLOCATION instead #define XML_CONS_TAG_RSC_DEPEND PCMK_XE_RSC_COLOCATION //! \deprecated Use \c PCMK_XE_RSC_ORDER instead #define XML_CONS_TAG_RSC_ORDER PCMK_XE_RSC_ORDER //! \deprecated Use \c PCMK_XE_RSC_LOCATION instead #define XML_CONS_TAG_RSC_LOCATION PCMK_XE_RSC_LOCATION //! \deprecated Use \c PCMK_XE_RSC_TICKET instead #define XML_CONS_TAG_RSC_TICKET PCMK_XE_RSC_TICKET //! \deprecated Use \c PCMK_XE_RESOURCE_SET instead #define XML_CONS_TAG_RSC_SET PCMK_XE_RESOURCE_SET //! \deprecated Do not use #define XML_CIB_TAG_GENERATION_TUPPLE "generation_tuple" //! \deprecated Do not use #define XML_TAG_TRANSIENT_NODEATTRS "transient_attributes" //! \deprecated Use \c PCMK_XE_ACL_TARGET instead #define XML_ACL_TAG_USER PCMK_XE_ACL_TARGET //! \deprecated Do not use #define XML_ACL_TAG_USERv1 "acl_user" //! \deprecated Use \c PCMK_XE_ACL_GROUP instead #define XML_ACL_TAG_GROUP PCMK_XE_ACL_GROUP //! \deprecated Use \c PCMK_XE_ACL_ROLE instead #define XML_ACL_TAG_ROLE PCMK_XE_ACL_ROLE //! \deprecated Use \c PCMK_XE_ACL_PERMISSION instead #define XML_ACL_TAG_PERMISSION PCMK_XE_ACL_PERMISSION //! \deprecated Do not use #define XML_ACL_TAG_ROLE_REFv1 "role_ref" //! \deprecated Do not use #define XML_ACL_TAG_READ "read" //! \deprecated Do not use #define XML_ACL_TAG_WRITE "write" //! \deprecated Do not use #define XML_ACL_TAG_DENY "deny" //! \deprecated Use \c PCMK_XE_TICKETS instead #define XML_CIB_TAG_TICKETS PCMK_XE_TICKETS //! \deprecated Do not use #define XML_CIB_TAG_TICKET_STATE "ticket_state" //! \deprecated Use \c PCMK_XE_TAGS instead #define XML_CIB_TAG_TAGS PCMK_XE_TAGS //! \deprecated Use \c PCMK_XE_TAG instead #define XML_CIB_TAG_TAG PCMK_XE_TAG //! \deprecated Use \c PCMK_XE_OBJ_REF instead #define XML_CIB_TAG_OBJ_REF PCMK_XE_OBJ_REF //! \deprecated Use \c PCMK_XE_FENCING_TOPOLOGY instead #define XML_TAG_FENCING_TOPOLOGY PCMK_XE_FENCING_TOPOLOGY //! \deprecated Use \c PCMK_XE_FENCING_LEVEL instead #define XML_TAG_FENCING_LEVEL PCMK_XE_FENCING_LEVEL //! \deprecated Use \c PCMK_XE_DIFF instead #define XML_TAG_DIFF PCMK_XE_DIFF //! \deprecated Use \c PCMK_XE_VERSION instead #define XML_DIFF_VERSION PCMK_XE_VERSION //! \deprecated Use \c PCMK_XE_SOURCE instead #define XML_DIFF_VSOURCE PCMK_XE_SOURCE //! \deprecated Use \c PCMK_XE_TARGET instead #define XML_DIFF_VTARGET PCMK_XE_TARGET //! \deprecated Use \c PCMK_XE_CHANGE instead #define XML_DIFF_CHANGE PCMK_XE_CHANGE //! \deprecated Use \c PCMK_XE_CHANGE_LIST instead #define XML_DIFF_LIST PCMK_XE_CHANGE_LIST //! \deprecated Use \c PCMK_XE_CHANGE_ATTR instead #define XML_DIFF_ATTR PCMK_XE_CHANGE_ATTR //! \deprecated Use \c PCMK_XE_CHANGE_RESULT instead #define XML_DIFF_RESULT PCMK_XE_CHANGE_RESULT //! \deprecated Use \c PCMK_XE_POSITION instead #define XML_DIFF_POSITION PCMK_XE_POSITION //! \deprecated Do not use #define F_CRM_DATA "crm_xml" //! \deprecated Do not use #define XML_DIFF_MARKER "__crm_diff_marker__" //! \deprecated Do not use #define XML_TAG_FAILED "failed" //! \deprecated Do not use #define XML_TAG_OPTIONS "options" //! \deprecated Do not use #define XML_FAIL_TAG_CIB "failed_update" //! \deprecated Use \c PCMK_VALUE_CIB_BOOTSTRAP_OPTIONS instead #define CIB_OPTIONS_FIRST PCMK_VALUE_CIB_BOOTSTRAP_OPTIONS //! \deprecated Do not use #define XML_PING_ATTR_PACEMAKERDSTATE_INIT "init" //! \deprecated Do not use #define XML_PING_ATTR_PACEMAKERDSTATE_STARTINGDAEMONS "starting_daemons" //! \deprecated Do not use #define XML_PING_ATTR_PACEMAKERDSTATE_WAITPING "wait_for_ping" //! \deprecated Do not use #define XML_PING_ATTR_PACEMAKERDSTATE_RUNNING "running" //! \deprecated Do not use #define XML_PING_ATTR_PACEMAKERDSTATE_SHUTTINGDOWN "shutting_down" //! \deprecated Do not use #define XML_PING_ATTR_PACEMAKERDSTATE_SHUTDOWNCOMPLETE "shutdown_complete" //! \deprecated Do not use #define XML_PING_ATTR_PACEMAKERDSTATE_REMOTE "remote" #ifndef T_CRM //! \deprecated Do not use #define T_CRM "crmd" #endif #ifndef T_ATTRD //! \deprecated Do not use #define T_ATTRD "attrd" #endif //! \deprecated Do not use #define XML_CIB_TAG_SECTION_ALL "all" //! \deprecated Do not use #define XML_NODE_IS_REMOTE "remote_node" //! \deprecated Do not use #define XML_NODE_IS_FENCED "node_fenced" //! \deprecated Do not use #define XML_NODE_IS_MAINTENANCE "node_in_maintenance" //! \deprecated Do not use #define XML_CIB_ATTR_SHUTDOWN "shutdown" //! \deprecated Do not use #define XML_NODE_ATTR_RSC_DISCOVERY "resource-discovery-enabled" //! \deprecated Do not use #define ID(x) crm_element_value(x, PCMK_XA_ID) #ifdef __cplusplus } #endif #endif // PCMK__CRM_MSG_XML_COMPAT__H