rsc_id 286 daemons/controld/controld_based.c controld_delete_resource_history(const char *rsc_id, const char *node, rsc_id 293 daemons/controld/controld_based.c CRM_CHECK((rsc_id != NULL) && (node != NULL), return EINVAL); rsc_id 295 daemons/controld/controld_based.c desc = crm_strdup_printf("resource history for %s on %s", rsc_id, node); rsc_id 303 daemons/controld/controld_based.c xpath = crm_strdup_printf(XPATH_RESOURCE_HISTORY, node, rsc_id); rsc_id 310 daemons/controld/controld_based.c CRM_XS " rc=%d", rsc_id, node, rsc_id 36 daemons/controld/controld_execd.c static gboolean is_rsc_active(lrm_state_t * lrm_state, const char *rsc_id); rsc_id 41 daemons/controld/controld_execd.c const char *rsc_id, const char *operation); rsc_id 104 daemons/controld/controld_execd.c && pcmk__str_eq(op->rsc_id, existing->rsc_id, pcmk__str_none) rsc_id 167 daemons/controld/controld_execd.c crm_debug("Purged history for '%s' after %s", op->rsc_id, op->op_type); rsc_id 168 daemons/controld/controld_execd.c controld_delete_resource_history(op->rsc_id, lrm_state->node_name, rsc_id 177 daemons/controld/controld_execd.c crm_debug("Updating history for '%s' with %s op", op->rsc_id, op->op_type); rsc_id 179 daemons/controld/controld_execd.c entry = g_hash_table_lookup(lrm_state->resource_history, op->rsc_id); rsc_id 182 daemons/controld/controld_execd.c entry->id = strdup(op->rsc_id); rsc_id 195 daemons/controld/controld_execd.c crm_info("Resource %s no longer exists, not updating cache", op->rsc_id); rsc_id 204 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms); rsc_id 209 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms, op->rc, rsc_id 246 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms); rsc_id 251 daemons/controld/controld_execd.c g_list_length(entry->recurring_op_list), op->rsc_id, rsc_id 271 daemons/controld/controld_execd.c const char *rsc_id, lrmd_rsc_info_t *rsc, const char *task, rsc_id 274 daemons/controld/controld_execd.c lrmd_event_data_t *op = construct_op(lrm_state, input->xml, rsc_id, task); rsc_id 278 daemons/controld/controld_execd.c controld_ack_event_directly(ack_host, ack_sys, rsc, op, rsc_id); rsc_id 478 daemons/controld/controld_execd.c if (pcmk__str_eq(entry->id, pending->rsc_id, pcmk__str_none)) { rsc_id 617 daemons/controld/controld_execd.c crm_trace("%s: %s, %s", op->rsc_id, digest, list); rsc_id 647 daemons/controld/controld_execd.c crm_trace("%s: %s, %s", op->rsc_id, digest, list); rsc_id 650 daemons/controld/controld_execd.c crm_trace("%s: no secure parameters", op->rsc_id); rsc_id 688 daemons/controld/controld_execd.c crm_trace("Building %s operation update with originator version: %s", op->rsc_id, caller_version); rsc_id 699 daemons/controld/controld_execd.c op->op_type, op->rsc_id, op->params, rsc); rsc_id 707 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms, node_name); rsc_id 741 daemons/controld/controld_execd.c is_rsc_active(lrm_state_t * lrm_state, const char *rsc_id) rsc_id 745 daemons/controld/controld_execd.c entry = g_hash_table_lookup(lrm_state->resource_history, rsc_id); rsc_id 750 daemons/controld/controld_execd.c crm_trace("Processing %s: %s.%d=%d", rsc_id, entry->last->op_type, rsc_id 889 daemons/controld/controld_execd.c controld_trigger_delete_refresh(const char *from_sys, const char *rsc_id) rsc_id 894 daemons/controld/controld_execd.c crm_debug("Triggering a refresh after %s cleaned %s", from_sys, rsc_id); rsc_id 903 daemons/controld/controld_execd.c notify_deleted(lrm_state_t * lrm_state, ha_msg_input_t * input, const char *rsc_id, int rc) rsc_id 910 daemons/controld/controld_execd.c from_sys, (from_host? from_host : "localhost"), rsc_id, rsc_id 912 daemons/controld/controld_execd.c op = construct_op(lrm_state, input->xml, rsc_id, CRMD_ACTION_DELETE); rsc_id 914 daemons/controld/controld_execd.c controld_ack_event_directly(from_host, from_sys, NULL, op, rsc_id); rsc_id 916 daemons/controld/controld_execd.c controld_trigger_delete_refresh(from_sys, rsc_id); rsc_id 938 daemons/controld/controld_execd.c if (pcmk__str_eq(rsc, pending->rsc_id, pcmk__str_none)) { rsc_id 947 daemons/controld/controld_execd.c delete_rsc_entry(lrm_state_t * lrm_state, ha_msg_input_t * input, const char *rsc_id, rsc_id 952 daemons/controld/controld_execd.c CRM_CHECK(rsc_id != NULL, return); rsc_id 955 daemons/controld/controld_execd.c char *rsc_id_copy = strdup(rsc_id); rsc_id 969 daemons/controld/controld_execd.c notify_deleted(lrm_state, input, rsc_id, rc); rsc_id 973 daemons/controld/controld_execd.c event.rsc = rsc_id; rsc_id 997 daemons/controld/controld_execd.c char *op_id = pcmk__op_key(op->rsc_id, op->op_type, op->interval_ms); rsc_id 1005 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms, op->call_id); rsc_id 1045 daemons/controld/controld_execd.c erase_lrm_history_by_id(lrm_state_t *lrm_state, const char *rsc_id, rsc_id 1050 daemons/controld/controld_execd.c CRM_CHECK((rsc_id != NULL) && (key != NULL), return); rsc_id 1054 daemons/controld/controld_execd.c lrm_state->node_name, rsc_id, key, rsc_id 1059 daemons/controld/controld_execd.c lrm_state->node_name, rsc_id, key, rsc_id 1063 daemons/controld/controld_execd.c lrm_state->node_name, rsc_id, key); rsc_id 1067 daemons/controld/controld_execd.c key, rsc_id, call_id); rsc_id 1100 daemons/controld/controld_execd.c lrm_clear_last_failure(const char *rsc_id, const char *node_name, rsc_id 1113 daemons/controld/controld_execd.c op_key = pcmk__op_key(rsc_id, "last_failure", 0); rsc_id 1115 daemons/controld/controld_execd.c orig_op_key = pcmk__op_key(rsc_id, operation, interval_ms); rsc_id 1117 daemons/controld/controld_execd.c erase_lrm_history_by_id(lrm_state, rsc_id, op_key, orig_op_key, 0); rsc_id 1124 daemons/controld/controld_execd.c rsc_id); rsc_id 1135 daemons/controld/controld_execd.c cancel_op(lrm_state_t * lrm_state, const char *rsc_id, const char *key, int op, gboolean remove) rsc_id 1142 daemons/controld/controld_execd.c CRM_CHECK(rsc_id != NULL, return FALSE); rsc_id 1144 daemons/controld/controld_execd.c local_key = make_stop_id(rsc_id, op); rsc_id 1168 daemons/controld/controld_execd.c crm_debug("Cancelling op %d for %s (%s)", op, rsc_id, key); rsc_id 1169 daemons/controld/controld_execd.c rc = lrm_state_cancel(lrm_state, pending->rsc_id, pending->op_type, rsc_id 1172 daemons/controld/controld_execd.c crm_debug("Op %d for %s (%s): cancelled", op, rsc_id, key); rsc_id 1177 daemons/controld/controld_execd.c crm_debug("Op %d for %s (%s): Nothing to cancel", op, rsc_id, key); rsc_id 1350 daemons/controld/controld_execd.c get_fake_call_id(lrm_state_t *lrm_state, const char *rsc_id) rsc_id 1356 daemons/controld/controld_execd.c entry = g_hash_table_lookup(lrm_state->resource_history, rsc_id); rsc_id 1376 daemons/controld/controld_execd.c op->call_id = get_fake_call_id(lrm_state, op->rsc_id); rsc_id 1468 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms, op->rc, target_node); rsc_id 1884 daemons/controld/controld_execd.c resolve_versioned_parameters(lrm_state_t *lrm_state, const char *rsc_id, rsc_id 1889 daemons/controld/controld_execd.c lrmd_rsc_info_t *rsc = lrm_state_get_rsc_info(lrm_state, rsc_id, 0); rsc_id 1939 daemons/controld/controld_execd.c construct_op(lrm_state_t *lrm_state, xmlNode *rsc_op, const char *rsc_id, rsc_id 1952 daemons/controld/controld_execd.c CRM_ASSERT(rsc_id && operation); rsc_id 1954 daemons/controld/controld_execd.c op = lrmd_new_event(rsc_id, operation, 0); rsc_id 1973 daemons/controld/controld_execd.c crm_trace("Constructed %s op for %s", operation, rsc_id); rsc_id 2007 daemons/controld/controld_execd.c if (lrm_state && !is_remote_lrmd_ra(NULL, NULL, rsc_id) rsc_id 2010 daemons/controld/controld_execd.c resolve_versioned_parameters(lrm_state, rsc_id, rsc_op, params); rsc_id 2021 daemons/controld/controld_execd.c entry = g_hash_table_lookup(lrm_state->resource_history, rsc_id); rsc_id 2062 daemons/controld/controld_execd.c operation, rsc_id, op->interval_ms); rsc_id 2083 daemons/controld/controld_execd.c const char *rsc_id) rsc_id 2090 daemons/controld/controld_execd.c if (op->rsc_id == NULL) { rsc_id 2091 daemons/controld/controld_execd.c CRM_ASSERT(rsc_id != NULL); rsc_id 2092 daemons/controld/controld_execd.c op->rsc_id = strdup(rsc_id); rsc_id 2107 daemons/controld/controld_execd.c crm_xml_add(iter, XML_ATTR_ID, op->rsc_id); rsc_id 2115 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms, op->user_data, rsc_id 2160 daemons/controld/controld_execd.c && pcmk__str_eq(op->rsc_id, event->rsc->id, pcmk__str_none)) { rsc_id 2162 daemons/controld/controld_execd.c crm_debug("Cancelling op %d for %s (%s)", op->call_id, op->rsc_id, (char*)key); rsc_id 2177 daemons/controld/controld_execd.c crm_info("Cancelling op %d for %s (%s)", op->call_id, op->rsc_id, rsc_id 2179 daemons/controld/controld_execd.c remove = !cancel_op(lrm_state, op->rsc_id, key, op->call_id, FALSE); rsc_id 2215 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms, node_name); rsc_id 2360 daemons/controld/controld_execd.c pending->rsc_id = strdup(rsc->id); rsc_id 2476 daemons/controld/controld_execd.c crm_xml_add(iter, XML_ATTR_ID, op->rsc_id); rsc_id 2501 daemons/controld/controld_execd.c crm_trace("Resource %s is a part of container resource %s", op->rsc_id, container); rsc_id 2506 daemons/controld/controld_execd.c crm_warn("Resource %s no longer exists in the executor", op->rsc_id); rsc_id 2507 daemons/controld/controld_execd.c controld_ack_event_directly(NULL, NULL, rsc, op, op->rsc_id); rsc_id 2538 daemons/controld/controld_execd.c rc, op->op_type, op->interval_ms, op->rsc_id); rsc_id 2580 daemons/controld/controld_execd.c did_lrm_rsc_op_fail(lrm_state_t *lrm_state, const char * rsc_id, rsc_id 2586 daemons/controld/controld_execd.c CRM_CHECK(rsc_id != NULL, return FALSE); rsc_id 2589 daemons/controld/controld_execd.c entry = g_hash_table_lookup(lrm_state->resource_history, rsc_id); rsc_id 2594 daemons/controld/controld_execd.c if (pcmk__str_eq(entry->failed->rsc_id, rsc_id, pcmk__str_none) rsc_id 2618 daemons/controld/controld_execd.c CRM_CHECK(op->rsc_id != NULL, return); rsc_id 2636 daemons/controld/controld_execd.c op_id = make_stop_id(op->rsc_id, op->call_id); rsc_id 2637 daemons/controld/controld_execd.c op_key = pcmk__op_key(op->rsc_id, op->op_type, op->interval_ms); rsc_id 2641 daemons/controld/controld_execd.c rsc = lrm_state_get_rsc_info(lrm_state, op->rsc_id, 0); rsc_id 2652 daemons/controld/controld_execd.c op->rsc_id, standard, rsc_id 2654 daemons/controld/controld_execd.c rsc = lrmd_new_rsc_info(op->rsc_id, standard, provider, type); rsc_id 2657 daemons/controld/controld_execd.c op_key, op->rsc_id); rsc_id 2758 daemons/controld/controld_execd.c if (did_lrm_rsc_op_fail(lrm_state, pending->rsc_id, rsc_id 2780 daemons/controld/controld_execd.c controld_ack_event_directly(NULL, NULL, NULL, op, op->rsc_id); rsc_id 2811 daemons/controld/controld_execd.c op->rsc_id, node_name, rsc_id 2820 daemons/controld/controld_execd.c op->rsc_id, node_name, rsc_id 2829 daemons/controld/controld_execd.c op->rsc_id, node_name, rsc_id 2838 daemons/controld/controld_execd.c op->rsc_id, node_name, rsc_id 2846 daemons/controld/controld_execd.c op->rsc_id, op->op_type, op->interval_ms, rsc_id 2869 daemons/controld/controld_execd.c crm_info("Deletion of resource '%s' complete after %s", op->rsc_id, op_key); rsc_id 2871 daemons/controld/controld_execd.c delete_rsc_entry(lrm_state, NULL, op->rsc_id, NULL, pcmk_ok, NULL); rsc_id 50 daemons/controld/controld_execd_state.c free(op->rsc_id); rsc_id 67 daemons/controld/controld_execd_state.c op->rsc_id, op->op_type, op->interval_ms, rsc_id 71 daemons/controld/controld_execd_state.c event.rsc_id = op->rsc_id; rsc_id 621 daemons/controld/controld_execd_state.c lrm_state_cancel(lrm_state_t *lrm_state, const char *rsc_id, const char *action, rsc_id 630 daemons/controld/controld_execd_state.c if (is_remote_lrmd_ra(NULL, NULL, rsc_id)) { rsc_id 631 daemons/controld/controld_execd_state.c return remote_ra_cancel(lrm_state, rsc_id, action, interval_ms); rsc_id 633 daemons/controld/controld_execd_state.c return ((lrmd_t *) lrm_state->conn)->cmds->cancel(lrm_state->conn, rsc_id, rsc_id 638 daemons/controld/controld_execd_state.c lrm_state_get_rsc_info(lrm_state_t * lrm_state, const char *rsc_id, enum lrmd_call_options options) rsc_id 645 daemons/controld/controld_execd_state.c if (is_remote_lrmd_ra(NULL, NULL, rsc_id)) { rsc_id 646 daemons/controld/controld_execd_state.c return remote_ra_get_rsc_info(lrm_state, rsc_id); rsc_id 649 daemons/controld/controld_execd_state.c rsc = g_hash_table_lookup(lrm_state->rsc_info_cache, rsc_id); rsc_id 652 daemons/controld/controld_execd_state.c rsc = ((lrmd_t *) lrm_state->conn)->cmds->get_rsc_info(lrm_state->conn, rsc_id, options); rsc_id 665 daemons/controld/controld_execd_state.c lrm_state_exec(lrm_state_t *lrm_state, const char *rsc_id, const char *action, rsc_id 677 daemons/controld/controld_execd_state.c if (is_remote_lrmd_ra(NULL, NULL, rsc_id)) { rsc_id 678 daemons/controld/controld_execd_state.c return remote_ra_exec(lrm_state, rsc_id, action, userdata, interval_ms, rsc_id 683 daemons/controld/controld_execd_state.c rsc_id, rsc_id 694 daemons/controld/controld_execd_state.c const char *rsc_id, rsc_id 705 daemons/controld/controld_execd_state.c return lrm_state_find_or_create(rsc_id)? pcmk_ok : -EINVAL; rsc_id 711 daemons/controld/controld_execd_state.c return conn->cmds->register_rsc(lrm_state->conn, rsc_id, class, provider, rsc_id 717 daemons/controld/controld_execd_state.c const char *rsc_id, enum lrmd_call_options options) rsc_id 723 daemons/controld/controld_execd_state.c if (is_remote_lrmd_ra(NULL, NULL, rsc_id)) { rsc_id 724 daemons/controld/controld_execd_state.c lrm_state_destroy(rsc_id); rsc_id 728 daemons/controld/controld_execd_state.c g_hash_table_remove(lrm_state->rsc_info_cache, rsc_id); rsc_id 735 daemons/controld/controld_execd_state.c return ((lrmd_t *) lrm_state->conn)->cmds->unregister_rsc(lrm_state->conn, rsc_id, options); rsc_id 153 daemons/controld/controld_fsa.c input->rsc_id, input->call_id, input->rc, rsc_id 15 daemons/controld/controld_lrm.h void lrm_clear_last_failure(const char *rsc_id, const char *node_name, rsc_id 49 daemons/controld/controld_lrm.h char *rsc_id; rsc_id 150 daemons/controld/controld_lrm.h int lrm_state_cancel(lrm_state_t *lrm_state, const char *rsc_id, rsc_id 152 daemons/controld/controld_lrm.h int lrm_state_exec(lrm_state_t *lrm_state, const char *rsc_id, rsc_id 158 daemons/controld/controld_lrm.h const char *rsc_id, enum lrmd_call_options options); rsc_id 160 daemons/controld/controld_lrm.h const char *rsc_id, rsc_id 164 daemons/controld/controld_lrm.h const char *rsc_id, enum lrmd_call_options options); rsc_id 169 daemons/controld/controld_lrm.h lrmd_rsc_info_t *remote_ra_get_rsc_info(lrm_state_t * lrm_state, const char *rsc_id); rsc_id 170 daemons/controld/controld_lrm.h int remote_ra_cancel(lrm_state_t *lrm_state, const char *rsc_id, rsc_id 172 daemons/controld/controld_lrm.h int remote_ra_exec(lrm_state_t *lrm_state, const char *rsc_id, rsc_id 188 daemons/controld/controld_lrm.h const char *rsc_id); rsc_id 190 daemons/controld/controld_lrm.h void controld_trigger_delete_refresh(const char *from_sys, const char *rsc_id); rsc_id 659 daemons/controld/controld_messages.c const char *rsc_id = NULL; rsc_id 667 daemons/controld/controld_messages.c rsc_id = ID(rsc_xml); rsc_id 672 daemons/controld/controld_messages.c "(clearing CIB resource history only)", rsc_id, node, rsc_id 674 daemons/controld/controld_messages.c rc = controld_delete_resource_history(rsc_id, node, user_name, rsc_id 677 daemons/controld/controld_messages.c rc = controld_delete_resource_history(rsc_id, node, user_name, rsc_id 697 daemons/controld/controld_messages.c from_sys, (from_host? from_host : "local node"), rsc_id, rsc_id 699 daemons/controld/controld_messages.c op = lrmd_new_event(rsc_id, CRMD_ACTION_DELETE, 0); rsc_id 706 daemons/controld/controld_messages.c controld_ack_event_directly(from_host, from_sys, NULL, op, rsc_id); rsc_id 708 daemons/controld/controld_messages.c controld_trigger_delete_refresh(from_sys, rsc_id); rsc_id 29 daemons/controld/controld_remote_ra.c char *rsc_id; rsc_id 113 daemons/controld/controld_remote_ra.c free(cmd->rsc_id); rsc_id 141 daemons/controld/controld_remote_ra.c connection_rsc = lrm_state_find(cmd->rsc_id); rsc_id 160 daemons/controld/controld_remote_ra.c connection_rsc = lrm_state_find(cmd->rsc_id); rsc_id 304 daemons/controld/controld_remote_ra.c remote_node_up(cmd->rsc_id); rsc_id 314 daemons/controld/controld_remote_ra.c crm_node_t *node = crm_remote_peer_get(cmd->rsc_id); rsc_id 320 daemons/controld/controld_remote_ra.c lrm_state_t *lrm_state = lrm_state_find(cmd->rsc_id); rsc_id 326 daemons/controld/controld_remote_ra.c remote_node_down(cmd->rsc_id, DOWN_KEEP_LRM); rsc_id 332 daemons/controld/controld_remote_ra.c crm_remote_peer_cache_remove(cmd->rsc_id); rsc_id 356 daemons/controld/controld_remote_ra.c op.rsc_id = cmd->rsc_id; rsc_id 452 daemons/controld/controld_remote_ra.c crm_info("takeover event timed out for node %s", cmd->rsc_id); rsc_id 455 daemons/controld/controld_remote_ra.c lrm_state = lrm_state_find(cmd->rsc_id); rsc_id 469 daemons/controld/controld_remote_ra.c lrm_state = lrm_state_find(cmd->rsc_id); rsc_id 472 daemons/controld/controld_remote_ra.c cmd->rsc_id, (lrm_state? "" : " (no LRM state)")); rsc_id 498 daemons/controld/controld_remote_ra.c synthesize_lrmd_success(lrm_state_t *lrm_state, const char *rsc_id, const char *op_type) rsc_id 509 daemons/controld/controld_remote_ra.c op.rsc_id = rsc_id; rsc_id 810 daemons/controld/controld_remote_ra.c cmd->rsc_id); rsc_id 909 daemons/controld/controld_remote_ra.c remote_ra_get_rsc_info(lrm_state_t * lrm_state, const char *rsc_id) rsc_id 913 daemons/controld/controld_remote_ra.c if ((lrm_state_find(rsc_id))) { rsc_id 916 daemons/controld/controld_remote_ra.c info->id = strdup(rsc_id); rsc_id 959 daemons/controld/controld_remote_ra.c cmd->action, cmd->rsc_id, cmd->interval_ms, cmd->userdata); rsc_id 993 daemons/controld/controld_remote_ra.c remote_ra_cancel(lrm_state_t *lrm_state, const char *rsc_id, rsc_id 999 daemons/controld/controld_remote_ra.c connection_rsc = lrm_state_find(rsc_id); rsc_id 1065 daemons/controld/controld_remote_ra.c cmd->rsc_id, "monitor", interval_ms); rsc_id 1093 daemons/controld/controld_remote_ra.c remote_ra_exec(lrm_state_t *lrm_state, const char *rsc_id, const char *action, rsc_id 1109 daemons/controld/controld_remote_ra.c connection_rsc = lrm_state_find(rsc_id); rsc_id 1126 daemons/controld/controld_remote_ra.c cmd->rsc_id = strdup(rsc_id); rsc_id 189 daemons/controld/controld_te_actions.c const char *rsc_id = NULL; rsc_id 205 daemons/controld/controld_te_actions.c rsc_id = ID(action_rsc); rsc_id 206 daemons/controld/controld_te_actions.c CRM_CHECK(rsc_id != NULL, rsc_id 228 daemons/controld/controld_te_actions.c crm_xml_add(rsc, XML_ATTR_ID, rsc_id); rsc_id 117 daemons/controld/controld_te_events.c char *rsc_id = NULL; rsc_id 135 daemons/controld/controld_te_events.c CRM_CHECK(parse_op_key(id, &rsc_id, &task, &interval_ms), rsc_id 174 daemons/controld/controld_te_events.c rsc_id, on_uname, task, rc, value, now); rsc_id 178 daemons/controld/controld_te_events.c attr_name = pcmk__failcount_name(rsc_id, task, interval_ms); rsc_id 186 daemons/controld/controld_te_events.c attr_name = pcmk__lastfailure_name(rsc_id, task, interval_ms); rsc_id 194 daemons/controld/controld_te_events.c free(rsc_id); rsc_id 112 daemons/controld/controld_utils.h int controld_delete_resource_history(const char *rsc_id, const char *node, rsc_id 141 daemons/execd/cts-exec-helper.c const char *rsc_id; rsc_id 170 daemons/execd/cts-exec-helper.c event->rsc_id, \ rsc_id 283 daemons/execd/cts-exec-helper.c options.rsc_id, rsc_id 297 daemons/execd/cts-exec-helper.c options.rsc_id, rsc_id 302 daemons/execd/cts-exec-helper.c rsc_info = lrmd_conn->cmds->get_rsc_info(lrmd_conn, options.rsc_id, 0); rsc_id 315 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->unregister_rsc(lrmd_conn, options.rsc_id, 0); rsc_id 317 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->cancel(lrmd_conn, options.rsc_id, options.action, rsc_id 385 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->get_recurring_ops(lrmd_conn, options.rsc_id, 0, 0, rsc_id 392 daemons/execd/cts-exec-helper.c op_info->rsc_id, op_info->action, rsc_id 474 daemons/execd/cts-exec-helper.c if (options.rsc_id) { rsc_id 475 daemons/execd/cts-exec-helper.c rsc = pe_find_resource_with_flags(data_set->resources, options.rsc_id, rsc_id 574 daemons/execd/cts-exec-helper.c options.rsc_id = optarg; rsc_id 648 daemons/execd/cts-exec-helper.c if (!options.rsc_id) { rsc_id 58 daemons/execd/execd_commands.c char *rsc_id; rsc_id 220 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, cmd->call_id, rsc_id 225 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, cmd->call_id, rsc_id 240 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, cmd->call_id); rsc_id 263 daemons/execd/execd_commands.c rsc->rsc_id = crm_element_value_copy(rsc_xml, F_LRMD_RSC_ID); rsc_id 294 daemons/execd/execd_commands.c cmd->rsc_id = crm_element_value_copy(rsc_xml, F_LRMD_RSC_ID); rsc_id 301 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, cmd->interval_ms); rsc_id 336 daemons/execd/execd_commands.c free(cmd->rsc_id); rsc_id 351 daemons/execd/execd_commands.c if (!cmd->rsc_id) { rsc_id 355 daemons/execd/execd_commands.c rsc = g_hash_table_lookup(rsc_list, cmd->rsc_id); rsc_id 387 daemons/execd/execd_commands.c rsc = cmd->rsc_id ? g_hash_table_lookup(rsc_list, cmd->rsc_id) : NULL; rsc_id 447 daemons/execd/execd_commands.c rsc->rsc_id, normalize_action_name(rsc, dup->action), rsc_id 469 daemons/execd/execd_commands.c services_action_kick(rsc->rsc_id, rsc_id 483 daemons/execd/execd_commands.c crm_trace("Scheduling %s on %s", cmd->action, rsc->rsc_id); rsc_id 615 daemons/execd/execd_commands.c crm_xml_add(notify, F_LRMD_RSC_ID, cmd->rsc_id); rsc_id 657 daemons/execd/execd_commands.c const char *rsc_id = crm_element_value(rsc_xml, F_LRMD_RSC_ID); rsc_id 667 daemons/execd/execd_commands.c crm_xml_add(notify, F_LRMD_RSC_ID, rsc_id); rsc_id 694 daemons/execd/execd_commands.c crm_trace("Resource operation rsc:%s action:%s completed (%p %p)", cmd->rsc_id, cmd->action, rsc_id 942 daemons/execd/execd_commands.c rsc = cmd->rsc_id ? g_hash_table_lookup(rsc_list, cmd->rsc_id) : NULL; rsc_id 979 daemons/execd/execd_commands.c cmd->rsc_id, cmd->real_action, time_sum, timeout_left, rsc_id 1031 daemons/execd/execd_commands.c cmd->rsc_id, cmd->real_action, time_sum, timeout_left, delay); rsc_id 1035 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, time_sum, timeout_left, delay); rsc_id 1039 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, services_ocf_exitcode_str(cmd->exec_rc), cmd->exec_rc, time_sum, timeout_left, delay); rsc_id 1053 daemons/execd/execd_commands.c cmd->rsc_id, cmd->real_action?cmd->real_action:cmd->action, cmd->exec_rc, time_sum, timeout_left); rsc_id 1126 daemons/execd/execd_commands.c lrmd_rsc_t *rsc = g_hash_table_lookup(rsc_list, cmd->rsc_id); rsc_id 1258 daemons/execd/execd_commands.c cmd->rsc_id, rsc->provider, rsc_id 1284 daemons/execd/execd_commands.c rsc->rsc_id); rsc_id 1300 daemons/execd/execd_commands.c int rc = stonith_api->cmds->monitor(stonith_api, 0, cmd->rsc_id, rsc_id 1364 daemons/execd/execd_commands.c rsc->rsc_id, cmd->action, rsc->class, rsc->provider, rsc->type); rsc_id 1378 daemons/execd/execd_commands.c action = services__create_resource_action(rsc->rsc_id, rsc->class, rsc->provider, rsc_id 1385 daemons/execd/execd_commands.c crm_err("Failed to create action, action:%s on resource %s", cmd->action, rsc->rsc_id); rsc_id 1432 daemons/execd/execd_commands.c crm_trace("%s is still active", rsc->rsc_id); rsc_id 1443 daemons/execd/execd_commands.c cmd->rsc_id, cmd->action, cmd->start_delay); rsc_id 1456 daemons/execd/execd_commands.c crm_trace("Nothing further to do for %s", rsc->rsc_id); rsc_id 1523 daemons/execd/execd_commands.c services_action_cancel(rsc->rsc_id, rsc_id 1533 daemons/execd/execd_commands.c free(rsc->rsc_id); rsc_id 1582 daemons/execd/execd_commands.c lrmd_rsc_t *dup = g_hash_table_lookup(rsc_list, rsc->rsc_id); rsc_id 1588 daemons/execd/execd_commands.c crm_notice("Ignoring duplicate registration of '%s'", rsc->rsc_id); rsc_id 1593 daemons/execd/execd_commands.c g_hash_table_replace(rsc_list, rsc->rsc_id, rsc); rsc_id 1594 daemons/execd/execd_commands.c crm_info("Cached agent information for '%s'", rsc->rsc_id); rsc_id 1603 daemons/execd/execd_commands.c const char *rsc_id = crm_element_value(rsc_xml, F_LRMD_RSC_ID); rsc_id 1607 daemons/execd/execd_commands.c if (rsc_id == NULL) { rsc_id 1610 daemons/execd/execd_commands.c rsc = g_hash_table_lookup(rsc_list, rsc_id); rsc_id 1612 daemons/execd/execd_commands.c crm_info("Agent information for '%s' not in cache", rsc_id); rsc_id 1619 daemons/execd/execd_commands.c crm_xml_add(reply, F_LRMD_RSC_ID, rsc->rsc_id); rsc_id 1634 daemons/execd/execd_commands.c const char *rsc_id = crm_element_value(rsc_xml, F_LRMD_RSC_ID); rsc_id 1636 daemons/execd/execd_commands.c if (!rsc_id) { rsc_id 1640 daemons/execd/execd_commands.c rsc = g_hash_table_lookup(rsc_list, rsc_id); rsc_id 1643 daemons/execd/execd_commands.c rsc_id); rsc_id 1650 daemons/execd/execd_commands.c rsc->active, rsc_id); rsc_id 1654 daemons/execd/execd_commands.c g_hash_table_remove(rsc_list, rsc_id); rsc_id 1665 daemons/execd/execd_commands.c const char *rsc_id = crm_element_value(rsc_xml, F_LRMD_RSC_ID); rsc_id 1668 daemons/execd/execd_commands.c if (!rsc_id) { rsc_id 1671 daemons/execd/execd_commands.c if (!(rsc = g_hash_table_lookup(rsc_list, rsc_id))) { rsc_id 1673 daemons/execd/execd_commands.c rsc_id, g_hash_table_size(rsc_list)); rsc_id 1688 daemons/execd/execd_commands.c cancel_op(const char *rsc_id, const char *action, guint interval_ms) rsc_id 1691 daemons/execd/execd_commands.c lrmd_rsc_t *rsc = g_hash_table_lookup(rsc_list, rsc_id); rsc_id 1732 daemons/execd/execd_commands.c } else if (services_action_cancel(rsc_id, rsc_id 1778 daemons/execd/execd_commands.c cancel_op(rsc->rsc_id, cmd->action, cmd->interval_ms); rsc_id 1788 daemons/execd/execd_commands.c const char *rsc_id = crm_element_value(rsc_xml, F_LRMD_RSC_ID); rsc_id 1794 daemons/execd/execd_commands.c if (!rsc_id || !action) { rsc_id 1798 daemons/execd/execd_commands.c return cancel_op(rsc_id, action, interval_ms); rsc_id 1806 daemons/execd/execd_commands.c crm_xml_add(rsc_xml, F_LRMD_RSC_ID, rsc->rsc_id); rsc_id 1822 daemons/execd/execd_commands.c const char *rsc_id = NULL; rsc_id 1833 daemons/execd/execd_commands.c rsc_id = crm_element_value(rsc_xml, F_LRMD_RSC_ID); rsc_id 1837 daemons/execd/execd_commands.c if (rsc_id != NULL) { rsc_id 1838 daemons/execd/execd_commands.c rsc = g_hash_table_lookup(rsc_list, rsc_id); rsc_id 1841 daemons/execd/execd_commands.c rsc_id, g_hash_table_size(rsc_list)); rsc_id 1849 daemons/execd/execd_commands.c if (rsc_id == NULL) { rsc_id 26 daemons/execd/pacemaker-execd.h char *rsc_id; rsc_id 432 daemons/fenced/pacemaker-fenced.c const char *rsc_id = NULL; rsc_id 445 daemons/fenced/pacemaker-fenced.c rsc_id = crm_element_value(match, XML_ATTR_ID); rsc_id 447 daemons/fenced/pacemaker-fenced.c stonith_device_remove(rsc_id, TRUE); rsc_id 809 daemons/fenced/pacemaker-fenced.c const char *rsc_id = NULL; rsc_id 820 daemons/fenced/pacemaker-fenced.c rsc_id = strstr(mutable, "primitive[@id=\'"); rsc_id 821 daemons/fenced/pacemaker-fenced.c if (rsc_id != NULL) { rsc_id 822 daemons/fenced/pacemaker-fenced.c rsc_id += strlen("primitive[@id=\'"); rsc_id 823 daemons/fenced/pacemaker-fenced.c search = strchr(rsc_id, '\''); rsc_id 827 daemons/fenced/pacemaker-fenced.c stonith_device_remove(rsc_id, TRUE); rsc_id 890 daemons/fenced/pacemaker-fenced.c const char *rsc_id = NULL; rsc_id 894 daemons/fenced/pacemaker-fenced.c rsc_id = crm_element_value(match, XML_ATTR_ID); rsc_id 901 daemons/fenced/pacemaker-fenced.c crm_trace("Fencing resource %s was added or modified", rsc_id); rsc_id 55 include/crm/common/internal.h int pcmk__substitute_secrets(const char *rsc_id, GHashTable *params); rsc_id 170 include/crm/common/internal.h char *pcmk__op_key(const char *rsc_id, const char *op_type, guint interval_ms); rsc_id 171 include/crm/common/internal.h char *pcmk__notify_key(const char *rsc_id, const char *notify_type, rsc_id 339 include/crm/common/internal.h pcmk__fail_attr_name(const char *prefix, const char *rsc_id, const char *op, rsc_id 342 include/crm/common/internal.h CRM_CHECK(prefix && rsc_id && op, return NULL); rsc_id 343 include/crm/common/internal.h return crm_strdup_printf("%s-%s#%s_%u", prefix, rsc_id, op, interval_ms); rsc_id 347 include/crm/common/internal.h pcmk__failcount_name(const char *rsc_id, const char *op, guint interval_ms) rsc_id 349 include/crm/common/internal.h return pcmk__fail_attr_name(PCMK__FAIL_COUNT_PREFIX, rsc_id, op, rsc_id 354 include/crm/common/internal.h pcmk__lastfailure_name(const char *rsc_id, const char *op, guint interval_ms) rsc_id 356 include/crm/common/internal.h return pcmk__fail_attr_name(PCMK__LAST_FAILURE_PREFIX, rsc_id, op, rsc_id 94 include/crm/common/ipc_controld.h const char *router_node, const char *rsc_id, rsc_id 98 include/crm/common/ipc_controld.h const char *router_node, const char *rsc_id, rsc_id 42 include/crm/common/util.h char *pcmk_promotion_score_name(const char *rsc_id); rsc_id 60 include/crm/common/util.h gboolean parse_op_key(const char *key, char **rsc_id, char **op_type, rsc_id 203 include/crm/lrmd.h const char *rsc_id; rsc_id 251 include/crm/lrmd.h lrmd_event_data_t *lrmd_new_event(const char *rsc_id, const char *task, rsc_id 264 include/crm/lrmd.h char *rsc_id; rsc_id 270 include/crm/lrmd.h lrmd_rsc_info_t *lrmd_new_rsc_info(const char *rsc_id, const char *standard, rsc_id 335 include/crm/lrmd.h const char *rsc_id, rsc_id 346 include/crm/lrmd.h const char *rsc_id, enum lrmd_call_options options); rsc_id 353 include/crm/lrmd.h int (*get_recurring_ops) (lrmd_t *lrmd, const char *rsc_id, int timeout_ms, rsc_id 368 include/crm/lrmd.h int (*unregister_rsc) (lrmd_t * lrmd, const char *rsc_id, enum lrmd_call_options options); rsc_id 388 include/crm/lrmd.h int (*exec) (lrmd_t * lrmd, const char *rsc_id, const char *action, const char *userdata, /* userdata string given back in event notification */ rsc_id 407 include/crm/lrmd.h int (*cancel) (lrmd_t *lrmd, const char *rsc_id, const char *action, rsc_id 390 include/crm/stonith-ng.h int (*validate)(stonith_t *st, int call_options, const char *rsc_id, rsc_id 320 lib/common/attrd_client.c pcmk_promotion_score_name(const char *rsc_id) rsc_id 322 lib/common/attrd_client.c if (rsc_id == NULL) { rsc_id 323 lib/common/attrd_client.c rsc_id = getenv("OCF_RESOURCE_INSTANCE"); rsc_id 324 lib/common/attrd_client.c if (rsc_id == NULL) { rsc_id 328 lib/common/attrd_client.c return crm_strdup_printf("master-%s", rsc_id); rsc_id 96 lib/common/cib_secrets.c pcmk__substitute_secrets(const char *rsc_id, GHashTable *params) rsc_id 117 lib/common/cib_secrets.c crm_debug("Replace secret parameters for resource %s", rsc_id); rsc_id 119 lib/common/cib_secrets.c if (snprintf(local_file, FILENAME_MAX, LRM_CIBSECRETS_DIR "/%s/", rsc_id) rsc_id 122 lib/common/cib_secrets.c rsc_id); rsc_id 131 lib/common/cib_secrets.c crm_err("odd, no parameter %s for rsc %s found now", key, rsc_id); rsc_id 136 lib/common/cib_secrets.c crm_err("%s: parameter name %s too big", rsc_id, key); rsc_id 145 lib/common/cib_secrets.c rsc_id, key, LRM_CIBSECRETS_DIR); rsc_id 163 lib/common/cib_secrets.c "cannot be read from %s", rsc_id, key, hash_file); rsc_id 170 lib/common/cib_secrets.c "does not match", rsc_id, key); rsc_id 492 lib/common/ipc_controld.c bool cib_only, const char *rsc_id, rsc_id 529 lib/common/ipc_controld.c crm_xml_add(xml_rsc, XML_ATTR_ID, rsc_id); rsc_id 568 lib/common/ipc_controld.c const char *rsc_id, const char *rsc_long_id, rsc_id 573 lib/common/ipc_controld.c pcmk_ipc_name(api, true), crm_str(rsc_id), crm_str(rsc_long_id), rsc_id 576 lib/common/ipc_controld.c router_node, false, rsc_id, rsc_long_id, rsc_id 599 lib/common/ipc_controld.c const char *rsc_id, const char *rsc_long_id, rsc_id 604 lib/common/ipc_controld.c pcmk_ipc_name(api, true), crm_str(rsc_id), crm_str(rsc_long_id), rsc_id 607 lib/common/ipc_controld.c router_node, cib_only, rsc_id, rsc_long_id, rsc_id 45 lib/common/operations.c pcmk__op_key(const char *rsc_id, const char *op_type, guint interval_ms) rsc_id 47 lib/common/operations.c CRM_ASSERT(rsc_id != NULL); rsc_id 49 lib/common/operations.c return crm_strdup_printf(PCMK__OP_FMT, rsc_id, op_type, interval_ms); rsc_id 70 lib/common/operations.c char **rsc_id, char **op_type, guint *interval_ms) rsc_id 78 lib/common/operations.c if (rsc_id) { rsc_id 79 lib/common/operations.c *rsc_id = strndup(key, underbar1-key); rsc_id 90 lib/common/operations.c try_basic_match(const char *key, char **rsc_id, char **op_type, guint *interval_ms) rsc_id 130 lib/common/operations.c if (rsc_id) { rsc_id 131 lib/common/operations.c *rsc_id = strndup(key, type_sep-key); rsc_id 138 lib/common/operations.c try_migrate_notify_match(const char *key, char **rsc_id, char **op_type, guint *interval_ms) rsc_id 157 lib/common/operations.c if (rsc_id) { rsc_id 158 lib/common/operations.c *rsc_id = strndup(key+pmatch[1].rm_so, pmatch[1].rm_eo-pmatch[1].rm_so); rsc_id 167 lib/common/operations.c if (rsc_id) { rsc_id 168 lib/common/operations.c free(*rsc_id); rsc_id 169 lib/common/operations.c *rsc_id = NULL; rsc_id 185 lib/common/operations.c parse_op_key(const char *key, char **rsc_id, char **op_type, guint *interval_ms) rsc_id 192 lib/common/operations.c if (rsc_id) { rsc_id 193 lib/common/operations.c *rsc_id = NULL; rsc_id 220 lib/common/operations.c rsc_id, op_type, interval_ms); rsc_id 221 lib/common/operations.c } else if (try_migrate_notify_match(key, rsc_id, op_type, interval_ms)) { rsc_id 224 lib/common/operations.c return try_basic_match(key, rsc_id, op_type, interval_ms); rsc_id 229 lib/common/operations.c pcmk__notify_key(const char *rsc_id, const char *notify_type, rsc_id 232 lib/common/operations.c CRM_CHECK(rsc_id != NULL, return NULL); rsc_id 236 lib/common/operations.c rsc_id, notify_type, op_type); rsc_id 2020 lib/fencing/st_client.c stonith_api_validate(stonith_t *st, int call_options, const char *rsc_id, rsc_id 2054 lib/fencing/st_client.c rc = pcmk__substitute_secrets(rsc_id, params_table); rsc_id 370 lib/lrmd/lrmd_alerts.c params = alert_key2param(params, PCMK__alert_key_rsc, op->rsc_id); rsc_id 194 lib/lrmd/lrmd_client.c lrmd_new_event(const char *rsc_id, const char *task, guint interval_ms) rsc_id 199 lib/lrmd/lrmd_client.c if (rsc_id != NULL) { rsc_id 200 lib/lrmd/lrmd_client.c event->rsc_id = strdup(rsc_id); rsc_id 201 lib/lrmd/lrmd_client.c CRM_ASSERT(event->rsc_id != NULL); rsc_id 223 lib/lrmd/lrmd_client.c copy->rsc_id = event->rsc_id ? strdup(event->rsc_id) : NULL; rsc_id 246 lib/lrmd/lrmd_client.c free((void *) event->rsc_id); rsc_id 279 lib/lrmd/lrmd_client.c event.rsc_id = crm_element_value(msg, F_LRMD_RSC_ID); rsc_id 1668 lib/lrmd/lrmd_client.c const char *rsc_id, rsc_id 1675 lib/lrmd/lrmd_client.c if (!class || !type || !rsc_id) { rsc_id 1686 lib/lrmd/lrmd_client.c crm_xml_add(data, F_LRMD_RSC_ID, rsc_id); rsc_id 1697 lib/lrmd/lrmd_client.c lrmd_api_unregister_rsc(lrmd_t * lrmd, const char *rsc_id, enum lrmd_call_options options) rsc_id 1703 lib/lrmd/lrmd_client.c crm_xml_add(data, F_LRMD_RSC_ID, rsc_id); rsc_id 1711 lib/lrmd/lrmd_client.c lrmd_new_rsc_info(const char *rsc_id, const char *standard, rsc_id 1717 lib/lrmd/lrmd_client.c if (rsc_id) { rsc_id 1718 lib/lrmd/lrmd_client.c rsc_info->id = strdup(rsc_id); rsc_id 1757 lib/lrmd/lrmd_client.c lrmd_api_get_rsc_info(lrmd_t * lrmd, const char *rsc_id, enum lrmd_call_options options) rsc_id 1767 lib/lrmd/lrmd_client.c crm_xml_add(data, F_LRMD_RSC_ID, rsc_id); rsc_id 1788 lib/lrmd/lrmd_client.c rsc_info = lrmd_new_rsc_info(rsc_id, class, provider, type); rsc_id 1797 lib/lrmd/lrmd_client.c free(op_info->rsc_id); rsc_id 1806 lib/lrmd/lrmd_client.c lrmd_api_get_recurring_ops(lrmd_t *lrmd, const char *rsc_id, int timeout_ms, rsc_id 1819 lib/lrmd/lrmd_client.c if (rsc_id) { rsc_id 1822 lib/lrmd/lrmd_client.c crm_xml_add(data, F_LRMD_RSC_ID, rsc_id); rsc_id 1838 lib/lrmd/lrmd_client.c rsc_id = crm_element_value(rsc_xml, F_LRMD_RSC_ID); rsc_id 1839 lib/lrmd/lrmd_client.c if (rsc_id == NULL) { rsc_id 1852 lib/lrmd/lrmd_client.c op_info->rsc_id = strdup(rsc_id); rsc_id 1991 lib/lrmd/lrmd_client.c lrmd_api_exec(lrmd_t *lrmd, const char *rsc_id, const char *action, rsc_id 2003 lib/lrmd/lrmd_client.c crm_xml_add(data, F_LRMD_RSC_ID, rsc_id); rsc_id 2049 lib/lrmd/lrmd_client.c lrmd_api_cancel(lrmd_t *lrmd, const char *rsc_id, const char *action, rsc_id 2057 lib/lrmd/lrmd_client.c crm_xml_add(data, F_LRMD_RSC_ID, rsc_id); rsc_id 601 lib/pacemaker/pcmk_sched_allocate.c const char *rsc_id = ID(rsc_entry); rsc_id 603 lib/pacemaker/pcmk_sched_allocate.c CRM_CHECK(rsc_id != NULL, return); rsc_id 605 lib/pacemaker/pcmk_sched_allocate.c result = find_rsc_list(NULL, NULL, rsc_id, TRUE, FALSE, data_set); rsc_id 142 lib/pacemaker/pcmk_sched_utilization.c const char *rsc_id; rsc_id 157 lib/pacemaker/pcmk_sched_utilization.c CRM_ASSERT(data->rsc_id); rsc_id 161 lib/pacemaker/pcmk_sched_utilization.c data->node->details->uname, (char *)key, data->rsc_id, required, remaining); rsc_id 167 lib/pacemaker/pcmk_sched_utilization.c have_enough_capacity(pe_node_t * node, const char * rsc_id, GHashTable * utilization) rsc_id 172 lib/pacemaker/pcmk_sched_utilization.c data.rsc_id = rsc_id; rsc_id 625 lib/pacemaker/pcmk_sched_utils.c origin, op->rsc_id, op->op_type, services_lrm_status_str(op->op_status), rsc_id 650 lib/pacemaker/pcmk_sched_utils.c key = pcmk__op_key(op->rsc_id, task, op->interval_ms); rsc_id 657 lib/pacemaker/pcmk_sched_utils.c op_id = pcmk__notify_key(op->rsc_id, n_type, n_task); rsc_id 670 lib/pacemaker/pcmk_sched_utils.c op_id = pcmk__op_key(op->rsc_id, "last_failure", 0); rsc_id 673 lib/pacemaker/pcmk_sched_utils.c op_id_additional = pcmk__op_key(op->rsc_id, "last", 0); rsc_id 681 lib/pacemaker/pcmk_sched_utils.c op_id = pcmk__op_key(op->rsc_id, "last", 0); rsc_id 692 lib/pacemaker/pcmk_sched_utils.c " %d from %s", op->rsc_id, op->op_type, op->interval_ms, rsc_id 722 lib/pacemaker/pcmk_sched_utils.c op->rsc_id, op->op_type, op->interval_ms, rsc_id 21 lib/pengine/failcounts.c is_matched_failure(const char *rsc_id, xmlNode *conf_op_xml, rsc_id 33 lib/pengine/failcounts.c if (rsc_id == NULL || conf_op_xml == NULL || lrm_op_xml == NULL) { rsc_id 54 lib/pengine/failcounts.c last_failure_key = pcmk__op_key(rsc_id, "last_failure", 0); rsc_id 60 lib/pengine/failcounts.c char *expected_op_key = pcmk__op_key(rsc_id, conf_op_name, rsc_id 459 lib/pengine/pe_digest.c create_unfencing_summary(const char *rsc_id, const char *agent_type, rsc_id 462 lib/pengine/pe_digest.c return crm_strdup_printf("%s:%s:%s", rsc_id, agent_type, param_digest); rsc_id 482 lib/pengine/pe_digest.c unfencing_digest_matches(const char *rsc_id, const char *agent, rsc_id 487 lib/pengine/pe_digest.c if (rsc_id && agent && digest_calc && node_summary) { rsc_id 488 lib/pengine/pe_digest.c char *search_secure = create_unfencing_summary(rsc_id, agent, rsc_id 327 lib/pengine/pe_output.c resource_history_string(pe_resource_t *rsc, const char *rsc_id, gboolean all, rsc_id 332 lib/pengine/pe_output.c buf = crm_strdup_printf("%s: orphan", rsc_id); rsc_id 350 lib/pengine/pe_output.c rsc_id, rsc->migration_threshold, failcount_s, rsc_id 355 lib/pengine/pe_output.c buf = crm_strdup_printf("%s:", rsc_id); rsc_id 1819 lib/pengine/pe_output.c const char *rsc_id = crm_element_value(rsc_entry, XML_ATTR_ID); rsc_id 1820 lib/pengine/pe_output.c pe_resource_t *rsc = pe_find_resource(data_set->resources, rsc_id); rsc_id 1861 lib/pengine/pe_output.c out->message(out, "resource-history", rsc, rsc_id, FALSE, rsc_id 2306 lib/pengine/pe_output.c const char *rsc_id = va_arg(args, const char *); rsc_id 2312 lib/pengine/pe_output.c char *buf = resource_history_string(rsc, rsc_id, all, failcount, last_failure); rsc_id 2328 lib/pengine/pe_output.c const char *rsc_id = va_arg(args, const char *); rsc_id 2335 lib/pengine/pe_output.c "id", rsc_id, rsc_id 1672 lib/pengine/unpack.c create_fake_resource(const char *rsc_id, xmlNode * rsc_entry, pe_working_set_t * data_set) rsc_id 1678 lib/pengine/unpack.c crm_xml_add(xml_rsc, XML_ATTR_ID, rsc_id); rsc_id 1688 lib/pengine/unpack.c crm_debug("Detected orphaned remote node %s", rsc_id); rsc_id 1689 lib/pengine/unpack.c node = pe_find_node(data_set->nodes, rsc_id); rsc_id 1691 lib/pengine/unpack.c node = pe_create_node(rsc_id, rsc_id, "remote", NULL, data_set); rsc_id 1696 lib/pengine/unpack.c crm_trace("Setting node %s as shutting down due to orphaned connection resource", rsc_id); rsc_id 1703 lib/pengine/unpack.c crm_trace("Detected orphaned container filler %s", rsc_id); rsc_id 1716 lib/pengine/unpack.c create_anonymous_orphan(pe_resource_t *parent, const char *rsc_id, rsc_id 1722 lib/pengine/unpack.c pe_resource_t *orphan = top->fns->find_rsc(top, rsc_id, NULL, pe_find_clone); rsc_id 1725 lib/pengine/unpack.c top->id, parent->id, rsc_id, node->details->uname); rsc_id 1745 lib/pengine/unpack.c const char *rsc_id) rsc_id 1757 lib/pengine/unpack.c pe_rsc_trace(parent, "Looking for %s on %s in %s", rsc_id, node->details->uname, parent->id); rsc_id 1793 lib/pengine/unpack.c rsc = parent->fns->find_rsc(child, rsc_id, NULL, pe_find_clone); rsc_id 1820 lib/pengine/unpack.c inactive_instance = parent->fns->find_rsc(child, rsc_id, NULL, rsc_id 1860 lib/pengine/unpack.c rsc = create_anonymous_orphan(parent, rsc_id, node, data_set); rsc_id 1867 lib/pengine/unpack.c unpack_find_resource(pe_working_set_t * data_set, pe_node_t * node, const char *rsc_id, rsc_id 1873 lib/pengine/unpack.c crm_trace("looking for %s", rsc_id); rsc_id 1874 lib/pengine/unpack.c rsc = pe_find_resource(data_set->resources, rsc_id); rsc_id 1881 lib/pengine/unpack.c char *clone0_id = clone_zero(rsc_id); rsc_id 1887 lib/pengine/unpack.c crm_trace("%s found as %s (%s)", rsc_id, clone0_id, parent->id); rsc_id 1890 lib/pengine/unpack.c rsc_id, clone0_id); rsc_id 1896 lib/pengine/unpack.c rsc_id); rsc_id 1908 lib/pengine/unpack.c char *base = clone_strip(rsc_id); rsc_id 1916 lib/pengine/unpack.c if (rsc && !pcmk__str_eq(rsc_id, rsc->id, pcmk__str_casei) rsc_id 1917 lib/pengine/unpack.c && !pcmk__str_eq(rsc_id, rsc->clone_name, pcmk__str_casei)) { rsc_id 1920 lib/pengine/unpack.c rsc->clone_name = strdup(rsc_id); rsc_id 1922 lib/pengine/unpack.c rsc_id, node->details->uname, rsc->id, rsc_id 1932 lib/pengine/unpack.c const char *rsc_id = crm_element_value(rsc_entry, XML_ATTR_ID); rsc_id 1934 lib/pengine/unpack.c crm_debug("Detected orphan resource %s on %s", rsc_id, node->details->uname); rsc_id 1935 lib/pengine/unpack.c rsc = create_fake_resource(rsc_id, rsc_entry, data_set); rsc_id 2343 lib/pengine/unpack.c const char *rsc_id = ID(lrm_resource); rsc_id 2356 lib/pengine/unpack.c if (rsc_id == NULL) { rsc_id 2362 lib/pengine/unpack.c rsc_id, node->details->uname); rsc_id 2379 lib/pengine/unpack.c rsc = unpack_find_resource(data_set, node, rsc_id, lrm_resource); rsc_id 2447 lib/pengine/unpack.c const char *rsc_id; rsc_id 2455 lib/pengine/unpack.c rsc_id = crm_element_value(rsc_entry, XML_ATTR_ID); rsc_id 2456 lib/pengine/unpack.c if (container_id == NULL || rsc_id == NULL) { rsc_id 2465 lib/pengine/unpack.c rsc = pe_find_resource(data_set->resources, rsc_id); rsc_id 4094 lib/pengine/unpack.c const char *rsc_id = crm_element_value(lrm_rsc, XML_ATTR_ID); rsc_id 4096 lib/pengine/unpack.c if (rsc != NULL && !pcmk__str_eq(rsc_id, rsc, pcmk__str_casei)) { rsc_id 4100 lib/pengine/unpack.c intermediate = extract_operations(uname, rsc_id, lrm_rsc, active_filter); rsc_id 84 tools/crm_resource.c gchar *rsc_id; // Value of --resource rsc_id 966 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, current->details->uname, move_lifetime, NULL, rsc_id 985 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, current->details->uname, move_lifetime, NULL, rsc_id 996 tools/crm_resource.c options.rsc_id, nactive, count, options.rsc_id, options.rsc_id); rsc_id 1005 tools/crm_resource.c options.rsc_id, nactive, options.rsc_id); rsc_id 1021 tools/crm_resource.c rsc->id, options.rsc_id, (options.host_uname? options.host_uname: "all nodes")); rsc_id 1051 tools/crm_resource.c options.rsc_id, options.host_uname, rsc_id 1063 tools/crm_resource.c rc = cli_resource_clear(options.rsc_id, dest->details->uname, NULL, rsc_id 1067 tools/crm_resource.c rc = cli_resource_clear(options.rsc_id, NULL, data_set->nodes, rsc_id 1114 tools/crm_resource.c crm_xml_add(msg_data, XML_ATTR_ID, options.rsc_id); rsc_id 1310 tools/crm_resource.c rsc->id, options.rsc_id, (options.host_uname? options.host_uname: "all nodes")); rsc_id 1346 tools/crm_resource.c crm_xml_add(msg_data, XML_ATTR_ID, options.rsc_id); rsc_id 1403 tools/crm_resource.c if (options.rsc_id != NULL) { rsc_id 1454 tools/crm_resource.c { "resource", 'r', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.rsc_id, rsc_id 1674 tools/crm_resource.c if (options.require_resource && (options.rsc_id == NULL)) { rsc_id 1699 tools/crm_resource.c if (options.find_flags && options.rsc_id) { rsc_id 1732 tools/crm_resource.c if (options.find_flags && options.rsc_id) { rsc_id 1733 tools/crm_resource.c rsc = pe_find_resource_with_flags(data_set->resources, options.rsc_id, rsc_id 1738 tools/crm_resource.c "Resource '%s' not found", options.rsc_id); rsc_id 1835 tools/crm_resource.c exit_code = cli_resource_execute(rsc, options.rsc_id, rsc_id 1875 tools/crm_resource.c options.rsc_id, data_set); rsc_id 1882 tools/crm_resource.c rc = cli_resource_print_operations(options.rsc_id, rsc_id 1888 tools/crm_resource.c rc = cli_resource_print_operations(options.rsc_id, rsc_id 1894 tools/crm_resource.c GList *nodes = cli_resource_search(rsc, options.rsc_id, data_set); rsc_id 1895 tools/crm_resource.c rc = out->message(out, "resource-search-list", nodes, options.rsc_id); rsc_id 1925 tools/crm_resource.c rc = cli_resource_move(rsc, options.rsc_id, options.host_uname, rsc_id 1945 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, node->details->uname, rsc_id 2014 tools/crm_resource.c rc = cli_resource_update_attribute(rsc, options.rsc_id, rsc_id 2027 tools/crm_resource.c rc = cli_resource_delete_attribute(rsc, options.rsc_id, rsc_id 2110 tools/crm_resource.c g_free(options.rsc_id); rsc_id 46 tools/crm_resource.h int cli_resource_prefer(pcmk__output_t *out, const char *rsc_id, const char *host, rsc_id 49 tools/crm_resource.h int cli_resource_ban(pcmk__output_t *out, const char *rsc_id, const char *host, rsc_id 52 tools/crm_resource.h int cli_resource_clear(const char *rsc_id, const char *host, GList *allnodes, rsc_id 63 tools/crm_resource.h int cli_resource_print_operations(const char *rsc_id, const char *host_uname, rsc_id 69 tools/crm_resource.h const char *rsc_id, pe_working_set_t *data_set); rsc_id 82 tools/crm_resource.h int cli_resource_move(pe_resource_t *rsc, const char *rsc_id, const char *host_name, rsc_id 77 tools/crm_resource_ban.c cli_resource_ban(pcmk__output_t *out, const char *rsc_id, const char *host, rsc_id 91 tools/crm_resource_ban.c rc = cli_resource_ban(out, rsc_id, target->details->uname, move_lifetime, rsc_id 105 tools/crm_resource_ban.c crm_xml_set_id(location, "cli-ban-%s-on-%s", rsc_id, host); rsc_id 113 tools/crm_resource_ban.c ID(location), rsc_id, host, rsc_id, rsc_id 117 tools/crm_resource_ban.c crm_xml_add(location, XML_LOC_ATTR_SOURCE, rsc_id); rsc_id 133 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-ban-%s-on-%s-rule", rsc_id, host); rsc_id 137 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-ban-%s-on-%s-expr", rsc_id, host); rsc_id 144 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-ban-%s-on-%s-lifetime", rsc_id, host); rsc_id 160 tools/crm_resource_ban.c cli_resource_prefer(pcmk__output_t *out,const char *rsc_id, const char *host, rsc_id 181 tools/crm_resource_ban.c crm_xml_set_id(location, "cli-prefer-%s", rsc_id); rsc_id 183 tools/crm_resource_ban.c crm_xml_add(location, XML_LOC_ATTR_SOURCE, rsc_id); rsc_id 199 tools/crm_resource_ban.c crm_xml_set_id(rule, "cli-prefer-rule-%s", rsc_id); rsc_id 203 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-prefer-expr-%s", rsc_id); rsc_id 210 tools/crm_resource_ban.c crm_xml_set_id(expr, "cli-prefer-lifetime-end-%s", rsc_id); rsc_id 245 tools/crm_resource_ban.c resource_clear_node_in_expr(const char *rsc_id, const char *host, cib_t * cib_conn, rsc_id 252 tools/crm_resource_ban.c rsc_id, rsc_id, host); rsc_id 267 tools/crm_resource_ban.c resource_clear_node_in_location(const char *rsc_id, const char *host, cib_t * cib_conn, rsc_id 278 tools/crm_resource_ban.c crm_xml_set_id(location, "cli-ban-%s-on-%s", rsc_id, host); rsc_id 282 tools/crm_resource_ban.c crm_xml_set_id(location, "cli-prefer-%s", rsc_id); rsc_id 301 tools/crm_resource_ban.c cli_resource_clear(const char *rsc_id, const char *host, GList *allnodes, cib_t * cib_conn, rsc_id 311 tools/crm_resource_ban.c rc = resource_clear_node_in_expr(rsc_id, host, cib_conn, cib_options); rsc_id 318 tools/crm_resource_ban.c rc = resource_clear_node_in_location(rsc_id, host, cib_conn, rsc_id 332 tools/crm_resource_ban.c rc = cli_resource_clear(rsc_id, target->details->uname, NULL, rsc_id 89 tools/crm_resource_print.c cli_resource_print_operations(const char *rsc_id, const char *host_uname, rsc_id 94 tools/crm_resource_print.c GList *ops = find_operations(rsc_id, host_uname, active, data_set); rsc_id 188 tools/crm_resource_runtime.c pe_resource_t * rsc, const char * rsc_id, rsc_id 200 tools/crm_resource_runtime.c rsc_id, attr_set, attr_set_type, rsc_id 225 tools/crm_resource_runtime.c const char * rsc_id, const char * attr_set, rsc_id 243 tools/crm_resource_runtime.c rc = find_resource_attr(out, cib, XML_ATTR_ID, rsc_id, attr_set_type, rsc_id 250 tools/crm_resource_runtime.c cmd, attr_name, rsc->id, rsc_id); rsc_id 264 tools/crm_resource_runtime.c attr_name, lookup_id, cmd, rsc_id); rsc_id 273 tools/crm_resource_runtime.c find_matching_attr_resources_recursive(out, &result, rsc, rsc_id, attr_set, rsc_id 504 tools/crm_resource_runtime.c const char *host_uname, const char *rsc_id, pe_working_set_t *data_set) rsc_id 514 tools/crm_resource_runtime.c pe_resource_t *rsc = pe_find_resource(data_set->resources, rsc_id); rsc_id 517 tools/crm_resource_runtime.c out->err(out, "Resource %s not found", rsc_id); rsc_id 521 tools/crm_resource_runtime.c out->err(out, "We can only process primitive resources, not %s", rsc_id); rsc_id 529 tools/crm_resource_runtime.c out->err(out, "Resource %s does not have a class and type", rsc_id); rsc_id 597 tools/crm_resource_runtime.c const char *rsc_id, pe_working_set_t *data_set) rsc_id 606 tools/crm_resource_runtime.c rc = send_lrm_rsc_op(controld_api, false, host_uname, rsc_id, data_set); rsc_id 623 tools/crm_resource_runtime.c const char *node_name, const char *rsc_id, const char *operation, rsc_id 656 tools/crm_resource_runtime.c if (rsc_id) { rsc_id 661 tools/crm_resource_runtime.c if (!fail_rsc || !pcmk__str_eq(rsc_id, fail_rsc->id, pcmk__str_casei)) { rsc_id 924 tools/crm_resource_runtime.c const char *rsc_id, pe_working_set_t *data_set) rsc_id 926 tools/crm_resource_runtime.c crm_notice("Failing %s on %s", rsc_id, host_uname); rsc_id 927 tools/crm_resource_runtime.c return send_lrm_rsc_op(controld_api, true, host_uname, rsc_id, data_set); rsc_id 1278 tools/crm_resource_runtime.c char *rsc_id = NULL; rsc_id 1298 tools/crm_resource_runtime.c rsc_id = strdup(rsc->id); rsc_id 1345 tools/crm_resource_runtime.c rc = cli_resource_ban(out, rsc_id, host, move_lifetime, NULL, cib, rsc_id 1358 tools/crm_resource_runtime.c rc = cli_resource_update_attribute(rsc, rsc_id, NULL, XML_TAG_META_SETS, rsc_id 1364 tools/crm_resource_runtime.c out->err(out, "Could not set target-role for %s: %s (%d)", rsc_id, pcmk_strerror(rc), rc); rsc_id 1420 tools/crm_resource_runtime.c out->err(out, "Could not complete shutdown of %s, %d resources remaining", rsc_id, g_list_length(list_delta)); rsc_id 1429 tools/crm_resource_runtime.c rc = cli_resource_clear(rsc_id, host, NULL, cib, cib_options, TRUE, force); rsc_id 1432 tools/crm_resource_runtime.c rc = cli_resource_update_attribute(rsc, rsc_id, NULL, XML_TAG_META_SETS, rsc_id 1439 tools/crm_resource_runtime.c rc = cli_resource_delete_attribute(rsc, rsc_id, NULL, XML_TAG_META_SETS, rsc_id 1445 tools/crm_resource_runtime.c out->err(out, "Could not unset target-role for %s: %s (%d)", rsc_id, pcmk_strerror(rc), rc); rsc_id 1495 tools/crm_resource_runtime.c out->err(out, "Could not complete restart of %s, %d resources remaining", rsc_id, g_list_length(list_delta)); rsc_id 1508 tools/crm_resource_runtime.c cli_resource_clear(rsc_id, host, NULL, cib, cib_options, TRUE, force); rsc_id 1510 tools/crm_resource_runtime.c cli_resource_update_attribute(rsc, rsc_id, NULL, XML_TAG_META_SETS, NULL, rsc_id 1515 tools/crm_resource_runtime.c cli_resource_delete_attribute(rsc, rsc_id, NULL, XML_TAG_META_SETS, NULL, rsc_id 1533 tools/crm_resource_runtime.c free(rsc_id); rsc_id 1865 tools/crm_resource_runtime.c cli_resource_move(pe_resource_t *rsc, const char *rsc_id, const char *host_name, rsc_id 1885 tools/crm_resource_runtime.c out->info(out, "Using parent '%s' for move instead of '%s'.", rsc->id, rsc_id); rsc_id 1886 tools/crm_resource_runtime.c rsc_id = p->id; rsc_id 1890 tools/crm_resource_runtime.c out->info(out, "Ignoring master option: %s is not promotable", rsc_id); rsc_id 1931 tools/crm_resource_runtime.c rsc_id, promoted_role_only?"promoted":"active", dest->details->uname); rsc_id 1938 tools/crm_resource_runtime.c cli_resource_clear(rsc_id, NULL, data_set->nodes, cib, cib_options, FALSE, force); rsc_id 1941 tools/crm_resource_runtime.c cli_resource_clear(rsc_id, dest->details->uname, data_set->nodes, cib, rsc_id 1945 tools/crm_resource_runtime.c rc = cli_resource_prefer(out, rsc_id, dest->details->uname, move_lifetime, rsc_id 1958 tools/crm_resource_runtime.c (void)cli_resource_ban(out, rsc_id, current->details->uname, move_lifetime, rsc_id 1964 tools/crm_resource_runtime.c rsc_id, (promoted_role_only? "promoted" : "active"), rsc_id 1968 tools/crm_resource_runtime.c rsc_id, (promoted_role_only? "promoted" : "active")); rsc_id 1971 tools/crm_resource_runtime.c crm_trace("Not banning %s from its current location: not active", rsc_id);