pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
compatibility.h File Reference
#include <crm/msg_xml.h>
#include <crm/pengine/pe_types.h>
Include dependency graph for compatibility.h:

Go to the source code of this file.

Macros

#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
 
#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
 
#define CS_USES_LIBQB   1
 
#define HAVE_CMAP   1
 
#define SUPPORT_CS_QUORUM   1
 
#define SUPPORT_AIS   1
 
#define AIS_COROSYNC   1
 
#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
 
#define is_openais_cluster()   is_corosync_cluster()
 
#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"
 
#define CRM_DTD_DIRECTORY   CRM_SCHEMA_DIRECTORY
 
#define DAEMON_RESPAWN_STOP   CRM_EX_FATAL
 
#define pcmk_err_panic   CRM_EX_PANIC
 
#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, XML_NVPAIR_ATTR_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, XML_ATTR_TSTAMP)
 
#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   "reason"
 
#define XML_FAILRES_ATTR_RESSTATUS   "resource_status"
 
#define XML_ATTR_RESULT   "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   "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   "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, XML_NVPAIR_ATTR_VALUE)
 
#define action_wrapper_s   pe_action_wrapper_s
 
#define add_cib_op_callback(cib, id, flag, data, fn)
 
#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
 
#define pe_master   pe_clone
 

Macro Definition Documentation

#define action_wrapper_s   pe_action_wrapper_s

Definition at line 171 of file compatibility.h.

#define ACTIVESTATUS   "active"

Definition at line 32 of file compatibility.h.

