72 for (GList *gIter = rsc->
fillers; gIter != NULL; gIter = gIter->next) {
86 const char *value = NULL;
131 for (iter =
host->details->running_rsc; iter != NULL; iter = iter->next) {
138 (*helper)(guest_node, user_data);
161 const char *container_id,
const char *migrateable,
162 const char *is_managed,
const char *start_timeout,
163 const char *server,
const char *port)
194 if (port || server) {
218 const xmlNode *rsc_op;
229 struct check_op *check_op = NULL;
233 check_op = calloc(1,
sizeof(
struct check_op));
236 crm_trace(
"Deferring checks of %s until after allocation",
ID(rsc_op));
237 check_op->rsc_op = rsc_op;
239 check_op->node = node;
240 check_op->check_type = flag;
259 item != NULL; item = item->next) {
260 struct check_op *check_op = item->data;
262 cb(check_op->rsc, check_op->node, check_op->rsc_op,
263 check_op->check_type);
#define CRM_CHECK(expr, failure_action)
pcmk_scheduler_t * cluster
Cluster that resource is part of.
bool pe__is_bundle_node(const pcmk_node_t *node)
#define PCMK_ACTION_MONITOR
bool xml_contains_remote_node(xmlNode *xml)
const char * crm_xml_add(xmlNode *node, const char *name, const char *value)
Create an XML attribute with specified name and value.
pcmk_resource_t * pe__resource_contains_guest_node(const pcmk_scheduler_t *scheduler, const pcmk_resource_t *rsc)
#define PCMK_RESOURCE_CLASS_OCF
pcmk_resource_t * container
Resource containing this one, if any.
bool pe__is_remote_node(const pcmk_node_t *node)
Implementation of pcmk_scheduler_t.
#define XML_RSC_ATTR_REMOTE_RA_ADDR
bool pe__is_guest_or_remote_node(const pcmk_node_t *node)
GList * nodes
Nodes in cluster.
#define XML_TAG_ATTR_SETS
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_resource_t.
#define XML_RSC_ATTR_CONTAINER
const char * crm_element_value(const xmlNode *data, const char *name)
Retrieve the value of an XML attribute.
#define XML_CIB_TAG_RESOURCE
Whether the cluster includes any Pacemaker Remote nodes (via CIB)
#define crm_trace(fmt, args...)
pcmk_node_t * pe_find_node(const GList *node_list, const char *node_name)
Find a node by name in a list of nodes.
#define pcmk_is_set(g, f)
Convenience alias for pcmk_all_flags_set(), to check single flag.
void crm_xml_set_id(xmlNode *xml, const char *format,...) G_GNUC_PRINTF(2
struct pe_node_shared_s * details
Basic node information.
void pe__free_param_checks(pcmk_scheduler_t *scheduler)
#define PCMK_ACTION_START
#define XML_AGENT_ATTR_PROVIDER
#define XML_TAG_META_SETS
Wrappers for and extensions to libxml2.
#define XML_RSC_ATTR_MANAGED
xmlNode * create_xml_node(xmlNode *parent, const char *name)
void pe__add_param_check(const xmlNode *rsc_op, pcmk_resource_t *rsc, pcmk_node_t *node, enum pcmk__check_parameters flag, pcmk_scheduler_t *scheduler)
Implementation of pcmk_node_t.
GList * fillers
Resources contained by this one, if any.
bool pe__is_guest_node(const pcmk_node_t *node)
gboolean is_remote_node
Whether this is a remote connection.
pcmk_scheduler_t * scheduler
GList * param_check
History entries that need to be checked.
#define XML_RSC_ATTR_INTERNAL_RSC
void pe_foreach_guest_node(const pcmk_scheduler_t *scheduler, const pcmk_node_t *host, void(*helper)(const pcmk_node_t *, void *), void *user_data)
xmlNode * crm_create_op_xml(xmlNode *parent, const char *prefix, const char *task, const char *interval_spec, const char *timeout)
Create a CIB XML element for an operation.
bool pe__resource_is_remote_conn(const pcmk_resource_t *rsc)
xmlNode * crm_create_nvpair_xml(xmlNode *parent, const char *id, const char *name, const char *value)
Create an XML name/value pair.
unsigned long long flags
Group of enum pcmk_scheduler_flags.
xmlNode * pe_create_remote_xml(xmlNode *parent, const char *uname, const char *container_id, const char *migrateable, const char *is_managed, const char *start_timeout, const char *server, const char *port)
enum node_type type
Node variant.
#define XML_OP_ATTR_ALLOW_MIGRATE
pcmk_resource_t * remote_rsc
Remote connection resource for node, if it is a Pacemaker Remote node.
#define XML_AGENT_ATTR_CLASS
char * id
Resource ID in configuration.