pacemaker  2.1.5-b7adf64e51
Scalable High-Availability cluster resource manager
Enumerations | Functions
pcmk_sched_remote.c File Reference
#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"
Include dependency graph for pcmk_sched_remote.c:

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 (pe_working_set_t *data_set)
 
bool pcmk__is_failed_remote_node (pe_node_t *node)
 
bool pcmk__rsc_corresponds_to_guest (pe_resource_t *rsc, pe_node_t *node)
 
pe_node_tpcmk__connection_host_for_action (pe_action_t *action)
 
void pcmk__substitute_remote_addr (pe_resource_t *rsc, GHashTable *params)
 
void pcmk__add_bundle_meta_to_xml (xmlNode *args_xml, pe_action_t *action)
 Add special bundle meta-attributes to XML. More...
 

Enumeration Type Documentation

◆ remote_connection_state

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.

Function Documentation

◆ pcmk__add_bundle_meta_to_xml()

void pcmk__add_bundle_meta_to_xml ( xmlNode *  args_xml,
pe_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).

Parameters
[in]args_xmlXML to add attributes to
[in]actionAction to check

Definition at line 677 of file pcmk_sched_remote.c.

◆ pcmk__connection_host_for_action()

pe_node_t* pcmk__connection_host_for_action ( pe_action_t action)

Definition at line 542 of file pcmk_sched_remote.c.

◆ pcmk__is_failed_remote_node()

bool pcmk__is_failed_remote_node ( pe_node_t node)

Definition at line 503 of file pcmk_sched_remote.c.

◆ pcmk__order_remote_connection_actions()

void pcmk__order_remote_connection_actions ( pe_working_set_t data_set)

Definition at line 399 of file pcmk_sched_remote.c.

◆ pcmk__rsc_corresponds_to_guest()

bool pcmk__rsc_corresponds_to_guest ( pe_resource_t rsc,
pe_node_t node 
)

Definition at line 520 of file pcmk_sched_remote.c.

◆ pcmk__substitute_remote_addr()

void pcmk__substitute_remote_addr ( pe_resource_t rsc,
GHashTable *  params 
)

Definition at line 649 of file pcmk_sched_remote.c.