10 #ifndef PCMK__CRM_COMMON_ACTIONS__H 11 #define PCMK__CRM_COMMON_ACTIONS__H 16 #include <libxml/tree.h> 21 #include <libxml/tree.h> 37 #define PCMK_DEFAULT_ACTION_TIMEOUT_MS 20000 42 #define PCMK_DEFAULT_METADATA_TIMEOUT_MS 30000 45 #define PCMK_ACTION_CANCEL "cancel" 46 #define PCMK_ACTION_CLEAR_FAILCOUNT "clear_failcount" 47 #define PCMK_ACTION_CLONE_ONE_OR_MORE "clone-one-or-more" 48 #define PCMK_ACTION_DELETE "delete" 49 #define PCMK_ACTION_DEMOTE "demote" 50 #define PCMK_ACTION_DEMOTED "demoted" 51 #define PCMK_ACTION_DO_SHUTDOWN "do_shutdown" 52 #define PCMK_ACTION_LIST "list" 53 #define PCMK_ACTION_LRM_DELETE "lrm_delete" 54 #define PCMK_ACTION_LOAD_STOPPED "load_stopped" 55 #define PCMK_ACTION_MAINTENANCE_NODES "maintenance_nodes" 56 #define PCMK_ACTION_META_DATA "meta-data" 57 #define PCMK_ACTION_METADATA "metadata" 58 #define PCMK_ACTION_MIGRATE_FROM "migrate_from" 59 #define PCMK_ACTION_MIGRATE_TO "migrate_to" 60 #define PCMK_ACTION_MONITOR "monitor" 61 #define PCMK_ACTION_NOTIFIED "notified" 62 #define PCMK_ACTION_NOTIFY "notify" 63 #define PCMK_ACTION_OFF "off" 64 #define PCMK_ACTION_ON "on" 65 #define PCMK_ACTION_ONE_OR_MORE "one-or-more" 66 #define PCMK_ACTION_PROMOTE "promote" 67 #define PCMK_ACTION_PROMOTED "promoted" 68 #define PCMK_ACTION_REBOOT "reboot" 69 #define PCMK_ACTION_RELOAD "reload" 70 #define PCMK_ACTION_RELOAD_AGENT "reload-agent" 71 #define PCMK_ACTION_RUNNING "running" 72 #define PCMK_ACTION_START "start" 73 #define PCMK_ACTION_STATUS "status" 74 #define PCMK_ACTION_STONITH "stonith" 75 #define PCMK_ACTION_STOP "stop" 76 #define PCMK_ACTION_STOPPED "stopped" 77 #define PCMK_ACTION_VALIDATE_ALL "validate-all" 107 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 180 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 278 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 285 #if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1) 394 gboolean
parse_op_key(
const char *key,
char **rsc_id,
char **op_type,
397 int *action_id,
int *target_rc);
399 int *transition_id,
int *action_id,
400 int *
op_status,
int *op_rc,
int *target_rc);
409 const char *task,
const char *interval_spec,
420 #endif // PCMK__CRM_COMMON_ACTIONS__H
enum rsc_start_requirement needs
Scheduler API for resources.
enum action_tasks pcmk_parse_action(const char *action_name)
Parse an action type from an action name.
Type aliases needed to define scheduler objects.
enum action_fail_response on_fail
bool pcmk_is_probe(const char *task, guint interval)
Check whether an action name and interval represent a probe.
gboolean decode_transition_magic(const char *magic, char **uuid, int *transition_id, int *action_id, int *op_status, int *op_rc, int *target_rc)
Parse a transition magic string into its constituent parts.
const char * pcmk_on_fail_text(enum action_fail_response on_fail)
Get string equivalent of a failure handling type.
bool pcmk_xe_is_probe(const xmlNode *xml_op)
Check whether an action history entry represents a probe.
gboolean decode_transition_key(const char *key, char **uuid, int *transition_id, int *action_id, int *target_rc)
Parse a transition key into its constituent parts.
gboolean did_rsc_op_fail(lrmd_event_data_t *event, int target_rc)
int rsc_op_expected_rc(const lrmd_event_data_t *event)
bool crm_op_needs_metadata(const char *rsc_class, const char *op)
Check whether an operation requires resource agent meta-data.
bool pcmk_xe_mask_probe_failure(const xmlNode *xml_op)
Check whether an action history entry represents a maskable probe.
#define PCMK_ALLOW_DEPRECATED
Allow use of deprecated Pacemaker APIs.
const char * pcmk_action_text(enum action_tasks action)
Get string equivalent of an action type.
gboolean parse_op_key(const char *key, char **rsc_id, char **op_type, guint *interval_ms)
enum rsc_role_e fail_role
enum pe_action_flags flags
xmlNode * crm_create_op_xml(xmlNode *parent, const char *prefix, const char *task, const char *interval_spec, const char *timeout)
Create a CIB XML element for an operation.
Resource agent executor events.
int required_runnable_before