pacemaker
2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <sys/param.h>
#include <crm/crm.h>
#include <crm/cib.h>
#include <crm/msg_xml.h>
#include <crm/common/xml.h>
#include <crm/common/xml_internal.h>
#include <glib.h>
#include <crm/pengine/status.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
Go to the source code of this file.
Enumerations | |
enum | remote_connection_state { remote_state_unknown = 0, remote_state_alive = 1, remote_state_resting = 2, remote_state_failed = 3, remote_state_stopped = 4 } |
Functions | |
void | pcmk__order_remote_connection_actions (pcmk_scheduler_t *scheduler) |
bool | pcmk__is_failed_remote_node (const pcmk_node_t *node) |
bool | pcmk__rsc_corresponds_to_guest (const pcmk_resource_t *rsc, const pcmk_node_t *node) |
pcmk_node_t * | pcmk__connection_host_for_action (const pcmk_action_t *action) |
void | pcmk__substitute_remote_addr (pcmk_resource_t *rsc, GHashTable *params) |
void | pcmk__add_bundle_meta_to_xml (xmlNode *args_xml, const pcmk_action_t *action) |
Add special bundle meta-attributes to XML. More... | |
Enumerator | |
---|---|
remote_state_unknown | |
remote_state_alive | |
remote_state_resting | |
remote_state_failed | |
remote_state_stopped |
Definition at line 26 of file pcmk_sched_remote.c.
void pcmk__add_bundle_meta_to_xml | ( | xmlNode * | args_xml, |
const pcmk_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,out] | args_xml | XML to add attributes to |
[in] | action | Action to check |
Definition at line 683 of file pcmk_sched_remote.c.
pcmk_node_t* pcmk__connection_host_for_action | ( | const pcmk_action_t * | action | ) |
Definition at line 546 of file pcmk_sched_remote.c.
bool pcmk__is_failed_remote_node | ( | const pcmk_node_t * | node | ) |
Definition at line 506 of file pcmk_sched_remote.c.
void pcmk__order_remote_connection_actions | ( | pcmk_scheduler_t * | scheduler | ) |
Definition at line 399 of file pcmk_sched_remote.c.
bool pcmk__rsc_corresponds_to_guest | ( | const pcmk_resource_t * | rsc, |
const pcmk_node_t * | node | ||
) |
Definition at line 523 of file pcmk_sched_remote.c.
void pcmk__substitute_remote_addr | ( | pcmk_resource_t * | rsc, |
GHashTable * | params | ||
) |
Definition at line 655 of file pcmk_sched_remote.c.