|
|
enum | action_tasks {
pcmk_action_unspecified = 0,
pcmk_action_monitor,
pcmk_action_stop,
pcmk_action_stopped,
pcmk_action_start,
pcmk_action_started,
pcmk_action_notify,
pcmk_action_notified,
pcmk_action_promote,
pcmk_action_promoted,
pcmk_action_demote,
pcmk_action_demoted,
pcmk_action_shutdown,
pcmk_action_fence,
no_action = pcmk_action_unspecified,
monitor_rsc = pcmk_action_monitor,
stop_rsc = pcmk_action_stop,
stopped_rsc = pcmk_action_stopped,
start_rsc = pcmk_action_start,
started_rsc = pcmk_action_started,
action_notify = pcmk_action_notify,
action_notified = pcmk_action_notified,
action_promote = pcmk_action_promote,
action_promoted = pcmk_action_promoted,
action_demote = pcmk_action_demote,
action_demoted = pcmk_action_demoted,
shutdown_crm = pcmk_action_shutdown,
stonith_node = pcmk_action_fence
} |
|
|
enum | action_fail_response {
pcmk_on_fail_ignore = 0,
pcmk_on_fail_restart = 1,
pcmk_on_fail_ban = 2,
pcmk_on_fail_block = 3,
pcmk_on_fail_stop = 4,
pcmk_on_fail_standby_node = 5,
pcmk_on_fail_fence_node = 6,
pcmk_on_fail_restart_container = 7,
pcmk_on_fail_reset_remote = 8,
pcmk_on_fail_demote = 9,
action_fail_ignore = pcmk_on_fail_ignore,
action_fail_recover = pcmk_on_fail_restart,
action_fail_migrate = pcmk_on_fail_ban,
action_fail_block = pcmk_on_fail_block,
action_fail_stop = pcmk_on_fail_stop,
action_fail_standby = pcmk_on_fail_standby_node,
action_fail_fence = pcmk_on_fail_fence_node,
action_fail_restart_container = pcmk_on_fail_restart_container,
action_fail_reset_remote = pcmk_on_fail_reset_remote,
action_fail_demote = pcmk_on_fail_demote
} |
|
|
enum | pe_action_flags {
pcmk_no_action_flags = 0,
pcmk_action_pseudo = (1 << 0),
pcmk_action_runnable = (1 << 1),
pcmk_action_optional = (1 << 2),
pcmk_action_always_in_graph = (1 << 3),
pcmk_action_attrs_evaluated = (1 << 4),
pcmk_action_migratable = (1 << 7),
pcmk_action_added_to_graph = (1 << 8),
pcmk_action_migration_abort = (1 << 11),
pcmk_action_min_runnable = (1 << 12),
pcmk_action_reschedule = (1 << 13),
pcmk_action_detect_loop = (1 << 14),
pcmk_action_inputs_deduplicated = (1 << 15),
pcmk_action_on_dc = (1 << 16),
pe_action_pseudo = pcmk_action_pseudo,
pe_action_runnable = pcmk_action_runnable,
pe_action_optional = pcmk_action_optional,
pe_action_print_always = pcmk_action_always_in_graph,
pe_action_have_node_attrs = pcmk_action_attrs_evaluated,
pe_action_implied_by_stonith = (1 << 6),
pe_action_migrate_runnable = pcmk_action_migratable,
pe_action_dumped = pcmk_action_added_to_graph,
pe_action_processed = (1 << 9),
pe_action_clear = (1 << 10),
pe_action_dangle = pcmk_action_migration_abort,
pe_action_requires_any = pcmk_action_min_runnable,
pe_action_reschedule = pcmk_action_reschedule,
pe_action_tracking = pcmk_action_detect_loop,
pe_action_dedup = pcmk_action_inputs_deduplicated,
pe_action_dc = pcmk_action_on_dc
} |
|
|
enum | pe_link_state { pe_link_not_dumped = 0,
pe_link_dumped = 1,
pe_link_dup = 2
} |
|
enum | pe_ordering {
pe_order_none = 0x0,
pe_order_optional = 0x1,
pe_order_apply_first_non_migratable = 0x2,
pe_order_implies_first = 0x10,
pe_order_implies_then = 0x20,
pe_order_promoted_implies_first = 0x40,
pe_order_implies_first_migratable = 0x80,
pe_order_runnable_left = 0x100,
pe_order_pseudo_left = 0x200,
pe_order_implies_then_on_node = 0x400,
pe_order_probe = 0x800,
pe_order_restart = 0x1000,
pe_order_stonith_stop = 0x2000,
pe_order_serialize_only = 0x4000,
pe_order_same_node = 0x8000,
pe_order_implies_first_printed = 0x10000,
pe_order_implies_then_printed = 0x20000,
pe_order_asymmetrical = 0x100000,
pe_order_load = 0x200000,
pe_order_one_or_more = 0x400000,
pe_order_anti_colocation = 0x800000,
pe_order_preserve = 0x1000000,
pe_order_then_cancels_first = 0x2000000,
pe_order_trace = 0x4000000,
pe_order_implies_first_master = pe_order_promoted_implies_first
} |
|
|
const char * | pcmk_action_text (enum action_tasks action) |
| Get string equivalent of an action type. More...
|
|
enum action_tasks | pcmk_parse_action (const char *action_name) |
| Parse an action type from an action name. More...
|
|
const char * | pcmk_on_fail_text (enum action_fail_response on_fail) |
| Get string equivalent of a failure handling type. More...
|
|
gboolean | parse_op_key (const char *key, char **rsc_id, char **op_type, guint *interval_ms) |
|
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. More...
|
|
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. More...
|
|
int | rsc_op_expected_rc (const lrmd_event_data_t *event) |
|
gboolean | did_rsc_op_fail (lrmd_event_data_t *event, int target_rc) |
|
bool | crm_op_needs_metadata (const char *rsc_class, const char *op) |
| Check whether an operation requires resource agent meta-data. More...
|
|
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. More...
|
|
bool | pcmk_is_probe (const char *task, guint interval) |
| Check whether an action name and interval represent a probe. More...
|
|
bool | pcmk_xe_is_probe (const xmlNode *xml_op) |
| Check whether an action history entry represents a probe. More...
|
|
bool | pcmk_xe_mask_probe_failure (const xmlNode *xml_op) |
| Check whether an action history entry represents a maskable probe. More...
|
|
APIs related to actions.
Definition in file actions.h.