node 137 daemons/attrd/attrd_alerts.c attrd_send_attribute_alert(const char *node, int nodeid, node 144 daemons/attrd/attrd_alerts.c node, nodeid, attr, value); node 60 daemons/attrd/attrd_commands.c send_attrd_message(crm_node_t * node, xmlNode * data) node 65 daemons/attrd/attrd_commands.c return send_cluster_message(node, crm_msg_attrd, data, TRUE); node 200 daemons/attrd/attrd_commands.c crm_node_t *node = pcmk__search_cluster_node_cache(nodeid, NULL); node 203 daemons/attrd/attrd_commands.c if (node && node->uname) { node 205 daemons/attrd/attrd_commands.c host = node->uname; node 71 daemons/attrd/pacemaker-attrd.h int attrd_send_attribute_alert(const char *node, int nodeid, node 278 daemons/based/pacemaker-based.c cib_peer_update_callback(enum crm_status_type type, crm_node_t * node, const void *data) node 283 daemons/based/pacemaker-based.c && !pcmk_is_set(node->processes, crm_get_cluster_proc())) { node 287 daemons/based/pacemaker-based.c if ((node->processes ^ old) & crm_proc_cpg) { node 289 daemons/based/pacemaker-based.c node->uname); node 18 daemons/controld/controld_alerts.h void crmd_alert_node_event(crm_node_t *node); node 20 daemons/controld/controld_alerts.h void crmd_alert_resource_op(const char *node, lrmd_event_data_t *op); node 286 daemons/controld/controld_based.c controld_delete_resource_history(const char *rsc_id, const char *node, node 293 daemons/controld/controld_based.c CRM_CHECK((rsc_id != NULL) && (node != NULL), return EINVAL); node 295 daemons/controld/controld_based.c desc = crm_strdup_printf("resource history for %s on %s", rsc_id, node); node 303 daemons/controld/controld_based.c xpath = crm_strdup_printf(XPATH_RESOURCE_HISTORY, node, rsc_id); node 310 daemons/controld/controld_based.c CRM_XS " rc=%d", rsc_id, node, node 80 daemons/controld/controld_callbacks.c node_alive(const crm_node_t *node) node 82 daemons/controld/controld_callbacks.c if (pcmk_is_set(node->flags, crm_remote_node)) { node 84 daemons/controld/controld_callbacks.c return pcmk__str_eq(node->state, CRM_NODE_MEMBER, pcmk__str_casei) ? 1: -1; node 86 daemons/controld/controld_callbacks.c } else if (crm_is_peer_active(node)) { node 90 daemons/controld/controld_callbacks.c } else if (!pcmk_is_set(node->processes, crm_get_cluster_proc()) node 91 daemons/controld/controld_callbacks.c && !pcmk__str_eq(node->state, CRM_NODE_MEMBER, pcmk__str_casei)) { node 103 daemons/controld/controld_callbacks.c peer_update_callback(enum crm_status_type type, crm_node_t * node, const void *data) node 107 daemons/controld/controld_callbacks.c bool is_remote = pcmk_is_set(node->flags, crm_remote_node); node 117 daemons/controld/controld_callbacks.c if (node->uname == NULL) { node 126 daemons/controld/controld_callbacks.c node->uname, state_text(node->state)); node 133 daemons/controld/controld_callbacks.c CRM_CHECK(!pcmk__str_eq(data, node->state, pcmk__str_casei), node 138 daemons/controld/controld_callbacks.c node->uname, state_text(node->state), state_text(data)); node 140 daemons/controld/controld_callbacks.c if (pcmk__str_eq(CRM_NODE_MEMBER, node->state, pcmk__str_casei)) { node 143 daemons/controld/controld_callbacks.c remove_stonith_cleanup(node->uname); node 146 daemons/controld/controld_callbacks.c controld_remove_voter(node->uname); node 149 daemons/controld/controld_callbacks.c crmd_alert_node_event(node); node 155 daemons/controld/controld_callbacks.c appeared = pcmk_is_set(node->processes, crm_get_cluster_proc()); node 158 daemons/controld/controld_callbacks.c node->uname, (appeared? "now" : "no longer"), node 160 daemons/controld/controld_callbacks.c old, node->processes); node 162 daemons/controld/controld_callbacks.c if (!pcmk_is_set((node->processes ^ old), crm_get_cluster_proc())) { node 167 daemons/controld/controld_callbacks.c crm_get_cluster_proc(), old, node->processes); node 173 daemons/controld/controld_callbacks.c controld_remove_voter(node->uname); node 181 daemons/controld/controld_callbacks.c crm_debug("Broadcasting our uname because of node %u", node->id); node 182 daemons/controld/controld_callbacks.c send_cluster_message(node, crm_msg_crmd, query, FALSE); node 196 daemons/controld/controld_callbacks.c if (pcmk__str_eq(node->uname, fsa_our_uname, pcmk__str_casei) && !appeared) { node 201 daemons/controld/controld_callbacks.c } else if (pcmk__str_eq(node->uname, fsa_our_dc, pcmk__str_casei) && crm_is_peer_active(node) == FALSE) { node 215 daemons/controld/controld_callbacks.c controld_delete_node_state(node->uname, node 228 daemons/controld/controld_callbacks.c controld_delete_node_state(node->uname, node 239 daemons/controld/controld_callbacks.c int alive = node_alive(node); node 240 daemons/controld/controld_callbacks.c crm_action_t *down = match_down_event(node->uuid); node 256 daemons/controld/controld_callbacks.c (down->confirmed? "after" : "before"), node->uname); node 263 daemons/controld/controld_callbacks.c crmd_peer_down(node, FALSE); node 268 daemons/controld/controld_callbacks.c task, node->uname, down->id); node 271 daemons/controld/controld_callbacks.c task, node->uname, down->id); node 278 daemons/controld/controld_callbacks.c node->uname, node 286 daemons/controld/controld_callbacks.c node->uname); node 288 daemons/controld/controld_callbacks.c crm_update_peer_join(__func__, node, crm_join_none); node 292 daemons/controld/controld_callbacks.c fail_incompletable_actions(transition_graph, node->uuid); node 296 daemons/controld/controld_callbacks.c node->uname); node 313 daemons/controld/controld_callbacks.c update = create_node_state_update(node, flags, NULL, __func__); node 315 daemons/controld/controld_callbacks.c crm_debug("Node state update not yet possible for %s", node->uname); node 21 daemons/controld/controld_callbacks.h extern void peer_update_callback(enum crm_status_type type, crm_node_t * node, const void *data); node 258 daemons/controld/controld_election.c crm_node_t *node = crm_get_peer(0, fsa_our_uname); node 260 daemons/controld/controld_election.c pcmk__update_peer_expected(__func__, node, CRMD_JOINSTATE_DOWN); node 261 daemons/controld/controld_election.c update = create_node_state_update(node, node_update_expected, NULL, node 752 daemons/controld/controld_execd_state.c crmd_alert_node_event(crm_node_t *node) node 766 daemons/controld/controld_execd_state.c node->uname, node->id, node->state); node 796 daemons/controld/controld_execd_state.c crmd_alert_resource_op(const char *node, lrmd_event_data_t * op) node 809 daemons/controld/controld_execd_state.c lrmd_send_resource_alert((lrmd_t *) lrm_state->conn, crmd_alert_list, node, node 36 daemons/controld/controld_join_dc.c crm_update_peer_join(const char *source, crm_node_t * node, enum crm_join_phase phase) node 40 daemons/controld/controld_join_dc.c CRM_CHECK(node != NULL, return); node 43 daemons/controld/controld_join_dc.c if (pcmk_is_set(node->flags, crm_remote_node)) { node 47 daemons/controld/controld_join_dc.c last = node->join; node 52 daemons/controld/controld_join_dc.c node->uname, current_join_id, crm_join_phase_str(last), node 53 daemons/controld/controld_join_dc.c node->id, source); node 56 daemons/controld/controld_join_dc.c node->join = phase; node 59 daemons/controld/controld_join_dc.c node->uname, current_join_id, crm_join_phase_str(phase), node 60 daemons/controld/controld_join_dc.c crm_join_phase_str(last), node->id, source); node 65 daemons/controld/controld_join_dc.c current_join_id, node->uname, crm_join_phase_str(last), node 66 daemons/controld/controld_join_dc.c crm_join_phase_str(phase), node->id, source); node 34 daemons/controld/controld_membership.c crm_node_t *node = value; node 36 daemons/controld/controld_membership.c if (crm_is_peer_active(node) == FALSE) { node 37 daemons/controld/controld_membership.c crm_update_peer_join(__func__, node, crm_join_none); node 39 daemons/controld/controld_membership.c if(node && node->uname) { node 40 daemons/controld/controld_membership.c if (pcmk__str_eq(fsa_our_uname, node->uname, pcmk__str_casei)) { node 44 daemons/controld/controld_membership.c } else if (AM_I_DC == FALSE && pcmk__str_eq(node->uname, fsa_our_dc, pcmk__str_casei)) { node 45 daemons/controld/controld_membership.c crm_warn("Our DC node (%s) left the cluster", node->uname); node 53 daemons/controld/controld_membership.c if(node && node->uuid) { node 54 daemons/controld/controld_membership.c fail_incompletable_actions(transition_graph, node->uuid); node 127 daemons/controld/controld_membership.c create_node_state_update(crm_node_t *node, int flags, xmlNode *parent, node 133 daemons/controld/controld_membership.c if (!node->state) { node 134 daemons/controld/controld_membership.c crm_info("Node update for %s cancelled: no state, not seen yet", node->uname); node 140 daemons/controld/controld_membership.c if (pcmk_is_set(node->flags, crm_remote_node)) { node 144 daemons/controld/controld_membership.c set_uuid(node_state, XML_ATTR_UUID, node); node 147 daemons/controld/controld_membership.c crm_info("Node update for %s cancelled: no id", node->uname); node 152 daemons/controld/controld_membership.c crm_xml_add(node_state, XML_ATTR_UNAME, node->uname); node 154 daemons/controld/controld_membership.c if ((flags & node_update_cluster) && node->state) { node 156 daemons/controld/controld_membership.c pcmk__str_eq(node->state, CRM_NODE_MEMBER, pcmk__str_casei)); node 159 daemons/controld/controld_membership.c if (!pcmk_is_set(node->flags, crm_remote_node)) { node 162 daemons/controld/controld_membership.c if (pcmk_is_set(node->processes, crm_get_cluster_proc())) { node 169 daemons/controld/controld_membership.c if (node->join <= crm_join_none) { node 178 daemons/controld/controld_membership.c crm_xml_add(node_state, XML_NODE_EXPECTED, node->expected); node 227 daemons/controld/controld_membership.c crm_node_t *node = NULL; node 242 daemons/controld/controld_membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 243 daemons/controld/controld_membership.c if (node->uuid node 244 daemons/controld/controld_membership.c && pcmk__str_eq(node->uuid, node_uuid, pcmk__str_casei) node 245 daemons/controld/controld_membership.c && node->uname node 246 daemons/controld/controld_membership.c && pcmk__str_eq(node->uname, node_uname, pcmk__str_casei)) { node 313 daemons/controld/controld_membership.c crm_node_t *node = NULL; node 316 daemons/controld/controld_membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 319 daemons/controld/controld_membership.c crm_trace("Creating node entry for %s/%s", node->uname, node->uuid); node 320 daemons/controld/controld_membership.c if(node->uuid && node->uname) { node 325 daemons/controld/controld_membership.c crm_xml_add(new_node, XML_ATTR_ID, node->uuid); node 326 daemons/controld/controld_membership.c crm_xml_add(new_node, XML_ATTR_UNAME, node->uname); node 332 daemons/controld/controld_membership.c node->uname, node->uuid); node 336 daemons/controld/controld_membership.c fsa_register_cib_callback(call_id, FALSE, strdup(node->uuid), node 355 daemons/controld/controld_membership.c crm_node_t *node = NULL; node 360 daemons/controld/controld_membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 361 daemons/controld/controld_membership.c create_node_state_update(node, flags, node_list, source); node 366 daemons/controld/controld_membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 367 daemons/controld/controld_membership.c create_node_state_update(node, flags, node_list, source); node 660 daemons/controld/controld_messages.c const char *node = NULL; node 669 daemons/controld/controld_messages.c node = crm_element_value(msg_data, XML_LRM_ATTR_TARGET); node 672 daemons/controld/controld_messages.c "(clearing CIB resource history only)", rsc_id, node, node 674 daemons/controld/controld_messages.c rc = controld_delete_resource_history(rsc_id, node, user_name, node 677 daemons/controld/controld_messages.c rc = controld_delete_resource_history(rsc_id, node, user_name, node 788 daemons/controld/controld_messages.c crm_node_t *node = NULL; node 795 daemons/controld/controld_messages.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) & node)) { node 798 daemons/controld/controld_messages.c crm_xml_add_ll(xml, XML_ATTR_ID, (long long) node->id); // uint32_t node 799 daemons/controld/controld_messages.c crm_xml_add(xml, XML_ATTR_UNAME, node->uname); node 800 daemons/controld/controld_messages.c crm_xml_add(xml, XML_NODE_IN_CLUSTER, node->state); node 826 daemons/controld/controld_messages.c crm_node_t *node = NULL; node 850 daemons/controld/controld_messages.c node = pcmk__search_node_caches(node_id, value, CRM_GET_PEER_ANY); node 851 daemons/controld/controld_messages.c if (node) { node 852 daemons/controld/controld_messages.c crm_xml_add_int(reply, XML_ATTR_ID, node->id); node 853 daemons/controld/controld_messages.c crm_xml_add(reply, XML_ATTR_UUID, node->uuid); node 854 daemons/controld/controld_messages.c crm_xml_add(reply, XML_ATTR_UNAME, node->uname); node 855 daemons/controld/controld_messages.c crm_xml_add(reply, XML_NODE_IS_PEER, node->state); node 857 daemons/controld/controld_messages.c node->flags & crm_remote_node); node 974 daemons/controld/controld_messages.c crm_node_t *node = pcmk__search_cluster_node_cache(0, from); node 976 daemons/controld/controld_messages.c pcmk__update_peer_expected(__func__, node, CRMD_JOINSTATE_DOWN); node 180 daemons/controld/controld_remote_ra.c crm_node_t *node; node 201 daemons/controld/controld_remote_ra.c node = crm_remote_peer_get(node_name); node 202 daemons/controld/controld_remote_ra.c CRM_CHECK(node != NULL, return); node 203 daemons/controld/controld_remote_ra.c pcmk__update_peer_state(__func__, node, CRM_NODE_MEMBER, 0); node 214 daemons/controld/controld_remote_ra.c state = create_node_state_update(node, node_update_cluster, update, node 255 daemons/controld/controld_remote_ra.c crm_node_t *node; node 272 daemons/controld/controld_remote_ra.c node = crm_remote_peer_get(node_name); node 273 daemons/controld/controld_remote_ra.c CRM_CHECK(node != NULL, return); node 274 daemons/controld/controld_remote_ra.c pcmk__update_peer_state(__func__, node, CRM_NODE_LOST, 0); node 281 daemons/controld/controld_remote_ra.c create_node_state_update(node, node_update_cluster, update, __func__); node 314 daemons/controld/controld_remote_ra.c crm_node_t *node = crm_remote_peer_get(cmd->rsc_id); node 316 daemons/controld/controld_remote_ra.c CRM_CHECK(node != NULL, return); node 317 daemons/controld/controld_remote_ra.c pcmk__update_peer_state(__func__, node, CRM_NODE_MEMBER, 0); node 1231 daemons/controld/controld_remote_ra.c crm_node_t *node; node 1234 daemons/controld/controld_remote_ra.c node = crm_remote_peer_get(lrm_state->node_name); node 1235 daemons/controld/controld_remote_ra.c CRM_CHECK(node != NULL, return); node 1237 daemons/controld/controld_remote_ra.c state = create_node_state_update(node, node_update_none, update, node 1267 daemons/controld/controld_remote_ra.c xmlNode *node; node 1270 daemons/controld/controld_remote_ra.c for (node = node 1272 daemons/controld/controld_remote_ra.c node != NULL; node = pcmk__xml_next(node)) { node 1273 daemons/controld/controld_remote_ra.c lrm_state_t *lrm_state = lrm_state_find(ID(node)); node 1281 daemons/controld/controld_remote_ra.c pcmk__scan_min_int(crm_element_value(node, XML_NODE_IS_MAINTENANCE), node 48 daemons/controld/controld_te_actions.c crm_node_t *node = NULL; node 51 daemons/controld/controld_te_actions.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 54 daemons/controld/controld_te_actions.c if (pcmk__str_eq(fsa_our_uname, node->uname, pcmk__str_casei)) { node 58 daemons/controld/controld_te_actions.c cmd = create_request(task, pseudo->xml, node->uname, node 60 daemons/controld/controld_te_actions.c send_cluster_message(node, crm_msg_crmd, cmd, FALSE); node 168 daemons/controld/controld_te_callbacks.c const char *node = get_node_id(rsc_op); node 170 daemons/controld/controld_te_callbacks.c process_graph_event(rsc_op, node); node 197 daemons/controld/controld_te_callbacks.c const char *node = get_node_id(match); node 198 daemons/controld/controld_te_callbacks.c crm_action_t *cancelled = get_cancel_action(op_id, node); node 202 daemons/controld/controld_te_callbacks.c node); node 210 daemons/controld/controld_te_callbacks.c op_id, node, cancelled->id); node 223 daemons/controld/controld_te_callbacks.c process_lrm_resource_diff(xmlNode *lrm_resource, const char *node) node 227 daemons/controld/controld_te_callbacks.c process_graph_event(rsc_op, node); node 237 daemons/controld/controld_te_callbacks.c process_resource_updates(const char *node, xmlNode *xml, xmlNode *change, node 275 daemons/controld/controld_te_callbacks.c process_lrm_resource_diff(rsc, node); node 618 daemons/controld/controld_te_callbacks.c const char *node = get_node_id(rsc_op); node 620 daemons/controld/controld_te_callbacks.c process_graph_event(rsc_op, node); node 64 daemons/controld/controld_te_events.c crm_node_t *node = crm_get_peer(0, router); node 65 daemons/controld/controld_te_events.c if (node) { node 66 daemons/controld/controld_te_events.c router_uuid = node->uuid; node 217 daemons/controld/controld_te_events.c get_cancel_action(const char *id, const char *node) node 239 daemons/controld/controld_te_events.c crm_trace("Wrong key %s for %s on %s", task, id, node); node 244 daemons/controld/controld_te_events.c if (node && !pcmk__str_eq(target, node, pcmk__str_casei)) { node 245 daemons/controld/controld_te_events.c crm_trace("Wrong node %s for %s on %s", target, id, node); node 249 daemons/controld/controld_te_events.c crm_trace("Found %s on %s", id, node); node 39 daemons/controld/controld_throttle.c char *node; node 389 daemons/controld/controld_throttle.c free(r->node); node 492 daemons/controld/controld_throttle.c throttle_get_job_limit(const char *node) node 497 daemons/controld/controld_throttle.c r = g_hash_table_lookup(throttle_records, node); node 500 daemons/controld/controld_throttle.c r->node = strdup(node); node 503 daemons/controld/controld_throttle.c crm_trace("Defaulting to local values for unknown node %s", node); node 505 daemons/controld/controld_throttle.c g_hash_table_insert(throttle_records, r->node, r); node 523 daemons/controld/controld_throttle.c crm_err("Unknown throttle mode %.4x on %s", r->mode, node); node 544 daemons/controld/controld_throttle.c r->node = strdup(from); node 545 daemons/controld/controld_throttle.c g_hash_table_insert(throttle_records, r->node, r); node 16 daemons/controld/controld_throttle.h int throttle_get_job_limit(const char *node); node 18 daemons/controld/controld_transition.h extern crm_action_t *get_cancel_action(const char *id, const char *node); node 864 daemons/controld/controld_utils.c xmlNode *node = lrm_rsc_op; node 866 daemons/controld/controld_utils.c while (node != NULL && !pcmk__str_eq(XML_CIB_TAG_STATE, TYPE(node), pcmk__str_casei)) { node 867 daemons/controld/controld_utils.c node = node->parent; node 870 daemons/controld/controld_utils.c CRM_CHECK(node != NULL, return NULL); node 871 daemons/controld/controld_utils.c return ID(node); node 80 daemons/controld/controld_utils.h void crm_update_peer_join(const char *source, crm_node_t * node, enum crm_join_phase phase); node 81 daemons/controld/controld_utils.h xmlNode *create_node_state_update(crm_node_t *node, int flags, node 112 daemons/controld/controld_utils.h int controld_delete_resource_history(const char *rsc_id, const char *node, node 509 daemons/fenced/fenced_commands.c crm_node_t *node = crm_get_peer(0, cmd->victim); node 511 daemons/fenced/fenced_commands.c cmd->victim_nodeid = node->id; node 2397 daemons/fenced/fenced_commands.c crm_node_t *node; node 2400 daemons/fenced/fenced_commands.c node = pcmk__search_known_node_cache(nodeid, NULL, CRM_GET_PEER_ANY); node 2401 daemons/fenced/fenced_commands.c if (node) { node 2402 daemons/fenced/fenced_commands.c host = node->uname; node 444 daemons/fenced/fenced_history.c crm_node_t *node; node 447 daemons/fenced/fenced_history.c node = pcmk__search_known_node_cache(nodeid, NULL, CRM_GET_PEER_ANY); node 448 daemons/fenced/fenced_history.c if (node) { node 449 daemons/fenced/fenced_history.c target = node->uname; node 744 daemons/fenced/fenced_remote.c topology_matches(const stonith_topology_t *tp, const char *node) node 748 daemons/fenced/fenced_remote.c CRM_CHECK(node && tp && tp->target, return FALSE); node 757 daemons/fenced/fenced_remote.c if (node_has_attr(node, tp->target_attribute, tp->target_value)) { node 758 daemons/fenced/fenced_remote.c crm_notice("Matched %s with %s by attribute", node, tp->target); node 770 daemons/fenced/fenced_remote.c int status = regexec(&r_patt, node, 0, NULL, 0); node 774 daemons/fenced/fenced_remote.c crm_notice("Matched %s with %s by name", node, tp->target); node 780 daemons/fenced/fenced_remote.c crm_trace("Testing %s against %s", node, tp->target); node 781 daemons/fenced/fenced_remote.c return pcmk__str_eq(tp->target, node, pcmk__str_casei); node 783 daemons/fenced/fenced_remote.c crm_trace("No match for %s with %s", node, tp->target); node 1086 daemons/fenced/fenced_remote.c crm_node_t *node; node 1089 daemons/fenced/fenced_remote.c node = pcmk__search_known_node_cache(nodeid, NULL, CRM_GET_PEER_ANY); node 1094 daemons/fenced/fenced_remote.c if (node && node->uname) { node 1096 daemons/fenced/fenced_remote.c op->target = strdup(node->uname); node 409 daemons/fenced/pacemaker-fenced.c topology_remove_helper(const char *node, int level) node 417 daemons/fenced/pacemaker-fenced.c crm_xml_add(data, XML_ATTR_STONITH_TARGET, node); node 566 daemons/fenced/pacemaker-fenced.c pe_node_t *node = NULL; node 570 daemons/fenced/pacemaker-fenced.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 571 daemons/fenced/pacemaker-fenced.c if (node && strcmp(node->details->uname, stonith_our_uname) == 0) { node 574 daemons/fenced/pacemaker-fenced.c node = NULL; node 577 daemons/fenced/pacemaker-fenced.c return node; node 650 daemons/fenced/pacemaker-fenced.c pe_node_t *node = NULL; node 681 daemons/fenced/pacemaker-fenced.c node = our_node_allowed_for(rsc); node 686 daemons/fenced/pacemaker-fenced.c if(node == NULL) { node 692 daemons/fenced/pacemaker-fenced.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 693 daemons/fenced/pacemaker-fenced.c crm_trace("Available: %s = %d", node->details->uname, node->weight); node 698 daemons/fenced/pacemaker-fenced.c } else if(node->weight < 0 || (parent && parent->weight < 0)) { node 700 daemons/fenced/pacemaker-fenced.c char *score = score2char((node->weight < 0) ? node->weight : parent->weight); node 719 daemons/fenced/pacemaker-fenced.c crm_debug("Device %s is allowed on %s: score=%d", rsc->id, stonith_our_uname, node->weight); node 720 daemons/fenced/pacemaker-fenced.c rsc_params = pe_rsc_params(rsc, node, data_set); node 721 daemons/fenced/pacemaker-fenced.c get_meta_attributes(rsc->meta, rsc, node, data_set); node 948 daemons/fenced/pacemaker-fenced.c node_has_attr(const char *node, const char *name, const char *value) node 964 daemons/fenced/pacemaker-fenced.c node, name, value); node 1303 daemons/fenced/pacemaker-fenced.c st_peer_update_callback(enum crm_status_type type, crm_node_t * node, const void *data) node 1306 daemons/fenced/pacemaker-fenced.c && !pcmk_is_set(node->flags, crm_remote_node)) { node 1317 daemons/fenced/pacemaker-fenced.c crm_debug("Broadcasting our uname because of node %u", node->id); node 265 daemons/fenced/pacemaker-fenced.h gboolean node_has_attr(const char *node, const char *name, const char *value); node 123 include/crm/cluster.h gboolean send_cluster_message(crm_node_t *node, enum crm_ais_msg_types service, node 140 include/crm/cluster.h gboolean crm_is_peer_active(const crm_node_t * node); node 154 include/crm/cluster.h gboolean crm_is_corosync_peer_active(const crm_node_t * node); node 156 include/crm/cluster.h gboolean local, crm_node_t * node, node 162 include/crm/cluster.h const char *crm_peer_uuid(crm_node_t *node); node 164 include/crm/cluster.h void set_uuid(xmlNode *xml, const char *attr, crm_node_t *node); node 104 include/crm/cluster/internal.h crm_node_t *pcmk__update_peer_state(const char *source, crm_node_t *node, node 107 include/crm/cluster/internal.h void pcmk__update_peer_expected(const char *source, crm_node_t *node, node 174 include/crm/common/internal.h const char *node); node 47 include/crm/common/nvpair.h const char *crm_xml_add(xmlNode *node, const char *name, const char *value); node 48 include/crm/common/nvpair.h const char *crm_xml_replace(xmlNode *node, const char *name, const char *value); node 49 include/crm/common/nvpair.h const char *crm_xml_add_int(xmlNode *node, const char *name, int value); node 50 include/crm/common/nvpair.h const char *crm_xml_add_ll(xmlNode *node, const char *name, long long value); node 51 include/crm/common/nvpair.h const char *crm_xml_add_ms(xmlNode *node, const char *name, guint ms); node 96 include/crm/common/nvpair.h crm_xml_add_boolean(xmlNode *node, const char *name, gboolean value) node 98 include/crm/common/nvpair.h return crm_xml_add(node, name, (value? "true" : "false")); node 734 include/crm/common/output_internal.h pcmk__output_xml_add_node(pcmk__output_t *out, xmlNodePtr node); node 776 include/crm/common/output_internal.h pcmk__output_xml_push_parent(pcmk__output_t *out, xmlNodePtr node); node 56 include/crm/common/xml.h xmlDoc *getDocPtr(xmlNode * node); node 271 include/crm/common/xml_internal.h pcmk__xe_set_propv(xmlNodePtr node, va_list pairs); node 282 include/crm/common/xml_internal.h pcmk__xe_set_props(xmlNodePtr node, ...) node 309 include/crm/common/xml_internal.h pcmk__xpath_node_id(const char *xpath, const char *node); node 73 include/crm/fencing/internal.h xmlNode *create_level_registration_xml(const char *node, const char *pattern, node 23 include/crm/lrmd_internal.h const char *node, uint32_t nodeid, node 26 include/crm/lrmd_internal.h const char *node, uint32_t nodeid, const char *state); node 31 include/crm/lrmd_internal.h const char *node, lrmd_event_data_t *op); node 23 include/crm/pengine/complex.h GHashTable *pe_rsc_params(pe_resource_t *rsc, pe_node_t *node, node 26 include/crm/pengine/complex.h pe_node_t *node, pe_working_set_t *data_set); node 28 include/crm/pengine/complex.h pe_node_t *node, pe_working_set_t *data_set); node 32 include/crm/pengine/complex.h pe_node_t *node, pe_working_set_t *data_set); node 213 include/crm/pengine/internal.h bool pe_can_fence(pe_working_set_t *data_set, pe_node_t *node); node 218 include/crm/pengine/internal.h char *native_parameter(pe_resource_t * rsc, pe_node_t * node, gboolean create, const char *name, node 226 include/crm/pengine/internal.h void native_add_running(pe_resource_t * rsc, pe_node_t * node, pe_working_set_t * data_set, gboolean failed); node 233 include/crm/pengine/internal.h pe_resource_t *native_find_rsc(pe_resource_t *rsc, const char *id, const pe_node_t *node, node 247 include/crm/pengine/internal.h gchar * pcmk__native_output_string(pe_resource_t *rsc, const char *name, pe_node_t *node, node 252 include/crm/pengine/internal.h char *pe__node_display_name(pe_node_t *node, bool print_detail); node 322 include/crm/pengine/internal.h int pe_get_failcount(pe_node_t *node, pe_resource_t *rsc, time_t *last_failure, node 326 include/crm/pengine/internal.h pe_action_t *pe__clear_failcount(pe_resource_t *rsc, pe_node_t *node, node 364 include/crm/pengine/internal.h extern void pe__output_node(pe_node_t * node, gboolean details, pcmk__output_t *out); node 385 include/crm/pengine/internal.h # define delete_action(rsc, node, optional) custom_action( \ node 386 include/crm/pengine/internal.h rsc, delete_key(rsc), CRMD_ACTION_DELETE, node, \ node 390 include/crm/pengine/internal.h # define stopped_action(rsc, node, optional) custom_action( \ node 391 include/crm/pengine/internal.h rsc, stopped_key(rsc), CRMD_ACTION_STOPPED, node, \ node 395 include/crm/pengine/internal.h # define stop_action(rsc, node, optional) custom_action( \ node 396 include/crm/pengine/internal.h rsc, stop_key(rsc), CRMD_ACTION_STOP, node, \ node 401 include/crm/pengine/internal.h # define start_action(rsc, node, optional) custom_action( \ node 402 include/crm/pengine/internal.h rsc, start_key(rsc), CRMD_ACTION_START, node, \ node 406 include/crm/pengine/internal.h # define started_action(rsc, node, optional) custom_action( \ node 407 include/crm/pengine/internal.h rsc, started_key(rsc), CRMD_ACTION_STARTED, node, \ node 411 include/crm/pengine/internal.h # define promote_action(rsc, node, optional) custom_action( \ node 412 include/crm/pengine/internal.h rsc, promote_key(rsc), CRMD_ACTION_PROMOTE, node, \ node 416 include/crm/pengine/internal.h # define promoted_action(rsc, node, optional) custom_action( \ node 417 include/crm/pengine/internal.h rsc, promoted_key(rsc), CRMD_ACTION_PROMOTED, node, \ node 421 include/crm/pengine/internal.h # define demote_action(rsc, node, optional) custom_action( \ node 422 include/crm/pengine/internal.h rsc, demote_key(rsc), CRMD_ACTION_DEMOTE, node, \ node 426 include/crm/pengine/internal.h # define demoted_action(rsc, node, optional) custom_action( \ node 427 include/crm/pengine/internal.h rsc, demoted_key(rsc), CRMD_ACTION_DEMOTED, node, \ node 442 include/crm/pengine/internal.h GList *pe__resource_actions(const pe_resource_t *rsc, const pe_node_t *node, node 447 include/crm/pengine/internal.h extern void resource_location(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag, node 506 include/crm/pengine/internal.h guint *interval_ms, pe_node_t *node, node 513 include/crm/pengine/internal.h op_digest_cache_t *rsc_action_digest_cmp(pe_resource_t * rsc, xmlNode * xml_op, pe_node_t * node, node 516 include/crm/pengine/internal.h pe_action_t *pe_fence_op(pe_node_t * node, const char *op, bool optional, const char *reason, bool priority_delay, pe_working_set_t * data_set); node 518 include/crm/pengine/internal.h pe_resource_t * rsc, pe_node_t *node, const char *reason, pe_action_t *dependency, pe_working_set_t * data_set); node 539 include/crm/pengine/internal.h void pe_fence_node(pe_working_set_t * data_set, pe_node_t * node, const char *reason, bool priority_delay); node 543 include/crm/pengine/internal.h void common_print(pe_resource_t * rsc, const char *pre_text, const char *name, pe_node_t *node, long options, void *print_data); node 544 include/crm/pengine/internal.h int pe__common_output_text(pcmk__output_t *out, pe_resource_t * rsc, const char *name, pe_node_t *node, long options); node 545 include/crm/pengine/internal.h int pe__common_output_html(pcmk__output_t *out, pe_resource_t * rsc, const char *name, pe_node_t *node, long options); node 547 include/crm/pengine/internal.h const pe_node_t *node); node 553 include/crm/pengine/internal.h const char *pe_node_attribute_calculated(const pe_node_t *node, node 556 include/crm/pengine/internal.h const char *pe_node_attribute_raw(pe_node_t *node, const char *name); node 559 include/crm/pengine/internal.h void pe__add_param_check(xmlNode *rsc_op, pe_resource_t *rsc, pe_node_t *node, node 567 include/crm/pengine/internal.h bool pe__shutdown_requested(pe_node_t *node); node 582 include/crm/pengine/internal.h pe_action_t *pe__clear_resource_history(pe_resource_t *rsc, pe_node_t *node, node 588 include/crm/pengine/internal.h bool pe__uname_has_tag(pe_working_set_t *data_set, const char *node, const char *tag); node 46 include/crm/pengine/pe_types.h const pe_node_t *node, int flags); node 410 include/crm/pengine/pe_types.h pe_node_t *node; node 22 include/crm/pengine/remote_internal.h bool pe__is_remote_node(const pe_node_t *node); node 23 include/crm/pengine/remote_internal.h bool pe__is_guest_node(const pe_node_t *node); node 24 include/crm/pengine/remote_internal.h bool pe__is_guest_or_remote_node(const pe_node_t *node); node 25 include/crm/pengine/remote_internal.h bool pe__is_bundle_node(const pe_node_t *node); node 43 include/crm/pengine/status.h GList *find_operations(const char *rsc, const char *node, gboolean active_filter, node 191 include/crm/stonith-ng.h stonith_t *st, int options, const char *node, int level); node 201 include/crm/stonith-ng.h stonith_t *st, int options, const char *node, int level, stonith_key_value_t *device_list); node 260 include/crm/stonith-ng.h int (*query)(stonith_t *st, int options, const char *node, node 278 include/crm/stonith-ng.h int (*fence)(stonith_t *st, int options, const char *node, const char *action, node 287 include/crm/stonith-ng.h int (*confirm)(stonith_t *st, int options, const char *node); node 295 include/crm/stonith-ng.h int (*history)(stonith_t *st, int options, const char *node, stonith_history_t **output, int timeout); node 348 include/crm/stonith-ng.h const char *node, const char *pattern, node 368 include/crm/stonith-ng.h const char *node, const char *pattern, node 412 include/crm/stonith-ng.h int (*fence_with_delay)(stonith_t *st, int options, const char *node, const char *action, node 73 include/pacemaker.h pe_node_t *node, GHashTable *overrides, node 18 include/pcmki/pcmki_resource.h pe_node_t *node, GHashTable *overrides, node 66 include/pcmki/pcmki_sched_allocate.h extern enum pe_action_flags native_action_flags(pe_action_t * action, pe_node_t * node); node 70 include/pcmki/pcmki_sched_allocate.h extern gboolean native_create_probe(pe_resource_t * rsc, pe_node_t * node, pe_action_t * complete, node 84 include/pcmki/pcmki_sched_allocate.h extern enum pe_action_flags group_action_flags(pe_action_t * action, pe_node_t * node); node 93 include/pcmki/pcmki_sched_allocate.h gboolean pcmk__bundle_create_probe(pe_resource_t *rsc, pe_node_t *node, node 108 include/pcmki/pcmki_sched_allocate.h pe_node_t *node); node 123 include/pcmki/pcmki_sched_allocate.h extern enum pe_action_flags clone_action_flags(pe_action_t * action, pe_node_t * node); node 125 include/pcmki/pcmki_sched_allocate.h extern gboolean clone_create_probe(pe_resource_t * rsc, pe_node_t * node, pe_action_t * complete, node 154 include/pcmki/pcmki_sched_allocate.h pe_node_t *node, node 160 include/pcmki/pcmki_sched_allocate.h pe_node_t *node, node 167 include/pcmki/pcmki_sched_allocate.h pe_node_t *node, node 27 include/pcmki/pcmki_sched_utils.h const char *discovery_mode, pe_node_t *node, node 44 include/pcmki/pcmki_sched_utils.h extern gboolean can_run_resources(const pe_node_t * node); node 60 include/pcmki/pcmki_sched_utils.h bool assign_node(pe_resource_t * rsc, pe_node_t * node, gboolean force); node 61 include/pcmki/pcmki_sched_utils.h enum pe_action_flags summary_action_flags(pe_action_t * action, GList *children, pe_node_t * node); node 82 include/pcmki/pcmki_sched_utils.h guint interval_ms, pe_node_t *node, node 84 include/pcmki/pcmki_sched_utils.h pe_action_t *sched_shutdown_op(pe_node_t *node, pe_working_set_t *data_set); node 88 include/pcmki/pcmki_sched_utils.h const char *node, const char *origin, node 82 include/pcmki/pcmki_scheduler.h extern gboolean shutdown_constraints(pe_node_t * node, pe_action_t * shutdown_op, node 133 lib/cluster/cluster.c send_cluster_message(crm_node_t *node, enum crm_ais_msg_types service, node 139 lib/cluster/cluster.c return pcmk__cpg_send_xml(data, node, service); node 224 lib/cluster/cluster.c crm_node_t *node = NULL; node 235 lib/cluster/cluster.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 236 lib/cluster/cluster.c if (pcmk__str_eq(node->uuid, uuid, pcmk__str_casei)) { node 237 lib/cluster/cluster.c if (node->uname != NULL) { node 238 lib/cluster/cluster.c return node->uname; node 243 lib/cluster/cluster.c node = NULL; node 255 lib/cluster/cluster.c node = pcmk__search_cluster_node_cache((uint32_t) id, NULL); node 256 lib/cluster/cluster.c if (node != NULL) { node 258 lib/cluster/cluster.c node->uname, node->id, uuid); node 259 lib/cluster/cluster.c node->uuid = strdup(uuid); node 260 lib/cluster/cluster.c return node->uname; node 277 lib/cluster/cluster.c set_uuid(xmlNode *xml, const char *attr, crm_node_t *node) node 279 lib/cluster/cluster.c crm_xml_add(xml, attr, crm_peer_uuid(node)); node 55 lib/cluster/corosync.c pcmk__corosync_uuid(crm_node_t *node) node 57 lib/cluster/corosync.c if ((node != NULL) && is_corosync_cluster()) { node 58 lib/cluster/corosync.c if (node->id > 0) { node 59 lib/cluster/corosync.c return crm_strdup_printf("%u", node->id); node 61 lib/cluster/corosync.c crm_info("Node %s is not yet known by corosync", node->uname); node 272 lib/cluster/corosync.c crm_node_t *node = NULL; node 301 lib/cluster/corosync.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 302 lib/cluster/corosync.c node->last_seen = 0; node 312 lib/cluster/corosync.c node = crm_get_peer(id, NULL); node 313 lib/cluster/corosync.c if (node->uname == NULL) { node 317 lib/cluster/corosync.c node = crm_get_peer(id, name); node 322 lib/cluster/corosync.c pcmk__update_peer_state(__func__, node, CRM_NODE_MEMBER, ring_id); node 515 lib/cluster/corosync.c crm_is_corosync_peer_active(const crm_node_t *node) node 517 lib/cluster/corosync.c if (node == NULL) { node 521 lib/cluster/corosync.c } else if (!pcmk__str_eq(node->state, CRM_NODE_MEMBER, pcmk__str_casei)) { node 523 lib/cluster/corosync.c node->uname, node->state); node 526 lib/cluster/corosync.c } else if (!pcmk_is_set(node->processes, crm_proc_cpg)) { node 528 lib/cluster/corosync.c node->uname, node->processes); node 611 lib/cluster/corosync.c crm_node_t *node = NULL; node 614 lib/cluster/corosync.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 615 lib/cluster/corosync.c if(node && node->uname && strcasecmp(node->uname, name) == 0) { node 616 lib/cluster/corosync.c if (node->id && node->id != nodeid) { node 617 lib/cluster/corosync.c crm_crit("Nodes %u and %u share the same name '%s': shutting down", node->id, node 634 lib/cluster/corosync.c xmlNode *node = create_xml_node(xml_parent, XML_CIB_TAG_NODE); node 636 lib/cluster/corosync.c crm_xml_set_id(node, "%u", nodeid); node 637 lib/cluster/corosync.c crm_xml_add(node, XML_ATTR_UNAME, name); node 877 lib/cluster/cpg.c pcmk__cpg_send_xml(xmlNode *msg, crm_node_t *node, enum crm_ais_msg_types dest) node 883 lib/cluster/cpg.c rc = send_cluster_text(crm_class_cluster, data, FALSE, node, dest); node 902 lib/cluster/cpg.c gboolean local, crm_node_t *node, enum crm_ais_msg_types dest) node 953 lib/cluster/cpg.c if (node) { node 954 lib/cluster/cpg.c if (node->uname) { node 955 lib/cluster/cpg.c target = strdup(node->uname); node 956 lib/cluster/cpg.c msg->host.size = strlen(node->uname); node 958 lib/cluster/cpg.c memcpy(msg->host.uname, node->uname, msg->host.size); node 960 lib/cluster/cpg.c target = crm_strdup_printf("%u", node->id); node 962 lib/cluster/cpg.c msg->host.id = node->id; node 44 lib/cluster/crmcluster_private.h gboolean pcmk__cpg_send_xml(xmlNode *msg, crm_node_t *node, node 368 lib/cluster/election.c const crm_node_t *node; node 373 lib/cluster/election.c while (g_hash_table_iter_next(&gIter, NULL, (gpointer *) & node)) { node 374 lib/cluster/election.c if (crm_is_peer_active(node)) { node 375 lib/cluster/election.c crm_warn("* expected vote: %s", node->uname); node 84 lib/cluster/membership.c static void update_peer_uname(crm_node_t *node, const char *uname); node 109 lib/cluster/membership.c crm_node_t *node; node 117 lib/cluster/membership.c node = g_hash_table_lookup(crm_remote_peer_cache, node_name); node 118 lib/cluster/membership.c if (node) { node 119 lib/cluster/membership.c return node; node 123 lib/cluster/membership.c node = calloc(1, sizeof(crm_node_t)); node 124 lib/cluster/membership.c if (node == NULL) { node 129 lib/cluster/membership.c set_peer_flags(node, crm_remote_node); node 130 lib/cluster/membership.c node->uuid = strdup(node_name); node 131 lib/cluster/membership.c if (node->uuid == NULL) { node 132 lib/cluster/membership.c free(node); node 138 lib/cluster/membership.c g_hash_table_replace(crm_remote_peer_cache, node->uuid, node); node 142 lib/cluster/membership.c update_peer_uname(node, node_name); node 143 lib/cluster/membership.c return node; node 198 lib/cluster/membership.c crm_node_t *node; node 208 lib/cluster/membership.c node = g_hash_table_lookup(crm_remote_peer_cache, remote); node 210 lib/cluster/membership.c if (node == NULL) { node 212 lib/cluster/membership.c node = crm_remote_peer_get(remote); node 213 lib/cluster/membership.c CRM_ASSERT(node); node 215 lib/cluster/membership.c pcmk__update_peer_state(__func__, node, state, 0); node 218 lib/cluster/membership.c } else if (pcmk_is_set(node->flags, crm_node_dirty)) { node 220 lib/cluster/membership.c clear_peer_flags(node, crm_node_dirty); node 222 lib/cluster/membership.c pcmk__update_peer_state(__func__, node, state, 0); node 283 lib/cluster/membership.c crm_is_peer_active(const crm_node_t * node) node 285 lib/cluster/membership.c if(node == NULL) { node 289 lib/cluster/membership.c if (pcmk_is_set(node->flags, crm_remote_node)) { node 296 lib/cluster/membership.c return crm_is_corosync_peer_active(node); node 306 lib/cluster/membership.c crm_node_t *node = value; node 312 lib/cluster/membership.c } else if (search->id && node->id != search->id) { node 315 lib/cluster/membership.c } else if (search->id == 0 && !pcmk__str_eq(node->uname, search->uname, pcmk__str_casei)) { node 320 lib/cluster/membership.c (node->uname? node->uname : "unknown"), node->id); node 368 lib/cluster/membership.c crm_node_t *node = value; node 370 lib/cluster/membership.c if (crm_is_peer_active(node)) { node 389 lib/cluster/membership.c crm_node_t *node = data; node 391 lib/cluster/membership.c crm_trace("Destroying entry for node %u: %s", node->id, node->uname); node 393 lib/cluster/membership.c free(node->uname); node 394 lib/cluster/membership.c free(node->state); node 395 lib/cluster/membership.c free(node->uuid); node 396 lib/cluster/membership.c free(node->expected); node 397 lib/cluster/membership.c free(node); node 481 lib/cluster/membership.c crm_node_t *node = NULL; node 484 lib/cluster/membership.c while (g_hash_table_iter_next(&iter, (gpointer *) &id, (gpointer *) &node)) { node 485 lib/cluster/membership.c do_crm_log(level, "%s: Node %u/%s = %p - %s", caller, node->id, node->uname, node, id); node 508 lib/cluster/membership.c crm_node_t *node = NULL; node 515 lib/cluster/membership.c node = g_hash_table_lookup(crm_remote_peer_cache, uname); node 518 lib/cluster/membership.c if ((node == NULL) && pcmk_is_set(flags, CRM_GET_PEER_CLUSTER)) { node 519 lib/cluster/membership.c node = pcmk__search_cluster_node_cache(id, uname); node 521 lib/cluster/membership.c return node; node 536 lib/cluster/membership.c crm_node_t *node = NULL; node 543 lib/cluster/membership.c node = g_hash_table_lookup(crm_remote_peer_cache, uname); node 546 lib/cluster/membership.c if ((node == NULL) && pcmk_is_set(flags, CRM_GET_PEER_CLUSTER)) { node 547 lib/cluster/membership.c node = crm_get_peer(id, uname); node 549 lib/cluster/membership.c return node; node 565 lib/cluster/membership.c crm_node_t *node = NULL; node 575 lib/cluster/membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 576 lib/cluster/membership.c if(node->uname && strcasecmp(node->uname, uname) == 0) { node 577 lib/cluster/membership.c crm_trace("Name match: %s = %p", node->uname, node); node 578 lib/cluster/membership.c by_name = node; node 586 lib/cluster/membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 587 lib/cluster/membership.c if(node->id == id) { node 588 lib/cluster/membership.c crm_trace("ID match: %u = %p", node->id, node); node 589 lib/cluster/membership.c by_id = node; node 595 lib/cluster/membership.c node = by_id; /* Good default */ node 607 lib/cluster/membership.c node = NULL; /* Create a new one */ node 610 lib/cluster/membership.c node = by_name; node 650 lib/cluster/membership.c return node; node 655 lib/cluster/membership.c remove_conflicting_peer(crm_node_t *node) node 661 lib/cluster/membership.c if (node->id == 0 || node->uname == NULL) { node 672 lib/cluster/membership.c && existing_node->id != node->id node 674 lib/cluster/membership.c && strcasecmp(existing_node->uname, node->uname) == 0) { node 681 lib/cluster/membership.c existing_node->id, existing_node->uname, node->id); node 704 lib/cluster/membership.c crm_node_t *node = NULL; node 711 lib/cluster/membership.c node = pcmk__search_cluster_node_cache(id, uname); node 715 lib/cluster/membership.c if ((node == NULL || node->uname == NULL) && (uname == NULL)) { node 724 lib/cluster/membership.c if (node == NULL) { node 725 lib/cluster/membership.c node = pcmk__search_cluster_node_cache(id, uname); node 730 lib/cluster/membership.c if (node == NULL) { node 733 lib/cluster/membership.c node = calloc(1, sizeof(crm_node_t)); node 734 lib/cluster/membership.c CRM_ASSERT(node); node 737 lib/cluster/membership.c uniqueid, node, uname, id, 1 + g_hash_table_size(crm_peer_cache)); node 738 lib/cluster/membership.c g_hash_table_replace(crm_peer_cache, uniqueid, node); node 741 lib/cluster/membership.c if(id > 0 && uname && (node->id == 0 || node->uname == NULL)) { node 745 lib/cluster/membership.c if(id > 0 && node->id == 0) { node 746 lib/cluster/membership.c node->id = id; node 749 lib/cluster/membership.c if (uname && (node->uname == NULL)) { node 750 lib/cluster/membership.c update_peer_uname(node, uname); node 753 lib/cluster/membership.c if(node->uuid == NULL) { node 754 lib/cluster/membership.c const char *uuid = crm_peer_uuid(node); node 760 lib/cluster/membership.c crm_info("Cannot obtain a UUID for node %u/%s", id, node->uname); node 766 lib/cluster/membership.c return node; node 781 lib/cluster/membership.c update_peer_uname(crm_node_t *node, const char *uname) node 785 lib/cluster/membership.c CRM_CHECK(node != NULL, node 789 lib/cluster/membership.c if (pcmk__str_eq(uname, node->uname, pcmk__str_casei)) { node 802 lib/cluster/membership.c free(node->uname); node 803 lib/cluster/membership.c node->uname = strdup(uname); node 804 lib/cluster/membership.c CRM_ASSERT(node->uname != NULL); node 807 lib/cluster/membership.c peer_status_callback(crm_status_uname, node, NULL); node 811 lib/cluster/membership.c if (is_corosync_cluster() && !pcmk_is_set(node->flags, crm_remote_node)) { node 812 lib/cluster/membership.c remove_conflicting_peer(node); node 876 lib/cluster/membership.c crm_update_peer_proc(const char *source, crm_node_t * node, uint32_t flag, const char *status) node 881 lib/cluster/membership.c CRM_CHECK(node != NULL, crm_err("%s: Could not set %s to %s for NULL", node 886 lib/cluster/membership.c if (pcmk_is_set(node->flags, crm_remote_node)) { node 887 lib/cluster/membership.c return node; node 890 lib/cluster/membership.c last = node->processes; node 892 lib/cluster/membership.c node->processes = flag; node 893 lib/cluster/membership.c if (node->processes != last) { node 898 lib/cluster/membership.c if ((node->processes & flag) != flag) { node 899 lib/cluster/membership.c node->processes = pcmk__set_flags_as(__func__, __LINE__, node 901 lib/cluster/membership.c node->uname, node->processes, node 906 lib/cluster/membership.c } else if (node->processes & flag) { node 907 lib/cluster/membership.c node->processes = pcmk__clear_flags_as(__func__, __LINE__, node 909 lib/cluster/membership.c node->uname, node->processes, node 916 lib/cluster/membership.c crm_info("%s: Node %s[%u] - all processes are now offline", source, node->uname, node 917 lib/cluster/membership.c node->id); node 919 lib/cluster/membership.c crm_info("%s: Node %s[%u] - %s is now %s", source, node->uname, node->id, node 927 lib/cluster/membership.c peer_status_callback(crm_status_processes, node, &last); node 940 lib/cluster/membership.c if (pcmk_is_set(node->processes, crm_get_cluster_proc())) { node 945 lib/cluster/membership.c node = pcmk__update_peer_state(__func__, node, peer_state, 0); node 948 lib/cluster/membership.c crm_trace("%s: Node %s[%u] - %s is unchanged (%s)", source, node->uname, node->id, node 951 lib/cluster/membership.c return node; node 963 lib/cluster/membership.c pcmk__update_peer_expected(const char *source, crm_node_t *node, node 969 lib/cluster/membership.c CRM_CHECK(node != NULL, crm_err("%s: Could not set 'expected' to %s", source, expected); node 973 lib/cluster/membership.c if (pcmk_is_set(node->flags, crm_remote_node)) { node 977 lib/cluster/membership.c last = node->expected; node 978 lib/cluster/membership.c if (expected != NULL && !pcmk__str_eq(node->expected, expected, pcmk__str_casei)) { node 979 lib/cluster/membership.c node->expected = strdup(expected); node 984 lib/cluster/membership.c crm_info("%s: Node %s[%u] - expected state is now %s (was %s)", source, node->uname, node->id, node 988 lib/cluster/membership.c crm_trace("%s: Node %s[%u] - expected state is unchanged (%s)", source, node->uname, node 989 lib/cluster/membership.c node->id, expected); node 1010 lib/cluster/membership.c update_peer_state_iter(const char *source, crm_node_t *node, const char *state, node 1015 lib/cluster/membership.c CRM_CHECK(node != NULL, node 1022 lib/cluster/membership.c node->when_lost = 0; node 1024 lib/cluster/membership.c node->last_seen = membership; node 1028 lib/cluster/membership.c if (state && !pcmk__str_eq(node->state, state, pcmk__str_casei)) { node 1029 lib/cluster/membership.c char *last = node->state; node 1031 lib/cluster/membership.c node->state = strdup(state); node 1033 lib/cluster/membership.c " nodeid=%u previous=%s source=%s", node->uname, state, node 1034 lib/cluster/membership.c node->id, (last? last : "unknown"), source); node 1036 lib/cluster/membership.c peer_status_callback(crm_status_nstate, node, last); node 1041 lib/cluster/membership.c && !pcmk_is_set(node->flags, crm_remote_node)) { node 1047 lib/cluster/membership.c crm_notice("Purged 1 peer with id=%u and/or uname=%s from the membership cache", node->id, node->uname); node 1051 lib/cluster/membership.c reap_crm_member(node->id, node->uname); node 1053 lib/cluster/membership.c node = NULL; node 1058 lib/cluster/membership.c " nodeid=%u source=%s", node->uname, state, node->id, source); node 1060 lib/cluster/membership.c return node; node 1079 lib/cluster/membership.c pcmk__update_peer_state(const char *source, crm_node_t *node, node 1082 lib/cluster/membership.c return update_peer_state_iter(source, node, state, membership, NULL); node 1095 lib/cluster/membership.c crm_node_t *node = NULL; node 1099 lib/cluster/membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *)&node)) { node 1100 lib/cluster/membership.c if (node->last_seen != membership) { node 1101 lib/cluster/membership.c if (node->state) { node 1107 lib/cluster/membership.c update_peer_state_iter(__func__, node, CRM_NODE_LOST, node 1112 lib/cluster/membership.c node->uname, node->id); node 1122 lib/cluster/membership.c crm_node_t *node = NULL; node 1128 lib/cluster/membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 1129 lib/cluster/membership.c if (node->uname && strcasecmp(node->uname, uname) == 0) { node 1130 lib/cluster/membership.c crm_trace("Name match: %s = %p", node->uname, node); node 1131 lib/cluster/membership.c by_name = node; node 1139 lib/cluster/membership.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 1140 lib/cluster/membership.c if(strcasecmp(node->uuid, id) == 0) { node 1141 lib/cluster/membership.c crm_trace("ID match: %s= %p", id, node); node 1142 lib/cluster/membership.c by_id = node; node 1148 lib/cluster/membership.c node = by_id; /* Good default */ node 1157 lib/cluster/membership.c node = NULL; node 1160 lib/cluster/membership.c node = by_name; node 1167 lib/cluster/membership.c node = NULL; node 1179 lib/cluster/membership.c node = by_name; node 1182 lib/cluster/membership.c node = NULL; node 1185 lib/cluster/membership.c if (node == NULL) { node 1193 lib/cluster/membership.c return node; node 1201 lib/cluster/membership.c crm_node_t * node = NULL; node 1204 lib/cluster/membership.c node = find_known_node(id, uname); node 1206 lib/cluster/membership.c if (node == NULL) { node 1209 lib/cluster/membership.c node = calloc(1, sizeof(crm_node_t)); node 1210 lib/cluster/membership.c CRM_ASSERT(node != NULL); node 1212 lib/cluster/membership.c node->uname = strdup(uname); node 1213 lib/cluster/membership.c CRM_ASSERT(node->uname != NULL); node 1215 lib/cluster/membership.c node->uuid = strdup(id); node 1216 lib/cluster/membership.c CRM_ASSERT(node->uuid != NULL); node 1218 lib/cluster/membership.c g_hash_table_replace(known_node_cache, uniqueid, node); node 1220 lib/cluster/membership.c } else if (pcmk_is_set(node->flags, crm_node_dirty)) { node 1221 lib/cluster/membership.c if (!pcmk__str_eq(uname, node->uname, pcmk__str_casei)) { node 1222 lib/cluster/membership.c free(node->uname); node 1223 lib/cluster/membership.c node->uname = strdup(uname); node 1224 lib/cluster/membership.c CRM_ASSERT(node->uname != NULL); node 1228 lib/cluster/membership.c clear_peer_flags(node, crm_node_dirty); node 1268 lib/cluster/membership.c crm_node_t *node = NULL; node 1273 lib/cluster/membership.c node = pcmk__search_node_caches(id, uname, flags); node 1275 lib/cluster/membership.c if (node || !(flags & CRM_GET_PEER_CLUSTER)) { node 1276 lib/cluster/membership.c return node; node 1283 lib/cluster/membership.c node = find_known_node(id_str, uname); node 1286 lib/cluster/membership.c return node; node 129 lib/common/ipc_controld.c for (xmlNode *node = first_named_child(msg_data, XML_CIB_TAG_NODE); node 130 lib/common/ipc_controld.c node != NULL; node = crm_next_same_xml(node)) { node 135 lib/common/ipc_controld.c crm_element_value_ll(node, XML_ATTR_ID, &id_ll); node 139 lib/common/ipc_controld.c node_info->uname = crm_element_value(node, XML_ATTR_UNAME); node 140 lib/common/ipc_controld.c node_info->state = crm_element_value(node, XML_NODE_IN_CLUSTER); node 271 lib/common/ipc_controld.c const char *node, xmlNode *msg_data) node 280 lib/common/ipc_controld.c if ((node == NULL) && !strcmp(op, CRM_OP_PING)) { node 285 lib/common/ipc_controld.c return create_request(op, msg_data, node, sys_to, node 324 lib/common/nvpair.c crm_xml_add(xmlNode *node, const char *name, const char *value) node 329 lib/common/nvpair.c CRM_CHECK(node != NULL, return NULL); node 339 lib/common/nvpair.c old_value = crm_element_value(node, name); node 348 lib/common/nvpair.c if (pcmk__tracking_xml_changes(node, FALSE)) { node 349 lib/common/nvpair.c const char *old = crm_element_value(node, name); node 356 lib/common/nvpair.c if (dirty && (pcmk__check_acl(node, name, xpf_acl_create) == FALSE)) { node 357 lib/common/nvpair.c crm_trace("Cannot add %s=%s to %s", name, value, node->name); node 361 lib/common/nvpair.c attr = xmlSetProp(node, (pcmkXmlStr) name, (pcmkXmlStr) value); node 381 lib/common/nvpair.c crm_xml_replace(xmlNode *node, const char *name, const char *value) node 387 lib/common/nvpair.c CRM_CHECK(node != NULL, return NULL); node 390 lib/common/nvpair.c old_value = crm_element_value(node, name); node 395 lib/common/nvpair.c if (pcmk__check_acl(node, name, xpf_acl_write) == FALSE) { node 397 lib/common/nvpair.c crm_trace("Cannot replace %s=%s to %s", name, value, node->name); node 401 lib/common/nvpair.c xml_remove_prop(node, name); node 405 lib/common/nvpair.c if (pcmk__tracking_xml_changes(node, FALSE)) { node 411 lib/common/nvpair.c attr = xmlSetProp(node, (pcmkXmlStr) name, (pcmkXmlStr) value); node 432 lib/common/nvpair.c crm_xml_add_int(xmlNode *node, const char *name, int value) node 435 lib/common/nvpair.c const char *added = crm_xml_add(node, name, number); node 454 lib/common/nvpair.c crm_xml_add_ms(xmlNode *node, const char *name, guint ms) node 457 lib/common/nvpair.c const char *added = crm_xml_add(node, name, number); node 297 lib/common/operations.c const char *node) node 299 lib/common/operations.c CRM_CHECK(node != NULL, return NULL); node 301 lib/common/operations.c action_id, transition_id, target_rc, 36, node); node 266 lib/common/output_html.c htmlNodePtr node = NULL; node 270 lib/common/output_html.c node = pcmk__output_create_html_node(out, "pre", NULL, NULL, buf); node 271 lib/common/output_html.c crm_xml_add(node, "lang", "xml"); node 280 lib/common/output_html.c xmlNodePtr node = NULL; node 313 lib/common/output_html.c node = pcmk__output_xml_create_parent(out, "ul", NULL); node 314 lib/common/output_html.c g_queue_push_tail(priv->parent_q, node); node 419 lib/common/output_html.c htmlNodePtr node = NULL; node 423 lib/common/output_html.c node = pcmk__output_create_xml_text_node(out, element_name, text); node 426 lib/common/output_html.c crm_xml_add(node, "class", class_name); node 430 lib/common/output_html.c crm_xml_add(node, "id", id); node 433 lib/common/output_html.c return node; node 124 lib/common/output_log.c xmlNodePtr node = NULL; node 130 lib/common/output_log.c node = create_xml_node(NULL, name); node 131 lib/common/output_log.c xmlNodeSetContent(node, (pcmkXmlStr) buf); node 132 lib/common/output_log.c do_crm_log_xml(priv->log_level, name, node); node 133 lib/common/output_log.c free(node); node 243 lib/common/output_text.c text_list_data_t *node = NULL; node 248 lib/common/output_text.c node = g_queue_pop_tail(priv->parent_q); node 250 lib/common/output_text.c if (node->singular_noun != NULL && node->plural_noun != NULL) { node 251 lib/common/output_text.c if (node->len == 1) { node 252 lib/common/output_text.c pcmk__indented_printf(out, "%d %s found\n", node->len, node->singular_noun); node 254 lib/common/output_text.c pcmk__indented_printf(out, "%d %s found\n", node->len, node->plural_noun); node 258 lib/common/output_text.c free(node); node 141 lib/common/output_xml.c xmlNodePtr node = (xmlNodePtr) user_data; node 142 lib/common/output_xml.c pcmk_create_xml_text_node(node, "error", str); node 148 lib/common/output_xml.c xmlNodePtr node; node 161 lib/common/output_xml.c GSList *node = priv->errors; node 167 lib/common/output_xml.c while (node != NULL) { node 168 lib/common/output_xml.c fprintf(stderr, "%s\n", (char *) node->data); node 169 lib/common/output_xml.c node = node->next; node 174 lib/common/output_xml.c node = create_xml_node(priv->root, "status"); node 175 lib/common/output_xml.c pcmk__xe_set_props(node, "code", rc_as_str, node 180 lib/common/output_xml.c xmlNodePtr errors_node = create_xml_node(node, "errors"); node 213 lib/common/output_xml.c xmlNodePtr node, child_node; node 220 lib/common/output_xml.c node = pcmk__output_xml_create_parent(out, "command", node 225 lib/common/output_xml.c child_node = pcmk_create_xml_text_node(node, "output", proc_stdout); node 230 lib/common/output_xml.c child_node = pcmk_create_xml_text_node(node, "output", proc_stderr); node 234 lib/common/output_xml.c pcmk__output_xml_add_node(out, node); node 369 lib/common/output_xml.c xmlNodePtr node; node 371 lib/common/output_xml.c node = g_queue_pop_tail(priv->parent_q); node 372 lib/common/output_xml.c buf = crm_strdup_printf("%lu", xmlChildElementCount(node)); node 373 lib/common/output_xml.c crm_xml_add(node, "count", buf); node 434 lib/common/output_xml.c xmlNodePtr node = NULL; node 438 lib/common/output_xml.c node = pcmk__output_create_xml_node(out, name, NULL); node 441 lib/common/output_xml.c pcmk__xe_set_propv(node, args); node 444 lib/common/output_xml.c pcmk__output_xml_push_parent(out, node); node 445 lib/common/output_xml.c return node; node 449 lib/common/output_xml.c pcmk__output_xml_add_node(pcmk__output_t *out, xmlNodePtr node) { node 453 lib/common/output_xml.c CRM_ASSERT(node != NULL); node 461 lib/common/output_xml.c xmlAddChild(g_queue_peek_tail(priv->parent_q), node); node 466 lib/common/output_xml.c xmlNodePtr node = NULL; node 475 lib/common/output_xml.c node = create_xml_node(g_queue_peek_tail(priv->parent_q), name); node 477 lib/common/output_xml.c pcmk__xe_set_propv(node, args); node 480 lib/common/output_xml.c return node; node 485 lib/common/output_xml.c xmlNodePtr node = NULL; node 489 lib/common/output_xml.c node = pcmk__output_create_xml_node(out, name, NULL); node 490 lib/common/output_xml.c xmlNodeSetContent(node, (pcmkXmlStr) content); node 491 lib/common/output_xml.c return node; node 223 lib/common/xml.c free_private_data(xmlNode *node) node 232 lib/common/xml.c if (node->type != XML_DOCUMENT_NODE || node->name == NULL node 233 lib/common/xml.c || node->name[0] != ' ') { node 234 lib/common/xml.c reset_xml_private_data(node->_private); node 235 lib/common/xml.c free(node->_private); node 241 lib/common/xml.c new_private_data(xmlNode *node) node 245 lib/common/xml.c switch(node->type) { node 254 lib/common/xml.c node->_private = p; node 262 lib/common/xml.c crm_trace("Ignoring %p %d", node, node->type); node 263 lib/common/xml.c CRM_LOG_ASSERT(node->type == XML_ELEMENT_NODE); node 267 lib/common/xml.c if(p && pcmk__tracking_xml_changes(node, FALSE)) { node 271 lib/common/xml.c mark_xml_node_dirty(node); node 658 lib/common/xml.c getDocPtr(xmlNode * node) node 662 lib/common/xml.c CRM_CHECK(node != NULL, return NULL); node 664 lib/common/xml.c doc = node->doc; node 667 lib/common/xml.c xmlDocSetRootElement(doc, node); node 668 lib/common/xml.c xmlSetTreeDoc(node, doc); node 699 lib/common/xml.c xmlNode *node = NULL; node 708 lib/common/xml.c node = xmlNewDocRawNode(doc, NULL, (pcmkXmlStr) name, NULL); node 709 lib/common/xml.c xmlDocSetRootElement(doc, node); node 713 lib/common/xml.c node = xmlNewDocRawNode(doc, NULL, (pcmkXmlStr) name, NULL); node 714 lib/common/xml.c xmlAddChild(parent, node); node 716 lib/common/xml.c pcmk__mark_xml_created(node); node 717 lib/common/xml.c return node; node 723 lib/common/xml.c xmlNode *node = create_xml_node(parent, name); node 725 lib/common/xml.c if (node != NULL) { node 726 lib/common/xml.c xmlNodeSetContent(node, (pcmkXmlStr) content); node 729 lib/common/xml.c return node; node 736 lib/common/xml.c xmlNode *node = pcmk_create_xml_text_node(parent, element_name, text); node 739 lib/common/xml.c crm_xml_add(node, "class", class_name); node 743 lib/common/xml.c crm_xml_add(node, "id", id); node 746 lib/common/xml.c return node; node 2952 lib/common/xml.c pcmk__xe_set_propv(xmlNodePtr node, va_list pairs) node 2967 lib/common/xml.c crm_xml_add(node, name, value); node 2972 lib/common/xml.c pcmk__xe_set_props(xmlNodePtr node, ...) node 2975 lib/common/xml.c va_start(pairs, node); node 2976 lib/common/xml.c pcmk__xe_set_propv(node, pairs); node 303 lib/common/xpath.c pcmk__xpath_node_id(const char *xpath, const char *node) node 310 lib/common/xpath.c if (node == NULL || xpath == NULL) { node 314 lib/common/xpath.c patt = crm_strdup_printf("/%s[@id=", node); node 343 lib/fencing/st_client.c const char *node, const char *pattern, node 349 lib/fencing/st_client.c CRM_CHECK(node || pattern || (attr && value), return -EINVAL); node 354 lib/fencing/st_client.c if (node) { node 355 lib/fencing/st_client.c crm_xml_add(data, XML_ATTR_STONITH_TARGET, node); node 373 lib/fencing/st_client.c stonith_api_remove_level(stonith_t * st, int options, const char *node, int level) node 375 lib/fencing/st_client.c return stonith_api_remove_level_full(st, options, node, node 395 lib/fencing/st_client.c create_level_registration_xml(const char *node, const char *pattern, node 403 lib/fencing/st_client.c CRM_CHECK(node || pattern || (attr && value), return NULL); node 412 lib/fencing/st_client.c if (node) { node 413 lib/fencing/st_client.c crm_xml_add(data, XML_ATTR_STONITH_TARGET, node); node 436 lib/fencing/st_client.c stonith_api_register_level_full(stonith_t * st, int options, const char *node, node 442 lib/fencing/st_client.c xmlNode *data = create_level_registration_xml(node, pattern, attr, value, node 453 lib/fencing/st_client.c stonith_api_register_level(stonith_t * st, int options, const char *node, int level, node 456 lib/fencing/st_client.c return stonith_api_register_level_full(st, options, node, NULL, NULL, NULL, node 1069 lib/fencing/st_client.c stonith_api_fence_with_delay(stonith_t * stonith, int call_options, const char *node, node 1076 lib/fencing/st_client.c crm_xml_add(data, F_STONITH_TARGET, node); node 1089 lib/fencing/st_client.c stonith_api_fence(stonith_t * stonith, int call_options, const char *node, const char *action, node 1092 lib/fencing/st_client.c return stonith_api_fence_with_delay(stonith, call_options, node, action, node 1104 lib/fencing/st_client.c stonith_api_history(stonith_t * stonith, int call_options, const char *node, node 1114 lib/fencing/st_client.c if (node) { node 1116 lib/fencing/st_client.c crm_xml_add(data, F_STONITH_TARGET, node); node 1119 lib/fencing/st_client.c stonith__set_call_options(call_options, node, st_opt_sync_call); node 325 lib/fencing/st_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "fence_event", node 334 lib/fencing/st_output.c crm_xml_add(node, "status", "failed"); node 338 lib/fencing/st_output.c crm_xml_add(node, "status", "success"); node 343 lib/fencing/st_output.c pcmk__xe_set_props(node, "status", "pending", node 352 lib/fencing/st_output.c crm_xml_add(node, "delegate", event->delegate); node 357 lib/fencing/st_output.c crm_xml_add(node, "completed", buf); node 419 lib/fencing/st_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "validate", node 425 lib/fencing/st_output.c crm_xml_add(node, "device", device); node 428 lib/fencing/st_output.c pcmk__output_xml_push_parent(out, node); node 239 lib/lrmd/lrmd_alerts.c const char *node, uint32_t nodeid, node 249 lib/lrmd/lrmd_alerts.c params = alert_key2param(params, PCMK__alert_key_node, node); node 277 lib/lrmd/lrmd_alerts.c const char *node, uint32_t nodeid, const char *state) node 286 lib/lrmd/lrmd_alerts.c params = alert_key2param(params, PCMK__alert_key_node, node); node 347 lib/lrmd/lrmd_alerts.c const char *node, lrmd_event_data_t *op) node 369 lib/lrmd/lrmd_alerts.c params = alert_key2param(params, PCMK__alert_key_node, node); node 71 lib/lrmd/lrmd_output.c xmlNodePtr node = pcmk__output_xml_create_parent(out, "agents", node 76 lib/lrmd/lrmd_output.c crm_xml_add(node, "provider", provider); node 103 lib/lrmd/lrmd_output.c xmlNodePtr node = pcmk__output_xml_create_parent(out, "providers", node 108 lib/lrmd/lrmd_output.c crm_xml_add(node, "agent", agent_spec); node 41 lib/pacemaker/pcmk_fence.c char *node = NULL; node 60 lib/pacemaker/pcmk_fence.c node = target; node 65 lib/pacemaker/pcmk_fence.c rc = st->cmds->register_level_full(st, st_opts, node, pattern, node 69 lib/pacemaker/pcmk_fence.c rc = st->cmds->remove_level_full(st, st_opts, node, pattern, node 43 lib/pacemaker/pcmk_output.c xmlNodePtr node = NULL; node 46 lib/pacemaker/pcmk_output.c node = pcmk__output_create_xml_node(out, XML_CONS_TAG_RSC_DEPEND, node 54 lib/pacemaker/pcmk_output.c xmlSetProp(node, (pcmkXmlStr) "node-attribute", (pcmkXmlStr) cons->node_attribute); node 58 lib/pacemaker/pcmk_output.c xmlSetProp(node, (pcmkXmlStr) "rsc-role", (pcmkXmlStr) role2text(cons->role_lh)); node 62 lib/pacemaker/pcmk_output.c xmlSetProp(node, (pcmkXmlStr) "with-rsc-role", (pcmkXmlStr) role2text(cons->role_rh)); node 81 lib/pacemaker/pcmk_output.c pe_node_t *node = (pe_node_t *) lpc2->data; node 82 lib/pacemaker/pcmk_output.c char *score = score2char(node->weight); node 89 lib/pacemaker/pcmk_output.c "node", node->details->uname, node 514 lib/pacemaker/pcmk_output.c pe_node_t *node = (pe_node_t *) lpc2->data; node 515 lib/pacemaker/pcmk_output.c char *score = score2char(node->weight); node 519 lib/pacemaker/pcmk_output.c node->details->uname, score, cons->id, rsc->id); node 730 lib/pacemaker/pcmk_output.c pe_node_t *node = va_arg(args, pe_node_t *); node 751 lib/pacemaker/pcmk_output.c if ((node != NULL) && (node->details->uname != NULL)) { node 752 lib/pacemaker/pcmk_output.c node_desc = node->details->uname; node 800 lib/pacemaker/pcmk_output.c pe_node_t *node = va_arg(args, pe_node_t *); node 810 lib/pacemaker/pcmk_output.c "node", crm_str(node->details->uname), node 963 lib/pacemaker/pcmk_output.c pe_node_t *node = (pe_node_t *) gIter->data; node 966 lib/pacemaker/pcmk_output.c possible_matches = find_actions(rsc->actions, key, node); node 976 lib/pacemaker/pcmk_output.c if (out->message(out, "rsc-action-item", "Stop", rsc, node, NULL, node 1069 lib/pacemaker/pcmk_output.c const char *node = va_arg(args, const char *); node 1078 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Cluster action: %s for %s on %s", task, ID(rsc), node); node 1080 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Cluster action: %s on %s", task, node); node 1090 lib/pacemaker/pcmk_output.c const char *node = va_arg(args, const char *); node 1102 lib/pacemaker/pcmk_output.c "node", node, node 1255 lib/pacemaker/pcmk_output.c xmlNodePtr node = NULL; node 1261 lib/pacemaker/pcmk_output.c node = pcmk__output_xml_create_parent(out, "modifications", NULL); node 1264 lib/pacemaker/pcmk_output.c crm_xml_add(node, "quorum", quorum); node 1268 lib/pacemaker/pcmk_output.c crm_xml_add(node, "watchdog", watchdog); node 1279 lib/pacemaker/pcmk_output.c char *node = va_arg(args, char *); node 1286 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Bringing node %s online", node); node 1289 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Taking node %s offline", node); node 1292 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Failing node %s", node); node 1304 lib/pacemaker/pcmk_output.c char *node = va_arg(args, char *); node 1312 lib/pacemaker/pcmk_output.c "node", node, node 1359 lib/pacemaker/pcmk_output.c const char *node = va_arg(args, const char *); node 1366 lib/pacemaker/pcmk_output.c out->list_item(out, NULL, "Pseudo action: %s%s%s", task, node ? " on " : "", node 1367 lib/pacemaker/pcmk_output.c node ? node : ""); node 1375 lib/pacemaker/pcmk_output.c const char *node = va_arg(args, const char *); node 1387 lib/pacemaker/pcmk_output.c if (node) { node 1388 lib/pacemaker/pcmk_output.c crm_xml_add(xml_node, "node", node); node 1400 lib/pacemaker/pcmk_output.c char *node = va_arg(args, char *); node 1409 lib/pacemaker/pcmk_output.c rsc, operation, interval_ms, node); node 1412 lib/pacemaker/pcmk_output.c rsc, operation, node); node 1424 lib/pacemaker/pcmk_output.c char *node = va_arg(args, char *); node 1436 lib/pacemaker/pcmk_output.c "node", node, node 31 lib/pacemaker/pcmk_resource.c best_op(pe_resource_t *rsc, pe_node_t *node, pe_working_set_t *data_set) node 38 lib/pacemaker/pcmk_resource.c xpath = crm_strdup_printf(XPATH_OP_HISTORY, node->details->uname, rsc->id); node 85 lib/pacemaker/pcmk_resource.c pe_node_t *node, GHashTable *overrides, node 94 lib/pacemaker/pcmk_resource.c if ((out == NULL) || (rsc == NULL) || (node == NULL) || (data_set == NULL)) { node 103 lib/pacemaker/pcmk_resource.c xml_op = best_op(rsc, node, data_set); node 116 lib/pacemaker/pcmk_resource.c digests = pe__calculate_digests(rsc, task, &interval_ms, node, xml_op, node 118 lib/pacemaker/pcmk_resource.c rc = out->message(out, "digests", rsc, node, task, interval_ms, digests); node 126 lib/pacemaker/pcmk_resource.c pe_node_t *node, GHashTable *overrides, node 137 lib/pacemaker/pcmk_resource.c rc = pcmk__resource_digests(out, rsc, node, overrides, data_set); node 30 lib/pacemaker/pcmk_sched_allocate.c extern void ReloadRsc(pe_resource_t * rsc, pe_node_t *node, pe_working_set_t * data_set); node 31 lib/pacemaker/pcmk_sched_allocate.c extern gboolean DeleteRsc(pe_resource_t * rsc, pe_node_t * node, gboolean optional, pe_working_set_t * data_set); node 33 lib/pacemaker/pcmk_sched_allocate.c static enum remote_connection_state get_remote_node_state(pe_node_t *node); node 142 lib/pacemaker/pcmk_sched_allocate.c action->uuid, action->node ? action->node->details->uname : "[none]", node 150 lib/pacemaker/pcmk_sched_allocate.c check_rsc_parameters(pe_resource_t * rsc, pe_node_t * node, xmlNode * rsc_entry, node 176 lib/pacemaker/pcmk_sched_allocate.c trigger_unfencing(rsc, node, "Device definition changed", NULL, data_set); node 180 lib/pacemaker/pcmk_sched_allocate.c rsc->id, node->details->uname, attr_list[attr_lpc], node 186 lib/pacemaker/pcmk_sched_allocate.c stop_action(rsc, node, FALSE); node 358 lib/pacemaker/pcmk_sched_allocate.c check_params(pe_resource_t *rsc, pe_node_t *node, xmlNode *rsc_op, node 366 lib/pacemaker/pcmk_sched_allocate.c if (check_action_definition(rsc, node, rsc_op, data_set) node 367 lib/pacemaker/pcmk_sched_allocate.c && pe_get_failcount(node, rsc, NULL, pe_fc_effective, NULL, node 375 lib/pacemaker/pcmk_sched_allocate.c digest_data = rsc_action_digest_cmp(rsc, rsc_op, node, data_set); node 379 lib/pacemaker/pcmk_sched_allocate.c rsc->id, ID(rsc_op), node->details->id); node 391 lib/pacemaker/pcmk_sched_allocate.c pe__clear_failcount(rsc, node, reason, data_set); node 396 lib/pacemaker/pcmk_sched_allocate.c check_actions_for(xmlNode * rsc_entry, pe_resource_t * rsc, pe_node_t * node, pe_working_set_t * data_set) node 409 lib/pacemaker/pcmk_sched_allocate.c CRM_CHECK(node != NULL, return); node 417 lib/pacemaker/pcmk_sched_allocate.c DeleteRsc(rsc, node, FALSE, data_set); node 423 lib/pacemaker/pcmk_sched_allocate.c } else if (pe_find_node_id(rsc->running_on, node->details->id) == NULL) { node 424 lib/pacemaker/pcmk_sched_allocate.c if (check_rsc_parameters(rsc, node, rsc_entry, FALSE, data_set)) { node 425 lib/pacemaker/pcmk_sched_allocate.c DeleteRsc(rsc, node, FALSE, data_set); node 428 lib/pacemaker/pcmk_sched_allocate.c rsc->id, node->details->uname); node 432 lib/pacemaker/pcmk_sched_allocate.c pe_rsc_trace(rsc, "Processing %s on %s", rsc->id, node->details->uname); node 434 lib/pacemaker/pcmk_sched_allocate.c if (check_rsc_parameters(rsc, node, rsc_entry, TRUE, data_set)) { node 435 lib/pacemaker/pcmk_sched_allocate.c DeleteRsc(rsc, node, FALSE, data_set); node 467 lib/pacemaker/pcmk_sched_allocate.c (pcmk_is_set(rsc->flags, pe_rsc_maintenance) || node->details->maintenance)) { node 469 lib/pacemaker/pcmk_sched_allocate.c CancelXmlOp(rsc, rsc_op, node, "maintenance mode", data_set); node 485 lib/pacemaker/pcmk_sched_allocate.c pe__add_param_check(rsc_op, rsc, node, pe_check_active, node 488 lib/pacemaker/pcmk_sched_allocate.c } else if (check_action_definition(rsc, node, rsc_op, data_set) node 489 lib/pacemaker/pcmk_sched_allocate.c && pe_get_failcount(node, rsc, NULL, pe_fc_effective, NULL, node 491 lib/pacemaker/pcmk_sched_allocate.c pe__clear_failcount(rsc, node, "action definition changed", node 560 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *node = NULL; node 575 lib/pacemaker/pcmk_sched_allocate.c node = pe_find_node_id(data_set->nodes, id); node 577 lib/pacemaker/pcmk_sched_allocate.c if (node == NULL) { node 581 lib/pacemaker/pcmk_sched_allocate.c } else if (can_run_resources(node) == FALSE && node->details->maintenance == FALSE) { node 583 lib/pacemaker/pcmk_sched_allocate.c node->details->uname); node 587 lib/pacemaker/pcmk_sched_allocate.c crm_trace("Processing node %s", node->details->uname); node 588 lib/pacemaker/pcmk_sched_allocate.c if (node->details->online node 612 lib/pacemaker/pcmk_sched_allocate.c check_actions_for(rsc_entry, rsc, node, data_set); node 635 lib/pacemaker/pcmk_sched_allocate.c failcount_clear_action_exists(pe_node_t * node, pe_resource_t * rsc) node 638 lib/pacemaker/pcmk_sched_allocate.c GList *list = pe__resource_actions(rsc, node, CRM_OP_CLEAR_FAILCOUNT, TRUE); node 656 lib/pacemaker/pcmk_sched_allocate.c check_migration_threshold(pe_resource_t *rsc, pe_node_t *node, node 673 lib/pacemaker/pcmk_sched_allocate.c fail_count = pe_get_failcount(node, rsc, NULL, node 690 lib/pacemaker/pcmk_sched_allocate.c resource_location(failed, node, -INFINITY, "__fail_limit__", data_set); node 692 lib/pacemaker/pcmk_sched_allocate.c failed->id, node->details->uname, fail_count, node 696 lib/pacemaker/pcmk_sched_allocate.c failed->id, countdown, node->details->uname); node 701 lib/pacemaker/pcmk_sched_allocate.c common_apply_stickiness(pe_resource_t * rsc, pe_node_t * node, pe_working_set_t * data_set) node 709 lib/pacemaker/pcmk_sched_allocate.c common_apply_stickiness(child_rsc, node, data_set); node 716 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *current = pe_find_node_id(rsc->running_on, node->details->id); node 717 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *match = pe_hash_table_lookup(rsc->allowed_nodes, node->details->id); node 725 lib/pacemaker/pcmk_sched_allocate.c resource_location(sticky_rsc, node, rsc->stickiness, "stickiness", data_set); node 728 lib/pacemaker/pcmk_sched_allocate.c node->details->uname, rsc->stickiness); node 734 lib/pacemaker/pcmk_sched_allocate.c " and node %s is not explicitly allowed", rsc->id, node->details->uname); node 753 lib/pacemaker/pcmk_sched_allocate.c if (failcount_clear_action_exists(node, rsc) == FALSE) { node 754 lib/pacemaker/pcmk_sched_allocate.c check_migration_threshold(rsc, node, data_set); node 864 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *node = (pe_node_t *) gIter->data; node 867 lib/pacemaker/pcmk_sched_allocate.c g_hash_table_foreach(node->details->attrs, calculate_system_health, &system_health); node 870 lib/pacemaker/pcmk_sched_allocate.c node->details->uname, system_health); node 882 lib/pacemaker/pcmk_sched_allocate.c rsc2node_new(health_strategy, rsc, system_health, NULL, node, data_set); node 920 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *node = (pe_node_t *) gIter->data; node 921 lib/pacemaker/pcmk_sched_allocate.c const char *probed = pe_node_attribute_raw(node, CRM_OP_PROBED); node 923 lib/pacemaker/pcmk_sched_allocate.c if (node->details->online == FALSE) { node 925 lib/pacemaker/pcmk_sched_allocate.c if (pe__is_remote_node(node) && node->details->remote_rsc node 926 lib/pacemaker/pcmk_sched_allocate.c && (get_remote_node_state(node) == remote_state_failed)) { node 928 lib/pacemaker/pcmk_sched_allocate.c pe_fence_node(data_set, node, "the connection is unrecoverable", FALSE); node 932 lib/pacemaker/pcmk_sched_allocate.c } else if (node->details->unclean) { node 935 lib/pacemaker/pcmk_sched_allocate.c } else if (node->details->rsc_discovery_enabled == FALSE) { node 941 lib/pacemaker/pcmk_sched_allocate.c pe_action_t *probe_op = custom_action(NULL, crm_strdup_printf("%s-%s", CRM_OP_REPROBE, node->details->uname), node 942 lib/pacemaker/pcmk_sched_allocate.c CRM_OP_REPROBE, node, FALSE, TRUE, data_set); node 951 lib/pacemaker/pcmk_sched_allocate.c rsc->cmds->create_probe(rsc, node, probe_node_complete, FALSE, data_set); node 958 lib/pacemaker/pcmk_sched_allocate.c rsc_discover_filter(pe_resource_t *rsc, pe_node_t *node) node 970 lib/pacemaker/pcmk_sched_allocate.c rsc_discover_filter(child_rsc, node); node 973 lib/pacemaker/pcmk_sched_allocate.c match = g_hash_table_lookup(rsc->allowed_nodes, node->details->id); node 980 lib/pacemaker/pcmk_sched_allocate.c shutdown_time(pe_node_t *node, pe_working_set_t *data_set) node 982 lib/pacemaker/pcmk_sched_allocate.c const char *shutdown = pe_node_attribute_raw(node, XML_CIB_ATTR_SHUTDOWN); node 1035 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *node = rsc->running_on->data; node 1037 lib/pacemaker/pcmk_sched_allocate.c if (node->details->shutdown) { node 1038 lib/pacemaker/pcmk_sched_allocate.c if (node->details->unclean) { node 1040 lib/pacemaker/pcmk_sched_allocate.c rsc->id, node->details->uname); node 1042 lib/pacemaker/pcmk_sched_allocate.c rsc->lock_node = node; node 1043 lib/pacemaker/pcmk_sched_allocate.c rsc->lock_time = shutdown_time(node, data_set); node 1067 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *node = item->data; node 1069 lib/pacemaker/pcmk_sched_allocate.c if (strcmp(node->details->uname, rsc->lock_node->details->uname)) { node 1070 lib/pacemaker/pcmk_sched_allocate.c resource_location(rsc, node, -CRM_SCORE_INFINITY, node 1097 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *node = (pe_node_t *) gIter->data; node 1099 lib/pacemaker/pcmk_sched_allocate.c if (node && (node->weight >= 0) && node->details->online node 1100 lib/pacemaker/pcmk_sched_allocate.c && (node->details->type != node_ping)) { node 1111 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *node = (pe_node_t *) gIter->data; node 1117 lib/pacemaker/pcmk_sched_allocate.c common_apply_stickiness(rsc, node, data_set); node 1118 lib/pacemaker/pcmk_sched_allocate.c rsc_discover_filter(rsc, node); node 1242 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *node = (pe_node_t *) gIter->data; node 1249 lib/pacemaker/pcmk_sched_allocate.c r1_node = g_hash_table_lookup(r1_nodes, node->details->id); node 1257 lib/pacemaker/pcmk_sched_allocate.c r2_node = g_hash_table_lookup(r2_nodes, node->details->id); node 1361 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *node = (pe_node_t *) gIter->data; node 1363 lib/pacemaker/pcmk_sched_allocate.c if (node->details->online node 1364 lib/pacemaker/pcmk_sched_allocate.c && pe_get_failcount(node, rsc, NULL, pe_fc_effective, NULL, node 1369 lib/pacemaker/pcmk_sched_allocate.c clear_op = pe__clear_failcount(rsc, node, "it is orphaned", node 1400 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *node = (pe_node_t *) gIter->data; node 1403 lib/pacemaker/pcmk_sched_allocate.c out->message(out, "node-capacity", node, "Original"); node 1414 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *node = (pe_node_t *) gIter->data; node 1417 lib/pacemaker/pcmk_sched_allocate.c out->message(out, "node-capacity", node, "Remaining"); node 1534 lib/pacemaker/pcmk_sched_allocate.c fence_guest(pe_node_t *node, pe_working_set_t *data_set) node 1536 lib/pacemaker/pcmk_sched_allocate.c pe_resource_t *container = node->details->remote_rsc->container; node 1562 lib/pacemaker/pcmk_sched_allocate.c stonith_op = pe_fence_op(node, fence_action, FALSE, "guest is unclean", FALSE, data_set); node 1571 lib/pacemaker/pcmk_sched_allocate.c pe_action_t *parent_stonith_op = pe_fence_op(stop->node, NULL, FALSE, NULL, FALSE, data_set); node 1573 lib/pacemaker/pcmk_sched_allocate.c node->details->uname, stonith_op->id, stop->node->details->uname); node 1582 lib/pacemaker/pcmk_sched_allocate.c node->details->uname, stonith_op->id, node 1592 lib/pacemaker/pcmk_sched_allocate.c stop = find_first_action(node->details->remote_rsc->actions, NULL, node 1599 lib/pacemaker/pcmk_sched_allocate.c node->details->uname, stonith_op->id, stop->id); node 1605 lib/pacemaker/pcmk_sched_allocate.c node->details->uname, stonith_op->id); node 1644 lib/pacemaker/pcmk_sched_allocate.c pe_node_t *node = (pe_node_t *) gIter->data; node 1649 lib/pacemaker/pcmk_sched_allocate.c if (pe__is_guest_node(node)) { node 1650 lib/pacemaker/pcmk_sched_allocate.c if (node->details->remote_requires_reset && need_stonith node 1651 lib/pacemaker/pcmk_sched_allocate.c && pe_can_fence(data_set, node)) { node 1652 lib/pacemaker/pcmk_sched_allocate.c fence_guest(node, data_set); node 1659 lib/pacemaker/pcmk_sched_allocate.c if (node->details->unclean node 1660 lib/pacemaker/pcmk_sched_allocate.c && need_stonith && pe_can_fence(data_set, node)) { node 1662 lib/pacemaker/pcmk_sched_allocate.c stonith_op = pe_fence_op(node, NULL, FALSE, "node is unclean", FALSE, data_set); node 1663 lib/pacemaker/pcmk_sched_allocate.c pe_warn("Scheduling Node %s for STONITH", node->details->uname); node 1667 lib/pacemaker/pcmk_sched_allocate.c if (node->details->is_dc) { node 1688 lib/pacemaker/pcmk_sched_allocate.c } else if (node->details->online && node->details->shutdown && node 1692 lib/pacemaker/pcmk_sched_allocate.c pe__is_guest_or_remote_node(node) == FALSE) { node 1694 lib/pacemaker/pcmk_sched_allocate.c pe_action_t *down_op = sched_shutdown_op(node, data_set); node 1696 lib/pacemaker/pcmk_sched_allocate.c if (node->details->is_dc) { node 1705 lib/pacemaker/pcmk_sched_allocate.c if (node->details->unclean && stonith_op == NULL) { node 1707 lib/pacemaker/pcmk_sched_allocate.c pe_warn("Node %s is unclean!", node->details->uname); node 1735 lib/pacemaker/pcmk_sched_allocate.c node_stop->node->details->uname, node 1736 lib/pacemaker/pcmk_sched_allocate.c dc_down->task, dc_down->node->details->uname); node 1957 lib/pacemaker/pcmk_sched_allocate.c CRM_ASSERT(action->node); node 1958 lib/pacemaker/pcmk_sched_allocate.c CRM_ASSERT(pe__is_guest_or_remote_node(action->node)); node 1960 lib/pacemaker/pcmk_sched_allocate.c remote_rsc = action->node->details->remote_rsc; node 1967 lib/pacemaker/pcmk_sched_allocate.c pe_fence_node(data_set, action->node, "container failed", FALSE); node 2039 lib/pacemaker/pcmk_sched_allocate.c get_remote_node_state(pe_node_t *node) node 2044 lib/pacemaker/pcmk_sched_allocate.c CRM_ASSERT(node); node 2046 lib/pacemaker/pcmk_sched_allocate.c remote_rsc = node->details->remote_rsc; node 2074 lib/pacemaker/pcmk_sched_allocate.c && node->details->remote_was_fenced node 2075 lib/pacemaker/pcmk_sched_allocate.c && !pe__shutdown_requested(node)) { node 2120 lib/pacemaker/pcmk_sched_allocate.c enum remote_connection_state state = get_remote_node_state(action->node); node 2128 lib/pacemaker/pcmk_sched_allocate.c CRM_ASSERT(action->node); node 2129 lib/pacemaker/pcmk_sched_allocate.c CRM_ASSERT(pe__is_guest_or_remote_node(action->node)); node 2131 lib/pacemaker/pcmk_sched_allocate.c remote_rsc = action->node->details->remote_rsc; node 2172 lib/pacemaker/pcmk_sched_allocate.c pe_fence_node(data_set, action->node, "resources are active and the connection is unrecoverable", FALSE); node 2220 lib/pacemaker/pcmk_sched_allocate.c pe_fence_node(data_set, action->node, "resources are in an unknown state and the connection is unrecoverable", FALSE); node 2279 lib/pacemaker/pcmk_sched_allocate.c if (action->node == NULL) { node 2283 lib/pacemaker/pcmk_sched_allocate.c if (!pe__is_guest_or_remote_node(action->node)) { node 2297 lib/pacemaker/pcmk_sched_allocate.c remote = action->node->details->remote_rsc; node 2313 lib/pacemaker/pcmk_sched_allocate.c if ((rsc_action->node->details != action->node->details) node 2351 lib/pacemaker/pcmk_sched_allocate.c && probe->node && rh_action->node node 2352 lib/pacemaker/pcmk_sched_allocate.c && probe->node->details == rh_action->node->details) { node 2362 lib/pacemaker/pcmk_sched_allocate.c && probe->node && rh_action->node node 2363 lib/pacemaker/pcmk_sched_allocate.c && probe->node->details != rh_action->node->details) { node 2523 lib/pacemaker/pcmk_sched_allocate.c probe->node ? probe->node->details->uname: "", node 2525 lib/pacemaker/pcmk_sched_allocate.c after->node ? after->node->details->uname : ""); node 2617 lib/pacemaker/pcmk_sched_allocate.c after->node ? after->node->details->uname: "", node 2619 lib/pacemaker/pcmk_sched_allocate.c after_wrapper->action->node ? after_wrapper->action->node->details->uname : "", node 3026 lib/pacemaker/pcmk_sched_allocate.c && action->node node 3027 lib/pacemaker/pcmk_sched_allocate.c && action->node->details->shutdown node 3040 lib/pacemaker/pcmk_sched_allocate.c action->node->details->unclean ? "fence" : "shut down", node 3041 lib/pacemaker/pcmk_sched_allocate.c action->node->details->uname, action->rsc->id, node 3074 lib/pacemaker/pcmk_sched_allocate.c if (pe__is_guest_node(action->node)) { node 3075 lib/pacemaker/pcmk_sched_allocate.c node_name = crm_strdup_printf("%s (resource: %s)", action->node->details->uname, action->node->details->remote_rsc->container->id); node 3076 lib/pacemaker/pcmk_sched_allocate.c } else if(action->node) { node 3077 lib/pacemaker/pcmk_sched_allocate.c node_name = crm_strdup_printf("%s", action->node->details->uname); node 21 lib/pacemaker/pcmk_sched_bundle.c is_bundle_node(pe__bundle_variant_data_t *data, pe_node_t *node) node 26 lib/pacemaker/pcmk_sched_bundle.c if (node->details == replica->node->details) { node 64 lib/pacemaker/pcmk_sched_bundle.c migration_threshold_reached(pe_resource_t *rsc, pe_node_t *node, node 80 lib/pacemaker/pcmk_sched_bundle.c fail_count = pe_get_failcount(node, rsc, NULL, node 92 lib/pacemaker/pcmk_sched_bundle.c rsc->id, node->details->uname, fail_count, node 98 lib/pacemaker/pcmk_sched_bundle.c rsc->id, countdown, node->details->uname); node 161 lib/pacemaker/pcmk_sched_bundle.c pe_node_t *node = NULL; node 165 lib/pacemaker/pcmk_sched_bundle.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) & node)) { node 166 lib/pacemaker/pcmk_sched_bundle.c if (node->details != replica->node->details) { node 167 lib/pacemaker/pcmk_sched_bundle.c node->weight = -INFINITY; node 168 lib/pacemaker/pcmk_sched_bundle.c } else if (!migration_threshold_reached(replica->child, node, node 170 lib/pacemaker/pcmk_sched_bundle.c node->weight = INFINITY; node 177 lib/pacemaker/pcmk_sched_bundle.c replica->child->cmds->allocate(replica->child, replica->node, node 185 lib/pacemaker/pcmk_sched_bundle.c pe_node_t *node = NULL; node 188 lib/pacemaker/pcmk_sched_bundle.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) & node)) { node 189 lib/pacemaker/pcmk_sched_bundle.c if (is_bundle_node(bundle_data, node)) { node 190 lib/pacemaker/pcmk_sched_bundle.c node->weight = 0; node 192 lib/pacemaker/pcmk_sched_bundle.c node->weight = -INFINITY; node 416 lib/pacemaker/pcmk_sched_bundle.c pe_node_t *node = (pe_node_t *) gIter->data; node 418 lib/pacemaker/pcmk_sched_bundle.c pair = compatible_replica_for_node(rsc_lh, node, rsc, filter, current); node 563 lib/pacemaker/pcmk_sched_bundle.c pcmk__bundle_action_flags(pe_action_t *action, pe_node_t *node) node 580 lib/pacemaker/pcmk_sched_bundle.c return summary_action_flags(action, data->child->children, node); node 587 lib/pacemaker/pcmk_sched_bundle.c flags = summary_action_flags(action, containers, node); node 627 lib/pacemaker/pcmk_sched_bundle.c pe_node_t *node) node 639 lib/pacemaker/pcmk_sched_bundle.c && (node->details == replica->node->details)) { node 649 lib/pacemaker/pcmk_sched_bundle.c pe_node_t *node, enum pe_action_flags flags, node 702 lib/pacemaker/pcmk_sched_bundle.c node); node 710 lib/pacemaker/pcmk_sched_bundle.c NULL, task2text(task), node); node 712 lib/pacemaker/pcmk_sched_bundle.c first_action = find_first_action(first_child->actions, NULL, task2text(task), node); node 715 lib/pacemaker/pcmk_sched_bundle.c then_replica = replica_for_container(then->rsc, then_child, node); node 726 lib/pacemaker/pcmk_sched_bundle.c NULL, then->task, node); node 728 lib/pacemaker/pcmk_sched_bundle.c then_action = find_first_action(then_child->actions, NULL, then->task, node); node 772 lib/pacemaker/pcmk_sched_bundle.c then_action, node, node 773 lib/pacemaker/pcmk_sched_bundle.c first_child->cmds->action_flags(first_action, node), node 824 lib/pacemaker/pcmk_sched_bundle.c pe_node_t *node, enum pe_action_flags flags, node 833 lib/pacemaker/pcmk_sched_bundle.c changed = multi_update_interleave_actions(first, then, node, flags, node 841 lib/pacemaker/pcmk_sched_bundle.c changed |= native_update_actions(first, then, node, flags, filter, node 849 lib/pacemaker/pcmk_sched_bundle.c pe_action_t *then_child_action = find_first_action(then_child->actions, NULL, then->task, node); node 852 lib/pacemaker/pcmk_sched_bundle.c enum pe_action_flags then_child_flags = then_child->cmds->action_flags(then_child_action, node); node 856 lib/pacemaker/pcmk_sched_bundle.c then_child_action, node, flags, filter, type, data_set); node 979 lib/pacemaker/pcmk_sched_bundle.c pcmk__bundle_create_probe(pe_resource_t *rsc, pe_node_t *node, node 995 lib/pacemaker/pcmk_sched_bundle.c any_created |= replica->ip->cmds->create_probe(replica->ip, node, node 999 lib/pacemaker/pcmk_sched_bundle.c if (replica->child && (node->details == replica->node->details)) { node 1001 lib/pacemaker/pcmk_sched_bundle.c node, complete, node 1006 lib/pacemaker/pcmk_sched_bundle.c node, complete, node 1044 lib/pacemaker/pcmk_sched_bundle.c && replica->remote->cmds->create_probe(replica->remote, node, node 1055 lib/pacemaker/pcmk_sched_bundle.c probe_uuid, NULL, node); node 1061 lib/pacemaker/pcmk_sched_bundle.c replica->remote->id, node->details->uname); node 46 lib/pacemaker/pcmk_sched_clone.c parent_node_instance(const pe_resource_t * rsc, pe_node_t * node) node 50 lib/pacemaker/pcmk_sched_clone.c if (node != NULL && rsc->parent) { node 51 lib/pacemaker/pcmk_sched_clone.c ret = pe_hash_table_lookup(rsc->parent->allowed_nodes, node->details->id); node 52 lib/pacemaker/pcmk_sched_clone.c } else if(node != NULL) { node 53 lib/pacemaker/pcmk_sched_clone.c ret = pe_hash_table_lookup(rsc->allowed_nodes, node->details->id); node 418 lib/pacemaker/pcmk_sched_clone.c can_run_instance(pe_resource_t * rsc, pe_node_t * node, int limit) node 422 lib/pacemaker/pcmk_sched_clone.c if (node == NULL && rsc->allowed_nodes) { node 431 lib/pacemaker/pcmk_sched_clone.c if (!node) { node 435 lib/pacemaker/pcmk_sched_clone.c } else if (can_run_resources(node) == FALSE) { node 442 lib/pacemaker/pcmk_sched_clone.c local_node = parent_node_instance(rsc, node); node 445 lib/pacemaker/pcmk_sched_clone.c crm_warn("%s cannot run on %s: node not allowed", rsc->id, node->details->uname); node 449 lib/pacemaker/pcmk_sched_clone.c common_update_score(rsc, node->details->id, local_node->weight); node 451 lib/pacemaker/pcmk_sched_clone.c rsc->id, node->details->uname); node 455 lib/pacemaker/pcmk_sched_clone.c rsc->id, node->details->uname, local_node->count); node 460 lib/pacemaker/pcmk_sched_clone.c rsc->id, node->details->uname, local_node->count, limit); node 464 lib/pacemaker/pcmk_sched_clone.c if (node) { node 465 lib/pacemaker/pcmk_sched_clone.c common_update_score(rsc, node->details->id, -INFINITY); node 583 lib/pacemaker/pcmk_sched_clone.c pe_node_t *node = nIter->data; node 585 lib/pacemaker/pcmk_sched_clone.c node->count = 0; node 586 lib/pacemaker/pcmk_sched_clone.c if (can_run_resources(node)) { node 1023 lib/pacemaker/pcmk_sched_clone.c assign_node(pe_resource_t * rsc, pe_node_t * node, gboolean force) node 1032 lib/pacemaker/pcmk_sched_clone.c changed |= assign_node(child_rsc, node, force); node 1042 lib/pacemaker/pcmk_sched_clone.c native_assign_node(rsc, node, force); node 1049 lib/pacemaker/pcmk_sched_clone.c pe_node_t *node = NULL; node 1055 lib/pacemaker/pcmk_sched_clone.c node = child_rsc->fns->location(child_rsc, NULL, current); node 1063 lib/pacemaker/pcmk_sched_clone.c if (node && (node->details == local_node->details)) { node 1066 lib/pacemaker/pcmk_sched_clone.c } else if (node) { node 1067 lib/pacemaker/pcmk_sched_clone.c crm_trace("%s - %s vs %s", child_rsc->id, node->details->uname, node 1096 lib/pacemaker/pcmk_sched_clone.c pe_node_t *node = (pe_node_t *) gIter->data; node 1098 lib/pacemaker/pcmk_sched_clone.c pair = find_compatible_child_by_node(local_child, node, rsc, filter, current); node 1263 lib/pacemaker/pcmk_sched_clone.c summary_action_flags(pe_action_t * action, GList *children, pe_node_t * node) node 1276 lib/pacemaker/pcmk_sched_clone.c child_action = find_first_action(child->actions, NULL, task_s, child->children ? NULL : node); node 1278 lib/pacemaker/pcmk_sched_clone.c node ? node->details->uname : "none", child_action?child_action->uuid:"NA"); node 1280 lib/pacemaker/pcmk_sched_clone.c enum pe_action_flags child_flags = child->cmds->action_flags(child_action, node); node 1298 lib/pacemaker/pcmk_sched_clone.c if (node == NULL) { node 1307 lib/pacemaker/pcmk_sched_clone.c clone_action_flags(pe_action_t * action, pe_node_t * node) node 1309 lib/pacemaker/pcmk_sched_clone.c return summary_action_flags(action, action->rsc->children, node); node 1391 lib/pacemaker/pcmk_sched_clone.c rsc_known_on(const pe_resource_t *rsc, const pe_node_t *node) node 1399 lib/pacemaker/pcmk_sched_clone.c if (rsc_known_on(child, node)) { node 1410 lib/pacemaker/pcmk_sched_clone.c if (node->details == known_node->details) { node 1420 lib/pacemaker/pcmk_sched_clone.c find_instance_on(const pe_resource_t *clone, const pe_node_t *node) node 1425 lib/pacemaker/pcmk_sched_clone.c if (rsc_known_on(child, node)) { node 1434 lib/pacemaker/pcmk_sched_clone.c probe_unique_clone(pe_resource_t *rsc, pe_node_t *node, pe_action_t *complete, node 1444 lib/pacemaker/pcmk_sched_clone.c any_created |= child->cmds->create_probe(child, node, complete, force, node 1452 lib/pacemaker/pcmk_sched_clone.c probe_anonymous_clone(pe_resource_t *rsc, pe_node_t *node, node 1457 lib/pacemaker/pcmk_sched_clone.c pe_resource_t *child = find_instance_on(rsc, node); node 1469 lib/pacemaker/pcmk_sched_clone.c if (local_node && (local_node->details == node->details)) { node 1481 lib/pacemaker/pcmk_sched_clone.c return child->cmds->create_probe(child, node, complete, force, data_set); node 1485 lib/pacemaker/pcmk_sched_clone.c clone_create_probe(pe_resource_t * rsc, pe_node_t * node, pe_action_t * complete, node 1499 lib/pacemaker/pcmk_sched_clone.c pe_node_t *allowed = g_hash_table_lookup(rsc->allowed_nodes, node->details->id); node 1508 lib/pacemaker/pcmk_sched_clone.c g_hash_table_remove(rsc->allowed_nodes, node->details->id); node 1516 lib/pacemaker/pcmk_sched_clone.c any_created = probe_unique_clone(rsc, node, complete, force, data_set); node 1518 lib/pacemaker/pcmk_sched_clone.c any_created = probe_anonymous_clone(rsc, node, complete, force, node 801 lib/pacemaker/pcmk_sched_constraints.c const char *node = crm_element_value(xml_obj, XML_CIB_TAG_NODE); node 814 lib/pacemaker/pcmk_sched_constraints.c if (node != NULL && score != NULL) { node 816 lib/pacemaker/pcmk_sched_constraints.c pe_node_t *match = pe_find_node(data_set->nodes, node); node 1037 lib/pacemaker/pcmk_sched_constraints.c get_node_score(const char *rule, const char *score, gboolean raw, pe_node_t * node, pe_resource_t *rsc) node 1048 lib/pacemaker/pcmk_sched_constraints.c const char *attr_score = pe_node_attribute_calculated(node, score, rsc); node 1052 lib/pacemaker/pcmk_sched_constraints.c rule, node->details->uname, score); node 1057 lib/pacemaker/pcmk_sched_constraints.c rule, node->details->uname, attr_score, score); node 1141 lib/pacemaker/pcmk_sched_constraints.c pe_node_t *node = (pe_node_t *) gIter->data; node 1143 lib/pacemaker/pcmk_sched_constraints.c node->weight = get_node_score(rule_id, score, raw_score, node, rsc); node 1149 lib/pacemaker/pcmk_sched_constraints.c pe_node_t *node = (pe_node_t *) gIter->data; node 1152 lib/pacemaker/pcmk_sched_constraints.c .params = pe_rsc_params(rsc, node, data_set), node 1156 lib/pacemaker/pcmk_sched_constraints.c accept = pe_test_rule(rule_xml, node->details->attrs, RSC_ROLE_UNKNOWN, node 1160 lib/pacemaker/pcmk_sched_constraints.c node->details->uname); node 1162 lib/pacemaker/pcmk_sched_constraints.c score_f = get_node_score(rule_id, score, raw_score, node, rsc); node 1168 lib/pacemaker/pcmk_sched_constraints.c pe_node_t *local = pe_find_node_id(match_L, node->details->id); node 1174 lib/pacemaker/pcmk_sched_constraints.c local = pe__copy_node(node); node 1181 lib/pacemaker/pcmk_sched_constraints.c crm_trace("node %s now has weight %d", node->details->uname, local->weight); node 1185 lib/pacemaker/pcmk_sched_constraints.c pe_node_t *delete = pe_find_node_id(match_L, node->details->id); node 1189 lib/pacemaker/pcmk_sched_constraints.c crm_trace("node %s did not match", node->details->uname); node 26 lib/pacemaker/pcmk_sched_graph.c get_action_flags(pe_action_t * action, pe_node_t * node) node 33 lib/pacemaker/pcmk_sched_graph.c if (pe_rsc_is_clone(action->rsc) && node) { node 36 lib/pacemaker/pcmk_sched_graph.c enum pe_action_flags clone_flags = action->rsc->cmds->action_flags(action, node); node 176 lib/pacemaker/pcmk_sched_graph.c graph_update_action(pe_action_t * first, pe_action_t * then, pe_node_t * node, node 201 lib/pacemaker/pcmk_sched_graph.c node = first->node; node 210 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, node 230 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, node 243 lib/pacemaker/pcmk_sched_graph.c changed |= first->rsc->cmds->update_actions(first, then, node, node 268 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, node 286 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, node 324 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, node 339 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, node 359 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, node 373 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, node 387 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, node 400 lib/pacemaker/pcmk_sched_graph.c changed |= then->rsc->cmds->update_actions(first, then, node, node 533 lib/pacemaker/pcmk_sched_graph.c : (then->node? then->node->details->uname : "")); node 562 lib/pacemaker/pcmk_sched_graph.c pe_node_t *then_node = then->node; node 563 lib/pacemaker/pcmk_sched_graph.c pe_node_t *first_node = first->node; node 624 lib/pacemaker/pcmk_sched_graph.c : (then->node? then->node->details->uname : ""), node 629 lib/pacemaker/pcmk_sched_graph.c : (first->node? first->node->details->uname : ""), node 646 lib/pacemaker/pcmk_sched_graph.c pe_node_t *node = then->node; node 647 lib/pacemaker/pcmk_sched_graph.c changed |= graph_update_action(first, then, node, first_flags, node 676 lib/pacemaker/pcmk_sched_graph.c : (first->node? first->node->details->uname : "")); node 700 lib/pacemaker/pcmk_sched_graph.c : (then->node? then->node->details-> uname : "")); node 718 lib/pacemaker/pcmk_sched_graph.c shutdown_constraints(pe_node_t * node, pe_action_t * shutdown_op, pe_working_set_t * data_set) node 728 lib/pacemaker/pcmk_sched_graph.c if (action->rsc == NULL || action->node == NULL) { node 730 lib/pacemaker/pcmk_sched_graph.c } else if (action->node->details != node->details) { node 735 lib/pacemaker/pcmk_sched_graph.c } else if (node->details->maintenance) { node 737 lib/pacemaker/pcmk_sched_graph.c action->uuid, node->details->uname); node 751 lib/pacemaker/pcmk_sched_graph.c node->details->uname); node 790 lib/pacemaker/pcmk_sched_graph.c || !pe__is_guest_or_remote_node(action->node)) { node 794 lib/pacemaker/pcmk_sched_graph.c CRM_ASSERT(action->node->details->remote_rsc != NULL); node 796 lib/pacemaker/pcmk_sched_graph.c began_on = pe__current_node(action->node->details->remote_rsc); node 797 lib/pacemaker/pcmk_sched_graph.c ended_on = action->node->details->remote_rsc->allocated_to; node 798 lib/pacemaker/pcmk_sched_graph.c if (action->node->details->remote_rsc node 799 lib/pacemaker/pcmk_sched_graph.c && (action->node->details->remote_rsc->container == NULL) node 800 lib/pacemaker/pcmk_sched_graph.c && action->node->details->remote_rsc->partial_migration_target) { node 902 lib/pacemaker/pcmk_sched_graph.c add_node_to_xml(const pe_node_t *node, void *xml) node 904 lib/pacemaker/pcmk_sched_graph.c add_node_to_xml_by_id(node->details->id, (xmlNode *) xml); node 924 lib/pacemaker/pcmk_sched_graph.c pe_node_t *node = (pe_node_t *) gIter->data; node 925 lib/pacemaker/pcmk_sched_graph.c struct pe_node_shared_s *details = node->details; node 927 lib/pacemaker/pcmk_sched_graph.c if (!pe__is_guest_or_remote_node(node)) { node 934 lib/pacemaker/pcmk_sched_graph.c add_node_to_xml_by_id(node->details->id, maintenance), node 979 lib/pacemaker/pcmk_sched_graph.c CRM_CHECK(xml && action && action->node && data_set, return); node 985 lib/pacemaker/pcmk_sched_graph.c add_node_to_xml_by_id(action->node->details->id, downed); node 994 lib/pacemaker/pcmk_sched_graph.c add_node_to_xml_by_id(action->node->details->id, downed); node 995 lib/pacemaker/pcmk_sched_graph.c pe_foreach_guest_node(data_set, action->node, add_node_to_xml, downed); node 1027 lib/pacemaker/pcmk_sched_graph.c if ((action->rsc->lock_node == NULL) || (action->node == NULL) node 1028 lib/pacemaker/pcmk_sched_graph.c || (action->node->details != action->rsc->lock_node->details)) { node 1035 lib/pacemaker/pcmk_sched_graph.c if (action->node->details->shutdown && action->task node 1136 lib/pacemaker/pcmk_sched_graph.c if (needs_node_info && action->node != NULL) { node 1139 lib/pacemaker/pcmk_sched_graph.c crm_xml_add(action_xml, XML_LRM_ATTR_TARGET, action->node->details->uname); node 1140 lib/pacemaker/pcmk_sched_graph.c crm_xml_add(action_xml, XML_LRM_ATTR_TARGET_UUID, action->node->details->id); node 1145 lib/pacemaker/pcmk_sched_graph.c g_hash_table_insert(action->meta, strdup(XML_LRM_ATTR_TARGET), strdup(action->node->details->uname)); node 1146 lib/pacemaker/pcmk_sched_graph.c g_hash_table_insert(action->meta, strdup(XML_LRM_ATTR_TARGET_UUID), strdup(action->node->details->id)); node 1235 lib/pacemaker/pcmk_sched_graph.c if (action->rsc != NULL && action->node) { node 1237 lib/pacemaker/pcmk_sched_graph.c GHashTable *params = pe_rsc_params(action->rsc, action->node, data_set); node 1265 lib/pacemaker/pcmk_sched_graph.c action->node, data_set); node 1311 lib/pacemaker/pcmk_sched_graph.c if (action->node && /* make clang analyzer happy */ node 1312 lib/pacemaker/pcmk_sched_graph.c pe__is_guest_node(action->node)) { node 1327 lib/pacemaker/pcmk_sched_graph.c host = pe__current_node(action->node->details->remote_rsc->container); node 1334 lib/pacemaker/pcmk_sched_graph.c host = action->node->details->remote_rsc->container->allocated_to; node 1349 lib/pacemaker/pcmk_sched_graph.c } else if (pcmk__str_eq(action->task, CRM_OP_FENCE, pcmk__str_casei) && action->node) { node 1356 lib/pacemaker/pcmk_sched_graph.c g_hash_table_foreach(action->node->details->attrs, hash2metafield, args_xml); node 1363 lib/pacemaker/pcmk_sched_graph.c if (needs_node_info && (action->node != NULL)) { node 1453 lib/pacemaker/pcmk_sched_graph.c if (action->node == NULL) { node 1463 lib/pacemaker/pcmk_sched_graph.c action->uuid, action->id, action->node->details->uname); node 1465 lib/pacemaker/pcmk_sched_graph.c } else if (pe__is_guest_node(action->node) node 1466 lib/pacemaker/pcmk_sched_graph.c && !action->node->details->remote_requires_reset) { node 1469 lib/pacemaker/pcmk_sched_graph.c action->uuid, action->id, action->node->details->uname); node 1471 lib/pacemaker/pcmk_sched_graph.c } else if (action->node->details->online == false) { node 1481 lib/pacemaker/pcmk_sched_graph.c } else if (action->node->details->unclean == false) { node 1598 lib/pacemaker/pcmk_sched_graph.c pe_node_t *input_node = input->action->node; node 1620 lib/pacemaker/pcmk_sched_graph.c } else if ((input_node == NULL) || (action->node == NULL) node 1621 lib/pacemaker/pcmk_sched_graph.c || (input_node->details != action->node->details)) { node 1626 lib/pacemaker/pcmk_sched_graph.c (action->node? action->node->details->uname : "<none>"), node 1641 lib/pacemaker/pcmk_sched_graph.c if (input->action->node && action->node node 1642 lib/pacemaker/pcmk_sched_graph.c && (input->action->node->details != action->node->details)) { node 1647 lib/pacemaker/pcmk_sched_graph.c action->node->details->uname, node 1648 lib/pacemaker/pcmk_sched_graph.c input->action->node->details->uname); node 1686 lib/pacemaker/pcmk_sched_graph.c input->action->node? input->action->node->details->uname : "no node", node 1703 lib/pacemaker/pcmk_sched_graph.c input->action->node? input->action->node->details->uname : "", node 1705 lib/pacemaker/pcmk_sched_graph.c action->node? action->node->details->uname : "", node 1718 lib/pacemaker/pcmk_sched_graph.c action->node? action->node->details->uname : "", node 1720 lib/pacemaker/pcmk_sched_graph.c init_action->node? init_action->node->details->uname : ""); node 1729 lib/pacemaker/pcmk_sched_graph.c action->node? action->node->details->uname : "", node 1731 lib/pacemaker/pcmk_sched_graph.c input->action->node? input->action->node->details->uname : "", node 1734 lib/pacemaker/pcmk_sched_graph.c init_action->node? init_action->node->details->uname : ""); node 1754 lib/pacemaker/pcmk_sched_graph.c input->action->node? input->action->node->details->uname : "", node 1756 lib/pacemaker/pcmk_sched_graph.c action->node? action->node->details->uname : "", node 1770 lib/pacemaker/pcmk_sched_graph.c && input->action->rsc && input->action->node node 1771 lib/pacemaker/pcmk_sched_graph.c && input->action->node->details->remote_rsc node 1772 lib/pacemaker/pcmk_sched_graph.c && (input->action->node->details->remote_rsc->container == action->rsc)) { node 25 lib/pacemaker/pcmk_sched_group.c pe_node_t *node = NULL; node 66 lib/pacemaker/pcmk_sched_group.c node = child_rsc->cmds->allocate(child_rsc, prefer, data_set); node 68 lib/pacemaker/pcmk_sched_group.c group_node = node; node 381 lib/pacemaker/pcmk_sched_group.c group_action_flags(pe_action_t * action, pe_node_t * node) node 390 lib/pacemaker/pcmk_sched_group.c pe_action_t *child_action = find_first_action(child->actions, NULL, task_s, node); node 393 lib/pacemaker/pcmk_sched_group.c enum pe_action_flags child_flags = child->cmds->action_flags(child_action, node); node 426 lib/pacemaker/pcmk_sched_group.c group_update_actions(pe_action_t *first, pe_action_t *then, pe_node_t *node, node 434 lib/pacemaker/pcmk_sched_group.c changed |= native_update_actions(first, then, node, flags, filter, type, node 439 lib/pacemaker/pcmk_sched_group.c pe_action_t *child_action = find_first_action(child->actions, NULL, then->task, node); node 442 lib/pacemaker/pcmk_sched_group.c changed |= child->cmds->update_actions(first, child_action, node, node 30 lib/pacemaker/pcmk_sched_native.c static void Recurring(pe_resource_t *rsc, pe_action_t *start, pe_node_t *node, node 32 lib/pacemaker/pcmk_sched_native.c static void RecurringOp(pe_resource_t *rsc, pe_action_t *start, pe_node_t *node, node 34 lib/pacemaker/pcmk_sched_native.c static void Recurring_Stopped(pe_resource_t *rsc, pe_action_t *start, pe_node_t *node, node 36 lib/pacemaker/pcmk_sched_native.c static void RecurringOp_Stopped(pe_resource_t *rsc, pe_action_t *start, pe_node_t *node, node 39 lib/pacemaker/pcmk_sched_native.c void ReloadRsc(pe_resource_t * rsc, pe_node_t *node, pe_working_set_t * data_set); node 40 lib/pacemaker/pcmk_sched_native.c gboolean DeleteRsc(pe_resource_t * rsc, pe_node_t * node, gboolean optional, pe_working_set_t * data_set); node 215 lib/pacemaker/pcmk_sched_native.c pe_node_t *node = NULL; node 221 lib/pacemaker/pcmk_sched_native.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 223 lib/pacemaker/pcmk_sched_native.c if ((node->weight > best_score) && can_run_resources(node) node 224 lib/pacemaker/pcmk_sched_native.c && pcmk__str_eq(value, pe_node_attribute_raw(node, attr), pcmk__str_casei)) { node 226 lib/pacemaker/pcmk_sched_native.c best_score = node->weight; node 227 lib/pacemaker/pcmk_sched_native.c best_node = node->details->uname; node 264 lib/pacemaker/pcmk_sched_native.c pe_node_t *node = NULL; node 272 lib/pacemaker/pcmk_sched_native.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 279 lib/pacemaker/pcmk_sched_native.c pe_node_attribute_raw(node, attr)); node 288 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score); node 292 lib/pacemaker/pcmk_sched_native.c if (node->weight == INFINITY_HACK) { node 294 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score); node 315 lib/pacemaker/pcmk_sched_native.c new_score = pe__add_scores(weight, node->weight); node 317 lib/pacemaker/pcmk_sched_native.c if (only_positive && (new_score < 0) && (node->weight > 0)) { node 320 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score, node 322 lib/pacemaker/pcmk_sched_native.c node->weight = INFINITY_HACK; node 326 lib/pacemaker/pcmk_sched_native.c if (only_positive && (new_score < 0) && (node->weight == 0)) { node 328 lib/pacemaker/pcmk_sched_native.c node->details->uname, node->weight, factor, score, node 333 lib/pacemaker/pcmk_sched_native.c crm_trace("%s: %d + %f * %d = %d", node->details->uname, node 334 lib/pacemaker/pcmk_sched_native.c node->weight, factor, score, new_score); node 335 lib/pacemaker/pcmk_sched_native.c node->weight = new_score; node 471 lib/pacemaker/pcmk_sched_native.c pe_node_t *node = NULL; node 475 lib/pacemaker/pcmk_sched_native.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 476 lib/pacemaker/pcmk_sched_native.c if (node->weight == INFINITY_HACK) { node 477 lib/pacemaker/pcmk_sched_native.c node->weight = 1; node 491 lib/pacemaker/pcmk_sched_native.c node_has_been_unfenced(pe_node_t *node) node 493 lib/pacemaker/pcmk_sched_native.c const char *unfenced = pe_node_attribute_raw(node, CRM_ATTR_UNFENCED); node 710 lib/pacemaker/pcmk_sched_native.c RecurringOp(pe_resource_t * rsc, pe_action_t * start, pe_node_t * node, node 717 lib/pacemaker/pcmk_sched_native.c const char *node_uname = node? node->details->uname : "n/a"; node 773 lib/pacemaker/pcmk_sched_native.c possible_matches = find_actions_exact(rsc->actions, key, node); node 804 lib/pacemaker/pcmk_sched_native.c cancel_op = pe_cancel_op(rsc, name, interval_ms, node, data_set); node 838 lib/pacemaker/pcmk_sched_native.c mon = custom_action(rsc, key, name, node, is_optional, TRUE, data_set); node 850 lib/pacemaker/pcmk_sched_native.c } else if (node == NULL || node->details->online == FALSE || node->details->unclean) { node 868 lib/pacemaker/pcmk_sched_native.c if ((node == NULL) || pcmk_is_set(rsc->flags, pe_rsc_managed)) { node 891 lib/pacemaker/pcmk_sched_native.c Recurring(pe_resource_t * rsc, pe_action_t * start, pe_node_t * node, pe_working_set_t * data_set) node 894 lib/pacemaker/pcmk_sched_native.c (node == NULL || node->details->maintenance == FALSE)) { node 902 lib/pacemaker/pcmk_sched_native.c RecurringOp(rsc, start, node, operation, data_set); node 909 lib/pacemaker/pcmk_sched_native.c RecurringOp_Stopped(pe_resource_t * rsc, pe_action_t * start, pe_node_t * node, node 916 lib/pacemaker/pcmk_sched_native.c const char *node_uname = node? node->details->uname : "n/a"; node 968 lib/pacemaker/pcmk_sched_native.c if (node != NULL) { node 969 lib/pacemaker/pcmk_sched_native.c possible_matches = find_actions_exact(rsc->actions, key, node); node 975 lib/pacemaker/pcmk_sched_native.c cancel_op = pe_cancel_op(rsc, name, interval_ms, node, data_set); node 1002 lib/pacemaker/pcmk_sched_native.c if (node && pcmk__str_eq(stop_node_uname, node_uname, pcmk__str_casei)) { node 1105 lib/pacemaker/pcmk_sched_native.c Recurring_Stopped(pe_resource_t * rsc, pe_action_t * start, pe_node_t * node, pe_working_set_t * data_set) node 1108 lib/pacemaker/pcmk_sched_native.c (node == NULL || node->details->maintenance == FALSE)) { node 1116 lib/pacemaker/pcmk_sched_native.c RecurringOp_Stopped(rsc, start, node, operation, data_set); node 1447 lib/pacemaker/pcmk_sched_native.c pe_node_t *node = NULL; node 1449 lib/pacemaker/pcmk_sched_native.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 1450 lib/pacemaker/pcmk_sched_native.c if (node->details->remote_rsc) { node 1451 lib/pacemaker/pcmk_sched_native.c node->weight = -INFINITY; node 1549 lib/pacemaker/pcmk_sched_native.c pe_node_t *node = item->data; node 1550 lib/pacemaker/pcmk_sched_native.c pe_action_t *unfence = pe_fence_op(node, "on", TRUE, NULL, FALSE, data_set); node 1594 lib/pacemaker/pcmk_sched_native.c if (load_stopped->node == NULL) { node 1595 lib/pacemaker/pcmk_sched_native.c load_stopped->node = pe__copy_node(current); node 1610 lib/pacemaker/pcmk_sched_native.c if (load_stopped->node == NULL) { node 1611 lib/pacemaker/pcmk_sched_native.c load_stopped->node = pe__copy_node(next); node 1669 lib/pacemaker/pcmk_sched_native.c pe_node_t *node = item->data; node 1671 lib/pacemaker/pcmk_sched_native.c if (node->details->remote_rsc != remote_rsc) { node 1672 lib/pacemaker/pcmk_sched_native.c node->weight = -INFINITY; node 1865 lib/pacemaker/pcmk_sched_native.c pe_node_t *node = NULL; node 1882 lib/pacemaker/pcmk_sched_native.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 1885 lib/pacemaker/pcmk_sched_native.c constraint->id, rsc_lh->id, node->details->uname, node 1887 lib/pacemaker/pcmk_sched_native.c node->weight = pe__add_scores(-constraint->score, node->weight); node 1889 lib/pacemaker/pcmk_sched_native.c } else if (pcmk__str_eq(pe_node_attribute_raw(node, attribute), value, pcmk__str_casei)) { node 1893 lib/pacemaker/pcmk_sched_native.c node->details->uname, constraint->score); node 1894 lib/pacemaker/pcmk_sched_native.c node->weight = pe__add_scores(constraint->score, node->weight); node 1899 lib/pacemaker/pcmk_sched_native.c constraint->id, rsc_lh->id, node->details->uname, node 1901 lib/pacemaker/pcmk_sched_native.c node->weight = pe__add_scores(-constraint->score, node->weight); node 2020 lib/pacemaker/pcmk_sched_native.c pe_node_t *node = (pe_node_t *) gIter->data; node 2022 lib/pacemaker/pcmk_sched_native.c pe_fence_node(data_set, node, "deadman ticket was lost", FALSE); node 2054 lib/pacemaker/pcmk_sched_native.c native_action_flags(pe_action_t * action, pe_node_t * node) node 2133 lib/pacemaker/pcmk_sched_native.c native_update_actions(pe_action_t *first, pe_action_t *then, pe_node_t *node, node 2143 lib/pacemaker/pcmk_sched_native.c first->uuid, first->node ? first->node->details->uname : "[none]", node 2158 lib/pacemaker/pcmk_sched_native.c && then->node node 2160 lib/pacemaker/pcmk_sched_native.c && then->node->details == ((pe_node_t *) then_rsc->running_on->data)->details) { node 2268 lib/pacemaker/pcmk_sched_native.c then->uuid, then->node ? then->node->details->uname : "[none]", then->flags, node 2281 lib/pacemaker/pcmk_sched_native.c first->uuid, first->node ? first->node->details->uname : "[none]", node 2317 lib/pacemaker/pcmk_sched_native.c pe_node_t *node = (pe_node_t *) gIter->data; node 2320 lib/pacemaker/pcmk_sched_native.c other_node = (pe_node_t *) pe_hash_table_lookup(rsc->allowed_nodes, node->details->id); node 2324 lib/pacemaker/pcmk_sched_native.c node->weight, node->details->uname); node 2326 lib/pacemaker/pcmk_sched_native.c node->weight); node 2330 lib/pacemaker/pcmk_sched_native.c node->weight, node->details->uname); node 2331 lib/pacemaker/pcmk_sched_native.c other_node = pe__copy_node(node); node 2480 lib/pacemaker/pcmk_sched_native.c order_after_unfencing(pe_resource_t *rsc, pe_node_t *node, pe_action_t *action, node 2497 lib/pacemaker/pcmk_sched_native.c pe_action_t *unfence = pe_fence_op(node, "on", TRUE, NULL, FALSE, data_set); node 2501 lib/pacemaker/pcmk_sched_native.c if (!node_has_been_unfenced(node)) { node 2506 lib/pacemaker/pcmk_sched_native.c trigger_unfencing(NULL, node, reason, NULL, data_set); node 2610 lib/pacemaker/pcmk_sched_native.c DeleteRsc(pe_resource_t * rsc, pe_node_t * node, gboolean optional, pe_working_set_t * data_set) node 2613 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(rsc, "Resource %s not deleted from %s: failed", rsc->id, node->details->uname); node 2616 lib/pacemaker/pcmk_sched_native.c } else if (node == NULL) { node 2620 lib/pacemaker/pcmk_sched_native.c } else if (node->details->unclean || node->details->online == FALSE) { node 2622 lib/pacemaker/pcmk_sched_native.c node->details->uname); node 2626 lib/pacemaker/pcmk_sched_native.c crm_notice("Removing %s from %s", rsc->id, node->details->uname); node 2628 lib/pacemaker/pcmk_sched_native.c delete_action(rsc, node, optional); node 2640 lib/pacemaker/pcmk_sched_native.c native_create_probe(pe_resource_t * rsc, pe_node_t * node, pe_action_t * complete, node 2658 lib/pacemaker/pcmk_sched_native.c CRM_CHECK(node != NULL, return FALSE); node 2664 lib/pacemaker/pcmk_sched_native.c if (pe__is_guest_or_remote_node(node)) { node 2670 lib/pacemaker/pcmk_sched_native.c rsc->id, node->details->id); node 2672 lib/pacemaker/pcmk_sched_native.c } else if (pe__is_guest_node(node) node 2676 lib/pacemaker/pcmk_sched_native.c rsc->id, node->details->id); node 2681 lib/pacemaker/pcmk_sched_native.c rsc->id, node->details->id); node 2693 lib/pacemaker/pcmk_sched_native.c any_created = child_rsc->cmds->create_probe(child_rsc, node, complete, force, data_set) node 2710 lib/pacemaker/pcmk_sched_native.c if (!force && g_hash_table_lookup(rsc->known_on, node->details->id)) { node 2711 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(rsc, "Skipping known: %s on %s", rsc->id, node->details->uname); node 2715 lib/pacemaker/pcmk_sched_native.c allowed = g_hash_table_lookup(rsc->allowed_nodes, node->details->id); node 2720 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(rsc, "Skipping probe for %s on node %s, A", rsc->id, node->details->id); node 2725 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(rsc, "Skipping probe for %s on node %s, B", rsc->id, node->details->id); node 2730 lib/pacemaker/pcmk_sched_native.c if(allowed == NULL && node->rsc_discover_mode == pe_discover_never) { node 2736 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(rsc, "Skipping probe for %s on node %s, C", rsc->id, node->details->id); node 2742 lib/pacemaker/pcmk_sched_native.c pe_rsc_trace(rsc, "Skipping probe for %s on node %s, discovery mode", rsc->id, node->details->id); node 2746 lib/pacemaker/pcmk_sched_native.c if (pe__is_guest_node(node)) { node 2747 lib/pacemaker/pcmk_sched_native.c pe_resource_t *remote = node->details->remote_rsc->container; node 2780 lib/pacemaker/pcmk_sched_native.c rsc->id, node->details->id, remote->id); node 2786 lib/pacemaker/pcmk_sched_native.c } else if(node->details->remote_requires_reset node 2787 lib/pacemaker/pcmk_sched_native.c || node->details->unclean node 2801 lib/pacemaker/pcmk_sched_native.c rsc->id, node->details->id, remote->id); node 2810 lib/pacemaker/pcmk_sched_native.c probe = custom_action(rsc, key, RSC_STATUS, node, FALSE, TRUE, data_set); node 2814 lib/pacemaker/pcmk_sched_native.c order_after_unfencing(rsc, node, probe, pe_order_optional, data_set); node 2820 lib/pacemaker/pcmk_sched_native.c running = pe_find_node_id(rsc->running_on, node->details->id); node 2828 lib/pacemaker/pcmk_sched_native.c crm_debug("Probing %s on %s (%s) %d %p", rsc->id, node->details->uname, role2text(rsc->role), node 2834 lib/pacemaker/pcmk_sched_native.c crm_trace("Probing %s on %s (%s) as %s", rsc->id, node->details->uname, role2text(rsc->role), top->id); node 2879 lib/pacemaker/pcmk_sched_native.c rsc_is_known_on(pe_resource_t *rsc, const pe_node_t *node) node 2881 lib/pacemaker/pcmk_sched_native.c if (pe_hash_table_lookup(rsc->known_on, node->details->id)) { node 2886 lib/pacemaker/pcmk_sched_native.c && pe_hash_table_lookup(rsc->parent->known_on, node->details->id)) { node 2910 lib/pacemaker/pcmk_sched_native.c CRM_CHECK(stonith_op && stonith_op->node, return); node 2911 lib/pacemaker/pcmk_sched_native.c target = stonith_op->node; node 2960 lib/pacemaker/pcmk_sched_native.c CRM_CHECK(stonith_op && stonith_op->node, return); node 2961 lib/pacemaker/pcmk_sched_native.c target = stonith_op->node; node 3085 lib/pacemaker/pcmk_sched_native.c if (action->node->details->online == FALSE || action->node->details->unclean == TRUE node 3137 lib/pacemaker/pcmk_sched_native.c ReloadRsc(pe_resource_t * rsc, pe_node_t *node, pe_working_set_t * data_set) node 3146 lib/pacemaker/pcmk_sched_native.c ReloadRsc(child_rsc, node, data_set); node 3172 lib/pacemaker/pcmk_sched_native.c stop_action(rsc, node, FALSE); node 3175 lib/pacemaker/pcmk_sched_native.c } else if (node == NULL) { node 3183 lib/pacemaker/pcmk_sched_native.c reload = custom_action(rsc, reload_key(rsc), CRMD_ACTION_RELOAD_AGENT, node, node 18 lib/pacemaker/pcmk_sched_notif.c pe_node_t *node; node 53 lib/pacemaker/pcmk_sched_notif.c if (entry_a->node == NULL && entry_b->node == NULL) { node 56 lib/pacemaker/pcmk_sched_notif.c if (entry_a->node == NULL) { node 59 lib/pacemaker/pcmk_sched_notif.c if (entry_b->node == NULL) { node 63 lib/pacemaker/pcmk_sched_notif.c return strcmp(entry_a->node->details->id, entry_b->node->details->id); node 72 lib/pacemaker/pcmk_sched_notif.c dup->node = entry->node; node 95 lib/pacemaker/pcmk_sched_notif.c pe_node_t *node = (pe_node_t *) gIter->data; node 97 lib/pacemaker/pcmk_sched_notif.c if (node->details->uname == NULL) { node 100 lib/pacemaker/pcmk_sched_notif.c pcmk__add_word(&node_list, &node_list_len, node->details->uname); node 102 lib/pacemaker/pcmk_sched_notif.c if(node->details->remote_rsc node 103 lib/pacemaker/pcmk_sched_notif.c && node->details->remote_rsc->container node 104 lib/pacemaker/pcmk_sched_notif.c && node->details->remote_rsc->container->running_on) { node 105 lib/pacemaker/pcmk_sched_notif.c node = pe__current_node(node->details->remote_rsc->container); node 108 lib/pacemaker/pcmk_sched_notif.c if (node->details->uname == NULL) { node 111 lib/pacemaker/pcmk_sched_notif.c pcmk__add_word(&metal_list, &metal_list_len, node->details->uname); node 170 lib/pacemaker/pcmk_sched_notif.c CRM_LOG_ASSERT((node_list == NULL) || (entry->node != NULL)); node 171 lib/pacemaker/pcmk_sched_notif.c if ((node_list != NULL) && (entry->node == NULL)) { node 181 lib/pacemaker/pcmk_sched_notif.c if ((node_list != NULL) && (entry->node->details->uname != NULL)) { node 183 lib/pacemaker/pcmk_sched_notif.c entry->node->details->uname); node 206 lib/pacemaker/pcmk_sched_notif.c pe_notify(pe_resource_t * rsc, pe_node_t * node, pe_action_t * op, pe_action_t * confirm, node 220 lib/pacemaker/pcmk_sched_notif.c CRM_CHECK(node != NULL, return NULL); node 222 lib/pacemaker/pcmk_sched_notif.c if (node->details->online == FALSE) { node 236 lib/pacemaker/pcmk_sched_notif.c trigger = custom_action(rsc, key, op->task, node, node 252 lib/pacemaker/pcmk_sched_notif.c pe_post_notify(pe_resource_t * rsc, pe_node_t * node, notify_data_t * n_data, pe_working_set_t * data_set) node 262 lib/pacemaker/pcmk_sched_notif.c notify = pe_notify(rsc, node, n_data->post, n_data->post_done, n_data, data_set); node 435 lib/pacemaker/pcmk_sched_notif.c entry->node = rsc->running_on->data; node 474 lib/pacemaker/pcmk_sched_notif.c && (op->node != NULL)) { node 478 lib/pacemaker/pcmk_sched_notif.c if(task == stop_rsc && op->node->details->unclean) { node 485 lib/pacemaker/pcmk_sched_notif.c entry->node = op->node; node 641 lib/pacemaker/pcmk_sched_notif.c if (action && action->node) { node 642 lib/pacemaker/pcmk_sched_notif.c pe_resource_t *remote_rsc = action->node->details->remote_rsc; node 676 lib/pacemaker/pcmk_sched_notif.c && (op->node != NULL)) { node 815 lib/pacemaker/pcmk_sched_notif.c add_notify_env(n_data, "notify_stop_uname", action->node->details->uname); node 168 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *node = NULL; node 193 lib/pacemaker/pcmk_sched_promotable.c node = rsc->fns->location(rsc, NULL, FALSE); node 194 lib/pacemaker/pcmk_sched_promotable.c if (node == NULL) { node 201 lib/pacemaker/pcmk_sched_promotable.c rsc->id, node->details->uname); node 212 lib/pacemaker/pcmk_sched_promotable.c } else if (can_run_resources(node) == FALSE) { node 213 lib/pacemaker/pcmk_sched_promotable.c crm_trace("Node can't run any resources: %s", node->details->uname); node 220 lib/pacemaker/pcmk_sched_promotable.c } else if (pe__is_guest_node(node) && (guest_location(node) == NULL)) { node 222 lib/pacemaker/pcmk_sched_promotable.c rsc->id, node->details->remote_rsc->container->id); node 227 lib/pacemaker/pcmk_sched_promotable.c local_node = pe_hash_table_lookup(parent->allowed_nodes, node->details->id); node 230 lib/pacemaker/pcmk_sched_promotable.c crm_err("%s cannot run on %s: node not allowed", rsc->id, node->details->uname); node 239 lib/pacemaker/pcmk_sched_promotable.c rsc->id, node->details->uname); node 283 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *node = NULL; node 315 lib/pacemaker/pcmk_sched_promotable.c node = (pe_node_t *) pe_hash_table_lookup(rsc->allowed_nodes, chosen->details->id); node 316 lib/pacemaker/pcmk_sched_promotable.c CRM_ASSERT(node != NULL); node 320 lib/pacemaker/pcmk_sched_promotable.c node->details->uname, child->id); node 321 lib/pacemaker/pcmk_sched_promotable.c node->weight = pe__add_scores(child->sort_index, node->weight); node 397 lib/pacemaker/pcmk_sched_promotable.c node = (pe_node_t *) pe_hash_table_lookup(rsc->allowed_nodes, chosen->details->id); node 398 lib/pacemaker/pcmk_sched_promotable.c CRM_ASSERT(node != NULL); node 400 lib/pacemaker/pcmk_sched_promotable.c child->sort_index = node->weight; node 411 lib/pacemaker/pcmk_sched_promotable.c filter_anonymous_instance(pe_resource_t *rsc, const pe_node_t *node) node 422 lib/pacemaker/pcmk_sched_promotable.c pe_resource_t *active = parent->fns->find_rsc(child, key, node, pe_find_clone|pe_find_current); node 425 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "Found %s for %s active on %s: done", active->id, key, node->details->uname); node 429 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "Found %s for %s on %s: not %s", active->id, key, node->details->uname, rsc->id); node 433 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "%s on %s: not active", key, node->details->uname); node 451 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "Checking %s for %s on %s", rsc->id, key, node->details->uname); node 452 lib/pacemaker/pcmk_sched_promotable.c if (g_hash_table_lookup(rsc->known_on, node->details->id)) { node 463 lib/pacemaker/pcmk_sched_promotable.c lookup_promotion_score(pe_resource_t *rsc, const pe_node_t *node, const char *name) node 467 lib/pacemaker/pcmk_sched_promotable.c if (node && name) { node 470 lib/pacemaker/pcmk_sched_promotable.c attr_value = pe_node_attribute_calculated(node, attr_name, rsc); node 477 lib/pacemaker/pcmk_sched_promotable.c promotion_score(pe_resource_t *rsc, const pe_node_t *node, int not_set_value) node 484 lib/pacemaker/pcmk_sched_promotable.c CRM_CHECK(node != NULL, return not_set_value); node 491 lib/pacemaker/pcmk_sched_promotable.c int c_score = promotion_score(child, node, not_set_value); node 503 lib/pacemaker/pcmk_sched_promotable.c && filter_anonymous_instance(rsc, node)) { node 505 lib/pacemaker/pcmk_sched_promotable.c pe_rsc_trace(rsc, "Anonymous clone %s is allowed on %s", rsc->id, node->details->uname); node 514 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *known = pe_hash_table_lookup(rsc->known_on, node->details->id); node 516 lib/pacemaker/pcmk_sched_promotable.c match = pe_find_node_id(rsc->running_on, node->details->id); node 519 lib/pacemaker/pcmk_sched_promotable.c rsc->id, rsc->clone_name, node->details->uname); node 524 lib/pacemaker/pcmk_sched_promotable.c match = pe_hash_table_lookup(rsc->allowed_nodes, node->details->id); node 541 lib/pacemaker/pcmk_sched_promotable.c attr_value = lookup_promotion_score(rsc, node, name); node 543 lib/pacemaker/pcmk_sched_promotable.c name, node->details->uname, crm_str(attr_value)); node 552 lib/pacemaker/pcmk_sched_promotable.c attr_value = lookup_promotion_score(rsc, node, name); node 554 lib/pacemaker/pcmk_sched_promotable.c name, node->details->uname, crm_str(attr_value)); node 584 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *node = NULL; node 588 lib/pacemaker/pcmk_sched_promotable.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 589 lib/pacemaker/pcmk_sched_promotable.c if (can_run_resources(node) == FALSE) { node 596 lib/pacemaker/pcmk_sched_promotable.c score = promotion_score(child_rsc, node, 0); node 598 lib/pacemaker/pcmk_sched_promotable.c new_score = pe__add_scores(node->weight, score); node 599 lib/pacemaker/pcmk_sched_promotable.c if (new_score != node->weight) { node 601 lib/pacemaker/pcmk_sched_promotable.c child_rsc->id, node->details->uname, node->weight, new_score); node 602 lib/pacemaker/pcmk_sched_promotable.c node->weight = new_score; node 665 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *node = NULL; node 676 lib/pacemaker/pcmk_sched_promotable.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 677 lib/pacemaker/pcmk_sched_promotable.c node->count = 0; node 951 lib/pacemaker/pcmk_sched_promotable.c pe_node_t *node = NULL; node 963 lib/pacemaker/pcmk_sched_promotable.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 964 lib/pacemaker/pcmk_sched_promotable.c const char *tmp = pe_node_attribute_raw(node, attr); node 967 lib/pacemaker/pcmk_sched_promotable.c crm_trace("%s: %d + %d", node->details->uname, node->weight, other->weight); node 968 lib/pacemaker/pcmk_sched_promotable.c node->weight = pe__add_scores(node->weight, score); node 93 lib/pacemaker/pcmk_sched_transition.c create_node_entry(cib_t * cib_conn, const char *node) node 96 lib/pacemaker/pcmk_sched_transition.c char *xpath = crm_strdup_printf(NEW_NODE_TEMPLATE, node); node 103 lib/pacemaker/pcmk_sched_transition.c crm_xml_add(cib_object, XML_ATTR_ID, node); // Use node name as ID node 104 lib/pacemaker/pcmk_sched_transition.c crm_xml_add(cib_object, XML_ATTR_UNAME, node); node 155 lib/pacemaker/pcmk_sched_transition.c inject_node_state(cib_t * cib_conn, const char *node, const char *uuid) node 159 lib/pacemaker/pcmk_sched_transition.c char *xpath = crm_strdup_printf(NODE_TEMPLATE, node); node 162 lib/pacemaker/pcmk_sched_transition.c create_node_entry(cib_conn, node); node 180 lib/pacemaker/pcmk_sched_transition.c query_node_uuid(cib_conn, node, &found_uuid, NULL); node 187 lib/pacemaker/pcmk_sched_transition.c crm_xml_add(cib_object, XML_ATTR_UNAME, node); node 195 lib/pacemaker/pcmk_sched_transition.c crm_trace("injecting node state for %s. rc is %d", node, rc); node 204 lib/pacemaker/pcmk_sched_transition.c modify_node(cib_t * cib_conn, char *node, gboolean up) node 206 lib/pacemaker/pcmk_sched_transition.c xmlNode *cib_node = inject_node_state(cib_conn, node, NULL); node 229 lib/pacemaker/pcmk_sched_transition.c const char *node = crm_element_value(cib_node, XML_ATTR_UNAME); node 230 lib/pacemaker/pcmk_sched_transition.c char *xpath = crm_strdup_printf(RSC_TEMPLATE, node, resource); node 429 lib/pacemaker/pcmk_sched_transition.c char *node = (char *)gIter->data; node 431 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-modify-node", "Online", node); node 433 lib/pacemaker/pcmk_sched_transition.c cib_node = modify_node(cib, node, TRUE); node 444 lib/pacemaker/pcmk_sched_transition.c char *node = (char *)gIter->data; node 446 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-modify-node", "Offline", node); node 448 lib/pacemaker/pcmk_sched_transition.c cib_node = modify_node(cib, node, FALSE); node 456 lib/pacemaker/pcmk_sched_transition.c snprintf(xpath, STATUS_PATH_MAX, "//node_state[@uname='%s']/%s", node, XML_CIB_TAG_LRM); node 460 lib/pacemaker/pcmk_sched_transition.c snprintf(xpath, STATUS_PATH_MAX, "//node_state[@uname='%s']/%s", node, node 468 lib/pacemaker/pcmk_sched_transition.c char *node = (char *)gIter->data; node 470 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-modify-node", "Failing", node); node 472 lib/pacemaker/pcmk_sched_transition.c cib_node = modify_node(cib, node, TRUE); node 534 lib/pacemaker/pcmk_sched_transition.c char *node = NULL; node 547 lib/pacemaker/pcmk_sched_transition.c node = calloc(1, strlen(spec) + 1); node 548 lib/pacemaker/pcmk_sched_transition.c rc = sscanf(spec, "%[^@]@%[^=]=%d", key, node, &outcome); node 552 lib/pacemaker/pcmk_sched_transition.c free(node); node 566 lib/pacemaker/pcmk_sched_transition.c cib_node = inject_node_state(cib, node, NULL); node 587 lib/pacemaker/pcmk_sched_transition.c free(node); node 599 lib/pacemaker/pcmk_sched_transition.c const char *node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); node 603 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-pseudo-action", node, task); node 629 lib/pacemaker/pcmk_sched_transition.c char *node = crm_element_value_copy(action->xml, XML_LRM_ATTR_TARGET); node 634 lib/pacemaker/pcmk_sched_transition.c crm_info("Skipping %s op for %s", operation, node); node 640 lib/pacemaker/pcmk_sched_transition.c free(node); free(uuid); node 660 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-rsc-action", resource, operation, node, (guint) 0); node 673 lib/pacemaker/pcmk_sched_transition.c cib_node = inject_node_state(fake_cib, node, (router_node? node : uuid)); node 680 lib/pacemaker/pcmk_sched_transition.c free(node); free(uuid); node 687 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-rsc-action", resource, op->op_type, node, op->interval_ms); node 696 lib/pacemaker/pcmk_sched_transition.c op->interval_ms, node); node 704 lib/pacemaker/pcmk_sched_transition.c op->interval_ms, node); node 739 lib/pacemaker/pcmk_sched_transition.c free(node); free(uuid); node 749 lib/pacemaker/pcmk_sched_transition.c const char *node = crm_element_value(action->xml, XML_LRM_ATTR_TARGET); node 754 lib/pacemaker/pcmk_sched_transition.c out->message(out, "inject-cluster-action", node, task, rsc); node 141 lib/pacemaker/pcmk_sched_utilization.c pe_node_t *node; node 154 lib/pacemaker/pcmk_sched_utilization.c remaining = utilization_value(g_hash_table_lookup(data->node->details->utilization, key)); node 158 lib/pacemaker/pcmk_sched_utilization.c CRM_ASSERT(data->node); node 161 lib/pacemaker/pcmk_sched_utilization.c data->node->details->uname, (char *)key, data->rsc_id, required, remaining); node 167 lib/pacemaker/pcmk_sched_utilization.c have_enough_capacity(pe_node_t * node, const char * rsc_id, GHashTable * utilization) node 171 lib/pacemaker/pcmk_sched_utilization.c data.node = node; node 353 lib/pacemaker/pcmk_sched_utilization.c pe_node_t *node = NULL; node 365 lib/pacemaker/pcmk_sched_utilization.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 366 lib/pacemaker/pcmk_sched_utilization.c if (can_run_resources(node) == FALSE || node->weight < 0) { node 370 lib/pacemaker/pcmk_sched_utilization.c if (have_enough_capacity(node, rscs_id, unallocated_utilization)) { node 375 lib/pacemaker/pcmk_sched_utilization.c compare_capacity(node, most_capable_node) < 0) { node 377 lib/pacemaker/pcmk_sched_utilization.c most_capable_node = node; node 383 lib/pacemaker/pcmk_sched_utilization.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 384 lib/pacemaker/pcmk_sched_utilization.c if (can_run_resources(node) == FALSE || node->weight < 0) { node 388 lib/pacemaker/pcmk_sched_utilization.c if (have_enough_capacity(node, rscs_id, unallocated_utilization) == FALSE) { node 392 lib/pacemaker/pcmk_sched_utilization.c rsc->id, node->details->uname); node 393 lib/pacemaker/pcmk_sched_utilization.c resource_location(rsc, node, -INFINITY, "__limit_utilization__", data_set); node 411 lib/pacemaker/pcmk_sched_utilization.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 412 lib/pacemaker/pcmk_sched_utilization.c if (can_run_resources(node) == FALSE || node->weight < 0) { node 416 lib/pacemaker/pcmk_sched_utilization.c if (have_enough_capacity(node, rsc->id, rsc->utilization) == FALSE) { node 420 lib/pacemaker/pcmk_sched_utilization.c rsc->id, node->details->uname); node 421 lib/pacemaker/pcmk_sched_utilization.c resource_location(rsc, node, -INFINITY, "__limit_utilization__", data_set); node 65 lib/pacemaker/pcmk_sched_utils.c can_run_resources(const pe_node_t * node) node 67 lib/pacemaker/pcmk_sched_utils.c if (node == NULL) { node 71 lib/pacemaker/pcmk_sched_utils.c if (node->weight < 0) { node 76 lib/pacemaker/pcmk_sched_utils.c if (node->details->online == FALSE node 77 lib/pacemaker/pcmk_sched_utils.c || node->details->shutdown || node->details->unclean node 78 lib/pacemaker/pcmk_sched_utils.c || node->details->standby || node->details->maintenance) { node 80 lib/pacemaker/pcmk_sched_utils.c node->details->uname, node->details->online, node 81 lib/pacemaker/pcmk_sched_utils.c node->details->unclean, node->details->standby, node->details->maintenance); node 100 lib/pacemaker/pcmk_sched_utils.c pe_node_t *node = NULL; node 107 lib/pacemaker/pcmk_sched_utils.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &node)) { node 108 lib/pacemaker/pcmk_sched_utils.c pe_node_t *new_node = pe__copy_node(node); node 372 lib/pacemaker/pcmk_sched_utils.c } else if (action->node != NULL) { node 373 lib/pacemaker/pcmk_sched_utils.c node_uname = action->node->details->uname; node 374 lib/pacemaker/pcmk_sched_utils.c node_uuid = action->node->details->id; node 458 lib/pacemaker/pcmk_sched_utils.c pe_node_t *node = NULL; node 465 lib/pacemaker/pcmk_sched_utils.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 466 lib/pacemaker/pcmk_sched_utils.c if (can_run_resources(node) && node->weight >= 0) { node 501 lib/pacemaker/pcmk_sched_utils.c pe_node_t *node, pe_working_set_t *data_set) node 509 lib/pacemaker/pcmk_sched_utils.c cancel_op = custom_action(rsc, key, RSC_CANCEL, node, FALSE, TRUE, node 535 lib/pacemaker/pcmk_sched_utils.c sched_shutdown_op(pe_node_t *node, pe_working_set_t *data_set) node 538 lib/pacemaker/pcmk_sched_utils.c node->details->uname); node 541 lib/pacemaker/pcmk_sched_utils.c node, FALSE, TRUE, data_set); node 543 lib/pacemaker/pcmk_sched_utils.c crm_notice("Scheduling shutdown of node %s", node->details->uname); node 544 lib/pacemaker/pcmk_sched_utils.c shutdown_constraints(node, shutdown_op, data_set); node 611 lib/pacemaker/pcmk_sched_utils.c const char *node, const char *origin, int level) node 711 lib/pacemaker/pcmk_sched_utils.c crm_xml_add(xml_op, XML_LRM_ATTR_TARGET, node); /* For context during triage */ node 702 lib/pengine/bundle.c pe_node_t *node = NULL; node 751 lib/pengine/bundle.c node = pe_find_node(data_set->nodes, uname); node 752 lib/pengine/bundle.c if (node == NULL) { node 753 lib/pengine/bundle.c node = pe_create_node(uname, uname, "remote", "-INFINITY", node 756 lib/pengine/bundle.c node->weight = -INFINITY; node 758 lib/pengine/bundle.c node->rsc_discover_mode = pe_discover_never; node 781 lib/pengine/bundle.c replica->node = pe__copy_node(node); node 782 lib/pengine/bundle.c replica->node->weight = 500; node 783 lib/pengine/bundle.c replica->node->rsc_discover_mode = pe_discover_exclusive; node 791 lib/pengine/bundle.c (gpointer) replica->node->details->id, node 792 lib/pengine/bundle.c pe__copy_node(replica->node)); node 795 lib/pengine/bundle.c pe_node_t *copy = pe__copy_node(replica->node); node 798 lib/pengine/bundle.c (gpointer) replica->node->details->id, copy); node 805 lib/pengine/bundle.c while (g_hash_table_iter_next(&gIter, NULL, (void **)&node)) { node 806 lib/pengine/bundle.c if (pe__is_guest_or_remote_node(node)) { node 808 lib/pengine/bundle.c node->weight = -INFINITY; node 812 lib/pengine/bundle.c replica->node->details->remote_rsc = replica->remote; node 820 lib/pengine/bundle.c g_hash_table_insert(replica->node->details->attrs, node 972 lib/pengine/bundle.c pe_node_t *node = NULL; node 984 lib/pengine/bundle.c node = replica->container->allocated_to; node 985 lib/pengine/bundle.c if (node == NULL) { node 989 lib/pengine/bundle.c node = pe__current_node(replica->container); node 992 lib/pengine/bundle.c if(node == NULL) { node 998 lib/pengine/bundle.c rsc->id, node->details->uname); node 1000 lib/pengine/bundle.c crm_xml_add(xml, field, node->details->uname); node 1003 lib/pengine/bundle.c return node->details->uname; node 1386 lib/pengine/bundle.c pe__find_bundle_replica(const pe_resource_t *bundle, const pe_node_t *node) node 1389 lib/pengine/bundle.c CRM_ASSERT(bundle && node); node 1396 lib/pengine/bundle.c CRM_ASSERT(replica && replica->node); node 1397 lib/pengine/bundle.c if (replica->node->details == node->details) { node 1569 lib/pengine/bundle.c pe_node_t *node, long options) node 1592 lib/pengine/bundle.c pe__common_output_html(out, rsc, buffer, node, options); node 1711 lib/pengine/bundle.c pe_node_t *node, long options) node 1734 lib/pengine/bundle.c pe__common_output_text(out, rsc, buffer, node, options); node 1844 lib/pengine/bundle.c pe_node_t *node = NULL; node 1866 lib/pengine/bundle.c node = pe__current_node(replica->container); node 1867 lib/pengine/bundle.c common_print(rsc, pre_text, buffer, node, options, print_data); node 1945 lib/pengine/bundle.c if (replica->node) { node 1946 lib/pengine/bundle.c free(replica->node); node 1947 lib/pengine/bundle.c replica->node = NULL; node 587 lib/pengine/clone.c pe_node_t *node = (pe_node_t *)nIter->data; node 589 lib/pengine/clone.c if (pe_find_node(rsc->running_on, node->details->uname) == NULL) { node 591 lib/pengine/clone.c node->details->uname); node 883 lib/pengine/clone.c pe_node_t *node = (pe_node_t *)nIter->data; node 885 lib/pengine/clone.c if (pe_find_node(rsc->running_on, node->details->uname) == NULL && node 886 lib/pengine/clone.c pcmk__str_in_list(only_node, node->details->uname)) { node 888 lib/pengine/clone.c node->details->uname); node 1119 lib/pengine/clone.c pe_node_t *node = (pe_node_t *)nIter->data; node 1121 lib/pengine/clone.c if (pe_find_node(rsc->running_on, node->details->uname) == NULL && node 1122 lib/pengine/clone.c pcmk__str_in_list(only_node, node->details->uname)) { node 1124 lib/pengine/clone.c node->details->uname); node 596 lib/pengine/common.c pe_node_attribute_calculated(const pe_node_t *node, const char *name, node 601 lib/pengine/common.c if(node == NULL) { node 605 lib/pengine/common.c return g_hash_table_lookup(node->details->attrs, name); node 610 lib/pengine/common.c return g_hash_table_lookup(node->details->attrs, name); node 620 lib/pengine/common.c CRM_ASSERT(node->details->remote_rsc); node 621 lib/pengine/common.c CRM_ASSERT(node->details->remote_rsc->container); node 623 lib/pengine/common.c if(node->details->remote_rsc->container->running_on) { node 624 lib/pengine/common.c pe_node_t *host = node->details->remote_rsc->container->running_on->data; node 630 lib/pengine/common.c rsc->id, name, node->details->remote_rsc->container->id); node 635 lib/pengine/common.c pe_node_attribute_raw(pe_node_t *node, const char *name) node 637 lib/pengine/common.c if(node == NULL) { node 640 lib/pengine/common.c return g_hash_table_lookup(node->details->attrs, name); node 141 lib/pengine/complex.c pe_node_t * node, pe_working_set_t * data_set) node 158 lib/pengine/complex.c if (node) { node 159 lib/pengine/complex.c rule_data.node_hash = node->details->attrs; node 191 lib/pengine/complex.c pe_node_t * node, pe_working_set_t * data_set) node 202 lib/pengine/complex.c if (node) { node 203 lib/pengine/complex.c rule_data.node_hash = node->details->attrs; node 211 lib/pengine/complex.c get_rsc_attributes(meta_hash, rsc->parent, node, data_set); node 223 lib/pengine/complex.c pe_node_t * node, pe_working_set_t * data_set) node 226 lib/pengine/complex.c .node_hash = (node == NULL)? NULL : node->details->attrs, node 239 lib/pengine/complex.c pe_get_versioned_attributes(meta_hash, rsc->parent, node, data_set); node 457 lib/pengine/complex.c pe_rsc_params(pe_resource_t *rsc, pe_node_t *node, pe_working_set_t *data_set) node 471 lib/pengine/complex.c if ((node != NULL) && (node->details->uname != NULL)) { node 472 lib/pengine/complex.c node_name = node->details->uname; node 485 lib/pengine/complex.c get_rsc_attributes(params_on_node, rsc, node, data_set); node 866 lib/pengine/complex.c pe_node_t *node = NULL; node 868 lib/pengine/complex.c node = pe_hash_table_lookup(rsc->allowed_nodes, id); node 869 lib/pengine/complex.c if (node != NULL) { node 870 lib/pengine/complex.c pe_rsc_trace(rsc, "Updating score for %s on %s: %d + %d", rsc->id, id, node->weight, score); node 871 lib/pengine/complex.c node->weight = pe__add_scores(node->weight, score); node 1003 lib/pengine/complex.c pe_node_t *node = NULL; node 1020 lib/pengine/complex.c node = node_iter->data; node 1023 lib/pengine/complex.c is_happy = node->details->online && !node->details->unclean; node 1037 lib/pengine/complex.c if (node->details == rsc->partial_migration_source->details) { node 1039 lib/pengine/complex.c active = node; node 1047 lib/pengine/complex.c active = node; node 1054 lib/pengine/complex.c active = node; node 80 lib/pengine/failcounts.c block_failure(pe_node_t *node, pe_resource_t *rsc, xmlNode *xml_op, node 131 lib/pengine/failcounts.c node->details->uname, xml_name, node 251 lib/pengine/failcounts.c pe_get_failcount(pe_node_t *node, pe_resource_t *rsc, time_t *last_failure, node 264 lib/pengine/failcounts.c g_hash_table_iter_init(&iter, node->details->attrs); node 286 lib/pengine/failcounts.c && block_failure(node, rsc, xml_op, data_set)) { node 301 lib/pengine/failcounts.c rsc->id, node->details->uname, rsc->failure_timeout); node 325 lib/pengine/failcounts.c failcount += pe_get_failcount(node, filler, &filler_last_failure, node 337 lib/pengine/failcounts.c rsc->id, score, node->details->uname); node 345 lib/pengine/failcounts.c rsc->id, score, node->details->uname); node 364 lib/pengine/failcounts.c pe__clear_failcount(pe_resource_t *rsc, pe_node_t *node, node 370 lib/pengine/failcounts.c CRM_CHECK(rsc && node && reason && data_set, return NULL); node 373 lib/pengine/failcounts.c clear = custom_action(rsc, key, CRM_OP_CLEAR_FAILCOUNT, node, FALSE, TRUE, node 377 lib/pengine/failcounts.c rsc->id, node->details->uname, reason, clear->uuid); node 44 lib/pengine/native.c native_priority_to_node(pe_resource_t * rsc, pe_node_t * node, gboolean failed) node 60 lib/pengine/native.c node->details->priority += priority; node 62 lib/pengine/native.c node->details->uname, node->details->priority, node 69 lib/pengine/native.c if (node->details->remote_rsc node 70 lib/pengine/native.c && node->details->remote_rsc->container) { node 71 lib/pengine/native.c GList *gIter = node->details->remote_rsc->container->running_on; node 83 lib/pengine/native.c node->details->uname); node 89 lib/pengine/native.c native_add_running(pe_resource_t * rsc, pe_node_t * node, pe_working_set_t * data_set, gboolean failed) node 93 lib/pengine/native.c CRM_CHECK(node != NULL, return); node 98 lib/pengine/native.c if (pcmk__str_eq(a_node->details->id, node->details->id, pcmk__str_casei)) { node 103 lib/pengine/native.c pe_rsc_trace(rsc, "Adding %s to %s %s", rsc->id, node->details->uname, node 106 lib/pengine/native.c rsc->running_on = g_list_append(rsc->running_on, node); node 108 lib/pengine/native.c node->details->running_rsc = g_list_append(node->details->running_rsc, rsc); node 110 lib/pengine/native.c native_priority_to_node(rsc, node, failed); node 113 lib/pengine/native.c if (rsc->variant == pe_native && node->details->maintenance) { node 121 lib/pengine/native.c resource_location(rsc, node, INFINITY, "not_managed_default", data_set); node 123 lib/pengine/native.c while(p && node->details->online) { node 125 lib/pengine/native.c p->running_on = g_list_append(p->running_on, node); node 173 lib/pengine/native.c rsc->id, node->details->uname, node 177 lib/pengine/native.c pe_rsc_trace(rsc, "Resource %s is active on: %s", rsc->id, node->details->uname); node 181 lib/pengine/native.c native_add_running(rsc->parent, node, data_set, FALSE); node 240 lib/pengine/native.c rsc_is_on_node(pe_resource_t *rsc, const pe_node_t *node, int flags) node 243 lib/pengine/native.c rsc->id, node->details->uname); node 250 lib/pengine/native.c if (loc->details == node->details) { node 260 lib/pengine/native.c && (rsc->allocated_to->details == node->details)) { node 323 lib/pengine/native.c native_parameter(pe_resource_t * rsc, pe_node_t * node, gboolean create, const char *name, node 334 lib/pengine/native.c params = pe_rsc_params(rsc, node, data_set); node 499 lib/pengine/native.c pe_node_t *node = (pe_node_t *) gIter->data; node 502 lib/pengine/native.c node->details->uname, node->details->id, node 503 lib/pengine/native.c pcmk__btoa(node->details->online == FALSE)); node 522 lib/pengine/native.c add_output_node(GString *s, const char *node, bool have_nodes) node 525 lib/pengine/native.c g_string_append(s, node); node 544 lib/pengine/native.c pcmk__native_output_string(pe_resource_t *rsc, const char *name, pe_node_t *node, node 566 lib/pengine/native.c if ((node == NULL) && (rsc->lock_node != NULL)) { node 567 lib/pengine/native.c node = rsc->lock_node; node 571 lib/pengine/native.c node = NULL; node 577 lib/pengine/native.c + (node? strlen(node->details->uname) + 1 : 0) node 600 lib/pengine/native.c if (node) { node 601 lib/pengine/native.c g_string_append_printf(outstr, " %s", node->details->uname); node 605 lib/pengine/native.c if (node && !(node->details->online) && node->details->unclean) { node 608 lib/pengine/native.c if (node && (node == rsc->lock_node)) { node 677 lib/pengine/native.c const char *name, pe_node_t *node, long options) node 720 lib/pengine/native.c gchar *s = pcmk__native_output_string(rsc, name, node, options, node 733 lib/pengine/native.c const char *name, pe_node_t *node, long options) node 752 lib/pengine/native.c gchar *s = pcmk__native_output_string(rsc, name, node, options, node 763 lib/pengine/native.c common_print(pe_resource_t * rsc, const char *pre_text, const char *name, pe_node_t *node, long options, void *print_data) node 813 lib/pengine/native.c gchar *resource_s = pcmk__native_output_string(rsc, name, node, options, node 880 lib/pengine/native.c pe_node_t *node = NULL; node 888 lib/pengine/native.c node = pe__current_node(rsc); node 890 lib/pengine/native.c if (node == NULL) { node 892 lib/pengine/native.c node = rsc->pending_node; node 895 lib/pengine/native.c common_print(rsc, pre_text, rsc_printable_id(rsc), node, options, print_data); node 959 lib/pengine/native.c pe_node_t *node = (pe_node_t *) gIter->data; node 962 lib/pengine/native.c "name", node->details->uname, node 963 lib/pengine/native.c "id", node->details->id, node 964 lib/pengine/native.c "cached", pcmk__btoa(node->details->online)); node 982 lib/pengine/native.c pe_node_t *node = pe__current_node(rsc); node 990 lib/pengine/native.c if (node == NULL) { node 992 lib/pengine/native.c node = rsc->pending_node; node 994 lib/pengine/native.c return pe__common_output_html(out, rsc, rsc_printable_id(rsc), node, options); node 1006 lib/pengine/native.c pe_node_t *node = pe__current_node(rsc); node 1014 lib/pengine/native.c if (node == NULL) { node 1016 lib/pengine/native.c node = rsc->pending_node; node 1018 lib/pengine/native.c return pe__common_output_text(out, rsc, rsc_printable_id(rsc), node, options); node 1088 lib/pengine/native.c pe_node_t *node = (pe_node_t *) gIter->data; node 1090 lib/pengine/native.c if (*list == NULL || pe_find_node_id(*list, node->details->id) == NULL) { node 1091 lib/pengine/native.c *list = g_list_append(*list, node); node 1147 lib/pengine/native.c pe_node_t *node = (pe_node_t *) gIter2->data; node 1150 lib/pengine/native.c if (node->details->unclean == FALSE && node->details->online == FALSE) { node 1154 lib/pengine/native.c node_table = g_hash_table_lookup(active_table, node->details->uname); node 1157 lib/pengine/native.c g_hash_table_insert(active_table, strdup(node->details->uname), node_table); node 100 lib/pengine/pe_digest.c append_all_versioned_params(pe_resource_t *rsc, pe_node_t *node, node 109 lib/pengine/pe_digest.c pe_get_versioned_attributes(local_versioned_params, rsc, node, data_set); node 139 lib/pengine/pe_digest.c pe_node_t *node, GHashTable *params, node 154 lib/pengine/pe_digest.c rsc->id, node->details->uname); node 173 lib/pengine/pe_digest.c task, node, TRUE, FALSE, data_set); node 182 lib/pengine/pe_digest.c append_all_versioned_params(rsc, node, action, xml_op, data_set); node 322 lib/pengine/pe_digest.c pe_node_t *node, xmlNode *xml_op, GHashTable *overrides, node 336 lib/pengine/pe_digest.c params = pe_rsc_params(rsc, node, data_set); node 337 lib/pengine/pe_digest.c calculate_main_digest(data, rsc, node, params, task, interval_ms, xml_op, node 363 lib/pengine/pe_digest.c pe_node_t *node, xmlNode *xml_op, bool calc_secure, node 369 lib/pengine/pe_digest.c data = g_hash_table_lookup(node->details->digest_cache, key); node 371 lib/pengine/pe_digest.c data = pe__calculate_digests(rsc, task, &interval_ms, node, xml_op, node 374 lib/pengine/pe_digest.c g_hash_table_insert(node->details->digest_cache, strdup(key), data); node 392 lib/pengine/pe_digest.c rsc_action_digest_cmp(pe_resource_t * rsc, xmlNode * xml_op, pe_node_t * node, node 403 lib/pengine/pe_digest.c CRM_ASSERT(node != NULL); node 410 lib/pengine/pe_digest.c data = rsc_action_digest(rsc, task, interval_ms, node, xml_op, node 418 lib/pengine/pe_digest.c interval_ms, task, rsc->id, node->details->uname, node 431 lib/pengine/pe_digest.c interval_ms, task, rsc->id, node->details->uname, node 521 lib/pengine/pe_digest.c pe_node_t *node, pe_working_set_t *data_set) node 527 lib/pengine/pe_digest.c node, NULL, TRUE, data_set); node 530 lib/pengine/pe_digest.c node_summary = pe_node_attribute_raw(node, CRM_ATTR_DIGESTS_ALL); node 544 lib/pengine/pe_digest.c node_summary = pe_node_attribute_raw(node, CRM_ATTR_DIGESTS_SECURE); node 552 lib/pengine/pe_digest.c node->details->uname); node 567 lib/pengine/pe_digest.c node->details->uname, digest); node 574 lib/pengine/pe_digest.c rsc->id, node->details->uname, digest); node 47 lib/pengine/pe_output.c add_extra_info(pe_node_t *node, GList *rsc_list, pe_working_set_t *data_set, node 59 lib/pengine/pe_output.c if (add_extra_info(node, rsc->children, data_set, attrname, node 69 lib/pengine/pe_output.c params = pe_rsc_params(rsc, node, data_set); node 162 lib/pengine/pe_output.c xmlNodePtr node = user_data; node 163 lib/pengine/pe_output.c pcmk_create_xml_text_node(node, (const char *) key, (const char *) value); node 500 lib/pengine/pe_output.c pe__node_display_name(pe_node_t *node, bool print_detail) node 507 lib/pengine/pe_output.c CRM_ASSERT((node != NULL) && (node->details != NULL) && (node->details->uname != NULL)); node 510 lib/pengine/pe_output.c if (pe__is_guest_node(node)) { node 511 lib/pengine/pe_output.c pe_node_t *host_node = pe__current_node(node->details->remote_rsc); node 522 lib/pengine/pe_output.c if (print_detail && !pcmk__str_eq(node->details->uname, node->details->id, pcmk__str_casei)) { node 523 lib/pengine/pe_output.c node_id = node->details->id; node 527 lib/pengine/pe_output.c name_len = strlen(node->details->uname) + 1; node 538 lib/pengine/pe_output.c strcpy(node_name, node->details->uname); node 686 lib/pengine/pe_output.c pe_node_t *node = (pe_node_t *) gIter2->data; node 688 lib/pengine/pe_output.c if (node->weight < 0) { node 690 lib/pengine/pe_output.c out->message(out, "ban", node, location, print_clone_detail); node 833 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li", NULL); node 835 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, "bold", "Current DC: "); node 841 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, NULL, buf); node 846 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, NULL, buf); node 849 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, "warning", "WITHOUT"); node 850 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, NULL, "quorum"); node 853 lib/pengine/pe_output.c pcmk_create_html_node(node ,"span", NULL, "warning", "NONE"); node 956 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li", NULL); node 958 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, NULL, "Resource management: "); node 959 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, "bold", "DISABLED"); node 960 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, NULL, node 963 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li", NULL); node 965 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, NULL, "Resource management: "); node 966 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, "bold", "STOPPED"); node 967 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, NULL, node 1071 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "li", NULL); node 1073 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, "bold", "Stack: "); node 1074 lib/pengine/pe_output.c pcmk_create_html_node(node, "span", NULL, NULL, stack_s); node 1187 lib/pengine/pe_output.c xmlNodePtr node = NULL; node 1194 lib/pengine/pe_output.c node = pcmk__output_create_xml_node(out, "failure", node 1219 lib/pengine/pe_output.c pcmk__xe_set_props(node, XML_RSC_OP_LAST_CHANGE, rc_change, node 1285 lib/pengine/pe_output.c pe_node_t *node = va_arg(args, pe_node_t *); node 1295 lib/pengine/pe_output.c char *node_name = pe__node_display_name(node, print_clone_detail); node 1303 lib/pengine/pe_output.c if (node->details->standby_onfail && node->details->online) { node 1305 lib/pengine/pe_output.c } else if (node->details->standby && node->details->online) { node 1306 lib/pengine/pe_output.c char *s = crm_strdup_printf(" standby%s", node->details->running_rsc ? " (with active resources)" : ""); node 1309 lib/pengine/pe_output.c } else if (node->details->standby) { node 1311 lib/pengine/pe_output.c } else if (node->details->maintenance && node->details->online) { node 1313 lib/pengine/pe_output.c } else if (node->details->maintenance) { node 1315 lib/pengine/pe_output.c } else if (node->details->online) { node 1321 lib/pengine/pe_output.c GList *rscs = pe__filter_rsc_list(node->details->running_rsc, only_rsc); node 1333 lib/pengine/pe_output.c for (lpc2 = node->details->running_rsc; lpc2 != NULL; lpc2 = lpc2->next) { node 1353 lib/pengine/pe_output.c pe_node_t *node = va_arg(args, pe_node_t *); node 1364 lib/pengine/pe_output.c char *node_name = pe__node_display_name(node, print_clone_detail); node 1368 lib/pengine/pe_output.c if (pe__is_guest_node(node)) { node 1370 lib/pengine/pe_output.c } else if (pe__is_remote_node(node)) { node 1379 lib/pengine/pe_output.c GList *rscs = pe__filter_rsc_list(node->details->running_rsc, only_rsc); node 1397 lib/pengine/pe_output.c for (gIter2 = node->details->running_rsc; gIter2 != NULL; gIter2 = gIter2->next) { node 1413 lib/pengine/pe_output.c char *node_name = pe__node_display_name(node, print_clone_detail); node 1425 lib/pengine/pe_output.c pe_node_t *node = va_arg(args, pe_node_t *); node 1437 lib/pengine/pe_output.c char *length_s = pcmk__itoa(g_list_length(node->details->running_rsc)); node 1439 lib/pengine/pe_output.c switch (node->details->type) { node 1451 lib/pengine/pe_output.c "name", node->details->uname, node 1452 lib/pengine/pe_output.c "id", node->details->id, node 1453 lib/pengine/pe_output.c "online", pcmk__btoa(node->details->online), node 1454 lib/pengine/pe_output.c "standby", pcmk__btoa(node->details->standby), node 1455 lib/pengine/pe_output.c "standby_onfail", pcmk__btoa(node->details->standby_onfail), node 1456 lib/pengine/pe_output.c "maintenance", pcmk__btoa(node->details->maintenance), node 1457 lib/pengine/pe_output.c "pending", pcmk__btoa(node->details->pending), node 1458 lib/pengine/pe_output.c "unclean", pcmk__btoa(node->details->unclean), node 1459 lib/pengine/pe_output.c "shutdown", pcmk__btoa(node->details->shutdown), node 1460 lib/pengine/pe_output.c "expected_up", pcmk__btoa(node->details->expected_up), node 1461 lib/pengine/pe_output.c "is_dc", pcmk__btoa(node->details->is_dc), node 1465 lib/pengine/pe_output.c if (pe__is_guest_node(node)) { node 1467 lib/pengine/pe_output.c crm_xml_add(xml_node, "id_as_resource", node->details->remote_rsc->container->id); node 1473 lib/pengine/pe_output.c for (lpc = node->details->running_rsc; lpc != NULL; lpc = lpc->next) { node 1485 lib/pengine/pe_output.c "name", node->details->uname, node 1579 lib/pengine/pe_output.c pe_node_t *node = pe__current_node(rsc); node 1583 lib/pengine/pe_output.c if (node == NULL) { node 1584 lib/pengine/pe_output.c node = rsc->pending_node; node 1587 lib/pengine/pe_output.c node_str = pcmk__native_output_string(rsc, rsc_printable_id(rsc), node, node 1625 lib/pengine/pe_output.c xmlNode *node = NULL; node 1629 lib/pengine/pe_output.c node = pcmk__output_create_xml_node(out, "operation", node 1648 lib/pengine/pe_output.c pcmk__xe_set_props(node, "rsc", rsc_printable_id(rsc), node 1656 lib/pengine/pe_output.c pcmk__xe_set_props(node, XML_RSC_OP_LAST_CHANGE, node 1673 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "attribute", node 1680 lib/pengine/pe_output.c crm_xml_add(node, "expected", buf); node 1705 lib/pengine/pe_output.c pe_node_t *node = gIter->data; node 1711 lib/pengine/pe_output.c if (!node || !node->details || !node->details->online) { node 1715 lib/pengine/pe_output.c g_hash_table_iter_init(&iter, node->details->attrs); node 1724 lib/pengine/pe_output.c if (!pcmk__str_in_list(only_node, node->details->uname)) { node 1730 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, FALSE, NULL, node 1740 lib/pengine/pe_output.c value = pe_node_attribute_raw(node, name); node 1742 lib/pengine/pe_output.c add_extra = add_extra_info(node, node->details->running_rsc, node 1762 lib/pengine/pe_output.c pe_node_t *node = va_arg(args, pe_node_t *); node 1766 lib/pengine/pe_output.c comment, node->details->uname); node 1768 lib/pengine/pe_output.c g_hash_table_foreach(node->details->utilization, append_dump_text, &dump_text); node 1779 lib/pengine/pe_output.c pe_node_t *node = va_arg(args, pe_node_t *); node 1783 lib/pengine/pe_output.c "node", node->details->uname, node 1786 lib/pengine/pe_output.c g_hash_table_foreach(node->details->utilization, add_dump_node, &xml_node); node 1797 lib/pengine/pe_output.c pe_node_t *node = va_arg(args, pe_node_t *); node 1847 lib/pengine/pe_output.c int failcount = pe_get_failcount(node, rsc, &last_failure, pe_fc_default, node 1856 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, FALSE, NULL, node 1874 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, FALSE, NULL, node 1879 lib/pengine/pe_output.c out->message(out, "resource-operation-list", data_set, rsc, node, node 1902 lib/pengine/pe_output.c pe_node_t *node = (pe_node_t *) gIter->data; node 1904 lib/pengine/pe_output.c if (!pcmk__str_in_list(only_node, node->details->uname)) { node 1910 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, TRUE, NULL, print_clone_detail, node 1945 lib/pengine/pe_output.c pe_node_t *node = (pe_node_t *) gIter->data; node 1947 lib/pengine/pe_output.c char *node_name = pe__node_display_name(node, print_clone_detail); node 1949 lib/pengine/pe_output.c if (!pcmk__str_in_list(only_node, node->details->uname)) { node 1957 lib/pengine/pe_output.c if (node->details->unclean) { node 1958 lib/pengine/pe_output.c if (node->details->online) { node 1961 lib/pengine/pe_output.c } else if (node->details->pending) { node 1968 lib/pengine/pe_output.c } else if (node->details->pending) { node 1971 lib/pengine/pe_output.c } else if (node->details->standby_onfail && node->details->online) { node 1974 lib/pengine/pe_output.c } else if (node->details->standby) { node 1975 lib/pengine/pe_output.c if (node->details->online) { node 1976 lib/pengine/pe_output.c if (node->details->running_rsc) { node 1985 lib/pengine/pe_output.c } else if (node->details->maintenance) { node 1986 lib/pengine/pe_output.c if (node->details->online) { node 1992 lib/pengine/pe_output.c } else if (node->details->online) { node 1995 lib/pengine/pe_output.c if (pe__is_guest_node(node)) { node 1998 lib/pengine/pe_output.c } else if (pe__is_remote_node(node)) { node 2011 lib/pengine/pe_output.c if (pe__is_remote_node(node)) { node 2014 lib/pengine/pe_output.c } else if (pe__is_guest_node(node)) { node 2026 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, TRUE, node_mode, print_clone_detail, node 2070 lib/pengine/pe_output.c pe_node_t *node = (pe_node_t *) gIter->data; node 2072 lib/pengine/pe_output.c if (!pcmk__str_in_list(only_node, node->details->uname)) { node 2076 lib/pengine/pe_output.c out->message(out, "node", node, print_opts, TRUE, NULL, print_clone_detail, node 2111 lib/pengine/pe_output.c pe_node_t *node; node 2117 lib/pengine/pe_output.c node = pe_find_node_id(data_set->nodes, ID(node_state)); node 2119 lib/pengine/pe_output.c if (!node || !node->details || !node->details->online) { node 2123 lib/pengine/pe_output.c if (!pcmk__str_in_list(only_node, node->details->uname)) { node 2129 lib/pengine/pe_output.c out->message(out, "node-history-list", data_set, node, node_state, node 2166 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "node_weight", node 2173 lib/pengine/pe_output.c crm_xml_add(node, "id", rsc->id); node 2206 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "operation_history", node 2216 lib/pengine/pe_output.c crm_xml_add(node, "interval", s); node 2226 lib/pengine/pe_output.c crm_xml_add(node, XML_RSC_OP_LAST_CHANGE, pcmk__epoch2str(&epoch)); node 2232 lib/pengine/pe_output.c crm_xml_add(node, XML_RSC_OP_T_EXEC, s); node 2238 lib/pengine/pe_output.c crm_xml_add(node, XML_RSC_OP_T_QUEUE, s); node 2269 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_create_xml_node(out, "promotion_score", node 2275 lib/pengine/pe_output.c crm_xml_add(node, "node", chosen->details->uname); node 2334 lib/pengine/pe_output.c xmlNodePtr node = pcmk__output_xml_create_parent(out, "resource_history", node 2339 lib/pengine/pe_output.c crm_xml_add(node, "orphan", "true"); node 2343 lib/pengine/pe_output.c pcmk__xe_set_props(node, "orphan", "false", node 2351 lib/pengine/pe_output.c crm_xml_add(node, PCMK__FAIL_COUNT_PREFIX, s); node 2356 lib/pengine/pe_output.c crm_xml_add(node, PCMK__LAST_FAILURE_PREFIX, pcmk__epoch2str(&last_failure)); node 2498 lib/pengine/pe_output.c pe_node_t *node = va_arg(args, pe_node_t *); node 2525 lib/pengine/pe_output.c int failcount = pe_get_failcount(node, rsc, &last_failure, pe_fc_default, node 2550 lib/pengine/pe_output.c pe_node_t *node = va_arg(args, pe_node_t *); node 2554 lib/pengine/pe_output.c fn, rsc->id, node->details->uname); node 2568 lib/pengine/pe_output.c pe_node_t *node = va_arg(args, pe_node_t *); node 2573 lib/pengine/pe_output.c "node", node->details->uname, node 2632 lib/pengine/pe_output.c xmlNodePtr node = NULL; node 2634 lib/pengine/pe_output.c node = pcmk__output_create_xml_node(out, "ticket", node 2641 lib/pengine/pe_output.c crm_xml_add(node, "last-granted", pcmk__epoch2str(&ticket->last_granted)); node 2772 lib/pengine/pe_output.c pe__output_node(pe_node_t *node, gboolean details, pcmk__output_t *out) node 2774 lib/pengine/pe_output.c if (node == NULL) { node 2779 lib/pengine/pe_output.c CRM_ASSERT(node->details); node 2781 lib/pengine/pe_output.c node->details->online ? "" : "Unavailable/Unclean ", node 2782 lib/pengine/pe_output.c node->details->uname, node->weight, node->fixed ? "True" : "False"); node 2786 lib/pengine/pe_output.c GList *gIter = node->details->running_rsc; node 2792 lib/pengine/pe_output.c g_hash_table_foreach(node->details->attrs, print_str_str, pe_mutable); node 61 lib/pengine/pe_status_private.h pe_node_t *node, node 25 lib/pengine/remote.c pe__is_remote_node(const pe_node_t *node) node 27 lib/pengine/remote.c return (node != NULL) && (node->details->type == node_remote) node 28 lib/pengine/remote.c && ((node->details->remote_rsc == NULL) node 29 lib/pengine/remote.c || (node->details->remote_rsc->container == NULL)); node 33 lib/pengine/remote.c pe__is_guest_node(const pe_node_t *node) node 35 lib/pengine/remote.c return (node != NULL) && (node->details->type == node_remote) node 36 lib/pengine/remote.c && (node->details->remote_rsc != NULL) node 37 lib/pengine/remote.c && (node->details->remote_rsc->container != NULL); node 41 lib/pengine/remote.c pe__is_guest_or_remote_node(const pe_node_t *node) node 43 lib/pengine/remote.c return (node != NULL) && (node->details->type == node_remote); node 47 lib/pengine/remote.c pe__is_bundle_node(const pe_node_t *node) node 49 lib/pengine/remote.c return pe__is_guest_node(node) node 50 lib/pengine/remote.c && pe_rsc_is_bundled(node->details->remote_rsc); node 215 lib/pengine/remote.c pe_node_t *node; // Known node corresponding to history entry node 220 lib/pengine/remote.c pe__add_param_check(xmlNode *rsc_op, pe_resource_t *rsc, pe_node_t *node, node 225 lib/pengine/remote.c CRM_CHECK(data_set && rsc_op && rsc && node, return); node 233 lib/pengine/remote.c check_op->node = node; node 255 lib/pengine/remote.c cb(check_op->rsc, check_op->node, check_op->rsc_op, node 459 lib/pengine/rules.c xmlNode *node = expr; node 462 lib/pengine/rules.c free_xml(node); node 187 lib/pengine/status.c pe_node_t *node = (pe_node_t *) iterator->data; node 190 lib/pengine/status.c if (node == NULL) { node 193 lib/pengine/status.c if (node->details == NULL) { node 194 lib/pengine/status.c free(node); node 201 lib/pengine/status.c crm_trace("Freeing node %s", (pe__is_guest_or_remote_node(node)? node 202 lib/pengine/status.c "(guest or remote)" : node->details->uname)); node 204 lib/pengine/status.c if (node->details->attrs != NULL) { node 205 lib/pengine/status.c g_hash_table_destroy(node->details->attrs); node 207 lib/pengine/status.c if (node->details->utilization != NULL) { node 208 lib/pengine/status.c g_hash_table_destroy(node->details->utilization); node 210 lib/pengine/status.c if (node->details->digest_cache != NULL) { node 211 lib/pengine/status.c g_hash_table_destroy(node->details->digest_cache); node 213 lib/pengine/status.c g_list_free(node->details->running_rsc); node 214 lib/pengine/status.c g_list_free(node->details->allocated_rsc); node 215 lib/pengine/status.c free(node->details); node 216 lib/pengine/status.c free(node); node 423 lib/pengine/status.c pe_node_t *node = (pe_node_t *) gIter->data; node 425 lib/pengine/status.c if (node && pcmk__str_eq(node->details->id, id, pcmk__str_casei)) { node 426 lib/pengine/status.c return node; node 439 lib/pengine/status.c pe_node_t *node = (pe_node_t *) gIter->data; node 441 lib/pengine/status.c if (node && pcmk__str_eq(node->details->uname, uname, pcmk__str_casei)) { node 442 lib/pengine/status.c return node; node 70 lib/pengine/tags.c pe_node_t *node = pe_find_node_id(data_set->nodes, id); node 72 lib/pengine/tags.c if (!node) { node 77 lib/pengine/tags.c retval = g_list_append(retval, strdup(node->details->uname)); node 52 lib/pengine/unpack.c static void unpack_rsc_op(pe_resource_t *rsc, pe_node_t *node, xmlNode *xml_op, node 58 lib/pengine/unpack.c static void add_node_attrs(xmlNode *attrs, pe_node_t *node, bool overwrite, node 63 lib/pengine/unpack.c static void unpack_node_lrm(pe_node_t *node, xmlNode *xml, node 71 lib/pengine/unpack.c is_dangling_guest_node(pe_node_t *node) node 76 lib/pengine/unpack.c if (pe__is_guest_or_remote_node(node) && node 77 lib/pengine/unpack.c node->details->remote_rsc && node 78 lib/pengine/unpack.c node->details->remote_rsc->container == NULL && node 79 lib/pengine/unpack.c pcmk_is_set(node->details->remote_rsc->flags, node 97 lib/pengine/unpack.c pe_fence_node(pe_working_set_t * data_set, pe_node_t * node, node 100 lib/pengine/unpack.c CRM_CHECK(node, return); node 103 lib/pengine/unpack.c if (pe__is_guest_node(node)) { node 104 lib/pengine/unpack.c pe_resource_t *rsc = node->details->remote_rsc->container; node 111 lib/pengine/unpack.c node->details->uname, reason, rsc->id); node 115 lib/pengine/unpack.c node->details->uname, rsc->id, reason); node 121 lib/pengine/unpack.c node->details->remote_requires_reset = TRUE; node 126 lib/pengine/unpack.c } else if (is_dangling_guest_node(node)) { node 130 lib/pengine/unpack.c node->details->uname, reason); node 131 lib/pengine/unpack.c pe__set_resource_flags(node->details->remote_rsc, node 134 lib/pengine/unpack.c } else if (pe__is_remote_node(node)) { node 135 lib/pengine/unpack.c pe_resource_t *rsc = node->details->remote_rsc; node 140 lib/pengine/unpack.c node->details->uname, reason); node 141 lib/pengine/unpack.c } else if(node->details->remote_requires_reset == FALSE) { node 142 lib/pengine/unpack.c node->details->remote_requires_reset = TRUE; node 144 lib/pengine/unpack.c node->details->uname, node 145 lib/pengine/unpack.c pe_can_fence(data_set, node)? "will be fenced" : "is unclean", node 148 lib/pengine/unpack.c node->details->unclean = TRUE; node 150 lib/pengine/unpack.c pe_fence_op(node, NULL, TRUE, reason, FALSE, data_set); node 152 lib/pengine/unpack.c } else if (node->details->unclean) { node 154 lib/pengine/unpack.c node->details->uname, node 155 lib/pengine/unpack.c pe_can_fence(data_set, node)? "would also be fenced" : "also is unclean", node 160 lib/pengine/unpack.c node->details->uname, node 161 lib/pengine/unpack.c pe_can_fence(data_set, node)? "will be fenced" : "is unclean", node 163 lib/pengine/unpack.c node->details->unclean = TRUE; node 164 lib/pengine/unpack.c pe_fence_op(node, NULL, TRUE, reason, priority_delay, data_set); node 1030 lib/pengine/unpack.c unpack_transient_attributes(xmlNode *state, pe_node_t *node, node 1036 lib/pengine/unpack.c add_node_attrs(attrs, node, TRUE, data_set); node 1038 lib/pengine/unpack.c if (crm_is_true(pe_node_attribute_raw(node, "standby"))) { node 1039 lib/pengine/unpack.c crm_info("Node %s is in standby-mode", node->details->uname); node 1040 lib/pengine/unpack.c node->details->standby = TRUE; node 1043 lib/pengine/unpack.c if (crm_is_true(pe_node_attribute_raw(node, "maintenance"))) { node 1044 lib/pengine/unpack.c crm_info("Node %s is in maintenance-mode", node->details->uname); node 1045 lib/pengine/unpack.c node->details->maintenance = TRUE; node 1048 lib/pengine/unpack.c discovery = pe_node_attribute_raw(node, XML_NODE_ATTR_RSC_DISCOVERY); node 1052 lib/pengine/unpack.c XML_NODE_ATTR_RSC_DISCOVERY, node->details->uname); node 1285 lib/pengine/unpack.c pe_node_t *node = pe__current_node(container); node 1287 lib/pengine/unpack.c if (node) { node 1288 lib/pengine/unpack.c stop_action(container, node, FALSE); node 1686 lib/pengine/unpack.c pe_node_t *node; node 1689 lib/pengine/unpack.c node = pe_find_node(data_set->nodes, rsc_id); node 1690 lib/pengine/unpack.c if (node == NULL) { node 1691 lib/pengine/unpack.c node = pe_create_node(rsc_id, rsc_id, "remote", NULL, data_set); node 1695 lib/pengine/unpack.c if (node) { node 1697 lib/pengine/unpack.c node->details->shutdown = TRUE; node 1717 lib/pengine/unpack.c pe_node_t *node, pe_working_set_t *data_set) node 1725 lib/pengine/unpack.c top->id, parent->id, rsc_id, node->details->uname); node 1744 lib/pengine/unpack.c find_anonymous_clone(pe_working_set_t * data_set, pe_node_t * node, pe_resource_t * parent, node 1757 lib/pengine/unpack.c pe_rsc_trace(parent, "Looking for %s on %s in %s", rsc_id, node->details->uname, parent->id); node 1785 lib/pengine/unpack.c if (((pe_node_t *)locations->data)->details == node->details) { node 1805 lib/pengine/unpack.c parent->id, node->details->uname); node 1827 lib/pengine/unpack.c && (inactive_instance->pending_node->details != node->details)) { node 1852 lib/pengine/unpack.c && (!node->details->online || node->details->unclean) node 1853 lib/pengine/unpack.c && !pe__is_guest_node(node) node 1860 lib/pengine/unpack.c rsc = create_anonymous_orphan(parent, rsc_id, node, data_set); node 1867 lib/pengine/unpack.c unpack_find_resource(pe_working_set_t * data_set, pe_node_t * node, const char *rsc_id, node 1906 lib/pengine/unpack.c rsc = pe__find_bundle_replica(parent->parent, node); node 1910 lib/pengine/unpack.c rsc = find_anonymous_clone(data_set, node, parent, base); node 1922 lib/pengine/unpack.c rsc_id, node->details->uname, rsc->id, node 1929 lib/pengine/unpack.c process_orphan_resource(xmlNode * rsc_entry, pe_node_t * node, pe_working_set_t * data_set) node 1934 lib/pengine/unpack.c crm_debug("Detected orphan resource %s on %s", rsc_id, node->details->uname); node 1949 lib/pengine/unpack.c process_rsc_state(pe_resource_t * rsc, pe_node_t * node, node 1959 lib/pengine/unpack.c rsc->id, role2text(rsc->role), node->details->uname, fail2text(on_fail)); node 1966 lib/pengine/unpack.c if (g_hash_table_lookup(iter->known_on, node->details->id) == NULL) { node 1967 lib/pengine/unpack.c pe_node_t *n = pe__copy_node(node); node 1982 lib/pengine/unpack.c && node->details->online == FALSE node 1983 lib/pengine/unpack.c && node->details->maintenance == FALSE node 1995 lib/pengine/unpack.c if (pe__is_guest_node(node)) { node 2000 lib/pengine/unpack.c if (pe__is_remote_node(node) && node->details->remote_rsc node 2001 lib/pengine/unpack.c && !pcmk_is_set(node->details->remote_rsc->flags, pe_rsc_failed)) { node 2009 lib/pengine/unpack.c node->details->unseen = TRUE; node 2022 lib/pengine/unpack.c pe_fence_node(data_set, node, reason, FALSE); node 2030 lib/pengine/unpack.c if (node->details->unclean) { node 2044 lib/pengine/unpack.c demote_action(rsc, node, FALSE); node 2052 lib/pengine/unpack.c pe_fence_node(data_set, node, reason, FALSE); node 2057 lib/pengine/unpack.c node->details->standby = TRUE; node 2058 lib/pengine/unpack.c node->details->standby_onfail = TRUE; node 2073 lib/pengine/unpack.c resource_location(rsc, node, -INFINITY, "__action_migration_auto__", data_set); node 2083 lib/pengine/unpack.c stop_action(rsc, node, FALSE); node 2098 lib/pengine/unpack.c stop_action(rsc->container, node, FALSE); node 2100 lib/pengine/unpack.c stop_action(rsc, node, FALSE); node 2125 lib/pengine/unpack.c stop_action(rsc, node, FALSE); node 2151 lib/pengine/unpack.c rsc->id, node->details->uname); node 2156 lib/pengine/unpack.c rsc->id, node->details->uname); node 2160 lib/pengine/unpack.c native_add_running(rsc, node, data_set, (save_on_fail != action_fail_ignore)); node 2182 lib/pengine/unpack.c GList *possible_matches = pe__resource_actions(rsc, node, RSC_STOP, node 2198 lib/pengine/unpack.c process_recurring(pe_node_t * node, pe_resource_t * rsc, node 2219 lib/pengine/unpack.c if (node->details->online == FALSE) { node 2220 lib/pengine/unpack.c pe_rsc_trace(rsc, "Skipping %s/%s: node is offline", rsc->id, node->details->uname); node 2225 lib/pengine/unpack.c pe_rsc_trace(rsc, "Skipping %s/%s: resource is not active", id, node->details->uname); node 2229 lib/pengine/unpack.c pe_rsc_trace(rsc, "Skipping %s/%s: old %d", id, node->details->uname, counter); node 2235 lib/pengine/unpack.c pe_rsc_trace(rsc, "Skipping %s/%s: non-recurring", id, node->details->uname); node 2241 lib/pengine/unpack.c pe_rsc_trace(rsc, "Skipping %s/%s: status", id, node->details->uname); node 2247 lib/pengine/unpack.c pe_rsc_trace(rsc, "Creating %s/%s", key, node->details->uname); node 2248 lib/pengine/unpack.c custom_action(rsc, key, task, node, TRUE, TRUE, data_set); node 2302 lib/pengine/unpack.c unpack_shutdown_lock(xmlNode *rsc_entry, pe_resource_t *rsc, pe_node_t *node, node 2314 lib/pengine/unpack.c rsc->id, node->details->uname); node 2315 lib/pengine/unpack.c pe__clear_resource_history(rsc, node, data_set); node 2317 lib/pengine/unpack.c rsc->lock_node = node; node 2334 lib/pengine/unpack.c unpack_lrm_resource(pe_node_t *node, xmlNode *lrm_resource, node 2362 lib/pengine/unpack.c rsc_id, node->details->uname); node 2379 lib/pengine/unpack.c rsc = unpack_find_resource(data_set, node, rsc_id, lrm_resource); node 2385 lib/pengine/unpack.c rsc = process_orphan_resource(lrm_resource, node, data_set); node 2392 lib/pengine/unpack.c unpack_shutdown_lock(lrm_resource, rsc, node, data_set); node 2408 lib/pengine/unpack.c unpack_rsc_op(rsc, node, rsc_op, &last_failure, &on_fail, data_set); node 2413 lib/pengine/unpack.c process_recurring(node, rsc, start_index, stop_index, sorted_op_list, data_set); node 2418 lib/pengine/unpack.c process_rsc_state(rsc, node, on_fail, migrate_op, data_set); node 2488 lib/pengine/unpack.c unpack_node_lrm(pe_node_t *node, xmlNode *xml, pe_working_set_t *data_set) node 2506 lib/pengine/unpack.c pe_resource_t *rsc = unpack_lrm_resource(node, rsc_entry, data_set); node 2537 lib/pengine/unpack.c pe_node_t *node = value; node 2540 lib/pengine/unpack.c node->weight = *score; node 2545 lib/pengine/unpack.c find_lrm_op(const char *resource, const char *op, const char *node, const char *source, node 2552 lib/pengine/unpack.c offset += snprintf(xpath + offset, STATUS_PATH_MAX - offset, "//node_state[@uname='%s']", node); node 2618 lib/pengine/unpack.c stop_happened_after(pe_resource_t *rsc, pe_node_t *node, xmlNode *xml_op, node 2622 lib/pengine/unpack.c node->details->uname, NULL, TRUE, data_set); node 2628 lib/pengine/unpack.c unpack_migrate_to_success(pe_resource_t *rsc, pe_node_t *node, xmlNode *xml_op, node 2657 lib/pengine/unpack.c CRM_CHECK(source && target && !strcmp(source, node->details->uname), return); node 2659 lib/pengine/unpack.c if (stop_happened_after(rsc, node, xml_op, data_set)) { node 2688 lib/pengine/unpack.c rsc->dangling_migrations = g_list_prepend(rsc->dangling_migrations, node); node 2733 lib/pengine/unpack.c unpack_migrate_to_failure(pe_resource_t *rsc, pe_node_t *node, xmlNode *xml_op, node 2744 lib/pengine/unpack.c CRM_CHECK(source && target && !strcmp(source, node->details->uname), return); node 2797 lib/pengine/unpack.c rsc->dangling_migrations = g_list_prepend(rsc->dangling_migrations, node); node 2802 lib/pengine/unpack.c unpack_migrate_from_failure(pe_resource_t *rsc, pe_node_t *node, node 2811 lib/pengine/unpack.c CRM_CHECK(source && target && !strcmp(target, node->details->uname), return); node 2841 lib/pengine/unpack.c record_failed_op(xmlNode *op, const pe_node_t *node, node 2847 lib/pengine/unpack.c if (node->details->online == FALSE) { node 2855 lib/pengine/unpack.c if(pcmk__str_eq(op_key, key, pcmk__str_casei) && pcmk__str_eq(uname, node->details->uname, pcmk__str_casei)) { node 2856 lib/pengine/unpack.c crm_trace("Skipping duplicate entry %s on %s", op_key, node->details->uname); node 2861 lib/pengine/unpack.c crm_trace("Adding entry %s on %s", op_key, node->details->uname); node 2862 lib/pengine/unpack.c crm_xml_add(op, XML_ATTR_UNAME, node->details->uname); node 2987 lib/pengine/unpack.c unpack_rsc_op_failure(pe_resource_t * rsc, pe_node_t * node, int rc, xmlNode * xml_op, xmlNode ** last_failure, node 3019 lib/pengine/unpack.c (is_probe? "probe" : task), rsc->id, node->details->uname, node 3026 lib/pengine/unpack.c (is_probe? "probe" : task), rsc->id, node->details->uname, node 3038 lib/pengine/unpack.c rsc->id, node->details->uname); node 3041 lib/pengine/unpack.c record_failed_op(xml_op, node, rsc, data_set); node 3052 lib/pengine/unpack.c resource_location(rsc, node, -INFINITY, "__stop_fail__", data_set); node 3055 lib/pengine/unpack.c unpack_migrate_to_failure(rsc, node, xml_op, data_set); node 3058 lib/pengine/unpack.c unpack_migrate_from_failure(rsc, node, xml_op, data_set); node 3094 lib/pengine/unpack.c pcmk__btoa(node->details->unclean), node 3151 lib/pengine/unpack.c pe_resource_t *rsc, int rc, int target_rc, pe_node_t * node, xmlNode * xml_op, enum action_fail_response * on_fail, pe_working_set_t * data_set) node 3185 lib/pengine/unpack.c key, node->details->uname); node 3190 lib/pengine/unpack.c key, node->details->uname, node 3201 lib/pengine/unpack.c rsc->id, node->details->uname, node 3224 lib/pengine/unpack.c rsc->id, node->details->uname, node 3249 lib/pengine/unpack.c if (!pe_can_fence(data_set, node) node 3255 lib/pengine/unpack.c node->details->uname, services_ocf_exitcode_str(rc), node 3268 lib/pengine/unpack.c rc, task, rsc->id, node->details->uname, node 3280 lib/pengine/unpack.c pe_resource_t *rsc, pe_node_t *node, node 3290 lib/pengine/unpack.c pe__add_param_check(xml_op, rsc, node, pe_check_last_failure, node 3296 lib/pengine/unpack.c digest_data = rsc_action_digest_cmp(rsc, xml_op, node, data_set); node 3301 lib/pengine/unpack.c rsc->id, get_op_key(xml_op), node->details->id); node 3393 lib/pengine/unpack.c check_operation_expiry(pe_resource_t *rsc, pe_node_t *node, int rc, node 3423 lib/pengine/unpack.c unexpired_fail_count = pe_get_failcount(node, rsc, &last_failure, node 3440 lib/pengine/unpack.c if (pe_get_failcount(node, rsc, NULL, pe_fc_default, xml_op, data_set)) { node 3467 lib/pengine/unpack.c && should_clear_for_param_change(xml_op, task, rsc, node, data_set)) { node 3473 lib/pengine/unpack.c pe_action_t *clear_op = pe__clear_failcount(rsc, node, clear_reason, node 3533 lib/pengine/unpack.c update_resource_state(pe_resource_t * rsc, pe_node_t * node, xmlNode * xml_op, const char * task, int rc, node 3586 lib/pengine/unpack.c unpack_migrate_to_success(rsc, node, xml_op, data_set); node 3589 lib/pengine/unpack.c pe_rsc_trace(rsc, "%s active on %s", rsc->id, node->details->uname); node 3650 lib/pengine/unpack.c remap_monitor_rc(int rc, xmlNode *xml_op, const pe_node_t *node, node 3657 lib/pengine/unpack.c if (!node->details->shutdown || node->details->online) { node 3658 lib/pengine/unpack.c record_failed_op(xml_op, node, rsc, data_set); node 3665 lib/pengine/unpack.c unpack_rsc_op(pe_resource_t *rsc, pe_node_t *node, xmlNode *xml_op, node 3681 lib/pengine/unpack.c CRM_CHECK(rsc && node && xml_op, return); node 3711 lib/pengine/unpack.c task_key, task, task_id, status, rc, node->details->uname, role2text(rsc->role)); node 3713 lib/pengine/unpack.c if (node->details->unclean) { node 3716 lib/pengine/unpack.c node->details->uname, rsc->id); node 3732 lib/pengine/unpack.c && check_operation_expiry(rsc, node, rc, xml_op, data_set)) { node 3737 lib/pengine/unpack.c rc = remap_monitor_rc(rc, xml_op, node, rsc, data_set); node 3746 lib/pengine/unpack.c task_key, node->details->uname, rc, target_rc, magic); node 3749 lib/pengine/unpack.c } else if(node->details->online && node->details->unclean == FALSE) { node 3762 lib/pengine/unpack.c task_key, node->details->uname, rc, target_rc, magic); node 3774 lib/pengine/unpack.c status = determine_op_status(rsc, rc, target_rc, node, xml_op, on_fail, data_set); node 3783 lib/pengine/unpack.c ID(xml_op), task, rsc->id, node->details->uname, node 3795 lib/pengine/unpack.c } else if (!strcmp(task, CRMD_ACTION_MIGRATE) && node->details->unclean) { node 3808 lib/pengine/unpack.c rsc->pending_node = node; node 3817 lib/pengine/unpack.c rsc->pending_node = node; node 3825 lib/pengine/unpack.c task, rsc->id, node->details->uname, node 3827 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, rc, *last_failure, on_fail, data_set); node 3836 lib/pengine/unpack.c task, rsc->id, node->details->uname, status, rc, node 3841 lib/pengine/unpack.c resource_location(parent, node, -INFINITY, "hard-error", data_set); node 3842 lib/pengine/unpack.c unpack_rsc_op_failure(rsc, node, rc, xml_op, last_failure, on_fail, data_set); node 3846 lib/pengine/unpack.c if (pe__is_guest_or_remote_node(node) node 3847 lib/pengine/unpack.c && pcmk_is_set(node->details->remote_rsc->flags, pe_rsc_managed)) { node 3854 lib/pengine/unpack.c pe__set_resource_flags(node->details->remote_rsc, node 3876 lib/pengine/unpack.c node->details->uname, last_change_str(xml_op), rc, node 3879 lib/pengine/unpack.c update_resource_state(rsc, node, xml_op, task, target_rc, *last_failure, on_fail, data_set); node 3880 lib/pengine/unpack.c crm_xml_add(xml_op, XML_ATTR_UNAME, node->details->uname); node 3883 lib/pengine/unpack.c record_failed_op(xml_op, node, rsc, data_set); node 3891 lib/pengine/unpack.c unpack_rsc_op_failure(rsc, node, rc, xml_op, last_failure, on_fail, data_set); node 3897 lib/pengine/unpack.c parent->id, node->details->uname, node 3901 lib/pengine/unpack.c resource_location(parent, node, -INFINITY, "hard-error", data_set); node 3922 lib/pengine/unpack.c add_node_attrs(xmlNode *xml_obj, pe_node_t *node, bool overwrite, node 3936 lib/pengine/unpack.c g_hash_table_insert(node->details->attrs, node 3937 lib/pengine/unpack.c strdup(CRM_ATTR_UNAME), strdup(node->details->uname)); node 3939 lib/pengine/unpack.c g_hash_table_insert(node->details->attrs, strdup(CRM_ATTR_ID), node 3940 lib/pengine/unpack.c strdup(node->details->id)); node 3941 lib/pengine/unpack.c if (pcmk__str_eq(node->details->id, data_set->dc_uuid, pcmk__str_casei)) { node 3942 lib/pengine/unpack.c data_set->dc_node = node; node 3943 lib/pengine/unpack.c node->details->is_dc = TRUE; node 3944 lib/pengine/unpack.c g_hash_table_insert(node->details->attrs, node 3947 lib/pengine/unpack.c g_hash_table_insert(node->details->attrs, node 3953 lib/pengine/unpack.c g_hash_table_insert(node->details->attrs, strdup(CRM_ATTR_CLUSTER_NAME), node 3958 lib/pengine/unpack.c node->details->attrs, NULL, overwrite, data_set); node 3960 lib/pengine/unpack.c if (pe_node_attribute_raw(node, CRM_ATTR_SITE_NAME) == NULL) { node 3961 lib/pengine/unpack.c const char *site_name = pe_node_attribute_raw(node, "site-name"); node 3964 lib/pengine/unpack.c g_hash_table_insert(node->details->attrs, node 3970 lib/pengine/unpack.c g_hash_table_insert(node->details->attrs, node 3978 lib/pengine/unpack.c extract_operations(const char *node, const char *rsc, xmlNode * rsc_entry, gboolean active_filter) node 4000 lib/pengine/unpack.c crm_xml_add(rsc_op, XML_ATTR_UNAME, node); node 4042 lib/pengine/unpack.c find_operations(const char *rsc, const char *node, gboolean active_filter, node 4061 lib/pengine/unpack.c if (node != NULL && !pcmk__str_eq(uname, node, pcmk__str_casei)) { node 90 lib/pengine/utils.c pe_can_fence(pe_working_set_t *data_set, pe_node_t *node) node 92 lib/pengine/utils.c if (pe__is_guest_node(node)) { node 96 lib/pengine/utils.c pe_resource_t *rsc = node->details->remote_rsc->container; node 120 lib/pengine/utils.c } else if(node == NULL) { node 123 lib/pengine/utils.c } else if(node->details->online) { node 124 lib/pengine/utils.c crm_notice("We can fence %s without quorum because they're in our membership", node->details->uname); node 128 lib/pengine/utils.c crm_trace("Cannot fence %s", node->details->uname); node 168 lib/pengine/utils.c pe_node_t *node = NULL; node 171 lib/pengine/utils.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 173 lib/pengine/utils.c other_node = pe_find_node_id(list, node->details->id); node 175 lib/pengine/utils.c node->weight = -INFINITY; node 177 lib/pengine/utils.c node->weight = pe__add_scores(node->weight, other_node->weight); node 182 lib/pengine/utils.c pe_node_t *node = (pe_node_t *) gIter->data; node 184 lib/pengine/utils.c other_node = pe_hash_table_lookup(result, node->details->id); node 187 lib/pengine/utils.c pe_node_t *new_node = pe__copy_node(node); node 243 lib/pengine/utils.c pe_node_t *node = (pe_node_t *) gIter->data; node 245 lib/pengine/utils.c score2char_stack(node->weight, score, sizeof(score)); node 246 lib/pengine/utils.c out->message(out, "node-weight", rsc, comment, node->details->uname, score); node 267 lib/pengine/utils.c pe_node_t *node = NULL; node 274 lib/pengine/utils.c while (g_hash_table_iter_next(&iter, NULL, (void **) &node)) { node 275 lib/pengine/utils.c score2char_stack(node->weight, score, sizeof(score)); node 281 lib/pengine/utils.c node->details->uname, score); node 285 lib/pengine/utils.c comment, node->details->uname, node 473 lib/pengine/utils.c action->node = pe__copy_node(on_node); node 528 lib/pengine/utils.c && action->node != NULL && action->op_entry != NULL) { node 530 lib/pengine/utils.c .node_hash = action->node->details->attrs, node 547 lib/pengine/utils.c } else if (action->node == NULL) { node 556 lib/pengine/utils.c action->uuid, action->node->details->uname, rsc->id); node 561 lib/pengine/utils.c && !(action->node->details->online) node 562 lib/pengine/utils.c && (!pe__is_guest_node(action->node) node 563 lib/pengine/utils.c || action->node->details->remote_requires_reset)) { node 567 lib/pengine/utils.c action->uuid, action->node->details->uname); node 570 lib/pengine/utils.c && action->node->details->unclean == FALSE) { node 571 lib/pengine/utils.c pe_fence_node(data_set, action->node, "resource actions are unrunnable", FALSE); node 575 lib/pengine/utils.c && action->node->details->pending) { node 579 lib/pengine/utils.c action->uuid, action->node->details->uname); node 583 lib/pengine/utils.c if (pe__is_guest_node(action->node) node 584 lib/pengine/utils.c && !pe_can_fence(data_set, action->node)) { node 592 lib/pengine/utils.c action->uuid, action->node->details->uname); node 596 lib/pengine/utils.c action->uuid, action->node->details->uname); node 610 lib/pengine/utils.c action->uuid, action->node->details->uname); node 617 lib/pengine/utils.c action->uuid, action->node->details->uname); node 1059 lib/pengine/utils.c GHashTable *params = pe_rsc_params(action->rsc, action->node, data_set); node 1360 lib/pengine/utils.c free(action->node); node 1387 lib/pengine/utils.c } else if (action->node == NULL) { node 1389 lib/pengine/utils.c } else if (action->node->details != not_on_node->details) { node 1440 lib/pengine/utils.c } else if (action->node == NULL) { node 1443 lib/pengine/utils.c } else if (on_node->details == action->node->details) { node 1470 lib/pengine/utils.c } else if (action->node == NULL) { node 1474 lib/pengine/utils.c action->node = pe__copy_node(on_node); node 1477 lib/pengine/utils.c } else if (on_node->details == action->node->details) { node 1483 lib/pengine/utils.c key, action->node->details->uname, node 1507 lib/pengine/utils.c if (action->node == NULL) { node 1514 lib/pengine/utils.c } else if (!pcmk__str_eq(on_node->details->id, action->node->details->id, pcmk__str_casei)) { node 1516 lib/pengine/utils.c key, on_node->details->id, action->node->details->id); node 1540 lib/pengine/utils.c pe__resource_actions(const pe_resource_t *rsc, const pe_node_t *node, node 1547 lib/pengine/utils.c result = find_actions_exact(rsc->actions, key, node); node 1549 lib/pengine/utils.c result = find_actions(rsc->actions, key, node); node 1556 lib/pengine/utils.c resource_node_score(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag) node 1560 lib/pengine/utils.c if ((rsc->exclusive_discover || (node->rsc_discover_mode == pe_discover_never)) node 1574 lib/pengine/utils.c resource_node_score(child_rsc, node, score, tag); node 1578 lib/pengine/utils.c pe_rsc_trace(rsc, "Setting %s for %s on %s: %d", tag, rsc->id, node->details->uname, score); node 1579 lib/pengine/utils.c match = pe_hash_table_lookup(rsc->allowed_nodes, node->details->id); node 1581 lib/pengine/utils.c match = pe__copy_node(node); node 1588 lib/pengine/utils.c resource_location(pe_resource_t * rsc, pe_node_t * node, int score, const char *tag, node 1591 lib/pengine/utils.c if (node != NULL) { node 1592 lib/pengine/utils.c resource_node_score(rsc, node, score, tag); node 1613 lib/pengine/utils.c if (node == NULL && score == -INFINITY) { node 1968 lib/pengine/utils.c node_priority_fencing_delay(pe_node_t * node, pe_working_set_t * data_set) node 1983 lib/pengine/utils.c if (node->details->type != node_member) { node 1988 lib/pengine/utils.c if (node->details->online) { node 2027 lib/pengine/utils.c if (node->details->priority < top_priority) { node 2035 lib/pengine/utils.c pe_fence_op(pe_node_t * node, const char *op, bool optional, const char *reason, node 2045 lib/pengine/utils.c op_key = crm_strdup_printf("%s-%s-%s", CRM_OP_FENCE, node->details->uname, op); node 2052 lib/pengine/utils.c stonith_op = custom_action(NULL, op_key, CRM_OP_FENCE, node, TRUE, TRUE, data_set); node 2054 lib/pengine/utils.c add_hash_param(stonith_op->meta, XML_LRM_ATTR_TARGET, node->details->uname); node 2055 lib/pengine/utils.c add_hash_param(stonith_op->meta, XML_LRM_ATTR_TARGET_UUID, node->details->id); node 2058 lib/pengine/utils.c if (pe__is_guest_or_remote_node(node) node 2079 lib/pengine/utils.c data = pe__compare_fencing_digest(match, agent, node, data_set); node 2082 lib/pengine/utils.c crm_notice("Unfencing %s (remote): because the definition of %s changed", node->details->uname, match->id); node 2086 lib/pengine/utils.c node->details->uname, match->id); node 2126 lib/pengine/utils.c char *delay_s = pcmk__itoa(node_priority_fencing_delay(node, data_set)); node 2133 lib/pengine/utils.c if(optional == FALSE && pe_can_fence(data_set, node)) { node 2144 lib/pengine/utils.c pe_resource_t * rsc, pe_node_t *node, const char *reason, pe_action_t *dependency, pe_working_set_t * data_set) node 2155 lib/pengine/utils.c } else if(node node 2156 lib/pengine/utils.c && node->details->online node 2157 lib/pengine/utils.c && node->details->unclean == FALSE node 2158 lib/pengine/utils.c && node->details->shutdown == FALSE) { node 2159 lib/pengine/utils.c pe_action_t *unfence = pe_fence_op(node, "on", FALSE, reason, FALSE, data_set); node 2169 lib/pengine/utils.c while (g_hash_table_iter_next(&iter, NULL, (void **)&node)) { node 2170 lib/pengine/utils.c if(node->details->online && node->details->unclean == FALSE && node->details->shutdown == FALSE) { node 2171 lib/pengine/utils.c trigger_unfencing(rsc, node, reason, dependency, data_set); node 2306 lib/pengine/utils.c pe__shutdown_requested(pe_node_t *node) node 2308 lib/pengine/utils.c const char *shutdown = pe_node_attribute_raw(node, XML_CIB_ATTR_SHUTDOWN); node 2381 lib/pengine/utils.c pe__clear_resource_history(pe_resource_t *rsc, pe_node_t *node, node 2386 lib/pengine/utils.c CRM_ASSERT(rsc && node); node 2388 lib/pengine/utils.c return custom_action(rsc, key, CRM_OP_LRM_DELETE, node, FALSE, TRUE, node 2396 lib/pengine/utils.c pe_node_t *node = (pe_node_t *) ele->data; node 2397 lib/pengine/utils.c if (pcmk__str_in_list(node_list, node->details->uname)) { node 2442 lib/pengine/utils.c pe_node_t *node = pe_find_node(data_set->nodes, s); node 2444 lib/pengine/utils.c if (node) { node 47 lib/pengine/variant.h pe_node_t *node; node 284 tools/crm_mon.c GSList *node = lst; node 292 tools/crm_mon.c while (node != NULL) { node 293 tools/crm_mon.c char *s = node->data; node 309 tools/crm_mon.c node = node->next; node 1761 tools/crm_mon.c pe_node_t *node = (pe_node_t *) gIter->data; node 1763 tools/crm_mon.c if (node->details->standby && node->details->online) { node 1765 tools/crm_mon.c } else if (node->details->maintenance && node->details->online) { node 1767 tools/crm_mon.c } else if (node->details->online) { node 1770 tools/crm_mon.c char *s = crm_strdup_printf("offline node: %s", node->details->uname); node 1814 tools/crm_mon.c send_custom_trap(const char *node, const char *rsc, const char *task, int target_rc, int rc, node 1832 tools/crm_mon.c setenv("CRM_notify_node", node, 1); node 1869 tools/crm_mon.c const char *node = NULL; node 1907 tools/crm_mon.c node = crm_element_value(rsc_op, XML_LRM_ATTR_TARGET); node 1913 tools/crm_mon.c if(node == NULL && n) { node 1914 tools/crm_mon.c node = crm_element_value(n, XML_ATTR_UNAME); node 1917 tools/crm_mon.c if (node == NULL && n) { node 1918 tools/crm_mon.c node = ID(n); node 1921 tools/crm_mon.c if (node == NULL) { node 1922 tools/crm_mon.c node = node_id; node 1925 tools/crm_mon.c if (node == NULL) { node 1933 tools/crm_mon.c crm_notice("%s of %s on %s completed: %s", task, rsc, node, desc); node 1940 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); node 1944 tools/crm_mon.c crm_warn("%s of %s on %s failed: %s", task, rsc, node, desc); node 1948 tools/crm_mon.c send_custom_trap(node, rsc, task, target_rc, rc, status, desc); node 1978 tools/crm_mon.c const char *node = NULL; node 2018 tools/crm_mon.c node = crm_element_value(state, XML_ATTR_UNAME); node 2019 tools/crm_mon.c if (node == NULL) { node 2020 tools/crm_mon.c node = ID(state); node 2022 tools/crm_mon.c handle_rsc_op(state, node); node 2031 tools/crm_mon.c node = crm_element_value(state, XML_ATTR_UNAME); node 2032 tools/crm_mon.c if (node == NULL) { node 2033 tools/crm_mon.c node = ID(state); node 2035 tools/crm_mon.c handle_rsc_op(state, node); node 2039 tools/crm_mon.c node = crm_element_value(match, XML_ATTR_UNAME); node 2040 tools/crm_mon.c if (node == NULL) { node 2041 tools/crm_mon.c node = ID(match); node 2043 tools/crm_mon.c handle_rsc_op(match, node); node 2046 tools/crm_mon.c node = ID(match); node 2047 tools/crm_mon.c handle_rsc_op(match, node); node 242 tools/crm_mon_curses.c curses_list_data_t *node = NULL; node 247 tools/crm_mon_curses.c node = g_queue_pop_tail(priv->parent_q); node 249 tools/crm_mon_curses.c if (node->singular_noun != NULL && node->plural_noun != NULL) { node 250 tools/crm_mon_curses.c if (node->len == 1) { node 251 tools/crm_mon_curses.c curses_indented_printf(out, "%d %s found\n", node->len, node->singular_noun); node 253 tools/crm_mon_curses.c curses_indented_printf(out, "%d %s found\n", node->len, node->plural_noun); node 257 tools/crm_mon_curses.c free(node); node 232 tools/crm_node.c pcmk_controld_api_node_t *node = node_iter->data; node 233 tools/crm_node.c const char *uname = (node->uname? node->uname : ""); node 234 tools/crm_node.c const char *state = (node->state? node->state : ""); node 238 tools/crm_node.c (unsigned long) node->id, uname, state); node 333 tools/crm_node.c xmlNode *node = NULL; node 342 tools/crm_node.c node = create_xml_node(NULL, XML_CIB_TAG_NODE); node 345 tools/crm_node.c crm_xml_add(node, XML_ATTR_UNAME, name); node 348 tools/crm_node.c crm_xml_set_id(node, "%ld", id); node 349 tools/crm_node.c crm_xml_add(node_state, XML_ATTR_ID, ID(node)); node 355 tools/crm_node.c rc = cib->cmds->remove(cib, XML_CIB_TAG_NODES, node, cib_sync_call); node 1263 tools/crm_resource.c pe_node_t *node = pe_find_node(data_set->nodes, options.host_uname); node 1265 tools/crm_resource.c if (pe__is_guest_or_remote_node(node)) { node 1266 tools/crm_resource.c node = pe__current_node(node->details->remote_rsc); node 1267 tools/crm_resource.c if (node == NULL) { node 1274 tools/crm_resource.c router_node = node->details->uname; node 1516 tools/crm_resource.c pe_node_t *node = NULL; node 1745 tools/crm_resource.c node = pe_find_node(data_set->nodes, options.host_uname); node 1843 tools/crm_resource.c node = pe_find_node(data_set->nodes, options.host_uname); node 1844 tools/crm_resource.c if (node == NULL) { node 1847 tools/crm_resource.c rc = pcmk__resource_digests(out, rsc, node, node 1909 tools/crm_resource.c if ((options.host_uname != NULL) && (node == NULL)) { node 1913 tools/crm_resource.c data_set->resources, rsc, node); node 1942 tools/crm_resource.c } else if (node == NULL) { node 1945 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, node->details->uname, node 55 tools/crm_resource.h const char *rsc, const char *node, gboolean promoted_role_only); node 345 tools/crm_resource_ban.c build_clear_xpath_string(xmlNode *constraint_node, const char *rsc, const char *node, gboolean promoted_role_only) node 367 tools/crm_resource_ban.c if (node != NULL || rsc != NULL || promoted_role_only == TRUE) { node 370 tools/crm_resource_ban.c if (node != NULL) { node 372 tools/crm_resource_ban.c offset += snprintf(first_half + offset, XPATH_MAX - offset, "@node='%s' and ", node); node 374 tools/crm_resource_ban.c offset += snprintf(first_half + offset, XPATH_MAX - offset, "@node='%s'", node); node 397 tools/crm_resource_ban.c if (node != NULL) { node 400 tools/crm_resource_ban.c first_half, rsc_role_substr, node, date_substr); node 403 tools/crm_resource_ban.c first_half, node, date_substr); node 419 tools/crm_resource_ban.c const char *rsc, const char *node, gboolean promoted_role_only) node 436 tools/crm_resource_ban.c xpath_string = build_clear_xpath_string(constraint_node, rsc, node, promoted_role_only); node 62 tools/crm_resource_print.c pe_node_t *node = pe__current_node(rsc); node 70 tools/crm_resource_print.c if (node != NULL) { node 71 tools/crm_resource_print.c host = node->details->uname; node 256 tools/crm_resource_print.c xmlNodePtr node = pcmk__output_create_xml_node(out, "check", node 261 tools/crm_resource_print.c crm_xml_add(node, "remain_stopped", "true"); node 265 tools/crm_resource_print.c crm_xml_add(node, "promotable", "false"); node 269 tools/crm_resource_print.c crm_xml_add(node, "unmanaged", "true"); node 273 tools/crm_resource_print.c crm_xml_add(node, "locked-to", checks->lock_node); node 358 tools/crm_resource_print.c pe_node_t *node = va_arg(args, pe_node_t *); node 360 tools/crm_resource_print.c const char *host_uname = (node == NULL)? NULL : node->details->uname; node 395 tools/crm_resource_print.c const char* host_uname = node->details->uname; node 396 tools/crm_resource_print.c GList *allResources = node->details->allocated_rsc; node 397 tools/crm_resource_print.c GList *activeResources = node->details->running_rsc; node 441 tools/crm_resource_print.c pe_node_t *node = va_arg(args, pe_node_t *); node 443 tools/crm_resource_print.c const char *host_uname = (node == NULL)? NULL : node->details->uname; node 479 tools/crm_resource_print.c const char* host_uname = node->details->uname; node 480 tools/crm_resource_print.c GList *allResources = node->details->allocated_rsc; node 481 tools/crm_resource_print.c GList *activeResources = node->details->running_rsc; node 54 tools/crm_resource_runtime.c pe_node_t *node = (pe_node_t *) iter2->data; node 56 tools/crm_resource_runtime.c ni->node_name = node->details->uname; node 88 tools/crm_resource_runtime.c pe_node_t *node = (pe_node_t *) iter->data; node 90 tools/crm_resource_runtime.c ni->node_name = node->details->uname; node 534 tools/crm_resource_runtime.c pe_node_t *node = pe_find_node(data_set->nodes, host_uname); node 536 tools/crm_resource_runtime.c if (node == NULL) { node 541 tools/crm_resource_runtime.c if (!(node->details->online)) { node 549 tools/crm_resource_runtime.c if (!cib_only && pe__is_guest_or_remote_node(node)) { node 550 tools/crm_resource_runtime.c node = pe__current_node(node->details->remote_rsc); node 551 tools/crm_resource_runtime.c if (node == NULL) { node 556 tools/crm_resource_runtime.c router_node = node->details->uname; node 704 tools/crm_resource_runtime.c const char *interval_spec, pe_node_t *node) node 710 tools/crm_resource_runtime.c if (pe__is_guest_or_remote_node(node)) { node 713 tools/crm_resource_runtime.c rc = pcmk__node_attr_request_clear(NULL, node->details->uname, rsc_name, node 729 tools/crm_resource_runtime.c pe_node_t *node = NULL; node 758 tools/crm_resource_runtime.c pe_node_t *node = NULL; node 761 tools/crm_resource_runtime.c while (g_hash_table_iter_next(&iter, NULL, (void**)&node)) { node 762 tools/crm_resource_runtime.c if(node->weight >= 0) { node 763 tools/crm_resource_runtime.c nodes = g_list_prepend(nodes, node); node 772 tools/crm_resource_runtime.c node = (pe_node_t *) lpc->data; node 774 tools/crm_resource_runtime.c if (node->details->online) { node 775 tools/crm_resource_runtime.c rc = cli_resource_delete(controld_api, node->details->uname, node 789 tools/crm_resource_runtime.c node = pe_find_node(data_set->nodes, host_uname); node 791 tools/crm_resource_runtime.c if (node == NULL) { node 797 tools/crm_resource_runtime.c if (!node->details->rsc_discovery_enabled) { node 809 tools/crm_resource_runtime.c rc = clear_rsc_fail_attrs(rsc, operation, interval_spec, node); node 849 tools/crm_resource_runtime.c pe_node_t *node = pe_find_node(data_set->nodes, node_name); node 851 tools/crm_resource_runtime.c if (node == NULL) { node 855 tools/crm_resource_runtime.c if (pe__is_guest_or_remote_node(node)) { node 878 tools/crm_resource_runtime.c pe_node_t *node = (pe_node_t *) iter->data; node 880 tools/crm_resource_runtime.c rc = clear_rsc_failures(out, controld_api, node->details->uname, NULL, node 931 tools/crm_resource_runtime.c generate_resource_params(pe_resource_t *rsc, pe_node_t *node, node 943 tools/crm_resource_runtime.c params = pe_rsc_params(rsc, node, data_set); node 952 tools/crm_resource_runtime.c get_meta_attributes(meta, rsc, node, data_set); node 978 tools/crm_resource_runtime.c pe_node_t *node = (pe_node_t *) hIter->data; node 980 tools/crm_resource_runtime.c if(strcmp(host, node->details->uname) == 0) { node 983 tools/crm_resource_runtime.c } else if(strcmp(host, node->details->id) == 0) { node 1584 tools/crm_resource_runtime.c if (a->node) { node 1585 tools/crm_resource_runtime.c out->info(out, "\tAction %d: %s\ton %s", a->id, a->uuid, a->node->details->uname); node 433 tools/crm_simulate.c if (action->node) { node 434 tools/crm_simulate.c action_host = action->node->details->uname;