MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / pe_fence_node

Function pe_fence_node

lib/pengine/unpack.c:48–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 enum action_fail_response *failed, pe_working_set_t * data_set);
47
48static void
49pe_fence_node(pe_working_set_t * data_set, node_t * node, const char *reason)
50{
51 CRM_CHECK(node, return);
52 if (node->details->unclean == FALSE) {
53 if (is_set(data_set->flags, pe_flag_stonith_enabled)) {
54 crm_warn("Node %s will be fenced %s", node->details->uname, reason);
55 } else {
56 crm_warn("Node %s is unclean %s", node->details->uname, reason);
57 }
58 }
59 node->details->unclean = TRUE;
60}
61
62gboolean
63unpack_config(xmlNode * config, pe_working_set_t * data_set)

Callers 4

unpack_statusFunction · 0.85
process_rsc_stateFunction · 0.85

Calls 1

is_setFunction · 0.85

Tested by

no test coverage detected