10 #ifndef PCMK__CRM_CRM__H 11 # define PCMK__CRM_CRM__H 20 # include <libxml/tree.h> 32 #ifndef PCMK_ALLOW_DEPRECATED 44 #define PCMK_ALLOW_DEPRECATED 1 69 # define CRM_FEATURE_SET "3.16.1" 78 # define CRM_META "CRM_meta" 85 # define CRM_SCORE_INFINITY 1000000 86 # define CRM_INFINITY_S "INFINITY" 87 # define CRM_PLUS_INFINITY_S "+" CRM_INFINITY_S 88 # define CRM_MINUS_INFINITY_S "-" CRM_INFINITY_S 97 # define INFINITY_S "INFINITY" 98 # define MINUS_INFINITY_S "-INFINITY" 99 # define INFINITY 1000000 102 # define CRM_SYSTEM_DC "dc" 103 #define CRM_SYSTEM_DCIB "dcib" // Primary instance of CIB manager 104 # define CRM_SYSTEM_CIB "cib" 105 # define CRM_SYSTEM_CRMD "crmd" 106 # define CRM_SYSTEM_LRMD "lrmd" 107 # define CRM_SYSTEM_PENGINE "pengine" 108 # define CRM_SYSTEM_TENGINE "tengine" 109 # define CRM_SYSTEM_STONITHD "stonithd" 110 # define CRM_SYSTEM_MCP "pacemakerd" 113 # define CRM_ATTR_UNAME "#uname" 114 # define CRM_ATTR_ID "#id" 115 # define CRM_ATTR_KIND "#kind" 116 # define CRM_ATTR_ROLE "#role" 117 # define CRM_ATTR_IS_DC "#is_dc" 118 # define CRM_ATTR_CLUSTER_NAME "#cluster-name" 119 # define CRM_ATTR_SITE_NAME "#site-name" 120 # define CRM_ATTR_UNFENCED "#node-unfenced" 121 # define CRM_ATTR_DIGESTS_ALL "#digests-all" 122 # define CRM_ATTR_DIGESTS_SECURE "#digests-secure" 123 # define CRM_ATTR_PROTOCOL "#attrd-protocol" 124 # define CRM_ATTR_FEATURE_SET "#feature-set" 127 # define CRM_OP_NOOP "noop" 128 # define CRM_OP_JOIN_ANNOUNCE "join_announce" 129 # define CRM_OP_JOIN_OFFER "join_offer" 130 # define CRM_OP_JOIN_REQUEST "join_request" 131 # define CRM_OP_JOIN_ACKNAK "join_ack_nack" 132 # define CRM_OP_JOIN_CONFIRM "join_confirm" 133 # define CRM_OP_PING "ping" 134 # define CRM_OP_NODE_INFO "node-info" 135 # define CRM_OP_THROTTLE "throttle" 136 # define CRM_OP_VOTE "vote" 137 # define CRM_OP_NOVOTE "no-vote" 138 # define CRM_OP_HELLO "hello" 139 # define CRM_OP_PECALC "pe_calc" 140 # define CRM_OP_QUIT "quit" 141 # define CRM_OP_LOCAL_SHUTDOWN "start_shutdown" 142 # define CRM_OP_SHUTDOWN_REQ "req_shutdown" 143 # define CRM_OP_SHUTDOWN "do_shutdown" 144 # define CRM_OP_FENCE "stonith" 145 # define CRM_OP_REGISTER "register" 146 # define CRM_OP_IPC_FWD "ipc_fwd" 147 # define CRM_OP_INVOKE_LRM "lrm_invoke" 148 # define CRM_OP_LRM_REFRESH "lrm_refresh" 149 # define CRM_OP_LRM_DELETE "lrm_delete" 150 # define CRM_OP_LRM_FAIL "lrm_fail" 151 # define CRM_OP_PROBED "probe_complete" 152 # define CRM_OP_REPROBE "probe_again" 153 # define CRM_OP_CLEAR_FAILCOUNT "clear_failcount" 154 # define CRM_OP_REMOTE_STATE "remote_state" 155 # define CRM_OP_RELAXED_SET "one-or-more" 156 # define CRM_OP_RELAXED_CLONE "clone-one-or-more" 157 # define CRM_OP_RM_NODE_CACHE "rm_node_cache" 158 # define CRM_OP_MAINTENANCE_NODES "maintenance_nodes" 161 # define CRMD_JOINSTATE_DOWN "down" 162 # define CRMD_JOINSTATE_PENDING "pending" 163 # define CRMD_JOINSTATE_MEMBER "member" 164 # define CRMD_JOINSTATE_NACK "banned" 166 # define CRMD_ACTION_DELETE "delete" 167 # define CRMD_ACTION_CANCEL "cancel" 169 # define CRMD_ACTION_RELOAD "reload" 170 # define CRMD_ACTION_RELOAD_AGENT "reload-agent" 171 # define CRMD_ACTION_MIGRATE "migrate_to" 172 # define CRMD_ACTION_MIGRATED "migrate_from" 174 # define CRMD_ACTION_START "start" 175 # define CRMD_ACTION_STARTED "running" 177 # define CRMD_ACTION_STOP "stop" 178 # define CRMD_ACTION_STOPPED "stopped" 180 # define CRMD_ACTION_PROMOTE "promote" 181 # define CRMD_ACTION_PROMOTED "promoted" 182 # define CRMD_ACTION_DEMOTE "demote" 183 # define CRMD_ACTION_DEMOTED "demoted" 185 # define CRMD_ACTION_NOTIFY "notify" 186 # define CRMD_ACTION_NOTIFIED "notified" 188 # define CRMD_ACTION_STATUS "monitor" 189 # define CRMD_ACTION_METADATA "meta-data" 190 # define CRMD_METADATA_CALL_TIMEOUT 30000 193 # define RSC_DELETE CRMD_ACTION_DELETE 194 # define RSC_CANCEL CRMD_ACTION_CANCEL 196 # define RSC_MIGRATE CRMD_ACTION_MIGRATE 197 # define RSC_MIGRATED CRMD_ACTION_MIGRATED 199 # define RSC_START CRMD_ACTION_START 200 # define RSC_STARTED CRMD_ACTION_STARTED 202 # define RSC_STOP CRMD_ACTION_STOP 203 # define RSC_STOPPED CRMD_ACTION_STOPPED 205 # define RSC_PROMOTE CRMD_ACTION_PROMOTE 206 # define RSC_PROMOTED CRMD_ACTION_PROMOTED 207 # define RSC_DEMOTE CRMD_ACTION_DEMOTE 208 # define RSC_DEMOTED CRMD_ACTION_DEMOTED 210 # define RSC_NOTIFY CRMD_ACTION_NOTIFY 211 # define RSC_NOTIFIED CRMD_ACTION_NOTIFIED 213 # define RSC_STATUS CRMD_ACTION_STATUS 214 # define RSC_METADATA CRMD_ACTION_METADATA 221 static inline const char *
222 crm_action_str(
const char *task, guint interval_ms) {
223 if ((task != NULL) && (interval_ms == 0)
230 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
Deprecated Pacemaker utilities.
Wrappers for and extensions to libqb logging.