pacemaker
2.1.2-ada5c3b36
Scalable High-Availability cluster resource manager
|
#include <crm/pengine/pe_types.h>
Go to the source code of this file.
Macros | |
#define | pcmk__order_resource_actions(lh_rsc, lh_task, rh_rsc, rh_task, flags, data_set) |
#define | pcmk__order_starts(rsc1, rsc2, type, data_set) |
#define | pcmk__order_stops(rsc1, rsc2, type, data_set) |
Enumerations | |
enum | pcmk__coloc_affects { pcmk__coloc_affects_nothing = 0, pcmk__coloc_affects_location, pcmk__coloc_affects_role } |
Functions | |
G_GNUC_INTERNAL bool | pcmk__graph_has_loop (pe_action_t *init_action, pe_action_t *action, pe_action_wrapper_t *input) |
G_GNUC_INTERNAL void | pcmk__order_vs_fence (pe_action_t *stonith_op, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__order_vs_unfence (pe_resource_t *rsc, pe_node_t *node, pe_action_t *action, enum pe_ordering order, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__fence_guest (pe_node_t *node, pe_working_set_t *data_set) |
G_GNUC_INTERNAL bool | pcmk__node_unfenced (pe_node_t *node) |
G_GNUC_INTERNAL bool | pcmk__is_unfence_device (const pe_resource_t *rsc, const pe_working_set_t *data_set) |
G_GNUC_INTERNAL pe_resource_t * | pcmk__find_constraint_resource (GList *rsc_list, const char *id) |
G_GNUC_INTERNAL xmlNode * | pcmk__expand_tags_in_sets (xmlNode *xml_obj, pe_working_set_t *data_set) |
G_GNUC_INTERNAL bool | pcmk__valid_resource_or_tag (pe_working_set_t *data_set, const char *id, pe_resource_t **rsc, pe_tag_t **tag) |
G_GNUC_INTERNAL bool | pcmk__tag_to_set (xmlNode *xml_obj, xmlNode **rsc_set, const char *attr, bool convert_rsc, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__create_internal_constraints (pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__unpack_location (xmlNode *xml_obj, pe_working_set_t *data_set) |
G_GNUC_INTERNAL pe__location_t * | pcmk__new_location (const char *id, pe_resource_t *rsc, int node_weight, const char *discover_mode, pe_node_t *foo_node, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__apply_locations (pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__apply_location (pe__location_t *constraint, pe_resource_t *rsc) |
G_GNUC_INTERNAL enum pcmk__coloc_affects | pcmk__colocation_affects (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, bool preview) |
G_GNUC_INTERNAL void | pcmk__apply_coloc_to_weights (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint) |
G_GNUC_INTERNAL void | pcmk__apply_coloc_to_priority (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint) |
G_GNUC_INTERNAL void | pcmk__unpack_colocation (xmlNode *xml_obj, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__new_colocation (const char *id, const char *node_attr, int score, pe_resource_t *dependent, pe_resource_t *primary, const char *dependent_role, const char *primary_role, bool influence, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__block_colocated_starts (pe_action_t *action, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__new_ordering (pe_resource_t *lh_rsc, char *lh_task, pe_action_t *lh_action, pe_resource_t *rh_rsc, char *rh_task, pe_action_t *rh_action, enum pe_ordering type, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__unpack_ordering (xmlNode *xml_obj, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__disable_invalid_orderings (pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__order_stops_before_shutdown (pe_node_t *node, pe_action_t *shutdown_op, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__apply_orderings (pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__unpack_rsc_ticket (xmlNode *xml_obj, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__order_probes (pe_working_set_t *data_set) |
G_GNUC_INTERNAL bool | pcmk__is_failed_remote_node (pe_node_t *node) |
G_GNUC_INTERNAL void | pcmk__order_remote_connection_actions (pe_working_set_t *data_set) |
G_GNUC_INTERNAL bool | pcmk__rsc_corresponds_to_guest (pe_resource_t *rsc, pe_node_t *node) |
G_GNUC_INTERNAL pe_node_t * | pcmk__connection_host_for_action (pe_action_t *action) |
G_GNUC_INTERNAL void | pcmk__substitute_remote_addr (pe_resource_t *rsc, GHashTable *params, pe_working_set_t *data_set) |
G_GNUC_INTERNAL void | pcmk__add_bundle_meta_to_xml (xmlNode *args_xml, pe_action_t *action) |
Add special bundle meta-attributes to XML. More... | |
G_GNUC_INTERNAL GList * | pcmk__group_colocated_resources (pe_resource_t *rsc, pe_resource_t *orig_rsc, GList *colocated_rscs) |
G_GNUC_INTERNAL GList * | pcmk__colocated_resources (pe_resource_t *rsc, pe_resource_t *orig_rsc, GList *colocated_rscs) |
#define pcmk__order_resource_actions | ( | lh_rsc, | |
lh_task, | |||
rh_rsc, | |||
rh_task, | |||
flags, | |||
data_set | |||
) |
Definition at line 146 of file libpacemaker_private.h.
#define pcmk__order_starts | ( | rsc1, | |
rsc2, | |||
type, | |||
data_set | |||
) |
Definition at line 153 of file libpacemaker_private.h.
#define pcmk__order_stops | ( | rsc1, | |
rsc2, | |||
type, | |||
data_set | |||
) |
Definition at line 157 of file libpacemaker_private.h.
enum pcmk__coloc_affects |
Enumerator | |
---|---|
pcmk__coloc_affects_nothing | |
pcmk__coloc_affects_location | |
pcmk__coloc_affects_role |
Definition at line 80 of file libpacemaker_private.h.
G_GNUC_INTERNAL void pcmk__add_bundle_meta_to_xml | ( | xmlNode * | args_xml, |
pe_action_t * | action | ||
) |
Add special bundle meta-attributes to XML.
If a given action will be executed on a guest node (including a bundle), add the special bundle meta-attribute "container-attribute-target" and environment variable "physical_host" as XML attributes (using meta-attribute naming).
[in] | args_xml | XML to add attributes to |
[in] | action | Action to check |
Definition at line 692 of file pcmk_sched_remote.c.
G_GNUC_INTERNAL void pcmk__apply_coloc_to_priority | ( | pe_resource_t * | dependent, |
pe_resource_t * | primary, | ||
pcmk__colocation_t * | constraint | ||
) |
Definition at line 1021 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL void pcmk__apply_coloc_to_weights | ( | pe_resource_t * | dependent, |
pe_resource_t * | primary, | ||
pcmk__colocation_t * | constraint | ||
) |
Definition at line 943 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL void pcmk__apply_location | ( | pe__location_t * | constraint, |
pe_resource_t * | rsc | ||
) |
Definition at line 616 of file pcmk_sched_location.c.
G_GNUC_INTERNAL void pcmk__apply_locations | ( | pe_working_set_t * | data_set | ) |
Definition at line 598 of file pcmk_sched_location.c.
G_GNUC_INTERNAL void pcmk__apply_orderings | ( | pe_working_set_t * | data_set | ) |
Definition at line 1491 of file pcmk_sched_ordering.c.
G_GNUC_INTERNAL void pcmk__block_colocated_starts | ( | pe_action_t * | action, |
pe_working_set_t * | data_set | ||
) |
Definition at line 773 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL GList* pcmk__colocated_resources | ( | pe_resource_t * | rsc, |
pe_resource_t * | orig_rsc, | ||
GList * | colocated_rscs | ||
) |
Definition at line 18 of file pcmk_sched_resource.c.
G_GNUC_INTERNAL enum pcmk__coloc_affects pcmk__colocation_affects | ( | pe_resource_t * | dependent, |
pe_resource_t * | primary, | ||
pcmk__colocation_t * | constraint, | ||
bool | preview | ||
) |
Definition at line 834 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL pe_node_t* pcmk__connection_host_for_action | ( | pe_action_t * | action | ) |
Definition at line 555 of file pcmk_sched_remote.c.
G_GNUC_INTERNAL void pcmk__create_internal_constraints | ( | pe_working_set_t * | data_set | ) |
Definition at line 412 of file pcmk_sched_constraints.c.
G_GNUC_INTERNAL void pcmk__disable_invalid_orderings | ( | pe_working_set_t * | data_set | ) |
Definition at line 1245 of file pcmk_sched_ordering.c.
G_GNUC_INTERNAL xmlNode* pcmk__expand_tags_in_sets | ( | xmlNode * | xml_obj, |
pe_working_set_t * | data_set | ||
) |
Definition at line 214 of file pcmk_sched_constraints.c.
G_GNUC_INTERNAL void pcmk__fence_guest | ( | pe_node_t * | node, |
pe_working_set_t * | data_set | ||
) |
Definition at line 369 of file pcmk_sched_fencing.c.
G_GNUC_INTERNAL pe_resource_t* pcmk__find_constraint_resource | ( | GList * | rsc_list, |
const char * | id | ||
) |
Definition at line 106 of file pcmk_sched_constraints.c.
G_GNUC_INTERNAL bool pcmk__graph_has_loop | ( | pe_action_t * | init_action, |
pe_action_t * | action, | ||
pe_action_wrapper_t * | input | ||
) |
Definition at line 1382 of file pcmk_graph_producer.c.
G_GNUC_INTERNAL GList* pcmk__group_colocated_resources | ( | pe_resource_t * | rsc, |
pe_resource_t * | orig_rsc, | ||
GList * | colocated_rscs | ||
) |
Definition at line 606 of file pcmk_sched_group.c.
G_GNUC_INTERNAL bool pcmk__is_failed_remote_node | ( | pe_node_t * | node | ) |
Definition at line 516 of file pcmk_sched_remote.c.
G_GNUC_INTERNAL bool pcmk__is_unfence_device | ( | const pe_resource_t * | rsc, |
const pe_working_set_t * | data_set | ||
) |
Definition at line 481 of file pcmk_sched_fencing.c.
G_GNUC_INTERNAL void pcmk__new_colocation | ( | const char * | id, |
const char * | node_attr, | ||
int | score, | ||
pe_resource_t * | dependent, | ||
pe_resource_t * | primary, | ||
const char * | dependent_role, | ||
const char * | primary_role, | ||
bool | influence, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 191 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL pe__location_t* pcmk__new_location | ( | const char * | id, |
pe_resource_t * | rsc, | ||
int | node_weight, | ||
const char * | discover_mode, | ||
pe_node_t * | foo_node, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 539 of file pcmk_sched_location.c.
G_GNUC_INTERNAL void pcmk__new_ordering | ( | pe_resource_t * | lh_rsc, |
char * | lh_task, | ||
pe_action_t * | lh_action, | ||
pe_resource_t * | rh_rsc, | ||
char * | rh_task, | ||
pe_action_t * | rh_action, | ||
enum pe_ordering | type, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 666 of file pcmk_sched_ordering.c.
G_GNUC_INTERNAL bool pcmk__node_unfenced | ( | pe_node_t * | node | ) |
Definition at line 463 of file pcmk_sched_fencing.c.
G_GNUC_INTERNAL void pcmk__order_probes | ( | pe_working_set_t * | data_set | ) |
Definition at line 1961 of file pcmk_sched_allocate.c.
G_GNUC_INTERNAL void pcmk__order_remote_connection_actions | ( | pe_working_set_t * | data_set | ) |
Definition at line 412 of file pcmk_sched_remote.c.
G_GNUC_INTERNAL void pcmk__order_stops_before_shutdown | ( | pe_node_t * | node, |
pe_action_t * | shutdown_op, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 1271 of file pcmk_sched_ordering.c.
G_GNUC_INTERNAL void pcmk__order_vs_fence | ( | pe_action_t * | stonith_op, |
pe_working_set_t * | data_set | ||
) |
Definition at line 310 of file pcmk_sched_fencing.c.
G_GNUC_INTERNAL void pcmk__order_vs_unfence | ( | pe_resource_t * | rsc, |
pe_node_t * | node, | ||
pe_action_t * | action, | ||
enum pe_ordering | order, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 329 of file pcmk_sched_fencing.c.
G_GNUC_INTERNAL bool pcmk__rsc_corresponds_to_guest | ( | pe_resource_t * | rsc, |
pe_node_t * | node | ||
) |
Definition at line 533 of file pcmk_sched_remote.c.
G_GNUC_INTERNAL void pcmk__substitute_remote_addr | ( | pe_resource_t * | rsc, |
GHashTable * | params, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 663 of file pcmk_sched_remote.c.
G_GNUC_INTERNAL bool pcmk__tag_to_set | ( | xmlNode * | xml_obj, |
xmlNode ** | rsc_set, | ||
const char * | attr, | ||
bool | convert_rsc, | ||
pe_working_set_t * | data_set | ||
) |
Definition at line 332 of file pcmk_sched_constraints.c.
G_GNUC_INTERNAL void pcmk__unpack_colocation | ( | xmlNode * | xml_obj, |
pe_working_set_t * | data_set | ||
) |
Definition at line 688 of file pcmk_sched_colocation.c.
G_GNUC_INTERNAL void pcmk__unpack_location | ( | xmlNode * | xml_obj, |
pe_working_set_t * | data_set | ||
) |
Definition at line 481 of file pcmk_sched_location.c.
G_GNUC_INTERNAL void pcmk__unpack_ordering | ( | xmlNode * | xml_obj, |
pe_working_set_t * | data_set | ||
) |
Definition at line 1141 of file pcmk_sched_ordering.c.
G_GNUC_INTERNAL void pcmk__unpack_rsc_ticket | ( | xmlNode * | xml_obj, |
pe_working_set_t * | data_set | ||
) |
Definition at line 413 of file pcmk_sched_tickets.c.
G_GNUC_INTERNAL bool pcmk__valid_resource_or_tag | ( | pe_working_set_t * | data_set, |
const char * | id, | ||
pe_resource_t ** | rsc, | ||
pe_tag_t ** | tag | ||
) |
Definition at line 182 of file pcmk_sched_constraints.c.