#include <crm_internal.h>
#include <stdio.h>
#include <string.h>
#include <glib.h>
#include <time.h>
#include <crm/crm.h>
#include <crm/services.h>
#include <crm/msg_xml.h>
#include <crm/common/xml.h>
#include <crm/common/xml_internal.h>
#include <crm/common/util.h>
#include <crm/pengine/rules.h>
#include <crm/pengine/internal.h>
#include <crm/common/iso8601_internal.h>
#include <pe_status_private.h>
Go to the source code of this file.
|
| CRM_TRACE_INIT_DATA (pe_status) |
|
void | pe_fence_node (pe_working_set_t *data_set, pe_node_t *node, const char *reason, bool priority_delay) |
| Schedule a fence action for a node. More...
|
|
gboolean | unpack_config (xmlNode *config, pe_working_set_t *data_set) |
|
pe_node_t * | pe_create_node (const char *id, const char *uname, const char *type, const char *score, pe_working_set_t *data_set) |
|
gboolean | unpack_nodes (xmlNode *xml_nodes, pe_working_set_t *data_set) |
|
gboolean | unpack_remote_nodes (xmlNode *xml_resources, pe_working_set_t *data_set) |
|
gboolean | unpack_resources (xmlNode *xml_resources, pe_working_set_t *data_set) |
|
gboolean | unpack_tags (xmlNode *xml_tags, pe_working_set_t *data_set) |
|
gboolean | unpack_status (xmlNode *status, pe_working_set_t *data_set) |
|
const char * | pe_base_name_end (const char *id) |
|
char * | clone_strip (const char *last_rsc_id) |
|
char * | clone_zero (const char *last_rsc_id) |
|
void | calculate_active_ops (GList *sorted_op_list, int *start_index, int *stop_index) |
|
int | pe__target_rc_from_xml (xmlNode *xml_op) |
|
GList * | find_operations (const char *rsc, const char *node, gboolean active_filter, pe_working_set_t *data_set) |
|
#define set_config_flag |
( |
|
data_set, |
|
|
|
option, |
|
|
|
flag |
|
) |
| |
Value:do { \
const
char *scf_value =
pe_pref((data_set)->config_hash, (option)); \
if (scf_value != NULL) { \
(data_set)->
flags = pcmk__set_flags_as(__func__, __LINE__, \
(flag), #flag); \
} else { \
(data_set)->
flags = pcmk__clear_flags_as(__func__, __LINE__,\
(flag), #flag); \
} \
} \
} while(0)
const char * pe_pref(GHashTable *options, const char *name)
gboolean crm_is_true(const char *s)
Definition at line 35 of file unpack.c.
#define STATUS_PATH_MAX 1024 |
#define XPATH_ENABLE_UNFENCING |
Value:
#define XML_CIB_TAG_RESOURCES
#define XPATH_UNFENCING_NVPAIR
#define XML_TAG_META_SETS
#define XML_CIB_TAG_RSCCONFIG
#define XML_CIB_TAG_CONFIGURATION
Definition at line 177 of file unpack.c.
#define XPATH_UNFENCING_NVPAIR |
Value:
#define PCMK_STONITH_PROVIDES
#define XML_NVPAIR_ATTR_NAME
#define XML_CIB_TAG_NVPAIR
#define XML_RSC_ATTR_REQUIRES
#define XML_NVPAIR_ATTR_VALUE
Definition at line 171 of file unpack.c.
void calculate_active_ops |
( |
GList * |
sorted_op_list, |
|
|
int * |
start_index, |
|
|
int * |
stop_index |
|
) |
| |
char* clone_strip |
( |
const char * |
last_rsc_id | ) |
|
char* clone_zero |
( |
const char * |
last_rsc_id | ) |
|
CRM_TRACE_INIT_DATA |
( |
pe_status |
| ) |
|
GList* find_operations |
( |
const char * |
rsc, |
|
|
const char * |
node, |
|
|
gboolean |
active_filter, |
|
|
pe_working_set_t * |
data_set |
|
) |
| |
int pe__target_rc_from_xml |
( |
xmlNode * |
xml_op | ) |
|
const char* pe_base_name_end |
( |
const char * |
id | ) |
|
pe_node_t* pe_create_node |
( |
const char * |
id, |
|
|
const char * |
uname, |
|
|
const char * |
type, |
|
|
const char * |
score, |
|
|
pe_working_set_t * |
data_set |
|
) |
| |
Schedule a fence action for a node.
- Parameters
-
[in,out] | data_set | Current working set of cluster |
[in,out] | node | Node to fence |
[in] | reason | Text description of why fencing is needed |
[in] | priority_delay | Whether to consider priority-fencing-delay |
Definition at line 97 of file unpack.c.
gboolean unpack_remote_nodes |
( |
xmlNode * |
xml_resources, |
|
|
pe_working_set_t * |
data_set |
|
) |
| |
gboolean unpack_resources |
( |
xmlNode * |
xml_resources, |
|
|
pe_working_set_t * |
data_set |
|
) |
| |