this_node 294 include/crm/pengine/internal.h pe_node_t *pe__copy_node(const pe_node_t *this_node); this_node 81 lib/pacemaker/pcmk_sched_nodes.c pe_node_t *this_node = (pe_node_t *) gIter->data; this_node 83 lib/pacemaker/pcmk_sched_nodes.c new_node = pe__copy_node(this_node); this_node 56 lib/pengine/unpack.c pe_node_t *this_node); this_node 59 lib/pengine/unpack.c static void determine_online_status(xmlNode *node_state, pe_node_t *this_node, this_node 961 lib/pengine/unpack.c unpack_handle_remote_attrs(pe_node_t *this_node, xmlNode *state, pe_working_set_t * data_set) this_node 971 lib/pengine/unpack.c if ((this_node == NULL) || !pe__is_guest_or_remote_node(this_node)) { this_node 974 lib/pengine/unpack.c crm_trace("Processing remote node id=%s, uname=%s", this_node->details->id, this_node->details->uname); this_node 977 lib/pengine/unpack.c &(this_node->details->remote_maintenance), 0); this_node 979 lib/pengine/unpack.c rsc = this_node->details->remote_rsc; this_node 980 lib/pengine/unpack.c if (this_node->details->remote_requires_reset == FALSE) { this_node 981 lib/pengine/unpack.c this_node->details->unclean = FALSE; this_node 982 lib/pengine/unpack.c this_node->details->unseen = FALSE; this_node 985 lib/pengine/unpack.c add_node_attrs(attrs, this_node, TRUE, data_set); this_node 987 lib/pengine/unpack.c if (pe__shutdown_requested(this_node)) { this_node 988 lib/pengine/unpack.c crm_info("Node %s is shutting down", this_node->details->uname); this_node 989 lib/pengine/unpack.c this_node->details->shutdown = TRUE; this_node 992 lib/pengine/unpack.c if (crm_is_true(pe_node_attribute_raw(this_node, "standby"))) { this_node 993 lib/pengine/unpack.c crm_info("Node %s is in standby-mode", this_node->details->uname); this_node 994 lib/pengine/unpack.c this_node->details->standby = TRUE; this_node 997 lib/pengine/unpack.c if (crm_is_true(pe_node_attribute_raw(this_node, "maintenance")) || this_node 999 lib/pengine/unpack.c crm_info("Node %s is in maintenance-mode", this_node->details->uname); this_node 1000 lib/pengine/unpack.c this_node->details->maintenance = TRUE; this_node 1003 lib/pengine/unpack.c resource_discovery_enabled = pe_node_attribute_raw(this_node, XML_NODE_ATTR_RSC_DISCOVERY); this_node 1005 lib/pengine/unpack.c if (pe__is_remote_node(this_node) this_node 1008 lib/pengine/unpack.c XML_NODE_ATTR_RSC_DISCOVERY, this_node->details->uname); this_node 1015 lib/pengine/unpack.c crm_info("Node %s has resource discovery disabled", this_node->details->uname); this_node 1016 lib/pengine/unpack.c this_node->details->rsc_discovery_enabled = FALSE; this_node 1073 lib/pengine/unpack.c pe_node_t *this_node = NULL; this_node 1089 lib/pengine/unpack.c this_node = pe_find_node_any(data_set->nodes, id, uname); this_node 1090 lib/pengine/unpack.c if (this_node == NULL) { this_node 1096 lib/pengine/unpack.c if (pe__is_guest_or_remote_node(this_node)) { this_node 1103 lib/pengine/unpack.c &(this_node->details->remote_was_fenced), 0); this_node 1107 lib/pengine/unpack.c unpack_transient_attributes(state, this_node, data_set); this_node 1112 lib/pengine/unpack.c this_node->details->unclean = FALSE; this_node 1113 lib/pengine/unpack.c this_node->details->unseen = FALSE; this_node 1116 lib/pengine/unpack.c this_node->details->uname, id); this_node 1117 lib/pengine/unpack.c determine_online_status(state, this_node, data_set); this_node 1120 lib/pengine/unpack.c && this_node->details->online this_node 1126 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "cluster does not have quorum", this_node 1159 lib/pengine/unpack.c pe_node_t *this_node = NULL; this_node 1168 lib/pengine/unpack.c this_node = pe_find_node_any(data_set->nodes, id, uname); this_node 1169 lib/pengine/unpack.c if (this_node == NULL) { this_node 1176 lib/pengine/unpack.c if (this_node->details->unpacked) { this_node 1185 lib/pengine/unpack.c } else if (pe__is_guest_node(this_node)) { this_node 1190 lib/pengine/unpack.c pe_resource_t *rsc = this_node->details->remote_rsc; this_node 1200 lib/pengine/unpack.c } else if (pe__is_remote_node(this_node)) { this_node 1206 lib/pengine/unpack.c pe_resource_t *rsc = this_node->details->remote_rsc; this_node 1223 lib/pengine/unpack.c && !this_node->details->online) { this_node 1229 lib/pengine/unpack.c if (pe__is_guest_or_remote_node(this_node)) { this_node 1230 lib/pengine/unpack.c determine_remote_online_status(data_set, this_node); this_node 1231 lib/pengine/unpack.c unpack_handle_remote_attrs(this_node, state, data_set); this_node 1237 lib/pengine/unpack.c this_node->details->unpacked = TRUE; this_node 1238 lib/pengine/unpack.c unpack_node_lrm(this_node, state, data_set); this_node 1300 lib/pengine/unpack.c pe_node_t *this_node = gIter->data; this_node 1302 lib/pengine/unpack.c if (!pe__is_guest_or_remote_node(this_node)) { this_node 1305 lib/pengine/unpack.c if (this_node->details->shutdown this_node 1306 lib/pengine/unpack.c && (this_node->details->remote_rsc != NULL)) { this_node 1307 lib/pengine/unpack.c pe__set_next_role(this_node->details->remote_rsc, RSC_ROLE_STOPPED, this_node 1310 lib/pengine/unpack.c if (!this_node->details->unpacked) { this_node 1311 lib/pengine/unpack.c determine_remote_online_status(data_set, this_node); this_node 1320 lib/pengine/unpack.c pe_node_t * this_node) this_node 1338 lib/pengine/unpack.c } else if (this_node->details->expected_up == FALSE) { this_node 1345 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "peer is unexpectedly down", FALSE); this_node 1354 lib/pengine/unpack.c pe_node_t * this_node) this_node 1363 lib/pengine/unpack.c const char *terminate = pe_node_attribute_raw(this_node, "terminate"); this_node 1385 lib/pengine/unpack.c this_node->details->uname, crm_str(in_cluster), crm_str(is_peer), this_node 1394 lib/pengine/unpack.c if (this_node->details->shutdown) { this_node 1395 lib/pengine/unpack.c crm_debug("%s is shutting down", this_node->details->uname); this_node 1401 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "peer has not been seen by the cluster", FALSE); this_node 1404 lib/pengine/unpack.c pe_fence_node(data_set, this_node, this_node 1410 lib/pengine/unpack.c crm_info("- Node %s is not ready to run resources", this_node->details->uname); this_node 1411 lib/pengine/unpack.c this_node->details->standby = TRUE; this_node 1412 lib/pengine/unpack.c this_node->details->pending = TRUE; this_node 1415 lib/pengine/unpack.c crm_trace("%s is down or still coming up", this_node->details->uname); this_node 1420 lib/pengine/unpack.c crm_info("Node %s was just shot", this_node->details->uname); this_node 1425 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "peer is no longer part of the cluster", TRUE); this_node 1428 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "peer process is no longer available", FALSE); this_node 1432 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "termination was requested", FALSE); this_node 1435 lib/pengine/unpack.c crm_info("Node %s is active", this_node->details->uname); this_node 1438 lib/pengine/unpack.c crm_info("Node %s is not ready to run resources", this_node->details->uname); this_node 1439 lib/pengine/unpack.c this_node->details->standby = TRUE; this_node 1440 lib/pengine/unpack.c this_node->details->pending = TRUE; this_node 1443 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "peer was in an unknown state", FALSE); this_node 1445 lib/pengine/unpack.c this_node->details->uname, crm_str(in_cluster), crm_str(is_peer), this_node 1446 lib/pengine/unpack.c crm_str(join), crm_str(exp_state), do_terminate, this_node->details->shutdown); this_node 1453 lib/pengine/unpack.c determine_remote_online_status(pe_working_set_t * data_set, pe_node_t * this_node) this_node 1455 lib/pengine/unpack.c pe_resource_t *rsc = this_node->details->remote_rsc; this_node 1464 lib/pengine/unpack.c this_node->details->online = FALSE; this_node 1477 lib/pengine/unpack.c (container? "Guest" : "Remote"), this_node->details->id); this_node 1478 lib/pengine/unpack.c this_node->details->online = TRUE; this_node 1484 lib/pengine/unpack.c (container? "Guest" : "Remote"), this_node->details->id); this_node 1485 lib/pengine/unpack.c this_node->details->shutdown = TRUE; this_node 1491 lib/pengine/unpack.c this_node->details->id); this_node 1492 lib/pengine/unpack.c this_node->details->online = FALSE; this_node 1493 lib/pengine/unpack.c this_node->details->remote_requires_reset = TRUE; this_node 1497 lib/pengine/unpack.c (container? "Guest" : "Remote"), this_node->details->id); this_node 1498 lib/pengine/unpack.c this_node->details->online = FALSE; this_node 1504 lib/pengine/unpack.c (container? "Guest" : "Remote"), this_node->details->id); this_node 1505 lib/pengine/unpack.c this_node->details->online = FALSE; this_node 1506 lib/pengine/unpack.c this_node->details->remote_requires_reset = FALSE; this_node 1511 lib/pengine/unpack.c this_node->details->id); this_node 1512 lib/pengine/unpack.c this_node->details->online = FALSE; this_node 1513 lib/pengine/unpack.c this_node->details->remote_requires_reset = TRUE; this_node 1518 lib/pengine/unpack.c this_node->details->id, this_node->details->online ? "TRUE" : "FALSE"); this_node 1522 lib/pengine/unpack.c determine_online_status(xmlNode * node_state, pe_node_t * this_node, pe_working_set_t * data_set) this_node 1527 lib/pengine/unpack.c CRM_CHECK(this_node != NULL, return); this_node 1529 lib/pengine/unpack.c this_node->details->shutdown = FALSE; this_node 1530 lib/pengine/unpack.c this_node->details->expected_up = FALSE; this_node 1532 lib/pengine/unpack.c if (pe__shutdown_requested(this_node)) { this_node 1533 lib/pengine/unpack.c this_node->details->shutdown = TRUE; this_node 1536 lib/pengine/unpack.c this_node->details->expected_up = TRUE; this_node 1539 lib/pengine/unpack.c if (this_node->details->type == node_ping) { this_node 1540 lib/pengine/unpack.c this_node->details->unclean = FALSE; this_node 1547 lib/pengine/unpack.c online = determine_online_status_no_fencing(data_set, node_state, this_node); this_node 1550 lib/pengine/unpack.c online = determine_online_status_fencing(data_set, node_state, this_node); this_node 1554 lib/pengine/unpack.c this_node->details->online = TRUE; this_node 1558 lib/pengine/unpack.c this_node->fixed = TRUE; this_node 1559 lib/pengine/unpack.c this_node->weight = -INFINITY; this_node 1562 lib/pengine/unpack.c if (online && this_node->details->shutdown) { this_node 1564 lib/pengine/unpack.c this_node->fixed = TRUE; this_node 1565 lib/pengine/unpack.c this_node->weight = -INFINITY; this_node 1568 lib/pengine/unpack.c if (this_node->details->type == node_ping) { this_node 1569 lib/pengine/unpack.c crm_info("Node %s is not a Pacemaker node", this_node->details->uname); this_node 1571 lib/pengine/unpack.c } else if (this_node->details->unclean) { this_node 1572 lib/pengine/unpack.c pe_proc_warn("Node %s is unclean", this_node->details->uname); this_node 1574 lib/pengine/unpack.c } else if (this_node->details->online) { this_node 1575 lib/pengine/unpack.c crm_info("Node %s is %s", this_node->details->uname, this_node 1576 lib/pengine/unpack.c this_node->details->shutdown ? "shutting down" : this_node 1577 lib/pengine/unpack.c this_node->details->pending ? "pending" : this_node 1578 lib/pengine/unpack.c this_node->details->standby ? "standby" : this_node 1579 lib/pengine/unpack.c this_node->details->maintenance ? "maintenance" : "online"); this_node 1582 lib/pengine/unpack.c crm_trace("Node %s is offline", this_node->details->uname); this_node 4083 lib/pengine/unpack.c pe_node_t *this_node = NULL; this_node 4097 lib/pengine/unpack.c this_node = pe_find_node(data_set->nodes, uname); this_node 4098 lib/pengine/unpack.c if(this_node == NULL) { this_node 4099 lib/pengine/unpack.c CRM_LOG_ASSERT(this_node != NULL); this_node 4102 lib/pengine/unpack.c } else if (pe__is_guest_or_remote_node(this_node)) { this_node 4103 lib/pengine/unpack.c determine_remote_online_status(data_set, this_node); this_node 4106 lib/pengine/unpack.c determine_online_status(node_state, this_node, data_set); this_node 4109 lib/pengine/unpack.c if (this_node->details->online this_node 141 lib/pengine/utils.c pe__copy_node(const pe_node_t *this_node) this_node 145 lib/pengine/utils.c CRM_ASSERT(this_node != NULL); this_node 150 lib/pengine/utils.c new_node->rsc_discover_mode = this_node->rsc_discover_mode; this_node 151 lib/pengine/utils.c new_node->weight = this_node->weight; this_node 152 lib/pengine/utils.c new_node->fixed = this_node->fixed; this_node 153 lib/pengine/utils.c new_node->details = this_node->details;