xml_rsc 543 daemons/controld/controld_execd.c xmlNode *xml_rsc = create_xml_node(rsc_list, XML_LRM_TAG_RESOURCE); xml_rsc 545 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_ATTR_ID, entry->id); xml_rsc 546 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_ATTR_TYPE, entry->rsc.type); xml_rsc 547 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_CLASS, entry->rsc.standard); xml_rsc 548 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_PROVIDER, entry->rsc.provider); xml_rsc 554 daemons/controld/controld_execd.c crm_xml_add(xml_rsc, XML_RSC_ATTR_CONTAINER, container); xml_rsc 557 daemons/controld/controld_execd.c controld_add_resource_history_xml(xml_rsc, &(entry->rsc), entry->failed, xml_rsc 559 daemons/controld/controld_execd.c controld_add_resource_history_xml(xml_rsc, &(entry->rsc), entry->last, xml_rsc 562 daemons/controld/controld_execd.c controld_add_resource_history_xml(xml_rsc, &(entry->rsc), gIter->data, xml_rsc 1102 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(action, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1104 daemons/controld/controld_execd.c if ((xml_rsc == NULL) || (ID(xml_rsc) == NULL)) { xml_rsc 1114 daemons/controld/controld_execd.c ID(xml_rsc), rc, target_node); xml_rsc 1118 daemons/controld/controld_execd.c op = construct_op(lrm_state, action, ID(xml_rsc), operation); xml_rsc 1163 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(xml, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1165 daemons/controld/controld_execd.c CRM_CHECK(xml_rsc != NULL, return); xml_rsc 1175 daemons/controld/controld_execd.c op = construct_op(lrm_state, xml, ID(xml_rsc), "asyncmon"); xml_rsc 1182 daemons/controld/controld_execd.c crm_err("%s does not have permission to fail %s", user_name, ID(xml_rsc)); xml_rsc 1186 daemons/controld/controld_execd.c controld_ack_event_directly(from_host, from_sys, NULL, op, ID(xml_rsc)); xml_rsc 1192 daemons/controld/controld_execd.c if (get_lrm_resource(lrm_state, xml_rsc, TRUE, &rsc) == pcmk_ok) { xml_rsc 1207 daemons/controld/controld_execd.c controld_ack_event_directly(from_host, from_sys, NULL, op, ID(xml_rsc)); xml_rsc 1488 daemons/controld/controld_execd.c xmlNode *xml_rsc = find_xml_node(input->xml, XML_CIB_TAG_RESOURCE, TRUE); xml_rsc 1494 daemons/controld/controld_execd.c CRM_CHECK(xml_rsc && ID(xml_rsc), return); xml_rsc 1496 daemons/controld/controld_execd.c rc = get_lrm_resource(lrm_state, xml_rsc, create_rsc, &rsc); xml_rsc 1510 daemons/controld/controld_execd.c ID(xml_rsc), operation, xml_rsc 1512 daemons/controld/controld_execd.c delete_rsc_entry(lrm_state, input, ID(xml_rsc), NULL, pcmk_ok, xml_rsc 1518 daemons/controld/controld_execd.c crm_err("Invalid resource definition for %s", ID(xml_rsc)); xml_rsc 1529 daemons/controld/controld_execd.c ID(xml_rsc), pcmk_strerror(rc), rc); xml_rsc 594 daemons/controld/controld_messages.c xmlNode *xml_rsc = first_named_child(xml_op, XML_CIB_TAG_RESOURCE); xml_rsc 597 daemons/controld/controld_messages.c if (xml_rsc) { xml_rsc 598 daemons/controld/controld_messages.c rsc = ID(xml_rsc); xml_rsc 495 lib/common/ipc_controld.c xmlNode *request, *msg_data, *xml_rsc, *params; xml_rsc 525 lib/common/ipc_controld.c xml_rsc = create_xml_node(msg_data, XML_CIB_TAG_RESOURCE); xml_rsc 526 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_ATTR_ID, rsc_id); xml_rsc 527 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_ATTR_ID_LONG, rsc_long_id); xml_rsc 528 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_CLASS, standard); xml_rsc 529 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_AGENT_ATTR_PROVIDER, provider); xml_rsc 530 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_ATTR_TYPE, type); xml_rsc 398 lib/pacemaker/pcmk_sched_colocation.c xmlNode *xml_rsc = NULL; xml_rsc 427 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 428 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 430 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 444 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 445 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 447 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 466 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 467 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 472 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(set_id, resource, ID(xml_rsc)); xml_rsc 498 lib/pacemaker/pcmk_sched_colocation.c xmlNode *xml_rsc = NULL; xml_rsc 517 lib/pacemaker/pcmk_sched_colocation.c xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 518 lib/pacemaker/pcmk_sched_colocation.c if (xml_rsc != NULL) { xml_rsc 519 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 528 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 529 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 531 lib/pacemaker/pcmk_sched_colocation.c rid = ID(xml_rsc); xml_rsc 544 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 545 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 547 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 553 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 554 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 556 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 564 lib/pacemaker/pcmk_sched_colocation.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 565 lib/pacemaker/pcmk_sched_colocation.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 570 lib/pacemaker/pcmk_sched_colocation.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 233 lib/pacemaker/pcmk_sched_constraints.c for (xmlNode *xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 234 lib/pacemaker/pcmk_sched_constraints.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 239 lib/pacemaker/pcmk_sched_constraints.c if (!pcmk__valid_resource_or_tag(data_set, ID(xml_rsc), &rsc, xml_rsc 243 lib/pacemaker/pcmk_sched_constraints.c ID(xml_obj), ID(xml_rsc)); xml_rsc 252 lib/pacemaker/pcmk_sched_constraints.c xmlNode *last_ref = xml_rsc; xml_rsc 293 lib/pacemaker/pcmk_sched_constraints.c tag_refs = g_list_append(tag_refs, xml_rsc); xml_rsc 442 lib/pacemaker/pcmk_sched_location.c xmlNode *xml_rsc = NULL; xml_rsc 461 lib/pacemaker/pcmk_sched_location.c for (xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 462 lib/pacemaker/pcmk_sched_location.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 465 lib/pacemaker/pcmk_sched_location.c ID(xml_rsc)); xml_rsc 468 lib/pacemaker/pcmk_sched_location.c set_id, ID(xml_rsc)); xml_rsc 625 lib/pacemaker/pcmk_sched_ordering.c for (const xmlNode *xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 626 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 628 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, resource, ID(xml_rsc)); xml_rsc 712 lib/pacemaker/pcmk_sched_ordering.c const xmlNode *xml_rsc = NULL; xml_rsc 762 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 763 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 765 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 796 lib/pacemaker/pcmk_sched_ordering.c xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 797 lib/pacemaker/pcmk_sched_ordering.c if (xml_rsc != NULL) { xml_rsc 798 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 805 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 806 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 808 lib/pacemaker/pcmk_sched_ordering.c rid = ID(xml_rsc); xml_rsc 819 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 820 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 822 lib/pacemaker/pcmk_sched_ordering.c rid = ID(xml_rsc); xml_rsc 828 lib/pacemaker/pcmk_sched_ordering.c xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 829 lib/pacemaker/pcmk_sched_ordering.c if (xml_rsc != NULL) { xml_rsc 830 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 839 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set2, XML_TAG_RESOURCE_REF); xml_rsc 840 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 842 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_2, ID(xml_rsc)); xml_rsc 848 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 849 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 851 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 857 lib/pacemaker/pcmk_sched_ordering.c for (xml_rsc = first_named_child(set1, XML_TAG_RESOURCE_REF); xml_rsc 858 lib/pacemaker/pcmk_sched_ordering.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 860 lib/pacemaker/pcmk_sched_ordering.c EXPAND_CONSTRAINT_IDREF(id, rsc_1, ID(xml_rsc)); xml_rsc 259 lib/pacemaker/pcmk_sched_tickets.c for (xmlNode *xml_rsc = first_named_child(set, XML_TAG_RESOURCE_REF); xml_rsc 260 lib/pacemaker/pcmk_sched_tickets.c xml_rsc != NULL; xml_rsc = crm_next_same_xml(xml_rsc)) { xml_rsc 265 lib/pacemaker/pcmk_sched_tickets.c ID(xml_rsc)); xml_rsc 268 lib/pacemaker/pcmk_sched_tickets.c set_id, ID(xml_rsc)); xml_rsc 1700 lib/pengine/unpack.c xmlNode *xml_rsc = create_xml_node(NULL, XML_CIB_TAG_RESOURCE); xml_rsc 1702 lib/pengine/unpack.c copy_in_properties(xml_rsc, rsc_entry); xml_rsc 1703 lib/pengine/unpack.c crm_xml_add(xml_rsc, XML_ATTR_ID, rsc_id); xml_rsc 1704 lib/pengine/unpack.c crm_log_xml_debug(xml_rsc, "Orphan resource"); xml_rsc 1706 lib/pengine/unpack.c if (pe__unpack_resource(xml_rsc, &rsc, NULL, data_set) != pcmk_rc_ok) { xml_rsc 1710 lib/pengine/unpack.c if (xml_contains_remote_node(xml_rsc)) {