10 #ifndef PE_INTERNAL__H 11 # define PE_INTERNAL__H 35 # define pe_rsc_info(rsc, fmt, args...) crm_log_tag(LOG_INFO, rsc ? rsc->id : "<NULL>", fmt, ##args) 36 # define pe_rsc_debug(rsc, fmt, args...) crm_log_tag(LOG_DEBUG, rsc ? rsc->id : "<NULL>", fmt, ##args) 37 # define pe_rsc_trace(rsc, fmt, args...) crm_log_tag(LOG_TRACE, rsc ? rsc->id : "<NULL>", fmt, ##args) 39 # define pe_err(fmt...) do { \ 40 was_processing_error = TRUE; \ 41 pcmk__config_err(fmt); \ 44 # define pe_warn(fmt...) do { \ 45 was_processing_warning = TRUE; \ 46 pcmk__config_warn(fmt); \ 49 # define pe_proc_err(fmt...) { was_processing_error = TRUE; crm_err(fmt); } 50 # define pe_proc_warn(fmt...) { was_processing_warning = TRUE; crm_warn(fmt); } 52 #define pe__set_working_set_flags(scheduler, flags_to_set) do { \ 53 (scheduler)->flags = pcmk__set_flags_as(__func__, __LINE__, \ 54 LOG_TRACE, "Scheduler", crm_system_name, \ 55 (scheduler)->flags, (flags_to_set), #flags_to_set); \ 58 #define pe__clear_working_set_flags(scheduler, flags_to_clear) do { \ 59 (scheduler)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ 60 LOG_TRACE, "Scheduler", crm_system_name, \ 61 (scheduler)->flags, (flags_to_clear), #flags_to_clear); \ 64 #define pe__set_resource_flags(resource, flags_to_set) do { \ 65 (resource)->flags = pcmk__set_flags_as(__func__, __LINE__, \ 66 LOG_TRACE, "Resource", (resource)->id, (resource)->flags, \ 67 (flags_to_set), #flags_to_set); \ 70 #define pe__clear_resource_flags(resource, flags_to_clear) do { \ 71 (resource)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ 72 LOG_TRACE, "Resource", (resource)->id, (resource)->flags, \ 73 (flags_to_clear), #flags_to_clear); \ 76 #define pe__set_action_flags(action, flags_to_set) do { \ 77 (action)->flags = pcmk__set_flags_as(__func__, __LINE__, \ 79 "Action", (action)->uuid, \ 85 #define pe__clear_action_flags(action, flags_to_clear) do { \ 86 (action)->flags = pcmk__clear_flags_as(__func__, __LINE__, \ 88 "Action", (action)->uuid, \ 94 #define pe__set_raw_action_flags(action_flags, action_name, flags_to_set) do { \ 95 action_flags = pcmk__set_flags_as(__func__, __LINE__, \ 96 LOG_TRACE, "Action", action_name, \ 98 (flags_to_set), #flags_to_set); \ 101 #define pe__clear_raw_action_flags(action_flags, action_name, flags_to_clear) do { \ 102 action_flags = pcmk__clear_flags_as(__func__, __LINE__, \ 104 "Action", action_name, \ 110 #define pe__set_action_flags_as(function, line, action, flags_to_set) do { \ 111 (action)->flags = pcmk__set_flags_as((function), (line), \ 113 "Action", (action)->uuid, \ 119 #define pe__clear_action_flags_as(function, line, action, flags_to_clear) do { \ 120 (action)->flags = pcmk__clear_flags_as((function), (line), \ 122 "Action", (action)->uuid, \ 128 #define pe__set_order_flags(order_flags, flags_to_set) do { \ 129 order_flags = pcmk__set_flags_as(__func__, __LINE__, LOG_TRACE, \ 130 "Ordering", "constraint", \ 131 order_flags, (flags_to_set), \ 135 #define pe__clear_order_flags(order_flags, flags_to_clear) do { \ 136 order_flags = pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, \ 137 "Ordering", "constraint", \ 138 order_flags, (flags_to_clear), \ 142 #define pe_warn_once(pe_wo_bit, fmt...) do { \ 143 if (!pcmk_is_set(pcmk__warnings, pe_wo_bit)) { \ 144 if (pe_wo_bit == pcmk__wo_blind) { \ 149 pcmk__warnings = pcmk__set_flags_as(__func__, __LINE__, \ 151 "Warn-once", "logging", \ 153 (pe_wo_bit), #pe_wo_bit); \ 182 bool include_bundle);
197 bool optional,
bool runnable);
200 bool any_promoting,
bool any_demoting);
248 const char *target_role,
bool show_nodes);
251 ,
size_t pairs_count, ...);
261 static inline const char *
306 time_t *last_failure, uint32_t
flags,
307 const xmlNode *xml_op);
317 unsigned int *count_clean);
320 unsigned int *count);
325 return (rsc == NULL)? NULL : rsc->
fns->
active_node(rsc, NULL, NULL);
338 const char *comment, GHashTable *nodes,
341 #define pe__show_node_scores(level, rsc, text, nodes, scheduler) \ 342 pe__show_node_scores_as(__FILE__, __func__, __LINE__, \ 343 (level), (rsc), (text), (nodes), (scheduler)) 347 const char *action_name, guint interval_ms,
348 const xmlNode *action_config);
350 GHashTable *node_attrs,
353 const char *action_name, guint interval_ms,
354 bool include_disabled);
357 const char *action_name);
360 const char *action_name,
365 const char *action_name,
373 # define delete_key(rsc) pcmk__op_key(rsc->id, PCMK_ACTION_DELETE, 0) 374 # define delete_action(rsc, node, optional) custom_action( \ 375 rsc, delete_key(rsc), PCMK_ACTION_DELETE, node, \ 376 optional, rsc->cluster); 378 # define stop_key(rsc) pcmk__op_key(rsc->id, PCMK_ACTION_STOP, 0) 379 # define stop_action(rsc, node, optional) custom_action( \ 380 rsc, stop_key(rsc), PCMK_ACTION_STOP, node, \ 381 optional, rsc->cluster); 383 # define reload_key(rsc) pcmk__op_key(rsc->id, PCMK_ACTION_RELOAD_AGENT, 0) 384 # define start_key(rsc) pcmk__op_key(rsc->id, PCMK_ACTION_START, 0) 385 # define start_action(rsc, node, optional) custom_action( \ 386 rsc, start_key(rsc), PCMK_ACTION_START, node, \ 387 optional, rsc->cluster) 389 # define promote_key(rsc) pcmk__op_key(rsc->id, PCMK_ACTION_PROMOTE, 0) 390 # define promote_action(rsc, node, optional) custom_action( \ 391 rsc, promote_key(rsc), PCMK_ACTION_PROMOTE, node, \ 392 optional, rsc->cluster) 394 # define demote_key(rsc) pcmk__op_key(rsc->id, PCMK_ACTION_DEMOTE, 0) 395 # define demote_action(rsc, node, optional) custom_action( \ 396 rsc, demote_key(rsc), PCMK_ACTION_DEMOTE, node, \ 397 optional, rsc->cluster) 412 const char *task,
bool require_node);
420 bool same_node_default);
440 if (
id && rsc && rsc->
id) {
444 return (strlen(
id) == base_len) && !strncmp(
id, rsc->
id, base_len);
467 const xmlNode *xml_op,
468 GHashTable *overrides,
475 const xmlNode *xml_op,
480 const char *reason,
bool priority_delay,
496 gboolean
add_tag_ref(GHashTable * tags,
const char * tag_name,
const char * obj_ref);
500 void * print_data, gboolean print_all);
503 const char *reason,
bool priority_delay);
510 const pcmk_node_t *node,
long options,
void *print_data);
513 unsigned int options);
516 unsigned int options);
549 xmlNode *xml,
const char *field);
582 GHashTable *hash,
const char *always_first,
606 gboolean check_parent);
608 gboolean check_parent);
610 gboolean check_parent);
612 gboolean check_parent);
644 static inline const char *
648 return "unspecified node";
657 return "unidentified node";
685 static inline const char *
686 pe__xe_history_key(
const xmlNode *xml)
697 return pcmk__str_empty(key)?
ID(xml) : key;
gboolean native_active(pcmk_resource_t *rsc, gboolean all)
const pcmk_resource_t * pe__const_top_resource(const pcmk_resource_t *rsc, bool include_bundle)
void pe__count_bundle(pcmk_resource_t *rsc)
bool pe_can_fence(const pcmk_scheduler_t *scheduler, const pcmk_node_t *node)
pcmk_action_t * lh_action
void verify_pe_options(GHashTable *options)
enum rsc_role_e role_filter
void pe__create_clone_notif_pseudo_ops(pcmk_resource_t *clone, pcmk_action_t *start, pcmk_action_t *started, pcmk_action_t *stop, pcmk_action_t *stopped)
bool pe__shutdown_requested(const pcmk_node_t *node)
pcmk_ticket_t * ticket_new(const char *ticket_id, pcmk_scheduler_t *scheduler)
pcmk_node_t * pe__copy_node(const pcmk_node_t *this_node)
void trigger_unfencing(pcmk_resource_t *rsc, pcmk_node_t *node, const char *reason, pcmk_action_t *dependency, pcmk_scheduler_t *scheduler)
pcmk_resource_t * ip
IP address resource for ipaddr.
node_type
Possible node types.
pcmk_action_t * get_pseudo_op(const char *name, pcmk_scheduler_t *scheduler)
bool pe__is_universal_clone(const pcmk_resource_t *rsc, const pcmk_scheduler_t *scheduler)
void pe__free_bundle(pcmk_resource_t *rsc)
const char * pe_node_attribute_raw(const pcmk_node_t *node, const char *name)
pcmk_resource_t * pe__find_bundle_replica(const pcmk_resource_t *bundle, const pcmk_node_t *node)
gchar * pcmk__native_output_string(const pcmk_resource_t *rsc, const char *name, const pcmk_node_t *node, uint32_t show_opts, const char *target_role, bool show_nodes)
pcmk_node_t * pe__find_active_requires(const pcmk_resource_t *rsc, unsigned int *count)
pcmk_action_t * rh_action
gint pe__cmp_node_name(gconstpointer a, gconstpointer b)
xmlNode * pe__failed_probe_for_rsc(const pcmk_resource_t *rsc, const char *name)
enum pcmk__digest_result rc
gboolean order_actions(pcmk_action_t *lh_action, pcmk_action_t *rh_action, uint32_t flags)
int pe__target_rc_from_xml(const xmlNode *xml_op)
struct op_digest_cache_s op_digest_cache_t
gboolean get_target_role(const pcmk_resource_t *rsc, enum rsc_role_e *role)
Implementation of pcmk_action_t.
int pe__is_newer_op(const xmlNode *xml_a, const xmlNode *xml_b, bool same_node_default)
int pe__group_default(pcmk__output_t *out, va_list args)
int char2score(const char *score)
Get the integer value of a score string.
const char * pe__resource_description(const pcmk_resource_t *rsc, uint32_t show_opts)
void common_print(pcmk_resource_t *rsc, const char *pre_text, const char *name, const pcmk_node_t *node, long options, void *print_data)
GHashTable * pcmk__unpack_action_rsc_params(const xmlNode *action_xml, GHashTable *node_attrs, pcmk_scheduler_t *data_set)
pcmk_action_t * pe_fence_op(pcmk_node_t *node, const char *op, bool optional, const char *reason, bool priority_delay, pcmk_scheduler_t *scheduler)
op_digest_cache_t * rsc_action_digest_cmp(pcmk_resource_t *rsc, const xmlNode *xml_op, pcmk_node_t *node, pcmk_scheduler_t *scheduler)
int pe__clone_max(const pcmk_resource_t *clone)
int pe_get_configured_timeout(pcmk_resource_t *rsc, const char *action, pcmk_scheduler_t *scheduler)
void pe_action_set_reason(pcmk_action_t *action, const char *reason, bool overwrite)
int pe__clone_default(pcmk__output_t *out, va_list args)
void print_rscs_brief(GList *rsc_list, const char *pre_text, long options, void *print_data, gboolean print_all)
gint sort_op_by_callid(gconstpointer a, gconstpointer b)
enum rsc_role_e native_resource_state(const pcmk_resource_t *rsc, gboolean current)
action_tasks
Possible actions (including some pseudo-actions)
GList * pe__rscs_with_tag(pcmk_scheduler_t *scheduler, const char *tag_name)
void pe_fence_node(pcmk_scheduler_t *scheduler, pcmk_node_t *node, const char *reason, bool priority_delay)
Schedule a fence action for a node.
pcmk_node_t * pe_create_node(const char *id, const char *uname, const char *type, const char *score, pcmk_scheduler_t *scheduler)
action_fail_response
Possible responses to a resource action failure.
const char * pe_pref(GHashTable *options, const char *name)
GList * pe__build_rsc_list(pcmk_scheduler_t *scheduler, const char *s)
pcmk_action_t * pe__clear_failcount(pcmk_resource_t *rsc, const pcmk_node_t *node, const char *reason, pcmk_scheduler_t *scheduler)
Schedule a controller operation to clear a fail count.
enum crm_ais_msg_types type
enum pcmk__health_strategy pcmk__parse_health_strategy(const char *value)
void pe__set_resource_flags_recursive(pcmk_resource_t *rsc, uint64_t flags)
GList * pe__resource_actions(const pcmk_resource_t *rsc, const pcmk_node_t *node, const char *task, bool require_node)
Find all actions of given type for a resource.
void pe__foreach_const_bundle_replica(const pcmk_resource_t *bundle, bool(*fn)(const pe__bundle_replica_t *, void *), void *user_data)
int pe__resource_text(pcmk__output_t *out, va_list args)
void pe__foreach_param_check(pcmk_scheduler_t *scheduler, void(*cb)(pcmk_resource_t *, pcmk_node_t *, const xmlNode *, enum pcmk__check_parameters))
Implementation of pcmk_scheduler_t.
int pe__set_clone_flag(pcmk_resource_t *clone, enum pcmk__clone_flags flag)
pcmk_resource_t * remote
Pacemaker Remote connection into container.
int pe_get_failcount(const pcmk_node_t *node, pcmk_resource_t *rsc, time_t *last_failure, uint32_t flags, const xmlNode *xml_op)
gboolean clone_unpack(pcmk_resource_t *rsc, pcmk_scheduler_t *scheduler)
int pe__bundle_html(pcmk__output_t *out, va_list args)
rsc_start_requirement
What resource needs before it can be recovered from a failed node.
GList * pe__filter_rsc_list(GList *rscs, GList *filter)
#define XML_LRM_ATTR_TASK_KEY
gboolean native_unpack(pcmk_resource_t *rsc, pcmk_scheduler_t *scheduler)
void pe__print_bundle(pcmk_resource_t *rsc, const char *pre_text, long options, void *print_data)
gboolean group_unpack(pcmk_resource_t *rsc, pcmk_scheduler_t *scheduler)
pcmk_action_t * pe__new_rsc_pseudo_action(pcmk_resource_t *rsc, const char *task, bool optional, bool runnable)
void pe__clear_resource_flags_on_all(pcmk_scheduler_t *scheduler, uint64_t flag)
GList * find_actions_exact(GList *input, const char *key, const pcmk_node_t *on_node)
enum pe_discover_e discover_mode
void common_free(pcmk_resource_t *rsc)
Formatted output for pacemaker tools.
gboolean clone_active(pcmk_resource_t *rsc, gboolean all)
void pe__set_next_role(pcmk_resource_t *rsc, enum rsc_role_e role, const char *why)
int offset
0-origin index of this instance in bundle
int pe__rscs_brief_output(pcmk__output_t *out, GList *rsc_list, unsigned int options)
Implementation of pcmk_resource_t.
struct pe__order_constraint_s pe__ordering_t
int pe__bundle_text(pcmk__output_t *out, va_list args)
int pe__bundle_max(const pcmk_resource_t *rsc)
gboolean pe__bundle_is_filtered(const pcmk_resource_t *rsc, GList *only_rsc, gboolean check_parent)
const char * pe__add_bundle_remote_name(pcmk_resource_t *rsc, pcmk_scheduler_t *scheduler, xmlNode *xml, const char *field)
pcmk_node_t * node
Node created for this instance.
gboolean pe__clone_is_filtered(const pcmk_resource_t *rsc, GList *only_rsc, gboolean check_parent)
const pcmk_resource_t * pe__get_rsc_in_container(const pcmk_resource_t *instance)
const char * crm_element_value(const xmlNode *data, const char *name)
Retrieve the value of an XML attribute.
pcmk_resource_t * pe__last_group_member(const pcmk_resource_t *group)
void resource_location(pcmk_resource_t *rsc, const pcmk_node_t *node, int score, const char *tag, pcmk_scheduler_t *scheduler)
char * clone_strip(const char *last_rsc_id)
void pe__free_param_checks(pcmk_scheduler_t *scheduler)
int pe__name_and_nvpairs_xml(pcmk__output_t *out, bool is_list, const char *tag_name, size_t pairs_count,...)
const char * pe__node_attribute_calculated(const pcmk_node_t *node, const char *name, const pcmk_resource_t *rsc, enum pcmk__rsc_node node_type, bool force_host)
int pe__clone_xml(pcmk__output_t *out, va_list args)
char * digest_secure_calc
bool pe__rsc_running_on_any(pcmk_resource_t *rsc, GList *node_list)
op_digest_cache_t * pe__calculate_digests(pcmk_resource_t *rsc, const char *task, guint *interval_ms, const pcmk_node_t *node, const xmlNode *xml_op, GHashTable *overrides, bool calc_secure, pcmk_scheduler_t *scheduler)
int pe__node_health(pcmk_node_t *node)
#define pcmk_is_set(g, f)
Convenience alias for pcmk_all_flags_set(), to check single flag.
enum rsc_start_requirement pcmk__action_requires(const pcmk_resource_t *rsc, const char *action_name)
enum rsc_role_e clone_resource_state(const pcmk_resource_t *rsc, gboolean current)
struct pe_node_shared_s * details
Basic node information.
void pe_metadata(pcmk__output_t *out)
bool pe__bundle_needs_remote_name(pcmk_resource_t *rsc)
void pe__create_promotable_pseudo_ops(pcmk_resource_t *clone, bool any_promoting, bool any_demoting)
GList * pe__unames_with_tag(pcmk_scheduler_t *scheduler, const char *tag_name)
unsigned long long flags
Group of enum pcmk_rsc_flags.
const char * uname
Node name in cluster.
void pe__show_node_scores_as(const char *file, const char *function, int line, bool to_log, const pcmk_resource_t *rsc, const char *comment, GHashTable *nodes, pcmk_scheduler_t *scheduler)
GHashTable * config_hash
Cluster properties.
gboolean add_tag_ref(GHashTable *tags, const char *tag_name, const char *obj_ref)
void group_free(pcmk_resource_t *rsc)
void native_free(pcmk_resource_t *rsc)
pcmk_resource_t * container
Container associated with this instance.
void pe__unpack_dataset_nvpairs(const xmlNode *xml_obj, const char *set_name, const pe_rule_eval_data_t *rule_data, GHashTable *hash, const char *always_first, gboolean overwrite, pcmk_scheduler_t *scheduler)
Ticket constraint object.
char * ipaddr
IP address associated with this instance.
GHashTable * pe__node_list2table(const GList *list)
enum rsc_role_e pe__bundle_resource_state(const pcmk_resource_t *rsc, gboolean current)
pe_action_flags
Action scheduling flags.
void group_print(pcmk_resource_t *rsc, const char *pre_text, long options, void *print_data)
GList * pe__build_node_name_list(pcmk_scheduler_t *scheduler, const char *s)
bool pe__clone_flag_is_set(const pcmk_resource_t *clone, uint32_t flags)
void pe__free_digests(gpointer ptr)
void pe__register_messages(pcmk__output_t *out)
bool pe__rsc_has_tag(pcmk_scheduler_t *scheduler, const char *rsc, const char *tag)
Implementation of pcmk_node_t.
bool is_set_recursive(const pcmk_resource_t *rsc, long long flag, bool any)
#define PCMK__OPT_NODE_HEALTH_STRATEGY
gboolean group_active(pcmk_resource_t *rsc, gboolean all)
int pe__clone_promoted_node_max(const pcmk_resource_t *clone)
int pe__clone_promoted_max(const pcmk_resource_t *clone)
void pe__update_recheck_time(time_t recheck, pcmk_scheduler_t *scheduler, const char *reason)
const char * id
Node ID at the cluster layer.
void native_add_running(pcmk_resource_t *rsc, pcmk_node_t *node, pcmk_scheduler_t *scheduler, gboolean failed)
pcmk_action_t * custom_action(pcmk_resource_t *rsc, char *key, const char *task, const pcmk_node_t *on_node, gboolean optional, pcmk_scheduler_t *scheduler)
Create or update an action object.
int pe__resource_xml(pcmk__output_t *out, va_list args)
void pe__add_action_expected_result(pcmk_action_t *action, int expected_result)
char * native_parameter(pcmk_resource_t *rsc, pcmk_node_t *node, gboolean create, const char *name, pcmk_scheduler_t *scheduler)
pcmk_resource_t * native_find_rsc(pcmk_resource_t *rsc, const char *id, const pcmk_node_t *node, int flags)
gboolean pe__native_is_filtered(const pcmk_resource_t *rsc, GList *only_rsc, gboolean check_parent)
int pe__bundle_xml(pcmk__output_t *out, va_list args)
xmlNode * pcmk__find_action_config(const pcmk_resource_t *rsc, const char *action_name, guint interval_ms, bool include_disabled)
void clone_print(pcmk_resource_t *rsc, const char *pre_text, long options, void *print_data)
int pe__common_output_html(pcmk__output_t *out, const pcmk_resource_t *rsc, const char *name, const pcmk_node_t *node, unsigned int options)
Cluster status and scheduling.
gboolean pe__unpack_bundle(pcmk_resource_t *rsc, pcmk_scheduler_t *scheduler)
void pe__create_clone_notifications(pcmk_resource_t *clone)
int pe__node_text(pcmk__output_t *out, va_list args)
gboolean pe__bundle_active(pcmk_resource_t *rsc, gboolean all)
void add_hash_param(GHashTable *hash, const char *name, const char *value)
void pe__clear_resource_flags_recursive(pcmk_resource_t *rsc, uint64_t flags)
pcmk_rsc_methods_t * fns
Resource object methods.
void pe__free_clone_notification_data(pcmk_resource_t *clone)
void pe__order_notifs_after_fencing(const pcmk_action_t *action, pcmk_resource_t *rsc, pcmk_action_t *stonith_op)
pcmk_action_t * find_first_action(const GList *input, const char *uuid, const char *task, const pcmk_node_t *on_node)
pcmk_scheduler_t * scheduler
int pe__common_output_text(pcmk__output_t *out, const pcmk_resource_t *rsc, const char *name, const pcmk_node_t *node, unsigned int options)
GList * find_actions(GList *input, const char *key, const pcmk_node_t *on_node)
pcmk_resource_t * pe__first_container(const pcmk_resource_t *bundle)
char * clone_zero(const char *last_rsc_id)
bool pcmk__rsc_filtered_by_node(pcmk_resource_t *rsc, GList *only_node)
void pe__foreach_bundle_replica(pcmk_resource_t *bundle, bool(*fn)(pe__bundle_replica_t *, void *), void *user_data)
int pe__node_xml(pcmk__output_t *out, va_list args)
int pe__group_xml(pcmk__output_t *out, va_list args)
This structure contains everything that makes up a single output formatter.
pcmk_node_t *(* active_node)(const pcmk_resource_t *rsc, unsigned int *count_all, unsigned int *count_clean)
Find a node (and optionally count all) where resource is active.
bool pe__resource_is_disabled(const pcmk_resource_t *rsc)
pe_discover_e
When to probe a resource on a node (as specified in location constraints)
bool pe__uname_has_tag(pcmk_scheduler_t *scheduler, const char *node, const char *tag)
void pe_free_action(pcmk_action_t *action)
void pe__count_common(pcmk_resource_t *rsc)
pcmk_resource_t * child
Instance of bundled resource.
char * pe__node_display_name(pcmk_node_t *node, bool print_detail)
int pe__resource_html(pcmk__output_t *out, va_list args)
int pe__clone_node_max(const pcmk_resource_t *clone)
void pe__clear_resource_history(pcmk_resource_t *rsc, const pcmk_node_t *node)
void destroy_ticket(gpointer data)
void clone_free(pcmk_resource_t *rsc)
int pe__node_html(pcmk__output_t *out, va_list args)
A single instance of a bundle.
pcmk_resource_t * pe__bundled_resource(const pcmk_resource_t *rsc)
enum rsc_role_e group_resource_state(const pcmk_resource_t *rsc, gboolean current)
enum action_fail_response pcmk__parse_on_fail(const pcmk_resource_t *rsc, const char *action_name, guint interval_ms, const char *value)
bool pe__count_active_node(const pcmk_resource_t *rsc, pcmk_node_t *node, pcmk_node_t **active, unsigned int *count_all, unsigned int *count_clean)
int pe__sum_node_health_scores(const pcmk_node_t *node, int base_health)
bool pe__clone_is_ordered(const pcmk_resource_t *clone)
pcmk_node_t * native_location(const pcmk_resource_t *rsc, GList **list, int current)
bool pe__rsc_running_on_only(const pcmk_resource_t *rsc, const pcmk_node_t *node)
pcmk_resource_t * find_clone_instance(const pcmk_resource_t *rsc, const char *sub_id)
bool pe__group_flag_is_set(const pcmk_resource_t *group, uint32_t flags)
char * pe__action2reason(const pcmk_action_t *action, enum pe_action_flags flag)
enum rsc_role_e pcmk__role_after_failure(const pcmk_resource_t *rsc, const char *action_name, enum action_fail_response on_fail, GHashTable *meta)
bool pe__node_is_bundle_instance(const pcmk_resource_t *bundle, const pcmk_node_t *node)
enum action_tasks get_complex_task(const pcmk_resource_t *rsc, const char *name)
time_t get_effective_time(pcmk_scheduler_t *scheduler)
gboolean pe__group_is_filtered(const pcmk_resource_t *rsc, GList *only_rsc, gboolean check_parent)
const char * pe_base_name_end(const char *id)
const char * pe__clone_child_id(const pcmk_resource_t *rsc)
void pe__add_param_check(const xmlNode *rsc_op, pcmk_resource_t *rsc, pcmk_node_t *node, enum pcmk__check_parameters, pcmk_scheduler_t *scheduler)
struct pe__location_constraint_s pe__location_t
GList * pe__bundle_containers(const pcmk_resource_t *bundle)
char * digest_restart_calc
GHashTable * pcmk__unpack_action_meta(pcmk_resource_t *rsc, const pcmk_node_t *node, const char *action_name, guint interval_ms, const xmlNode *action_config)
void native_print(pcmk_resource_t *rsc, const char *pre_text, long options, void *print_data)
char * id
Resource ID in configuration.