pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
Macros | Functions
pcmk_sched_actions.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <sys/param.h>
#include <glib.h>
#include <crm/lrmd_internal.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
Include dependency graph for pcmk_sched_actions.c:

Go to the source code of this file.

Macros

#define action_type_str(flags)   (pcmk_is_set((flags), pe_action_pseudo)? "pseudo-action" : "action")
 
#define action_optional_str(flags)   (pcmk_is_set((flags), pe_action_optional)? "optional" : "required")
 
#define action_runnable_str(flags)   (pcmk_is_set((flags), pe_action_runnable)? "runnable" : "unrunnable")
 
#define action_node_str(a)   (((a)->node == NULL)? "no node" : (a)->node->details->uname)
 
#define FAKE_TE_ID   "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
 
#define XPATH_NODE_HISTORY
 

Functions

gboolean DeleteRsc (pe_resource_t *rsc, pe_node_t *node, gboolean optional, pe_working_set_t *data_set)
 
void pcmk__update_action_for_orderings (pe_action_t *then, pe_working_set_t *data_set)
 
void pcmk__log_action (const char *pre_text, pe_action_t *action, bool details)
 
pe_action_tpcmk__new_rsc_pseudo_action (pe_resource_t *rsc, const char *task, bool optional, bool runnable)
 
pe_action_tpcmk__new_cancel_action (pe_resource_t *rsc, const char *task, guint interval_ms, pe_node_t *node)
 
pe_action_tpcmk__new_shutdown_action (pe_node_t *node, pe_working_set_t *data_set)
 
xmlNode * pcmk__create_history_xml (xmlNode *parent, lrmd_event_data_t *op, const char *caller_version, int target_rc, const char *node, const char *origin)
 
bool pcmk__action_locks_rsc_to_node (const pe_action_t *action)
 
void pcmk__deduplicate_action_inputs (pe_action_t *action)
 
void pcmk__output_actions (pe_working_set_t *data_set)
 
bool pcmk__check_action_config (pe_resource_t *rsc, pe_node_t *node, xmlNode *xml_op)
 
void pcmk__handle_rsc_config_changes (pe_working_set_t *data_set)
 

Macro Definition Documentation

◆ action_node_str

#define action_node_str (   a)    (((a)->node == NULL)? "no node" : (a)->node->details->uname)

Definition at line 479 of file pcmk_sched_actions.c.

◆ action_optional_str

#define action_optional_str (   flags)    (pcmk_is_set((flags), pe_action_optional)? "optional" : "required")

Definition at line 473 of file pcmk_sched_actions.c.

◆ action_runnable_str

#define action_runnable_str (   flags)    (pcmk_is_set((flags), pe_action_runnable)? "runnable" : "unrunnable")

Definition at line 476 of file pcmk_sched_actions.c.

◆ action_type_str

#define action_type_str (   flags)    (pcmk_is_set((flags), pe_action_pseudo)? "pseudo-action" : "action")

Definition at line 470 of file pcmk_sched_actions.c.

◆ FAKE_TE_ID

#define FAKE_TE_ID   "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Definition at line 883 of file pcmk_sched_actions.c.

◆ XPATH_NODE_HISTORY

#define XPATH_NODE_HISTORY
Value:
"/" XML_CIB_TAG_STATE "[@" XML_ATTR_UNAME "='%s']" \
#define XML_CIB_TAG_LRM
Definition: msg_xml.h:268
#define XML_CIB_TAG_STATE
Definition: msg_xml.h:204
#define XML_ATTR_UNAME
Definition: msg_xml.h:157
#define XML_TAG_CIB
Definition: msg_xml.h:115
#define XML_LRM_TAG_RESOURCES
Definition: msg_xml.h:269
#define XML_CIB_TAG_STATUS
Definition: msg_xml.h:185

Definition at line 1711 of file pcmk_sched_actions.c.

Function Documentation

◆ DeleteRsc()

gboolean DeleteRsc ( pe_resource_t rsc,
pe_node_t node,
gboolean  optional,
pe_working_set_t data_set 
)

Definition at line 2244 of file pcmk_sched_native.c.

◆ pcmk__action_locks_rsc_to_node()

bool pcmk__action_locks_rsc_to_node ( const pe_action_t action)

Definition at line 1074 of file pcmk_sched_actions.c.

◆ pcmk__check_action_config()

bool pcmk__check_action_config ( pe_resource_t rsc,
pe_node_t node,
xmlNode *  xml_op 
)

Definition at line 1442 of file pcmk_sched_actions.c.

◆ pcmk__create_history_xml()

xmlNode* pcmk__create_history_xml ( xmlNode *  parent,
lrmd_event_data_t op,
const char *  caller_version,
int  target_rc,
const char *  node,
const char *  origin 
)

Definition at line 899 of file pcmk_sched_actions.c.

◆ pcmk__deduplicate_action_inputs()

void pcmk__deduplicate_action_inputs ( pe_action_t action)

Definition at line 1123 of file pcmk_sched_actions.c.

◆ pcmk__handle_rsc_config_changes()

void pcmk__handle_rsc_config_changes ( pe_working_set_t data_set)

Definition at line 1728 of file pcmk_sched_actions.c.

◆ pcmk__log_action()

void pcmk__log_action ( const char *  pre_text,
pe_action_t action,
bool  details 
)

Definition at line 673 of file pcmk_sched_actions.c.

◆ pcmk__new_cancel_action()

pe_action_t* pcmk__new_cancel_action ( pe_resource_t rsc,
const char *  task,
guint  interval_ms,
pe_node_t node 
)

Definition at line 800 of file pcmk_sched_actions.c.

◆ pcmk__new_rsc_pseudo_action()

pe_action_t* pcmk__new_rsc_pseudo_action ( pe_resource_t rsc,
const char *  task,
bool  optional,
bool  runnable 
)

Definition at line 771 of file pcmk_sched_actions.c.

◆ pcmk__new_shutdown_action()

pe_action_t* pcmk__new_shutdown_action ( pe_node_t node,
pe_working_set_t data_set 
)

Definition at line 836 of file pcmk_sched_actions.c.

◆ pcmk__output_actions()

void pcmk__output_actions ( pe_working_set_t data_set)

Definition at line 1167 of file pcmk_sched_actions.c.

◆ pcmk__update_action_for_orderings()

void pcmk__update_action_for_orderings ( pe_action_t then,
pe_working_set_t data_set 
)

Definition at line 490 of file pcmk_sched_actions.c.