A dumping ground.
More...
#include <crm_config.h>
#include <stdlib.h>
#include <glib.h>
#include <stdbool.h>
#include <string.h>
#include <libxml/tree.h>
#include <crm/common/actions.h>
#include <crm/common/cib.h>
#include <crm/common/logging.h>
#include <crm/common/util.h>
#include <crm/crm_compat.h>
Go to the source code of this file.
A dumping ground.
Definition in file crm.h.
◆ CRM_ATTR_CLUSTER_NAME
#define CRM_ATTR_CLUSTER_NAME "#cluster-name" |
◆ CRM_ATTR_DIGESTS_ALL
#define CRM_ATTR_DIGESTS_ALL "#digests-all" |
◆ CRM_ATTR_DIGESTS_SECURE
#define CRM_ATTR_DIGESTS_SECURE "#digests-secure" |
◆ CRM_ATTR_FEATURE_SET
#define CRM_ATTR_FEATURE_SET "#feature-set" |
◆ CRM_ATTR_ID
#define CRM_ATTR_ID "#id" |
◆ CRM_ATTR_IS_DC
#define CRM_ATTR_IS_DC "#is_dc" |
◆ CRM_ATTR_KIND
#define CRM_ATTR_KIND "#kind" |
◆ CRM_ATTR_PROTOCOL
#define CRM_ATTR_PROTOCOL "#attrd-protocol" |
◆ CRM_ATTR_ROLE
#define CRM_ATTR_ROLE "#role" |
◆ CRM_ATTR_SITE_NAME
#define CRM_ATTR_SITE_NAME "#site-name" |
◆ CRM_ATTR_UNAME
#define CRM_ATTR_UNAME "#uname" |
◆ CRM_ATTR_UNFENCED
#define CRM_ATTR_UNFENCED "#node-unfenced" |
◆ CRM_FEATURE_SET
#define CRM_FEATURE_SET "3.19.0" |
The CRM feature set assists with compatibility in mixed-version clusters. The major version number increases when nodes with different versions would not work (rolling upgrades are not allowed). The minor version number increases when mixed-version clusters are allowed only during rolling upgrades (a node with the oldest feature set will be elected DC). The minor-minor version number is ignored, but allows resource agents to detect cluster support for various features.
The feature set also affects the processing of old saved CIBs (such as for many scheduler regression tests).
Particular feature points currently tested by Pacemaker code:
>2.1: Operation updates include timing data >=3.0.5: XML v2 digests are created >=3.0.8: Peers do not need acks for cancellations >=3.0.9: DC will send its own shutdown request to all peers XML v2 patchsets are created by default >=3.0.13: Fail counts include operation name and interval >=3.2.0: DC supports PCMK_EXEC_INVALID and PCMK_EXEC_NOT_CONNECTED >=3.19.0: DC supports PCMK__CIB_REQUEST_COMMIT_TRANSACT
Definition at line 70 of file crm.h.
◆ CRM_INFINITY_S
#define CRM_INFINITY_S "INFINITY" |
Definition at line 85 of file crm.h.
◆ CRM_META
#define CRM_META "CRM_meta" |
Definition at line 79 of file crm.h.
◆ CRM_MINUS_INFINITY_S
Definition at line 87 of file crm.h.
◆ CRM_OP_CLEAR_FAILCOUNT
◆ CRM_OP_HELLO
#define CRM_OP_HELLO "hello" |
◆ CRM_OP_INVOKE_LRM
#define CRM_OP_INVOKE_LRM "lrm_invoke" |
◆ CRM_OP_IPC_FWD
#define CRM_OP_IPC_FWD "ipc_fwd" |
◆ CRM_OP_JOIN_ACKNAK
#define CRM_OP_JOIN_ACKNAK "join_ack_nack" |
◆ CRM_OP_JOIN_ANNOUNCE
#define CRM_OP_JOIN_ANNOUNCE "join_announce" |
◆ CRM_OP_JOIN_CONFIRM
#define CRM_OP_JOIN_CONFIRM "join_confirm" |
◆ CRM_OP_JOIN_OFFER
#define CRM_OP_JOIN_OFFER "join_offer" |
◆ CRM_OP_JOIN_REQUEST
#define CRM_OP_JOIN_REQUEST "join_request" |
◆ CRM_OP_LOCAL_SHUTDOWN
#define CRM_OP_LOCAL_SHUTDOWN "start_shutdown" |
◆ CRM_OP_LRM_DELETE
◆ CRM_OP_LRM_FAIL
#define CRM_OP_LRM_FAIL "lrm_fail" |
◆ CRM_OP_LRM_REFRESH
#define CRM_OP_LRM_REFRESH "lrm_refresh" |
Deprecated since 1.1.10.
Definition at line 147 of file crm.h.
◆ CRM_OP_MAINTENANCE_NODES
◆ CRM_OP_NODE_INFO
#define CRM_OP_NODE_INFO "node-info" |
◆ CRM_OP_NOOP
#define CRM_OP_NOOP "noop" |
◆ CRM_OP_NOVOTE
#define CRM_OP_NOVOTE "no-vote" |
◆ CRM_OP_PECALC
#define CRM_OP_PECALC "pe_calc" |
◆ CRM_OP_PING
#define CRM_OP_PING "ping" |
◆ CRM_OP_PROBED
#define CRM_OP_PROBED "probe_complete" |
◆ CRM_OP_QUIT
#define CRM_OP_QUIT "quit" |
◆ CRM_OP_REGISTER
#define CRM_OP_REGISTER "register" |
◆ CRM_OP_REMOTE_STATE
#define CRM_OP_REMOTE_STATE "remote_state" |
◆ CRM_OP_REPROBE
#define CRM_OP_REPROBE "probe_again" |
◆ CRM_OP_RM_NODE_CACHE
#define CRM_OP_RM_NODE_CACHE "rm_node_cache" |
◆ CRM_OP_SHUTDOWN
◆ CRM_OP_SHUTDOWN_REQ
#define CRM_OP_SHUTDOWN_REQ "req_shutdown" |
◆ CRM_OP_THROTTLE
#define CRM_OP_THROTTLE "throttle" |
◆ CRM_OP_VOTE
#define CRM_OP_VOTE "vote" |
◆ CRM_PLUS_INFINITY_S
Definition at line 86 of file crm.h.
◆ CRM_SCORE_INFINITY
#define CRM_SCORE_INFINITY 1000000 |
Definition at line 84 of file crm.h.
◆ CRM_SYSTEM_CIB
#define CRM_SYSTEM_CIB "cib" |
◆ CRM_SYSTEM_CRMD
#define CRM_SYSTEM_CRMD "crmd" |
◆ CRM_SYSTEM_DC
#define CRM_SYSTEM_DC "dc" |
◆ CRM_SYSTEM_DCIB
#define CRM_SYSTEM_DCIB "dcib" |
◆ CRM_SYSTEM_LRMD
#define CRM_SYSTEM_LRMD "lrmd" |
◆ CRM_SYSTEM_MCP
#define CRM_SYSTEM_MCP "pacemakerd" |
◆ CRM_SYSTEM_PENGINE
#define CRM_SYSTEM_PENGINE "pengine" |
◆ CRM_SYSTEM_STONITHD
#define CRM_SYSTEM_STONITHD "stonithd" |
◆ CRM_SYSTEM_TENGINE
#define CRM_SYSTEM_TENGINE "tengine" |
◆ CRMD_JOINSTATE_DOWN
#define CRMD_JOINSTATE_DOWN "down" |
◆ CRMD_JOINSTATE_MEMBER
#define CRMD_JOINSTATE_MEMBER "member" |
◆ CRMD_JOINSTATE_NACK
#define CRMD_JOINSTATE_NACK "banned" |
◆ CRMD_JOINSTATE_PENDING
#define CRMD_JOINSTATE_PENDING "pending" |
◆ INFINITY
Definition at line 98 of file crm.h.
◆ INFINITY_S
#define INFINITY_S "INFINITY" |
Definition at line 96 of file crm.h.
◆ MAX_NAME
Maximum length of a Corosync cluster node name (in bytes)
Definition at line 77 of file crm.h.
◆ MINUS_INFINITY_S
#define MINUS_INFINITY_S "-INFINITY" |
Definition at line 97 of file crm.h.
◆ PCMK_ALLOW_DEPRECATED
#define PCMK_ALLOW_DEPRECATED 1 |
Allow use of deprecated Pacemaker APIs.
By default, external code using Pacemaker headers is allowed to use deprecated Pacemaker APIs. If PCMK_ALLOW_DEPRECATED is defined to 0 before including any Pacemaker headers, deprecated APIs will be unusable. It is strongly recommended to leave this unchanged for production and release builds, to avoid breakage when users upgrade to new Pacemaker releases that deprecate more APIs. This should be defined to 0 only for development and testing builds when desiring to check for usage of currently deprecated APIs.
Definition at line 44 of file crm.h.
◆ crm_system_name