pacemaker  2.1.3-ea053b43a
Scalable High-Availability cluster resource manager
Macros | Functions | Variables
pcmk_injections.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <sys/types.h>
#include <dirent.h>
#include <crm/crm.h>
#include <crm/lrmd.h>
#include <crm/cib.h>
#include <crm/cib/internal.h>
#include <crm/common/util.h>
#include <crm/common/iso8601.h>
#include <crm/common/xml_internal.h>
#include <crm/lrmd_internal.h>
#include <crm/pengine/status.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
Include dependency graph for pcmk_injections.c:

Go to the source code of this file.

Macros

#define XPATH_NODE_CONFIG   "//" XML_CIB_TAG_NODE "[@uname='%s']"
 
#define XPATH_NODE_STATE   "//" XML_CIB_TAG_STATE "[@uname='%s']"
 
#define XPATH_RSC_HISTORY
 
#define XPATH_MAX   1024
 

Functions

void pcmk__inject_failcount (pcmk__output_t *out, xmlNode *cib_node, const char *resource, const char *task, guint interval_ms, int rc)
 
xmlNode * pcmk__inject_action_result (xmlNode *cib_resource, lrmd_event_data_t *op, int target_rc)
 
xmlNode * pcmk__inject_node (cib_t *cib_conn, const char *node, const char *uuid)
 
xmlNode * pcmk__inject_node_state_change (cib_t *cib_conn, const char *node, bool up)
 
xmlNode * pcmk__inject_resource_history (pcmk__output_t *out, xmlNode *cib_node, const char *resource, const char *lrm_name, const char *rclass, const char *rtype, const char *rprovider)
 
void pcmk__inject_scheduler_input (pe_working_set_t *data_set, cib_t *cib, pcmk_injections_t *injections)
 
void pcmk_free_injections (pcmk_injections_t *injections)
 Free a :pcmk_injections_t structure. More...
 

Variables

bool pcmk__simulate_node_config = false
 

Macro Definition Documentation

◆ XPATH_MAX

#define XPATH_MAX   1024

Definition at line 419 of file pcmk_injections.c.

◆ XPATH_NODE_CONFIG

#define XPATH_NODE_CONFIG   "//" XML_CIB_TAG_NODE "[@uname='%s']"

Definition at line 36 of file pcmk_injections.c.

◆ XPATH_NODE_STATE

#define XPATH_NODE_STATE   "//" XML_CIB_TAG_STATE "[@uname='%s']"

Definition at line 37 of file pcmk_injections.c.

◆ XPATH_RSC_HISTORY

#define XPATH_RSC_HISTORY
Value:
XML_LRM_TAG_RESOURCE "[@id='%s']"
#define XPATH_NODE_STATE

Definition at line 38 of file pcmk_injections.c.

Function Documentation

◆ pcmk__inject_action_result()

xmlNode* pcmk__inject_action_result ( xmlNode *  cib_resource,
lrmd_event_data_t op,
int  target_rc 
)

Definition at line 201 of file pcmk_injections.c.

◆ pcmk__inject_failcount()

void pcmk__inject_failcount ( pcmk__output_t out,
xmlNode *  cib_node,
const char *  resource,
const char *  task,
guint  interval_ms,
int  rc 
)

Definition at line 89 of file pcmk_injections.c.

◆ pcmk__inject_node()

xmlNode* pcmk__inject_node ( cib_t cib_conn,
const char *  node,
const char *  uuid 
)

Definition at line 222 of file pcmk_injections.c.

◆ pcmk__inject_node_state_change()

xmlNode* pcmk__inject_node_state_change ( cib_t cib_conn,
const char *  node,
bool  up 
)

Definition at line 282 of file pcmk_injections.c.

◆ pcmk__inject_resource_history()

xmlNode* pcmk__inject_resource_history ( pcmk__output_t out,
xmlNode *  cib_node,
const char *  resource,
const char *  lrm_name,
const char *  rclass,
const char *  rtype,
const char *  rprovider 
)

Definition at line 343 of file pcmk_injections.c.

◆ pcmk__inject_scheduler_input()

void pcmk__inject_scheduler_input ( pe_working_set_t data_set,
cib_t cib,
pcmk_injections_t injections 
)

Definition at line 609 of file pcmk_injections.c.

◆ pcmk_free_injections()

void pcmk_free_injections ( pcmk_injections_t injections)

Free a :pcmk_injections_t structure.

Parameters
[in,out]injectionsThe structure to be freed

Definition at line 739 of file pcmk_injections.c.

Variable Documentation

◆ pcmk__simulate_node_config

bool pcmk__simulate_node_config = false

Definition at line 34 of file pcmk_injections.c.