agent 606 daemons/controld/controld_execd_state.c const char *agent, char **output, enum lrmd_call_options options) agent 632 daemons/controld/controld_execd_state.c class, provider, agent, output, options, params); agent 711 daemons/controld/controld_execd_state.c const char *provider, const char *agent, enum lrmd_call_options options) agent 719 daemons/controld/controld_execd_state.c if (is_remote_lrmd_ra(agent, provider, NULL)) { agent 727 daemons/controld/controld_execd_state.c agent, options); agent 150 daemons/controld/controld_lrm.h const char *agent, char **output, enum lrmd_call_options options); agent 163 daemons/controld/controld_lrm.h const char *provider, const char *agent, enum lrmd_call_options options); agent 169 daemons/controld/controld_lrm.h gboolean is_remote_lrmd_ra(const char *agent, const char *provider, const char *id); agent 887 daemons/controld/controld_remote_ra.c is_remote_lrmd_ra(const char *agent, const char *provider, const char *id) agent 889 daemons/controld/controld_remote_ra.c if (agent && provider && !strcmp(agent, REMOTE_LRMD_RA) && !strcmp(provider, "pacemaker")) { agent 373 daemons/fenced/fenced_commands.c if(pcmk__str_eq(device->agent, STONITH_WATCHDOG_AGENT, pcmk__str_casei)) { agent 410 daemons/fenced/fenced_commands.c crm_warn("Agent '%s' does not advertise support for 'reboot', performing 'off' action instead", device->agent); agent 421 daemons/fenced/fenced_commands.c action = stonith_action_create(device->agent, agent 571 daemons/fenced/fenced_commands.c free(device->agent); agent 678 daemons/fenced/fenced_commands.c get_agent_metadata(const char *agent) agent 684 daemons/fenced/fenced_commands.c buffer = g_hash_table_lookup(metadata_cache, agent); agent 685 daemons/fenced/fenced_commands.c if(pcmk__str_eq(agent, STONITH_WATCHDOG_AGENT, pcmk__str_casei)) { agent 697 daemons/fenced/fenced_commands.c rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, 10); agent 700 daemons/fenced/fenced_commands.c crm_err("Could not retrieve metadata for fencing agent %s", agent); agent 703 daemons/fenced/fenced_commands.c g_hash_table_replace(metadata_cache, strdup(agent), buffer); agent 887 daemons/fenced/fenced_commands.c char *agent = crm_element_value_copy(dev, "agent"); agent 889 daemons/fenced/fenced_commands.c CRM_CHECK(agent != NULL, return device); agent 893 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, {free(agent); return device;}); agent 896 daemons/fenced/fenced_commands.c device->agent = agent; agent 908 daemons/fenced/fenced_commands.c device->agent_metadata = get_agent_metadata(device->agent); agent 1137 daemons/fenced/fenced_commands.c } else if (!pcmk__str_eq(dup->agent, device->agent, pcmk__str_casei)) { agent 1138 daemons/fenced/fenced_commands.c crm_trace("Different agent: %s != %s", dup->agent, device->agent); agent 1920 daemons/fenced/fenced_commands.c crm_xml_add(dev, "agent", device->agent); agent 649 daemons/fenced/pacemaker-fenced.c const char *agent = crm_element_value(rsc->xml, XML_EXPR_ATTR_TYPE); agent 669 daemons/fenced/pacemaker-fenced.c agent, params, rsc_provides); agent 25 daemons/fenced/pacemaker-fenced.h char *agent; agent 52 include/crm/fencing/internal.h stonith_action_t *stonith_action_create(const char *agent, agent 80 include/crm/fencing/internal.h const char *agent, agent 181 include/crm/fencing/internal.h int stonith__lha_metadata(const char *agent, int timeout, char **output); agent 182 include/crm/fencing/internal.h bool stonith__agent_is_lha(const char *agent); agent 184 include/crm/fencing/internal.h const char *agent, GHashTable *params, agent 190 include/crm/fencing/internal.h int stonith__rhcs_metadata(const char *agent, int timeout, char **output); agent 191 include/crm/fencing/internal.h bool stonith__agent_is_rhcs(const char *agent); agent 193 include/crm/fencing/internal.h const char *agent, GHashTable *params, const char *host_arg, agent 340 include/crm/lrmd.h const char *provider, const char *agent, enum lrmd_call_options options); agent 453 include/crm/lrmd.h const char *agent, char **output, enum lrmd_call_options options); agent 477 include/crm/lrmd.h int (*list_ocf_providers) (lrmd_t * lrmd, const char *agent, lrmd_list_t ** providers); agent 526 include/crm/lrmd.h const char *provider, const char *agent, agent 164 include/crm/pengine/common.h const char *agent; agent 130 include/crm/services.h char *agent; agent 219 include/crm/services.h gboolean resources_agent_exists(const char *standard, const char *provider, const char *agent); agent 243 include/crm/services.h const char *provider, const char *agent, agent 254 include/crm/services.h const char *resources_find_service_class(const char *agent); agent 89 include/crm/stonith-ng.h enum stonith_namespace stonith_get_namespace(const char *agent, agent 182 include/crm/stonith-ng.h const char *provider, const char *agent, stonith_key_value_t *params); agent 391 include/crm/stonith-ng.h const char *namespace_s, const char *agent, agent 551 include/crm/stonith-ng.h bool stonith_agent_exists(const char *agent, int timeout); agent 566 include/crm/stonith-ng.h const char *get_stonith_provider(const char *agent, const char *provider); agent 126 include/pacemaker.h int pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, char *agent, agent 195 include/pacemaker.h int pcmk_fence_validate(xmlNodePtr *xml, stonith_t *st, const char *agent, agent 135 include/pcmki/pcmki_fence.h int pcmk__fence_metadata(pcmk__output_t *out, stonith_t *st, char *agent, agent 218 include/pcmki/pcmki_fence.h int pcmk__fence_validate(pcmk__output_t *out, stonith_t *st, const char *agent, agent 38 lib/fencing/st_client.c char *agent; agent 177 lib/fencing/st_client.c stonith_get_namespace(const char *agent, const char *namespace_s) agent 183 lib/fencing/st_client.c if (stonith__agent_is_rhcs(agent)) { agent 188 lib/fencing/st_client.c if (stonith__agent_is_lha(agent)) { agent 193 lib/fencing/st_client.c crm_err("Unknown fence agent: %s", agent); agent 202 lib/fencing/st_client.c char *prefix = crm_strdup_printf("%s[%d] stdout:", action->agent, pid); agent 210 lib/fencing/st_client.c char *prefix = crm_strdup_printf("%s[%d] stderr:", action->agent, pid); agent 275 lib/fencing/st_client.c const char *agent, stonith_key_value_t *params, agent 283 lib/fencing/st_client.c namespace = stonith_get_namespace(agent, NULL); agent 286 lib/fencing/st_client.c hash2field((gpointer) "plugin", (gpointer) agent, args); agent 287 lib/fencing/st_client.c agent = "fence_legacy"; agent 293 lib/fencing/st_client.c crm_xml_add(data, "agent", agent); agent 310 lib/fencing/st_client.c const char *id, const char *namespace, const char *agent, agent 317 lib/fencing/st_client.c agent, params, NULL); agent 497 lib/fencing/st_client.c make_args(const char *agent, const char *action, const char *victim, agent 539 lib/fencing/st_client.c if(pcmk__str_eq(agent, "fence_legacy", pcmk__str_casei)) { agent 540 lib/fencing/st_client.c value = agent; agent 585 lib/fencing/st_client.c free(action->agent); agent 642 lib/fencing/st_client.c stonith_action_create(const char *agent, agent 652 lib/fencing/st_client.c action->args = make_args(agent, _action, victim, victim_nodeid, agent 655 lib/fencing/st_client.c _action, (victim? victim : "no target"), agent); agent 656 lib/fencing/st_client.c action->agent = strdup(agent); agent 686 lib/fencing/st_client.c action->agent, action->action, action->max_retries); agent 791 lib/fencing/st_client.c action->tries, action->agent, action->action, action->remaining_timeout); agent 795 lib/fencing/st_client.c if (action->args == NULL || action->agent == NULL) agent 799 lib/fencing/st_client.c basename(action->agent)); agent 804 lib/fencing/st_client.c svc_action->id = crm_strdup_printf("%s_%s_%d", basename(action->agent), agent 806 lib/fencing/st_client.c svc_action->agent = strdup(action->agent); agent 939 lib/fencing/st_client.c stonith_api_device_metadata(stonith_t * stonith, int call_options, const char *agent, agent 946 lib/fencing/st_client.c enum stonith_namespace ns = stonith_get_namespace(agent, namespace); agent 949 lib/fencing/st_client.c stonith_namespace2text(ns), agent); agent 953 lib/fencing/st_client.c return stonith__rhcs_metadata(agent, timeout, output); agent 957 lib/fencing/st_client.c return stonith__lha_metadata(agent, timeout, output); agent 962 lib/fencing/st_client.c agent); agent 2028 lib/fencing/st_client.c const char *namespace_s, const char *agent, agent 2067 lib/fencing/st_client.c agent, pcmk_rc_str(rc)); agent 2079 lib/fencing/st_client.c switch (stonith_get_namespace(agent, namespace_s)) { agent 2081 lib/fencing/st_client.c rc = stonith__rhcs_validate(st, call_options, target, agent, agent 2088 lib/fencing/st_client.c rc = stonith__lha_validate(st, call_options, target, agent, agent 2099 lib/fencing/st_client.c agent); agent 2361 lib/fencing/st_client.c stonith_agent_exists(const char *agent, int timeout) agent 2368 lib/fencing/st_client.c if (agent == NULL) { agent 2380 lib/fencing/st_client.c if (pcmk__str_eq(dIter->value, agent, pcmk__str_none)) { agent 2648 lib/fencing/st_client.c const char *get_stonith_provider(const char *agent, const char *provider); agent 2654 lib/fencing/st_client.c get_stonith_provider(const char *agent, const char *provider) agent 2656 lib/fencing/st_client.c return stonith_namespace2text(stonith_get_namespace(agent, provider)); agent 79 lib/fencing/st_lha.c stonith__agent_is_lha(const char *agent) agent 96 lib/fencing/st_lha.c stonith_obj = (*st_new_fn) (agent); agent 175 lib/fencing/st_lha.c stonith__lha_metadata(const char *agent, int timeout, char **output) agent 209 lib/fencing/st_lha.c stonith_obj = (*st_new_fn) (agent); agent 214 lib/fencing/st_lha.c crm_warn("no long description in %s's metadata.", agent); agent 220 lib/fencing/st_lha.c crm_warn("no short description in %s's metadata.", agent); agent 226 lib/fencing/st_lha.c crm_warn("no list of parameters in %s's metadata.", agent); agent 232 lib/fencing/st_lha.c crm_perror(LOG_ERR, "Agent %s not found", agent); agent 241 lib/fencing/st_lha.c buffer = crm_strdup_printf(META_TEMPLATE, agent, xml_meta_longdesc, agent 275 lib/fencing/st_lha.c const char *agent, GHashTable *params, int timeout, agent 362 lib/fencing/st_output.c const char *agent = va_arg(args, const char *); agent 369 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s on %s %s", agent, device, agent 374 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s %s", agent, agent 387 lib/fencing/st_output.c const char *agent = va_arg(args, const char *); agent 394 lib/fencing/st_output.c pcmk__indented_printf(out, "Validation of %s on %s %s\n", agent, device, agent 397 lib/fencing/st_output.c pcmk__indented_printf(out, "Validation of %s %s\n", agent, agent 417 lib/fencing/st_output.c const char *agent = va_arg(args, const char *); agent 423 lib/fencing/st_output.c xmlSetProp(node, (pcmkXmlStr) "agent", (pcmkXmlStr) agent); agent 122 lib/fencing/st_rhcs.c stonith__rhcs_get_metadata(const char *agent, int timeout, xmlNode **metadata) agent 128 lib/fencing/st_rhcs.c stonith_action_t *action = stonith_action_create(agent, "metadata", NULL, 0, agent 134 lib/fencing/st_rhcs.c CRM_XS " rc=%d", agent, pcmk_strerror(rc), rc); agent 143 lib/fencing/st_rhcs.c agent, pcmk_strerror(rc), rc); agent 149 lib/fencing/st_rhcs.c crm_warn("Metadata action for %s returned no data", agent); agent 157 lib/fencing/st_rhcs.c crm_warn("Metadata for %s is invalid", agent); agent 207 lib/fencing/st_rhcs.c stonith__rhcs_metadata(const char *agent, int timeout, char **output) agent 212 lib/fencing/st_rhcs.c int rc = stonith__rhcs_get_metadata(agent, timeout, &xml); agent 233 lib/fencing/st_rhcs.c stonith__agent_is_rhcs(const char *agent) agent 236 lib/fencing/st_rhcs.c char *buffer = crm_strdup_printf(PCMK__FENCE_BINDIR "/%s", agent); agent 245 lib/fencing/st_rhcs.c const char *agent, GHashTable *params, agent 257 lib/fencing/st_rhcs.c rc = stonith__rhcs_get_metadata(agent, remaining_timeout, &metadata); agent 262 lib/fencing/st_rhcs.c stonith__device_parameter_flags(&device_flags, agent, metadata); agent 284 lib/fencing/st_rhcs.c action = stonith_action_create(agent, "validate-all", agent 1955 lib/lrmd/lrmd_client.c does_provider_have_agent(const char *agent, const char *provider, const char *class) agent 1963 lib/lrmd/lrmd_client.c if (pcmk__str_eq(agent, gIter2->data, pcmk__str_casei)) { agent 1973 lib/lrmd/lrmd_client.c lrmd_api_list_ocf_providers(lrmd_t * lrmd, const char *agent, lrmd_list_t ** providers) agent 1984 lib/lrmd/lrmd_client.c if (!agent || does_provider_have_agent(agent, provider, agent 374 lib/pacemaker/pcmk_fence.c pcmk__fence_metadata(pcmk__output_t *out, stonith_t *st, char *agent, agent 377 lib/pacemaker/pcmk_fence.c int rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, agent 391 lib/pacemaker/pcmk_fence.c pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, char *agent, agent 401 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_metadata(out, st, agent, timeout); agent 478 lib/pacemaker/pcmk_fence.c pcmk__fence_validate(pcmk__output_t *out, stonith_t *st, const char *agent, agent 485 lib/pacemaker/pcmk_fence.c rc = st->cmds->validate(st, st_opt_sync_call, id, NULL, agent, params, agent 487 lib/pacemaker/pcmk_fence.c out->message(out, "validate", agent, id, output, error_output, rc); agent 493 lib/pacemaker/pcmk_fence.c pcmk_fence_validate(xmlNodePtr *xml, stonith_t *st, const char *agent, agent 504 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_validate(out, st, agent, id, params, timeout); agent 106 lib/pengine/complex.c .agent = crm_element_value(rsc->xml, XML_EXPR_ATTR_TYPE) agent 1357 lib/pengine/rules.c !pcmk__str_eq(type, rule_data->rsc_data->agent, pcmk__str_none)) { agent 1358 lib/pengine/rules.c crm_trace("Agent doesn't match: %s != %s", type, rule_data->rsc_data->agent); agent 1004 lib/pengine/utils.c .agent = crm_element_value(action->rsc->xml, XML_EXPR_ATTR_TYPE) agent 2239 lib/pengine/utils.c unfencing_digest_matches(const char *rsc_id, const char *agent, agent 2244 lib/pengine/utils.c if (rsc_id && agent && digest_calc && node_summary) { agent 2245 lib/pengine/utils.c char *search_secure = create_unfencing_summary(rsc_id, agent, agent 2277 lib/pengine/utils.c fencing_action_digest_cmp(pe_resource_t *rsc, const char *agent, agent 2297 lib/pengine/utils.c if (unfencing_digest_matches(rsc->id, agent, data->digest_all_calc, agent 2305 lib/pengine/utils.c if (unfencing_digest_matches(rsc->id, agent, data->digest_secure_calc, agent 2319 lib/pengine/utils.c char *digest = create_unfencing_summary(rsc->id, agent, agent 2483 lib/pengine/utils.c const char *agent = g_hash_table_lookup(match->meta, agent 2487 lib/pengine/utils.c data = fencing_action_digest_cmp(match, agent, node, data_set); agent 2498 lib/pengine/utils.c "%s:%s:%s,", match->id, agent, data->digest_all_calc); agent 2502 lib/pengine/utils.c "%s:%s:%s,", match->id, agent, data->digest_secure_calc); agent 69 lib/services/services.c resources_find_service_class(const char *agent) agent 71 lib/services/services.c if (services__lsb_agent_exists(agent)) { agent 76 lib/services/services.c if (systemd_unit_exists(agent)) { agent 82 lib/services/services.c if (upstart_job_exists(agent)) { agent 127 lib/services/services.c expand_resource_class(const char *rsc, const char *standard, const char *agent) agent 132 lib/services/services.c const char *found_class = resources_find_service_class(agent); agent 135 lib/services/services.c crm_debug("Found %s agent %s for %s", found_class, agent, rsc); agent 139 lib/services/services.c agent, rsc); agent 166 lib/services/services.c const char *provider, const char *agent, agent 195 lib/services/services.c if (pcmk__str_empty(agent)) { agent 214 lib/services/services.c op->standard = expand_resource_class(name, standard, agent); agent 215 lib/services/services.c op->agent = strdup(agent); agent 239 lib/services/services.c OCF_ROOT_DIR, provider, agent); agent 244 lib/services/services.c op->opaque->exec = services__lsb_agent_path(op->agent); agent 258 lib/services/services.c op->opaque->exec = dup_file_path(op->agent, NAGIOS_PLUGIN_DIR); agent 509 lib/services/services.c free(op->agent); agent 842 lib/services/services.c if (op->agent == NULL) { agent 849 lib/services/services.c op->agent); agent 854 lib/services/services.c class = resources_find_service_class(op->agent); agent 859 lib/services/services.c op->agent); agent 864 lib/services/services.c return (services__get_lsb_metadata(op->agent, &op->stdout_data) >= 0); agent 869 lib/services/services.c return services__get_nagios_metadata(op->agent, &op->stdout_data) >= 0; agent 1024 lib/services/services.c resources_agent_exists(const char *standard, const char *provider, const char *agent) agent 1064 lib/services/services.c if (services__lsb_agent_exists(agent)) { agent 1067 lib/services/services.c } else if (systemd_unit_exists(agent)) { agent 1072 lib/services/services.c } else if (upstart_job_exists(agent)) { agent 1080 lib/services/services.c rc = services__ocf_agent_exists(provider, agent); agent 1083 lib/services/services.c rc = services__lsb_agent_exists(agent); agent 1087 lib/services/services.c rc = systemd_unit_exists(agent); agent 1092 lib/services/services.c rc = upstart_job_exists(agent); agent 1097 lib/services/services.c rc = services__nagios_agent_exists(agent); agent 408 lib/services/services_linux.c if (op->agent == NULL) { agent 432 lib/services/services_linux.c if (op->agent != NULL) { agent 433 lib/services/services_linux.c set_ocf_env("OCF_RESOURCE_TYPE", op->agent, NULL); agent 1169 lib/services/services_linux.c services__ocf_agent_exists(const char *provider, const char *agent) agent 1175 lib/services/services_linux.c if (provider == NULL || agent == NULL) { agent 1179 lib/services/services_linux.c buf = crm_strdup_printf(OCF_ROOT_DIR "/resource.d/%s/%s", provider, agent); agent 251 lib/services/services_lsb.c services__lsb_agent_path(const char *agent) agent 253 lib/services/services_lsb.c return (*agent == '/')? strdup(agent) agent 254 lib/services/services_lsb.c : crm_strdup_printf("%s/%s", LSB_ROOT_DIR, agent); agent 258 lib/services/services_lsb.c services__lsb_agent_exists(const char *agent) agent 262 lib/services/services_lsb.c char *path = services__lsb_agent_path(agent); agent 13 lib/services/services_lsb.h G_GNUC_INTERNAL char *services__lsb_agent_path(const char *agent); agent 14 lib/services/services_lsb.h G_GNUC_INTERNAL bool services__lsb_agent_exists(const char *agent); agent 17 lib/services/services_nagios.h gboolean services__nagios_agent_exists(const char *agent); agent 56 lib/services/services_private.h gboolean services__ocf_agent_exists(const char *provider, const char *agent); agent 264 lib/services/systemd.c op->agent, op->id, error.message); agent 271 lib/services/systemd.c "systemd reply has unexpected type", op->agent, op->id); agent 629 lib/services/systemd.c create_override_dir(const char *agent) agent 632 lib/services/systemd.c "/%s.service.d", agent); agent 639 lib/services/systemd.c get_override_filename(const char *agent) agent 642 lib/services/systemd.c "/%s.service.d/50-pacemaker.conf", agent); agent 646 lib/services/systemd.c systemd_create_override(const char *agent, int timeout) agent 649 lib/services/systemd.c char *override_file = get_override_filename(agent); agent 651 lib/services/systemd.c create_override_dir(agent); agent 661 lib/services/systemd.c char *override = crm_strdup_printf(SYSTEMD_OVERRIDE_TEMPLATE, agent); agent 679 lib/services/systemd.c systemd_remove_override(const char *agent, int timeout) agent 681 lib/services/systemd.c char *override_file = get_override_filename(agent); agent 753 lib/services/systemd.c systemd_create_override(op->agent, op->timeout); agent 757 lib/services/systemd.c systemd_remove_override(op->agent, op->timeout); agent 775 lib/services/systemd.c char *name = systemd_service_name(op->agent); agent 821 lib/services/systemd.c crm_warn("%s operation on systemd unit %s named '%s' timed out", op->action, op->agent, op->rsc); agent 838 lib/services/systemd.c op->synchronous ? "" : "a", op->action, op->agent, op->rsc); agent 842 lib/services/systemd.c op->stdout_data = systemd_unit_metadata(op->agent, op->timeout); agent 851 lib/services/systemd.c unit = systemd_unit_by_name(op->agent, op); agent 434 lib/services/upstart.c op->stdout_data = upstart_job_metadata(op->agent); agent 439 lib/services/upstart.c if(!upstart_job_by_name(op->agent, &job, op->timeout)) { agent 440 lib/services/upstart.c crm_debug("Could not obtain job named '%s' to %s", op->agent, action); agent 58 tools/stonith_admin.c char *agent; agent 173 tools/stonith_admin.c { "agent", 'a', 0, G_OPTION_ARG_STRING, &options.agent, agent 491 tools/stonith_admin.c if (required_agent && options.agent == NULL) { agent 549 tools/stonith_admin.c rc = st->cmds->register_device(st, st_opts, device, NULL, options.agent, agent 568 tools/stonith_admin.c rc = pcmk__fence_metadata(out, st, options.agent, options.timeout*1000); agent 606 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params,