this_node 112 include/crm/pengine/internal.h extern node_t *node_copy(const node_t *this_node); this_node 47 lib/pengine/unpack.c static gboolean determine_remote_online_status(pe_working_set_t * data_set, node_t * this_node); this_node 1004 lib/pengine/unpack.c unpack_handle_remote_attrs(node_t *this_node, xmlNode *state, pe_working_set_t * data_set) this_node 1015 lib/pengine/unpack.c if ((this_node == NULL) || (is_remote_node(this_node) == FALSE)) { this_node 1018 lib/pengine/unpack.c crm_trace("Processing remote node id=%s, uname=%s", this_node->details->id, this_node->details->uname); this_node 1020 lib/pengine/unpack.c this_node->details->remote_maintenance = this_node 1023 lib/pengine/unpack.c rsc = this_node->details->remote_rsc; this_node 1024 lib/pengine/unpack.c if (this_node->details->remote_requires_reset == FALSE) { this_node 1025 lib/pengine/unpack.c this_node->details->unclean = FALSE; this_node 1026 lib/pengine/unpack.c this_node->details->unseen = FALSE; this_node 1029 lib/pengine/unpack.c add_node_attrs(attrs, this_node, TRUE, data_set); this_node 1031 lib/pengine/unpack.c shutdown = pe_node_attribute_raw(this_node, XML_CIB_ATTR_SHUTDOWN); this_node 1033 lib/pengine/unpack.c crm_info("Node %s is shutting down", this_node->details->uname); this_node 1034 lib/pengine/unpack.c this_node->details->shutdown = TRUE; this_node 1040 lib/pengine/unpack.c if (crm_is_true(pe_node_attribute_raw(this_node, "standby"))) { this_node 1041 lib/pengine/unpack.c crm_info("Node %s is in standby-mode", this_node->details->uname); this_node 1042 lib/pengine/unpack.c this_node->details->standby = TRUE; this_node 1045 lib/pengine/unpack.c if (crm_is_true(pe_node_attribute_raw(this_node, "maintenance")) || this_node 1047 lib/pengine/unpack.c crm_info("Node %s is in maintenance-mode", this_node->details->uname); this_node 1048 lib/pengine/unpack.c this_node->details->maintenance = TRUE; this_node 1051 lib/pengine/unpack.c resource_discovery_enabled = pe_node_attribute_raw(this_node, XML_NODE_ATTR_RSC_DISCOVERY); this_node 1053 lib/pengine/unpack.c if (is_baremetal_remote_node(this_node) && is_not_set(data_set->flags, pe_flag_stonith_enabled)) { this_node 1055 lib/pengine/unpack.c XML_NODE_ATTR_RSC_DISCOVERY, this_node->details->uname); this_node 1061 lib/pengine/unpack.c crm_info("Node %s has resource discovery disabled", this_node->details->uname); this_node 1062 lib/pengine/unpack.c this_node->details->rsc_discovery_enabled = FALSE; this_node 1076 lib/pengine/unpack.c node_t *this_node = NULL; this_node 1085 lib/pengine/unpack.c this_node = pe_find_node_any(data_set->nodes, id, uname); this_node 1087 lib/pengine/unpack.c if (this_node == NULL) { this_node 1091 lib/pengine/unpack.c } else if (this_node->details->unpacked) { this_node 1095 lib/pengine/unpack.c } else if (is_remote_node(this_node) == FALSE && is_set(data_set->flags, pe_flag_stonith_enabled)) { this_node 1099 lib/pengine/unpack.c } else if (is_remote_node(this_node)) { this_node 1101 lib/pengine/unpack.c resource_t *rsc = this_node->details->remote_rsc; this_node 1109 lib/pengine/unpack.c } else if (is_container_remote_node(this_node) this_node 1119 lib/pengine/unpack.c } else if (is_container_remote_node(this_node) == FALSE this_node 1126 lib/pengine/unpack.c determine_remote_online_status(data_set, this_node); this_node 1127 lib/pengine/unpack.c unpack_handle_remote_attrs(this_node, state, data_set); this_node 1131 lib/pengine/unpack.c } else if (this_node->details->online) { this_node 1140 lib/pengine/unpack.c fence?"un":"", is_remote_node(this_node)?" remote":"", this_node 1141 lib/pengine/unpack.c this_node->details->uname); this_node 1143 lib/pengine/unpack.c this_node->details->unpacked = TRUE; this_node 1147 lib/pengine/unpack.c unpack_lrm_resources(this_node, lrm_rsc, data_set); this_node 1163 lib/pengine/unpack.c node_t *this_node = NULL; this_node 1200 lib/pengine/unpack.c this_node = pe_find_node_any(data_set->nodes, id, uname); this_node 1206 lib/pengine/unpack.c } else if (this_node == NULL) { this_node 1210 lib/pengine/unpack.c } else if (is_remote_node(this_node)) { this_node 1215 lib/pengine/unpack.c this_node->details->remote_was_fenced = this_node 1225 lib/pengine/unpack.c this_node->details->unclean = FALSE; this_node 1226 lib/pengine/unpack.c this_node->details->unseen = FALSE; this_node 1228 lib/pengine/unpack.c add_node_attrs(attrs, this_node, TRUE, data_set); this_node 1230 lib/pengine/unpack.c if (crm_is_true(pe_node_attribute_raw(this_node, "standby"))) { this_node 1231 lib/pengine/unpack.c crm_info("Node %s is in standby-mode", this_node->details->uname); this_node 1232 lib/pengine/unpack.c this_node->details->standby = TRUE; this_node 1235 lib/pengine/unpack.c if (crm_is_true(pe_node_attribute_raw(this_node, "maintenance"))) { this_node 1236 lib/pengine/unpack.c crm_info("Node %s is in maintenance-mode", this_node->details->uname); this_node 1237 lib/pengine/unpack.c this_node->details->maintenance = TRUE; this_node 1240 lib/pengine/unpack.c resource_discovery_enabled = pe_node_attribute_raw(this_node, XML_NODE_ATTR_RSC_DISCOVERY); this_node 1243 lib/pengine/unpack.c XML_NODE_ATTR_RSC_DISCOVERY, this_node->details->uname); this_node 1247 lib/pengine/unpack.c determine_online_status(state, this_node, data_set); this_node 1250 lib/pengine/unpack.c && this_node->details->online this_node 1255 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "cluster does not have quorum"); this_node 1269 lib/pengine/unpack.c node_t *this_node = gIter->data; this_node 1271 lib/pengine/unpack.c if (this_node == NULL) { this_node 1273 lib/pengine/unpack.c } else if(is_remote_node(this_node) == FALSE) { this_node 1275 lib/pengine/unpack.c } else if(this_node->details->unpacked) { this_node 1278 lib/pengine/unpack.c determine_remote_online_status(data_set, this_node); this_node 1286 lib/pengine/unpack.c node_t * this_node) this_node 1304 lib/pengine/unpack.c } else if (this_node->details->expected_up == FALSE) { this_node 1311 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "peer is unexpectedly down"); this_node 1320 lib/pengine/unpack.c node_t * this_node) this_node 1328 lib/pengine/unpack.c const char *terminate = pe_node_attribute_raw(this_node, "terminate"); this_node 1350 lib/pengine/unpack.c this_node->details->uname, crm_str(in_cluster), crm_str(is_peer), this_node 1361 lib/pengine/unpack.c if (this_node->details->shutdown) { this_node 1362 lib/pengine/unpack.c crm_debug("%s is shutting down", this_node->details->uname); this_node 1368 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "peer has not been seen by the cluster"); this_node 1371 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "peer failed the pacemaker membership criteria"); this_node 1376 lib/pengine/unpack.c crm_info("- Node %s is not ready to run resources", this_node->details->uname); this_node 1377 lib/pengine/unpack.c this_node->details->standby = TRUE; this_node 1378 lib/pengine/unpack.c this_node->details->pending = TRUE; this_node 1381 lib/pengine/unpack.c crm_trace("%s is down or still coming up", this_node->details->uname); this_node 1386 lib/pengine/unpack.c crm_info("Node %s was just shot", this_node->details->uname); this_node 1390 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "peer is no longer part of the cluster"); this_node 1393 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "peer process is no longer available"); this_node 1397 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "termination was requested"); this_node 1400 lib/pengine/unpack.c crm_info("Node %s is active", this_node->details->uname); this_node 1404 lib/pengine/unpack.c crm_info("Node %s is not ready to run resources", this_node->details->uname); this_node 1405 lib/pengine/unpack.c this_node->details->standby = TRUE; this_node 1406 lib/pengine/unpack.c this_node->details->pending = TRUE; this_node 1409 lib/pengine/unpack.c pe_fence_node(data_set, this_node, "peer was in an unknown state"); this_node 1411 lib/pengine/unpack.c this_node->details->uname, crm_str(in_cluster), crm_str(is_peer), this_node 1412 lib/pengine/unpack.c crm_str(join), crm_str(exp_state), do_terminate, this_node->details->shutdown); this_node 1419 lib/pengine/unpack.c determine_remote_online_status(pe_working_set_t * data_set, node_t * this_node) this_node 1421 lib/pengine/unpack.c resource_t *rsc = this_node->details->remote_rsc; this_node 1430 lib/pengine/unpack.c this_node->details->online = FALSE; this_node 1443 lib/pengine/unpack.c (container? "Guest" : "Remote"), this_node->details->id); this_node 1444 lib/pengine/unpack.c this_node->details->online = TRUE; this_node 1450 lib/pengine/unpack.c (container? "Guest" : "Remote"), this_node->details->id); this_node 1451 lib/pengine/unpack.c this_node->details->shutdown = TRUE; this_node 1457 lib/pengine/unpack.c this_node->details->id); this_node 1458 lib/pengine/unpack.c this_node->details->online = FALSE; this_node 1459 lib/pengine/unpack.c this_node->details->remote_requires_reset = TRUE; this_node 1463 lib/pengine/unpack.c (container? "Guest" : "Remote"), this_node->details->id); this_node 1464 lib/pengine/unpack.c this_node->details->online = FALSE; this_node 1470 lib/pengine/unpack.c (container? "Guest" : "Remote"), this_node->details->id); this_node 1471 lib/pengine/unpack.c this_node->details->online = FALSE; this_node 1472 lib/pengine/unpack.c this_node->details->remote_requires_reset = FALSE; this_node 1477 lib/pengine/unpack.c this_node->details->id); this_node 1478 lib/pengine/unpack.c this_node->details->online = FALSE; this_node 1479 lib/pengine/unpack.c this_node->details->remote_requires_reset = TRUE; this_node 1484 lib/pengine/unpack.c this_node->details->id, this_node->details->online ? "TRUE" : "FALSE"); this_node 1485 lib/pengine/unpack.c return this_node->details->online; this_node 1489 lib/pengine/unpack.c determine_online_status(xmlNode * node_state, node_t * this_node, pe_working_set_t * data_set) this_node 1495 lib/pengine/unpack.c if (this_node == NULL) { this_node 1500 lib/pengine/unpack.c this_node->details->shutdown = FALSE; this_node 1501 lib/pengine/unpack.c this_node->details->expected_up = FALSE; this_node 1502 lib/pengine/unpack.c shutdown = pe_node_attribute_raw(this_node, XML_CIB_ATTR_SHUTDOWN); this_node 1505 lib/pengine/unpack.c this_node->details->shutdown = TRUE; this_node 1508 lib/pengine/unpack.c this_node->details->expected_up = TRUE; this_node 1511 lib/pengine/unpack.c if (this_node->details->type == node_ping) { this_node 1512 lib/pengine/unpack.c this_node->details->unclean = FALSE; this_node 1519 lib/pengine/unpack.c online = determine_online_status_no_fencing(data_set, node_state, this_node); this_node 1522 lib/pengine/unpack.c online = determine_online_status_fencing(data_set, node_state, this_node); this_node 1526 lib/pengine/unpack.c this_node->details->online = TRUE; this_node 1530 lib/pengine/unpack.c this_node->fixed = TRUE; this_node 1531 lib/pengine/unpack.c this_node->weight = -INFINITY; this_node 1534 lib/pengine/unpack.c if (online && this_node->details->shutdown) { this_node 1536 lib/pengine/unpack.c this_node->fixed = TRUE; this_node 1537 lib/pengine/unpack.c this_node->weight = -INFINITY; this_node 1540 lib/pengine/unpack.c if (this_node->details->type == node_ping) { this_node 1541 lib/pengine/unpack.c crm_info("Node %s is not a pacemaker node", this_node->details->uname); this_node 1543 lib/pengine/unpack.c } else if (this_node->details->unclean) { this_node 1544 lib/pengine/unpack.c pe_proc_warn("Node %s is unclean", this_node->details->uname); this_node 1546 lib/pengine/unpack.c } else if (this_node->details->online) { this_node 1547 lib/pengine/unpack.c crm_info("Node %s is %s", this_node->details->uname, this_node 1548 lib/pengine/unpack.c this_node->details->shutdown ? "shutting down" : this_node 1549 lib/pengine/unpack.c this_node->details->pending ? "pending" : this_node 1550 lib/pengine/unpack.c this_node->details->standby ? "standby" : this_node 1551 lib/pengine/unpack.c this_node->details->maintenance ? "maintenance" : "online"); this_node 1554 lib/pengine/unpack.c crm_trace("Node %s is offline", this_node->details->uname); this_node 3427 lib/pengine/unpack.c node_t *this_node = NULL; this_node 3441 lib/pengine/unpack.c this_node = pe_find_node(data_set->nodes, uname); this_node 3442 lib/pengine/unpack.c if(this_node == NULL) { this_node 3443 lib/pengine/unpack.c CRM_LOG_ASSERT(this_node != NULL); this_node 3446 lib/pengine/unpack.c } else if (is_remote_node(this_node)) { this_node 3447 lib/pengine/unpack.c determine_remote_online_status(data_set, this_node); this_node 3450 lib/pengine/unpack.c determine_online_status(node_state, this_node, data_set); this_node 3453 lib/pengine/unpack.c if (this_node->details->online || is_set(data_set->flags, pe_flag_stonith_enabled)) { this_node 43 lib/pengine/unpack.h extern gboolean determine_online_status(xmlNode * node_state, node_t * this_node, this_node 127 lib/pengine/utils.c node_copy(const node_t *this_node) this_node 131 lib/pengine/utils.c CRM_CHECK(this_node != NULL, return NULL); this_node 136 lib/pengine/utils.c crm_trace("Copying %p (%s) to %p", this_node, this_node->details->uname, new_node); this_node 138 lib/pengine/utils.c new_node->rsc_discover_mode = this_node->rsc_discover_mode; this_node 139 lib/pengine/utils.c new_node->weight = this_node->weight; this_node 140 lib/pengine/utils.c new_node->fixed = this_node->fixed; this_node 141 lib/pengine/utils.c new_node->details = this_node->details; this_node 206 lib/pengine/utils.c node_t *this_node = (node_t *) gIter->data; this_node 208 lib/pengine/utils.c if (filter && this_node->weight < 0) { this_node 212 lib/pengine/utils.c new_node = node_copy(this_node);