 |
pacemaker
2.0.1-9e909a5bdd
Scalable High-Availability cluster resource manager
|
Go to the documentation of this file.
8 #ifndef PENGINE_STATUS__H
9 # define PENGINE_STATUS__H
62 # define pe_flag_have_quorum 0x00000001ULL
63 # define pe_flag_symmetric_cluster 0x00000002ULL
64 # define pe_flag_maintenance_mode 0x00000008ULL
66 # define pe_flag_stonith_enabled 0x00000010ULL
67 # define pe_flag_have_stonith_resource 0x00000020ULL
68 # define pe_flag_enable_unfencing 0x00000040ULL
69 # define pe_flag_concurrent_fencing 0x00000080ULL
71 # define pe_flag_stop_rsc_orphans 0x00000100ULL
72 # define pe_flag_stop_action_orphans 0x00000200ULL
73 # define pe_flag_stop_everything 0x00000400ULL
75 # define pe_flag_start_failure_fatal 0x00001000ULL
76 # define pe_flag_remove_after_stop 0x00002000ULL
77 # define pe_flag_startup_fencing 0x00004000ULL
79 # define pe_flag_startup_probes 0x00010000ULL
80 # define pe_flag_have_status 0x00020000ULL
81 # define pe_flag_have_remote_nodes 0x00040000ULL
83 # define pe_flag_quick_location 0x00100000ULL
84 # define pe_flag_sanitized 0x00200000ULL
85 # define pe_flag_stdout 0x00400000ULL
192 # define pe_rsc_orphan 0x00000001ULL
193 # define pe_rsc_managed 0x00000002ULL
194 # define pe_rsc_block 0x00000004ULL
195 # define pe_rsc_orphan_container_filler 0x00000008ULL
197 # define pe_rsc_notify 0x00000010ULL
198 # define pe_rsc_unique 0x00000020ULL
199 # define pe_rsc_fence_device 0x00000040ULL
200 # define pe_rsc_promotable 0x00000080ULL
202 # define pe_rsc_provisional 0x00000100ULL
203 # define pe_rsc_allocating 0x00000200ULL
204 # define pe_rsc_merging 0x00000400ULL
206 # define pe_rsc_reload 0x00002000ULL
207 # define pe_rsc_allow_remote_remotes 0x00004000ULL
209 # define pe_rsc_failed 0x00010000ULL
210 # define pe_rsc_runnable 0x00040000ULL
211 # define pe_rsc_start_pending 0x00080000ULL
213 # define pe_rsc_starting 0x00100000ULL
214 # define pe_rsc_stopping 0x00200000ULL
215 # define pe_rsc_allow_migrate 0x00800000ULL
217 # define pe_rsc_failure_ignored 0x01000000ULL
218 # define pe_rsc_maintenance 0x04000000ULL
219 # define pe_rsc_is_container 0x08000000ULL
221 # define pe_rsc_needs_quorum 0x10000000ULL
222 # define pe_rsc_needs_fencing 0x20000000ULL
223 # define pe_rsc_needs_unfencing 0x40000000ULL
323 #if ENABLE_VERSIONED_ATTRS
324 xmlNode *versioned_parameters;
328 #if ENABLE_VERSIONED_ATTRS
330 typedef struct pe_rsc_action_details_s {
331 xmlNode *versioned_parameters;
332 xmlNode *versioned_meta;
333 } pe_rsc_action_details_t;
476 #if ENABLE_VERSIONED_ATTRS
477 pe_rsc_action_details_t *pe_rsc_action_details(
pe_action_t *action);
void pe_reset_working_set(pe_working_set_t *data_set)
Reset a working set to default state without freeing it.
enum rsc_start_requirement needs
gboolean exclusive_discover
enum pe_obj_types variant
gboolean rsc_discovery_enabled
GListPtr dangling_migrations
pe_resource_t * pe_find_resource(GListPtr rsc_list, const char *id_rh)
enum rsc_role_e next_role
pe_node_t * pe_find_node(GListPtr node_list, const char *uname)
pe_resource_t * remote_rsc
void cleanup_calculations(pe_working_set_t *data_set)
Reset working set to default state without freeing it or constraints.
enum action_fail_response on_fail
@ pe_order_anti_colocation
@ pe_action_have_node_attrs
pe_node_t * pe_find_node_any(GListPtr node_list, const char *id, const char *uname)
@ pe_order_implies_first_migratable
@ pe_find_anon
match base name of anonymous clone instances
GHashTable * digest_cache
cache of calculated resource digests
struct pe_node_shared_s * details
int required_runnable_before
const char * stonith_action
@ pe_action_migrate_runnable
pe_resource_t * uber_parent(pe_resource_t *rsc)
pe_resource_t * pe_find_resource_with_flags(GListPtr rsc_list, const char *id, enum pe_find flags)
enum rsc_recovery_type recovery_type
enum pe_action_flags flags
@ pe_order_then_cancels_first
pe_node_t * partial_migration_target
const char * placement_strategy
@ pe_action_implied_by_stonith
gboolean remote_requires_reset
const char * rsc_printable_id(pe_resource_t *rsc)
@ pe_find_renamed
match resource ID or LRM history ID
@ pe_order_implies_first_printed
GListPtr colocation_constraints
gboolean cluster_status(pe_working_set_t *data_set)
@ pe_order_serialize_only
pe_working_set_t * pe_new_working_set(void)
Create a new working set.
enum pe_quorum_policy no_quorum_policy_t
pe_node_t * partial_migration_source
GListPtr ordering_constraints
pe_working_set_t * cluster
GHashTable * template_rsc_sets
GListPtr placement_constraints
GListPtr find_operations(const char *rsc, const char *node, gboolean active_filter, pe_working_set_t *data_set)
pe_resource_t * container
void pe_free_working_set(pe_working_set_t *data_set)
Free a working set.
@ pe_find_any
match base name of any clone instance
@ pe_order_apply_first_non_migratable
@ pe_find_inactive
match resource not running anywhere
guint remote_reconnect_ms
@ pe_find_current
match resource active on specified node
@ pe_order_implies_then_printed
enum pe_restart restart_type
pe_find
Determine behavior of pe_find_resource_with_flags()
gboolean remote_was_fenced
GListPtr ticket_constraints
int pe_bundle_replicas(const pe_resource_t *rsc)
Get the number of configured replicas in a bundle.
@ pe_order_implies_then_on_node
@ pe_order_implies_first_master
enum rsc_role_e fail_role
struct pe_action_wrapper_s pe_action_wrapper_t
@ pe_find_clone
match only clone instances
gboolean remote_maintenance
void set_working_set_defaults(pe_working_set_t *data_set)
GHashTable * allowed_nodes
enum pe_quorum_policy no_quorum_policy
resource_alloc_functions_t * cmds
pe_node_t * pe_find_node_id(GListPtr node_list, const char *id)
resource_object_functions_t * fns
struct crm_time_s crm_time_t
struct resource_alloc_functions_s resource_alloc_functions_t
struct pe_ticket_s pe_ticket_t