 |
pacemaker
2.0.1-9e909a5bdd
Scalable High-Availability cluster resource manager
|
Go to the documentation of this file.
8 #ifndef STONITH_NG_INTERNAL__H
9 # define STONITH_NG_INTERNAL__H
14 struct stonith_action_s;
22 GHashTable * device_args, GHashTable * port_map);
30 void (*done) (GPid
pid,
int rc,
const char *output,
36 const char *attr,
const char *value,
44 const char *rsc_provides);
46 # define ST_LEVEL_MAX 10
48 # define F_STONITH_CLIENTID "st_clientid"
49 # define F_STONITH_CALLOPTS "st_callopt"
50 # define F_STONITH_CALLID "st_callid"
51 # define F_STONITH_CALLDATA "st_calldata"
52 # define F_STONITH_OPERATION "st_op"
53 # define F_STONITH_TARGET "st_target"
54 # define F_STONITH_REMOTE_OP_ID "st_remote_op"
55 # define F_STONITH_RC "st_rc"
57 # define F_STONITH_TIMEOUT "st_timeout"
58 # define F_STONITH_TOLERANCE "st_tolerance"
60 # define F_STONITH_ACTION_TIMEOUT "st_action_timeout"
62 # define F_STONITH_ACTION_DISALLOWED "st_action_disallowed"
64 # define F_STONITH_DELAY_MAX "st_delay_max"
66 # define F_STONITH_DELAY_BASE "st_delay_base"
69 # define F_STONITH_DEVICE_VERIFIED "st_monitor_verified"
71 # define F_STONITH_DEVICE_REQUIRED "st_required"
73 # define F_STONITH_AVAILABLE_DEVICES "st-available-devices"
74 # define F_STONITH_CALLBACK_TOKEN "st_async_id"
75 # define F_STONITH_CLIENTNAME "st_clientname"
76 # define F_STONITH_CLIENTNODE "st_clientnode"
77 # define F_STONITH_NOTIFY_ACTIVATE "st_notify_activate"
78 # define F_STONITH_NOTIFY_DEACTIVATE "st_notify_deactivate"
79 # define F_STONITH_DELEGATE "st_delegate"
84 # define F_STONITH_ORIGIN "st_origin"
85 # define F_STONITH_HISTORY_LIST "st_history"
86 # define F_STONITH_DATE "st_date"
87 # define F_STONITH_STATE "st_state"
88 # define F_STONITH_ACTIVE "st_active"
89 # define F_STONITH_DIFFERENTIAL "st_differential"
91 # define F_STONITH_DEVICE "st_device_id"
92 # define F_STONITH_ACTION "st_device_action"
93 # define F_STONITH_MODE "st_mode"
95 # define T_STONITH_NG "stonith-ng"
96 # define T_STONITH_REPLY "st-reply"
100 # define T_STONITH_TIMEOUT_VALUE "st-async-timeout-value"
101 # define T_STONITH_NOTIFY "st_notify"
103 # define STONITH_ATTR_HOSTARG "pcmk_host_argument"
104 # define STONITH_ATTR_HOSTMAP "pcmk_host_map"
105 # define STONITH_ATTR_HOSTLIST "pcmk_host_list"
106 # define STONITH_ATTR_HOSTCHECK "pcmk_host_check"
107 # define STONITH_ATTR_DELAY_MAX "pcmk_delay_max"
108 # define STONITH_ATTR_DELAY_BASE "pcmk_delay_base"
109 # define STONITH_ATTR_ACTION_LIMIT "pcmk_action_limit"
111 # define STONITH_ATTR_ACTION_OP "action"
113 # define STONITH_OP_EXEC "st_execute"
114 # define STONITH_OP_TIMEOUT_UPDATE "st_timeout_update"
115 # define STONITH_OP_QUERY "st_query"
116 # define STONITH_OP_FENCE "st_fence"
117 # define STONITH_OP_RELAY "st_relay"
118 # define STONITH_OP_DEVICE_ADD "st_device_register"
119 # define STONITH_OP_DEVICE_DEL "st_device_remove"
120 # define STONITH_OP_FENCE_HISTORY "st_fence_history"
121 # define STONITH_OP_LEVEL_ADD "st_level_add"
122 # define STONITH_OP_LEVEL_DEL "st_level_remove"
124 # define STONITH_WATCHDOG_AGENT "#watchdog"
126 # ifdef HAVE_STONITH_STONITH_H
132 const char *agent, GHashTable *params,
133 int timeout,
char **output,
char **error_output);
141 const char *agent, GHashTable *params,
142 int timeout,
char **output,
char **error_output);
int stonith__execute(stonith_action_t *action)
void stonith__action_result(stonith_action_t *action, int *rc, char **output, char **error_output)
int stonith__lha_validate(stonith_t *st, int call_options, const char *target, const char *agent, GHashTable *params, int timeout, char **output, char **error_output)
int stonith__list_lha_agents(stonith_key_value_t **devices)
int stonith__lha_metadata(const char *agent, int timeout, char **output)
Wrappers for and extensions to libxml2.
xmlNode * create_device_registration_xml(const char *id, enum stonith_namespace namespace, const char *agent, stonith_key_value_t *params, const char *rsc_provides)
void stonith__destroy_action(stonith_action_t *action)
stonith_action_t * stonith_action_create(const char *agent, const char *_action, const char *victim, uint32_t victim_nodeid, int timeout, GHashTable *device_args, GHashTable *port_map)
int stonith__list_rhcs_agents(stonith_key_value_t **devices)
Wrappers for and extensions to libqb IPC.
bool stonith__agent_is_rhcs(const char *agent)
GPid stonith_action_execute_async(stonith_action_t *action, void *userdata, void(*done)(GPid pid, int rc, const char *output, gpointer user_data))
xmlNode * create_level_registration_xml(const char *node, const char *pattern, const char *attr, const char *value, int level, stonith_key_value_t *device_list)
int stonith__rhcs_metadata(const char *agent, int timeout, char **output)
Execute RHCS-compatible agent's meta-data action.
int stonith__rhcs_validate(stonith_t *st, int call_options, const char *target, const char *agent, GHashTable *params, int timeout, char **output, char **error_output)
bool stonith__agent_is_lha(const char *agent)
Determine namespace of a fence agent.
struct stonith_action_s stonith_action_t