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);
enum pe_quorum_policy no_quorum_policy
GListPtr dangling_migrations
pe_resource_t * pe_find_resource_with_flags(GListPtr rsc_list, const char *id, enum pe_find flags)
match base name of any clone instance
pe_resource_t * container
pe_node_t * partial_migration_source
void pe_free_working_set(pe_working_set_t *data_set)
Free a working set.
struct crm_time_s crm_time_t
match resource not running anywhere
resource_alloc_functions_t * cmds
pe_working_set_t * pe_new_working_set(void)
Create a new working set.
match base name of anonymous clone instances
gboolean exclusive_discover
pe_resource_t * remote_rsc
resource_object_functions_t * fns
match resource ID or LRM history ID
enum pe_quorum_policy no_quorum_policy_t
pe_node_t * pe_find_node(GListPtr node_list, const char *uname)
pe_node_t * partial_migration_target
gboolean remote_was_fenced
gboolean remote_requires_reset
pe_node_t * pe_find_node_id(GListPtr node_list, const char *id)
gboolean remote_maintenance
GListPtr placement_constraints
GListPtr find_operations(const char *rsc, const char *node, gboolean active_filter, pe_working_set_t *data_set)
void pe_reset_working_set(pe_working_set_t *data_set)
Reset a working set to default state without freeing it.
guint remote_reconnect_ms
void cleanup_calculations(pe_working_set_t *data_set)
Reset working set to default state without freeing it or constraints.
struct pe_ticket_s pe_ticket_t
pe_resource_t * uber_parent(pe_resource_t *rsc)
match only clone instances
void set_working_set_defaults(pe_working_set_t *data_set)
const char * stonith_action
struct pe_node_shared_s * details
pe_find
Determine behavior of pe_find_resource_with_flags()
enum pe_obj_types variant
const char * placement_strategy
pe_resource_t * pe_find_resource(GListPtr rsc_list, const char *id_rh)
GListPtr ordering_constraints
GListPtr colocation_constraints
gboolean rsc_discovery_enabled
struct pe_action_wrapper_s pe_action_wrapper_t
GListPtr ticket_constraints
const char * rsc_printable_id(pe_resource_t *rsc)
gboolean cluster_status(pe_working_set_t *data_set)
GHashTable * digest_cache
cache of calculated resource digests
pe_working_set_t * cluster
struct resource_alloc_functions_s resource_alloc_functions_t
GHashTable * template_rsc_sets
pe_node_t * pe_find_node_any(GListPtr node_list, const char *id, const char *uname)
int pe_bundle_replicas(const pe_resource_t *rsc)
Get the number of configured replicas in a bundle.
int required_runnable_before
enum crm_ais_msg_types type
GHashTable * allowed_nodes
match resource active on specified node