18 #ifndef PENGINE_STATUS__H
19 # define PENGINE_STATUS__H
60 # define pe_flag_have_quorum 0x00000001ULL
61 # define pe_flag_symmetric_cluster 0x00000002ULL
62 # define pe_flag_is_managed_default 0x00000004ULL
63 # define pe_flag_maintenance_mode 0x00000008ULL
65 # define pe_flag_stonith_enabled 0x00000010ULL
66 # define pe_flag_have_stonith_resource 0x00000020ULL
67 # define pe_flag_enable_unfencing 0x00000040ULL
68 # define pe_flag_concurrent_fencing 0x00000080ULL
70 # define pe_flag_stop_rsc_orphans 0x00000100ULL
71 # define pe_flag_stop_action_orphans 0x00000200ULL
72 # define pe_flag_stop_everything 0x00000400ULL
74 # define pe_flag_start_failure_fatal 0x00001000ULL
75 # define pe_flag_remove_after_stop 0x00002000ULL
76 # define pe_flag_startup_fencing 0x00004000ULL
78 # define pe_flag_startup_probes 0x00010000ULL
79 # define pe_flag_have_status 0x00020000ULL
80 # define pe_flag_have_remote_nodes 0x00040000ULL
82 # define pe_flag_quick_location 0x00100000ULL
83 # define pe_flag_sanitized 0x00200000ULL
184 # define pe_rsc_orphan 0x00000001ULL
185 # define pe_rsc_managed 0x00000002ULL
186 # define pe_rsc_block 0x00000004ULL
187 # define pe_rsc_orphan_container_filler 0x00000008ULL
189 # define pe_rsc_notify 0x00000010ULL
190 # define pe_rsc_unique 0x00000020ULL
191 # define pe_rsc_fence_device 0x00000040ULL
193 # define pe_rsc_provisional 0x00000100ULL
194 # define pe_rsc_allocating 0x00000200ULL
195 # define pe_rsc_merging 0x00000400ULL
196 # define pe_rsc_munging 0x00000800ULL
198 # define pe_rsc_try_reload 0x00001000ULL
199 # define pe_rsc_reload 0x00002000ULL
200 # define pe_rsc_allow_remote_remotes 0x00004000ULL
202 # define pe_rsc_failed 0x00010000ULL
203 # define pe_rsc_shutdown 0x00020000ULL
204 # define pe_rsc_runnable 0x00040000ULL
205 # define pe_rsc_start_pending 0x00080000ULL
207 # define pe_rsc_starting 0x00100000ULL
208 # define pe_rsc_stopping 0x00200000ULL
209 # define pe_rsc_migrating 0x00400000ULL
210 # define pe_rsc_allow_migrate 0x00800000ULL
212 # define pe_rsc_failure_ignored 0x01000000ULL
213 # define pe_rsc_unexpectedly_running 0x02000000ULL
214 # define pe_rsc_maintenance 0x04000000ULL
215 # define pe_rsc_is_container 0x08000000ULL
217 # define pe_rsc_needs_quorum 0x10000000ULL
218 # define pe_rsc_needs_fencing 0x20000000ULL
219 # define pe_rsc_needs_unfencing 0x40000000ULL
220 # define pe_rsc_have_unfencing 0x80000000ULL // obsolete (not set or used by cluster)
318 #if ENABLE_VERSIONED_ATTRS
319 xmlNode *versioned_parameters;
323 #if ENABLE_VERSIONED_ATTRS
325 typedef struct pe_rsc_action_details_s {
326 xmlNode *versioned_parameters;
327 xmlNode *versioned_meta;
328 } pe_rsc_action_details_t;
477 #if ENABLE_VERSIONED_ATTRS
478 pe_rsc_action_details_t *pe_rsc_action_details(
pe_action_t *action);
enum rsc_start_requirement needs
int default_resource_stickiness
struct crm_time_s crm_time_t
gboolean exclusive_discover
enum action_fail_response on_fail
enum pe_obj_types variant
node_t * partial_migration_source
node_t * pe_find_node(GListPtr node_list, const char *uname)
no_quorum_policy_t no_quorum_policy
enum pe_restart restart_type
const char * isolation_wrapper
GListPtr placement_constraints
GListPtr find_operations(const char *rsc, const char *node, gboolean active_filter, pe_working_set_t *data_set)
struct node_shared_s * details
pe_working_set_t * cluster
void cleanup_calculations(pe_working_set_t *data_set)
enum rsc_recovery_type recovery_type
node_t * partial_migration_target
resource_object_functions_t * fns
enum no_quorum_policy_e no_quorum_policy_t
GHashTable * allowed_nodes
GHashTable * digest_cache
void set_working_set_defaults(pe_working_set_t *data_set)
const char * stonith_action
GListPtr dangling_migrations
const char * placement_strategy
int pe_bundle_replicas(const resource_t *rsc)
Get the number of configured replicas in a bundle.
int remote_reconnect_interval
gboolean remote_maintenance
GListPtr ordering_constraints
GListPtr colocation_constraints
node_t * pe_find_node_any(GListPtr node_list, const char *id, const char *uname)
GListPtr ticket_constraints
gboolean cluster_status(pe_working_set_t *data_set)
enum rsc_role_e next_role
resource_t * pe_find_resource_with_flags(GListPtr rsc_list, const char *id, enum pe_find flags)
gboolean rsc_discovery_enabled
enum rsc_role_e fail_role
gboolean remote_requires_reset
node_t * pe_find_node_id(GListPtr node_list, const char *id)
enum pe_action_flags flags
struct resource_alloc_functions_s resource_alloc_functions_t
gboolean remote_was_fenced
resource_alloc_functions_t * cmds
resource_t * pe_find_resource(GListPtr rsc_list, const char *id_rh)
struct pe_working_set_s pe_working_set_t
GHashTable * template_rsc_sets
const char * rsc_printable_id(resource_t *rsc)
int required_runnable_before