#define add_cib_op_callback (   cib,
  id,
  flag,
  data,
  fn 
)
Value:
do { \
cib->cmds->register_callback(cib, id, 120, flag, data, #fn, fn); \
} while(0)
char data[0]
Definition: cpg.c:55

Definition at line 172 of file compatibility.h.

#define AIS_COROSYNC   1

Definition at line 65 of file compatibility.h.

#define ais_fd_sync   -1

Definition at line 58 of file compatibility.h.

#define APPNAME_LEN   256

Definition at line 101 of file compatibility.h.

#define cib_default_options   = cib_none

Definition at line 175 of file compatibility.h.

#define crm_class_members   1

Definition at line 51 of file compatibility.h.

#define crm_class_nodeid   3

Definition at line 53 of file compatibility.h.

#define crm_class_notify   2

Definition at line 52 of file compatibility.h.

#define crm_class_quorum   5

Definition at line 55 of file compatibility.h.

#define crm_class_rmpeer   4

Definition at line 54 of file compatibility.h.

#define CRM_DTD_DIRECTORY   CRM_SCHEMA_DIRECTORY

Definition at line 93 of file compatibility.h.

#define crm_element_value_const   crm_element_value

Definition at line 178 of file compatibility.h.

#define crm_element_value_const_int   crm_element_value_int

Definition at line 179 of file compatibility.h.

#define CRM_LEGACY_CONFIG_DIR   "/var/lib/heartbeat/crm"

Definition at line 39 of file compatibility.h.

#define CRM_NODE_ACTIVE   CRM_NODE_MEMBER

Definition at line 102 of file compatibility.h.

#define CRM_NODE_EVICTED   "evicted"

Definition at line 38 of file compatibility.h.

#define CRM_OP_ABORT   "abort"

Definition at line 106 of file compatibility.h.

#define CRM_OP_DEBUG_DOWN   "debug_dec"

Definition at line 108 of file compatibility.h.

#define CRM_OP_DEBUG_UP   "debug_inc"

Definition at line 107 of file compatibility.h.

#define CRM_OP_DIE   "die_no_respawn"

Definition at line 103 of file compatibility.h.

#define CRM_OP_EVENTCC   "event_cc"

Definition at line 109 of file compatibility.h.

#define CRM_OP_HBEAT   "dc_beat"

Definition at line 105 of file compatibility.h.

#define CRM_OP_NODES_PROBED   "probe_nodes_complete"

Definition at line 116 of file compatibility.h.

#define CRM_OP_RETRIVE_CIB   "retrieve_cib"

Definition at line 104 of file compatibility.h.

#define CRM_OP_TE_HALT   "te_halt"

Definition at line 112 of file compatibility.h.

#define CRM_OP_TEABORT   "te_abort"

Definition at line 110 of file compatibility.h.

#define CRM_OP_TEABORTED   "te_abort_confirmed"

Definition at line 111 of file compatibility.h.

#define CRM_OP_TECOMPLETE   "te_complete"

Definition at line 113 of file compatibility.h.

#define CRM_OP_TETIMEOUT   "te_timeout"

Definition at line 114 of file compatibility.h.

#define CRM_OP_TRANSITION   "transition"

Definition at line 115 of file compatibility.h.

#define crm_remote_baremetal   0x0004

Definition at line 176 of file compatibility.h.

#define crm_remote_container   0x0002

Definition at line 177 of file compatibility.h.

#define CRM_SERVICE   PCMK_SERVICE_ID

Definition at line 49 of file compatibility.h.

#define CS_USES_LIBQB   1

Definition at line 61 of file compatibility.h.

#define DAEMON_RESPAWN_STOP   CRM_EX_FATAL

Definition at line 97 of file compatibility.h.

#define DEADSTATUS   "dead"

Definition at line 33 of file compatibility.h.

#define DOT_ALL_FSA_INPUTS   1

Definition at line 117 of file compatibility.h.

#define DOT_FSA_ACTIONS   1

Definition at line 118 of file compatibility.h.

#define F_LRMD_CANCEL_CALLID   "lrmd_cancel_callid"

Definition at line 119 of file compatibility.h.

#define F_LRMD_IPC_PROXY_NODE   "lrmd_ipc_proxy_node"

Definition at line 121 of file compatibility.h.

#define F_LRMD_RSC_METADATA   "lrmd_rsc_metadata_res"

Definition at line 120 of file compatibility.h.

#define HA_VARLIBHBDIR   "/var/lib/heartbeat"

Definition at line 40 of file compatibility.h.

#define HAVE_CMAP   1

Definition at line 62 of file compatibility.h.

#define HAVE_CONFDB   0

Definition at line 68 of file compatibility.h.

#define INSTANCE (   x)    crm_element_value(x, XML_CIB_ATTR_INSTANCE)

Definition at line 122 of file compatibility.h.

#define is_classic_ais_cluster ( )    0

Definition at line 72 of file compatibility.h.

#define is_cman_cluster ( )    0

Definition at line 73 of file compatibility.h.

#define is_openais_cluster ( )    is_corosync_cluster()

Definition at line 76 of file compatibility.h.

#define JOINSTATUS   "join"

Definition at line 35 of file compatibility.h.

#define LEAVESTATUS   "leave"

Definition at line 36 of file compatibility.h.

#define LOG_DEBUG_2   LOG_TRACE

Definition at line 123 of file compatibility.h.

#define LOG_DEBUG_3   LOG_TRACE

Definition at line 124 of file compatibility.h.

#define LOG_DEBUG_4   LOG_TRACE

Definition at line 125 of file compatibility.h.

#define LOG_DEBUG_5   LOG_TRACE

Definition at line 126 of file compatibility.h.

#define LOG_DEBUG_6   LOG_TRACE

Definition at line 127 of file compatibility.h.

#define LRMD_OP_RSC_CHK_REG   "lrmd_rsc_check_register"

Definition at line 128 of file compatibility.h.

#define MAX_IPC_FAIL   5

Definition at line 129 of file compatibility.h.

#define MSG_LOG   1

Definition at line 131 of file compatibility.h.

#define n_object_classes   3

Definition at line 180 of file compatibility.h.

#define NAME (   x)    crm_element_value(x, XML_NVPAIR_ATTR_NAME)

Definition at line 130 of file compatibility.h.

#define no_quorum_policy_e   pe_quorum_policy

Definition at line 181 of file compatibility.h.

#define node_s   pe_node_s

Definition at line 182 of file compatibility.h.

#define node_score_infinity   1000000

Definition at line 194 of file compatibility.h.

#define node_shared_s   pe_node_shared_s

Definition at line 183 of file compatibility.h.

#define NORMALNODE   "normal"

Definition at line 37 of file compatibility.h.

#define pcmk_cluster_classic_ais   0x0010

Definition at line 56 of file compatibility.h.

#define pcmk_cluster_cman   0x0040

Definition at line 57 of file compatibility.h.

#define pcmk_cluster_heartbeat   0x0004

Definition at line 41 of file compatibility.h.

#define pcmk_err_panic   CRM_EX_PANIC

Definition at line 98 of file compatibility.h.

#define PCMK_SERVICE_ID   9

Definition at line 48 of file compatibility.h.

#define pe_action_failure_is_fatal   0x00020

Definition at line 184 of file compatibility.h.

#define pe_master   pe_clone

Definition at line 199 of file compatibility.h.

#define PE_OBJ_T_GROUP   "group"

Definition at line 133 of file compatibility.h.

#define PE_OBJ_T_INCARNATION   "clone"

Definition at line 134 of file compatibility.h.

#define PE_OBJ_T_MASTER   "master"

Definition at line 135 of file compatibility.h.

#define PE_OBJ_T_NATIVE   "native"

Definition at line 132 of file compatibility.h.

#define pe_rsc_have_unfencing   0x80000000ULL

Definition at line 190 of file compatibility.h.

#define pe_rsc_migrating   0x00400000ULL

Definition at line 188 of file compatibility.h.

#define pe_rsc_munging   0x00000800ULL

Definition at line 185 of file compatibility.h.

#define pe_rsc_shutdown   0x00020000ULL

Definition at line 187 of file compatibility.h.

#define pe_rsc_try_reload   0x00001000ULL

Definition at line 186 of file compatibility.h.

#define pe_rsc_unexpectedly_running   0x02000000ULL

Definition at line 189 of file compatibility.h.

#define PINGSTATUS   "ping"

Definition at line 34 of file compatibility.h.

#define resource_s   pe_resource_s

Definition at line 191 of file compatibility.h.

#define SERVICE_SCRIPT   "/sbin/service"

Definition at line 136 of file compatibility.h.

#define SOCKET_LEN   1024

Definition at line 137 of file compatibility.h.

#define SUPPORT_AIS   1

Definition at line 64 of file compatibility.h.

#define SUPPORT_CMAN   0

Definition at line 69 of file compatibility.h.

#define SUPPORT_CS_QUORUM   1

Definition at line 63 of file compatibility.h.

#define SUPPORT_PLUGIN   0

Definition at line 70 of file compatibility.h.

#define SUPPORT_STONITH_CONFIG   0

Definition at line 71 of file compatibility.h.

#define ticket_s   pe_ticket_s

Definition at line 192 of file compatibility.h.

#define TSTAMP (   x)    crm_element_value(x, XML_ATTR_TSTAMP)

Definition at line 138 of file compatibility.h.

#define VALUE (   x)    crm_element_value(x, XML_NVPAIR_ATTR_VALUE)

Definition at line 170 of file compatibility.h.

#define XML_ATTR_DC   "is_dc"

Definition at line 143 of file compatibility.h.

#define XML_ATTR_EXPECTED_VOTES   "expected-quorum-votes"

Definition at line 50 of file compatibility.h.

#define XML_ATTR_FILTER_ID   "id-filter"

Definition at line 141 of file compatibility.h.

#define XML_ATTR_FILTER_PRIORITY   "priority-filter"

Definition at line 142 of file compatibility.h.

#define XML_ATTR_FILTER_TYPE   "type-filter"

Definition at line 140 of file compatibility.h.

#define XML_ATTR_LRM_PROBE   "lrm-is-probe"

Definition at line 168 of file compatibility.h.

#define XML_ATTR_RESULT   "result"

Definition at line 150 of file compatibility.h.

#define XML_ATTR_SECTION   "section"

Definition at line 151 of file compatibility.h.

#define XML_ATTR_TAGNAME   F_XML_TAGNAME

Definition at line 139 of file compatibility.h.

#define XML_ATTR_TE_ALLOWFAIL   "op_allow_fail"

Definition at line 169 of file compatibility.h.

#define XML_CIB_ATTR_CLEAR   "clear_on"

Definition at line 162 of file compatibility.h.

#define XML_CIB_ATTR_HEALTH   "health"

Definition at line 160 of file compatibility.h.

#define XML_CIB_ATTR_STANDBY   "standby"

Definition at line 164 of file compatibility.h.

#define XML_CIB_ATTR_STONITH   "stonith"

Definition at line 163 of file compatibility.h.

#define XML_CIB_ATTR_WEIGHT   "weight"

Definition at line 161 of file compatibility.h.

#define XML_CIB_TAG_CONSTRAINT   "constraint"

Definition at line 153 of file compatibility.h.

#define XML_CIB_TAG_DOMAIN   "domain"

Definition at line 152 of file compatibility.h.

#define XML_FAIL_TAG_RESOURCE   "failed_resource"

Definition at line 146 of file compatibility.h.

#define XML_FAILRES_ATTR_REASON   "reason"

Definition at line 148 of file compatibility.h.

#define XML_FAILRES_ATTR_RESID   "resource_id"

Definition at line 147 of file compatibility.h.

#define XML_FAILRES_ATTR_RESSTATUS   "resource_status"

Definition at line 149 of file compatibility.h.

#define XML_LRM_TAG_AGENT   "lrm_agent"

Definition at line 158 of file compatibility.h.

#define XML_LRM_TAG_AGENTS   "lrm_agents"

Definition at line 157 of file compatibility.h.

#define XML_LRM_TAG_ATTRIBUTES   "attributes"

Definition at line 159 of file compatibility.h.

#define XML_MSG_TAG   "crm_message"

Definition at line 144 of file compatibility.h.

#define XML_MSG_TAG_DATA   "msg_data"

Definition at line 145 of file compatibility.h.

#define XML_NODE_ATTR_STATE   "state"

Definition at line 167 of file compatibility.h.

#define XML_OP_ATTR_DEPENDENT   "dependent-on"

Definition at line 156 of file compatibility.h.

#define XML_RSC_ATTR_ISOLATION   "isolation"

Definition at line 88 of file compatibility.h.

#define XML_RSC_ATTR_ISOLATION_HOST   "isolation-host"

Definition at line 87 of file compatibility.h.

#define XML_RSC_ATTR_ISOLATION_INSTANCE   "isolation-instance"

Definition at line 85 of file compatibility.h.

#define XML_RSC_ATTR_ISOLATION_WRAPPER   "isolation-wrapper"

Definition at line 86 of file compatibility.h.

#define XML_RSC_ATTR_PRIORITY   "priority"

Definition at line 155 of file compatibility.h.

#define XML_RSC_ATTR_STATE   "clone-state"

Definition at line 154 of file compatibility.h.

#define XML_RULE_ATTR_RESULT   "result"

Definition at line 166 of file compatibility.h.

#define XML_RULE_ATTR_SCORE_MANGLED   "score-attribute-mangled"

Definition at line 165 of file compatibility.h.