agent 609 daemons/controld/controld_execd_state.c const char *agent, char **output, enum lrmd_call_options options) agent 635 daemons/controld/controld_execd_state.c class, provider, agent, output, options, params); agent 739 daemons/controld/controld_execd_state.c const char *provider, const char *agent, enum lrmd_call_options options) agent 747 daemons/controld/controld_execd_state.c if (is_remote_lrmd_ra(agent, provider, NULL)) { agent 755 daemons/controld/controld_execd_state.c agent, options); agent 149 daemons/controld/controld_lrm.h const char *agent, char **output, enum lrmd_call_options options); agent 162 daemons/controld/controld_lrm.h const char *provider, const char *agent, enum lrmd_call_options options); agent 168 daemons/controld/controld_lrm.h gboolean is_remote_lrmd_ra(const char *agent, const char *provider, const char *id); agent 901 daemons/controld/controld_remote_ra.c is_remote_lrmd_ra(const char *agent, const char *provider, const char *id) agent 903 daemons/controld/controld_remote_ra.c if (agent && provider && !strcmp(agent, REMOTE_LRMD_RA) && !strcmp(provider, "pacemaker")) { agent 72 daemons/fenced/fenced_commands.c static int get_agent_metadata(const char *agent, xmlNode **metadata); agent 355 daemons/fenced/fenced_commands.c switch (get_agent_metadata(device->agent, &device->agent_metadata)) { agent 440 daemons/fenced/fenced_commands.c if (pcmk__str_any_of(device->agent, STONITH_WATCHDOG_AGENT, agent 479 daemons/fenced/fenced_commands.c device->id, device->agent); agent 490 daemons/fenced/fenced_commands.c action = stonith_action_create(device->agent, agent 644 daemons/fenced/fenced_commands.c free(device->agent); agent 763 daemons/fenced/fenced_commands.c get_agent_metadata(const char *agent, xmlNode ** metadata) agent 771 daemons/fenced/fenced_commands.c if (pcmk__str_eq(agent, STONITH_WATCHDOG_AGENT_INTERNAL, pcmk__str_none)) { agent 775 daemons/fenced/fenced_commands.c buffer = g_hash_table_lookup(metadata_cache, agent); agent 785 daemons/fenced/fenced_commands.c rc = st->cmds->metadata(st, st_opt_sync_call, agent, agent 789 daemons/fenced/fenced_commands.c crm_err("Could not retrieve metadata for fencing agent %s", agent); agent 792 daemons/fenced/fenced_commands.c g_hash_table_replace(metadata_cache, strdup(agent), buffer); agent 1000 daemons/fenced/fenced_commands.c char *agent = crm_element_value_copy(dev, "agent"); agent 1002 daemons/fenced/fenced_commands.c CRM_CHECK(agent != NULL, return device); agent 1006 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, {free(agent); return device;}); agent 1009 daemons/fenced/fenced_commands.c device->agent = agent; agent 1027 daemons/fenced/fenced_commands.c switch (get_agent_metadata(device->agent, &device->agent_metadata)) { agent 1254 daemons/fenced/fenced_commands.c } else if (!pcmk__str_eq(dup->agent, device->agent, pcmk__str_casei)) { agent 1255 daemons/fenced/fenced_commands.c crm_trace("Different agent: %s != %s", dup->agent, device->agent); agent 1281 daemons/fenced/fenced_commands.c pcmk__str_any_of(device->agent, STONITH_WATCHDOG_AGENT, agent 1288 daemons/fenced/fenced_commands.c } else if (!pcmk__str_any_of(device->agent, STONITH_WATCHDOG_AGENT, agent 1292 daemons/fenced/fenced_commands.c device->agent?device->agent:""); agent 1303 daemons/fenced/fenced_commands.c if (pcmk__str_eq(device->agent, STONITH_WATCHDOG_AGENT, agent 2149 daemons/fenced/fenced_commands.c crm_xml_add(dev, "agent", device->agent); agent 738 daemons/fenced/pacemaker-fenced.c const char *agent = crm_element_value(rsc->xml, XML_EXPR_ATTR_TYPE); agent 757 daemons/fenced/pacemaker-fenced.c agent, params, rsc_provides); agent 26 daemons/fenced/pacemaker-fenced.h char *agent; agent 52 include/crm/fencing/internal.h stonith_action_t *stonith_action_create(const char *agent, agent 78 include/crm/fencing/internal.h const char *agent, agent 337 include/crm/lrmd.h const char *provider, const char *agent, enum lrmd_call_options options); agent 434 include/crm/lrmd.h const char *agent, char **output, enum lrmd_call_options options); agent 458 include/crm/lrmd.h int (*list_ocf_providers) (lrmd_t * lrmd, const char *agent, lrmd_list_t ** providers); agent 503 include/crm/lrmd.h const char *provider, const char *agent, agent 176 include/crm/pengine/common.h const char *agent; agent 142 include/crm/services.h char *agent; agent 233 include/crm/services.h gboolean resources_agent_exists(const char *standard, const char *provider, const char *agent); agent 254 include/crm/services.h const char *provider, const char *agent, agent 265 include/crm/services.h const char *resources_find_service_class(const char *agent); agent 37 include/crm/services_internal.h const char *provider, const char *agent, agent 95 include/crm/stonith-ng.h enum stonith_namespace stonith_get_namespace(const char *agent, agent 189 include/crm/stonith-ng.h const char *provider, const char *agent, stonith_key_value_t *params); agent 387 include/crm/stonith-ng.h const char *namespace_s, const char *agent, agent 547 include/crm/stonith-ng.h bool stonith_agent_exists(const char *agent, int timeout); agent 563 include/crm/stonith-ng.h const char *get_stonith_provider(const char *agent, const char *provider); agent 277 include/pacemaker.h int pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, char *agent, agent 346 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 22 lib/fencing/fencing_private.h int stonith__rhcs_metadata(const char *agent, int timeout, char **output); agent 25 lib/fencing/fencing_private.h bool stonith__agent_is_rhcs(const char *agent); agent 29 lib/fencing/fencing_private.h const char *agent, GHashTable *params, agent 40 lib/fencing/fencing_private.h int stonith__lha_metadata(const char *agent, int timeout, char **output); agent 43 lib/fencing/fencing_private.h bool stonith__agent_is_lha(const char *agent); agent 47 lib/fencing/fencing_private.h const char *agent, GHashTable *params, agent 41 lib/fencing/st_client.c char *agent; agent 179 lib/fencing/st_client.c stonith_get_namespace(const char *agent, const char *namespace_s) agent 185 lib/fencing/st_client.c if (stonith__agent_is_rhcs(agent)) { agent 190 lib/fencing/st_client.c if (stonith__agent_is_lha(agent)) { agent 195 lib/fencing/st_client.c crm_err("Unknown fence agent: %s", agent); agent 264 lib/fencing/st_client.c char *prefix = crm_strdup_printf("%s[%d] stdout:", action->agent, pid); agent 272 lib/fencing/st_client.c char *prefix = crm_strdup_printf("%s[%d] stderr:", action->agent, pid); agent 337 lib/fencing/st_client.c const char *agent, stonith_key_value_t *params, agent 345 lib/fencing/st_client.c namespace = stonith_get_namespace(agent, NULL); agent 348 lib/fencing/st_client.c hash2field((gpointer) "plugin", (gpointer) agent, args); agent 349 lib/fencing/st_client.c agent = "fence_legacy"; agent 355 lib/fencing/st_client.c crm_xml_add(data, "agent", agent); agent 372 lib/fencing/st_client.c const char *id, const char *namespace, const char *agent, agent 379 lib/fencing/st_client.c agent, params, NULL); agent 542 lib/fencing/st_client.c make_args(const char *agent, const char *action, const char *victim, agent 591 lib/fencing/st_client.c if (!pcmk__str_eq(agent, "fence_legacy", pcmk__str_none) agent 639 lib/fencing/st_client.c free(action->agent); agent 696 lib/fencing/st_client.c stonith_action_create(const char *agent, agent 706 lib/fencing/st_client.c action->args = make_args(agent, _action, victim, victim_nodeid, agent 709 lib/fencing/st_client.c _action, (victim? victim : "no target"), agent); agent 710 lib/fencing/st_client.c action->agent = strdup(agent); agent 740 lib/fencing/st_client.c action->agent, action->action, action->max_retries); agent 839 lib/fencing/st_client.c || (action->agent == NULL)) { agent 850 lib/fencing/st_client.c action->tries, action->agent, action->action, action->remaining_timeout); agent 855 lib/fencing/st_client.c basename(action->agent)); agent 866 lib/fencing/st_client.c svc_action->id = crm_strdup_printf("%s_%s_%d", basename(action->agent), agent 868 lib/fencing/st_client.c svc_action->agent = strdup(action->agent); agent 994 lib/fencing/st_client.c stonith_api_device_metadata(stonith_t * stonith, int call_options, const char *agent, agent 1001 lib/fencing/st_client.c enum stonith_namespace ns = stonith_get_namespace(agent, namespace); agent 1004 lib/fencing/st_client.c stonith_namespace2text(ns), agent); agent 1008 lib/fencing/st_client.c return stonith__rhcs_metadata(agent, timeout, output); agent 1012 lib/fencing/st_client.c return stonith__lha_metadata(agent, timeout, output); agent 1017 lib/fencing/st_client.c agent); agent 2086 lib/fencing/st_client.c const char *namespace_s, const char *agent, agent 2122 lib/fencing/st_client.c agent, pcmk_rc_str(rc)); agent 2134 lib/fencing/st_client.c switch (stonith_get_namespace(agent, namespace_s)) { agent 2136 lib/fencing/st_client.c rc = stonith__rhcs_validate(st, call_options, target, agent, agent 2143 lib/fencing/st_client.c rc = stonith__lha_validate(st, call_options, target, agent, agent 2154 lib/fencing/st_client.c agent); agent 2415 lib/fencing/st_client.c stonith_agent_exists(const char *agent, int timeout) agent 2422 lib/fencing/st_client.c if (agent == NULL) { agent 2434 lib/fencing/st_client.c if (pcmk__str_eq(dIter->value, agent, pcmk__str_none)) { agent 2769 lib/fencing/st_client.c const char *get_stonith_provider(const char *agent, const char *provider); agent 2772 lib/fencing/st_client.c get_stonith_provider(const char *agent, const char *provider) agent 2774 lib/fencing/st_client.c return stonith_namespace2text(stonith_get_namespace(agent, provider)); agent 83 lib/fencing/st_lha.c stonith__agent_is_lha(const char *agent) agent 100 lib/fencing/st_lha.c stonith_obj = (*st_new_fn) (agent); agent 179 lib/fencing/st_lha.c stonith__lha_metadata(const char *agent, int timeout, char **output) agent 213 lib/fencing/st_lha.c stonith_obj = (*st_new_fn) (agent); agent 218 lib/fencing/st_lha.c crm_warn("no long description in %s's metadata.", agent); agent 224 lib/fencing/st_lha.c crm_warn("no short description in %s's metadata.", agent); agent 230 lib/fencing/st_lha.c crm_warn("no list of parameters in %s's metadata.", agent); agent 236 lib/fencing/st_lha.c crm_perror(LOG_ERR, "Agent %s not found", agent); agent 245 lib/fencing/st_lha.c buffer = crm_strdup_printf(META_TEMPLATE, agent, xml_meta_longdesc, agent 279 lib/fencing/st_lha.c const char *agent, GHashTable *params, int timeout, agent 377 lib/fencing/st_output.c const char *agent = va_arg(args, const char *); agent 384 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s on %s %s", agent, device, agent 389 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s %s", agent, agent 402 lib/fencing/st_output.c const char *agent = va_arg(args, const char *); agent 409 lib/fencing/st_output.c pcmk__indented_printf(out, "Validation of %s on %s %s\n", agent, device, agent 412 lib/fencing/st_output.c pcmk__indented_printf(out, "Validation of %s %s\n", agent, agent 423 lib/fencing/st_output.c const char *agent = va_arg(args, const char *); agent 430 lib/fencing/st_output.c "agent", agent, agent 124 lib/fencing/st_rhcs.c stonith__rhcs_get_metadata(const char *agent, int timeout, xmlNode **metadata) agent 130 lib/fencing/st_rhcs.c stonith_action_t *action = stonith_action_create(agent, "metadata", NULL, 0, agent 136 lib/fencing/st_rhcs.c CRM_XS " rc=%d", agent, pcmk_strerror(rc), rc); agent 145 lib/fencing/st_rhcs.c agent, pcmk_strerror(rc), rc); agent 151 lib/fencing/st_rhcs.c crm_warn("Metadata action for %s returned no data", agent); agent 159 lib/fencing/st_rhcs.c crm_warn("Metadata for %s is invalid", agent); agent 209 lib/fencing/st_rhcs.c stonith__rhcs_metadata(const char *agent, int timeout, char **output) agent 214 lib/fencing/st_rhcs.c int rc = stonith__rhcs_get_metadata(agent, timeout, &xml); agent 235 lib/fencing/st_rhcs.c stonith__agent_is_rhcs(const char *agent) agent 238 lib/fencing/st_rhcs.c char *buffer = crm_strdup_printf(PCMK__FENCE_BINDIR "/%s", agent); agent 247 lib/fencing/st_rhcs.c const char *agent, GHashTable *params, agent 259 lib/fencing/st_rhcs.c rc = stonith__rhcs_get_metadata(agent, remaining_timeout, &metadata); agent 264 lib/fencing/st_rhcs.c stonith__device_parameter_flags(&device_flags, agent, metadata); agent 286 lib/fencing/st_rhcs.c action = stonith_action_create(agent, "validate-all", agent 2141 lib/lrmd/lrmd_client.c does_provider_have_agent(const char *agent, const char *provider, const char *class) agent 2149 lib/lrmd/lrmd_client.c if (pcmk__str_eq(agent, gIter2->data, pcmk__str_casei)) { agent 2158 lib/lrmd/lrmd_client.c lrmd_api_list_ocf_providers(lrmd_t * lrmd, const char *agent, lrmd_list_t ** providers) agent 2169 lib/lrmd/lrmd_client.c if (!agent || does_provider_have_agent(agent, provider, agent 380 lib/pacemaker/pcmk_fence.c pcmk__fence_metadata(pcmk__output_t *out, stonith_t *st, char *agent, agent 383 lib/pacemaker/pcmk_fence.c int rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, agent 397 lib/pacemaker/pcmk_fence.c pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, char *agent, agent 409 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_metadata(out, st, agent, timeout); agent 488 lib/pacemaker/pcmk_fence.c pcmk__fence_validate(pcmk__output_t *out, stonith_t *st, const char *agent, agent 495 lib/pacemaker/pcmk_fence.c rc = st->cmds->validate(st, st_opt_sync_call, id, NULL, agent, params, agent 497 lib/pacemaker/pcmk_fence.c out->message(out, "validate", agent, id, output, error_output, rc); agent 503 lib/pacemaker/pcmk_fence.c pcmk_fence_validate(xmlNodePtr *xml, stonith_t *st, const char *agent, agent 516 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_validate(out, st, agent, id, params, timeout); agent 146 lib/pengine/complex.c .agent = crm_element_value(rsc->xml, XML_EXPR_ATTR_TYPE) agent 482 lib/pengine/pe_digest.c unfencing_digest_matches(const char *rsc_id, const char *agent, agent 487 lib/pengine/pe_digest.c if (rsc_id && agent && digest_calc && node_summary) { agent 488 lib/pengine/pe_digest.c char *search_secure = create_unfencing_summary(rsc_id, agent, agent 520 lib/pengine/pe_digest.c pe__compare_fencing_digest(pe_resource_t *rsc, const char *agent, agent 537 lib/pengine/pe_digest.c if (unfencing_digest_matches(rsc->id, agent, data->digest_all_calc, agent 545 lib/pengine/pe_digest.c if (unfencing_digest_matches(rsc->id, agent, data->digest_secure_calc, agent 562 lib/pengine/pe_digest.c char *digest = create_unfencing_summary(rsc->id, agent, agent 570 lib/pengine/pe_digest.c char *digest = create_unfencing_summary(rsc->id, agent, agent 60 lib/pengine/pe_status_private.h const char *agent, agent 1329 lib/pengine/rules.c !pcmk__str_eq(type, rule_data->rsc_data->agent, pcmk__str_none)) { agent 1330 lib/pengine/rules.c crm_trace("Agent doesn't match: %s != %s", type, rule_data->rsc_data->agent); agent 1079 lib/pengine/utils.c .agent = crm_element_value(action->rsc->xml, XML_EXPR_ATTR_TYPE) agent 2172 lib/pengine/utils.c const char *agent = g_hash_table_lookup(match->meta, agent 2176 lib/pengine/utils.c data = pe__compare_fencing_digest(match, agent, node, data_set); agent 2189 lib/pengine/utils.c "%s:%s:%s,", match->id, agent, data->digest_all_calc); agent 2193 lib/pengine/utils.c "%s:%s:%s,", match->id, agent, data->digest_secure_calc); agent 72 lib/services/services.c resources_find_service_class(const char *agent) agent 74 lib/services/services.c if (services__lsb_agent_exists(agent)) { agent 79 lib/services/services.c if (systemd_unit_exists(agent)) { agent 85 lib/services/services.c if (upstart_job_exists(agent)) { agent 129 lib/services/services.c expand_resource_class(const char *rsc, const char *standard, const char *agent) agent 134 lib/services/services.c const char *found_class = resources_find_service_class(agent); agent 137 lib/services/services.c crm_debug("Found %s agent %s for %s", found_class, agent, rsc); agent 141 lib/services/services.c agent, rsc); agent 180 lib/services/services.c const char *agent, const char *action) agent 200 lib/services/services.c if (pcmk__str_empty(agent)) { agent 218 lib/services/services.c const char *agent, const char *action) agent 225 lib/services/services.c op->agent = strdup(agent); agent 226 lib/services/services.c if (op->agent == NULL) { agent 230 lib/services/services.c op->standard = expand_resource_class(name, standard, agent); agent 255 lib/services/services.c const char *provider, const char *agent, agent 285 lib/services/services.c if (required_argument_missing(ra_caps, name, standard, provider, agent, agent 295 lib/services/services.c if (copy_action_arguments(op, ra_caps, name, standard, provider, agent, agent 336 lib/services/services.c const char *provider, const char *agent, agent 341 lib/services/services.c provider, agent, action, interval_ms, timeout, agent 618 lib/services/services.c free(op->agent); agent 969 lib/services/services.c if (op->agent == NULL) { agent 978 lib/services/services.c op->agent); agent 986 lib/services/services.c class = resources_find_service_class(op->agent); agent 990 lib/services/services.c op->agent); agent 998 lib/services/services.c return pcmk_legacy2rc(services__get_lsb_metadata(op->agent, agent 1004 lib/services/services.c return pcmk_legacy2rc(services__get_nagios_metadata(op->agent, agent 1168 lib/services/services.c resources_agent_exists(const char *standard, const char *provider, const char *agent) agent 1208 lib/services/services.c if (services__lsb_agent_exists(agent)) { agent 1211 lib/services/services.c } else if (systemd_unit_exists(agent)) { agent 1216 lib/services/services.c } else if (upstart_job_exists(agent)) { agent 1224 lib/services/services.c rc = services__ocf_agent_exists(provider, agent); agent 1227 lib/services/services.c rc = services__lsb_agent_exists(agent); agent 1231 lib/services/services.c rc = systemd_unit_exists(agent); agent 1236 lib/services/services.c rc = upstart_job_exists(agent); agent 1241 lib/services/services.c rc = services__nagios_agent_exists(agent); agent 409 lib/services/services_linux.c if (op->agent == NULL) { agent 433 lib/services/services_linux.c if (op->agent != NULL) { agent 434 lib/services/services_linux.c set_ocf_env("OCF_RESOURCE_TYPE", op->agent, NULL); agent 251 lib/services/services_lsb.c services__lsb_agent_exists(const char *agent) agent 255 lib/services/services_lsb.c char *path = pcmk__full_path(agent, PCMK__LSB_INIT_DIR); agent 273 lib/services/services_lsb.c op->opaque->exec = pcmk__full_path(op->agent, PCMK__LSB_INIT_DIR); agent 15 lib/services/services_lsb.h G_GNUC_INTERNAL bool services__lsb_agent_exists(const char *agent); agent 46 lib/services/services_nagios.c op->opaque->exec = pcmk__full_path(op->agent, NAGIOS_PLUGIN_DIR); agent 23 lib/services/services_nagios.h gboolean services__nagios_agent_exists(const char *agent); agent 85 lib/services/services_ocf.c services__ocf_agent_exists(const char *provider, const char *agent) agent 93 lib/services/services_ocf.c if (provider == NULL || agent == NULL || pcmk__str_empty(dirs)) { agent 99 lib/services/services_ocf.c buf = crm_strdup_printf("%s/%s/%s", dir, provider, agent); agent 134 lib/services/services_ocf.c char *buf = crm_strdup_printf("%s/%s/%s", dir, op->provider, op->agent); agent 23 lib/services/services_ocf.h gboolean services__ocf_agent_exists(const char *provider, const char *agent); agent 295 lib/services/systemd.c op->action, op->agent, crm_str(op->rsc), error->message); agent 329 lib/services/systemd.c "DBus reply has unexpected type", op->agent, op->id); agent 771 lib/services/systemd.c create_override_dir(const char *agent) agent 774 lib/services/systemd.c "/%s.service.d", agent); agent 785 lib/services/systemd.c get_override_filename(const char *agent) agent 788 lib/services/systemd.c "/%s.service.d/50-pacemaker.conf", agent); agent 792 lib/services/systemd.c systemd_create_override(const char *agent, int timeout) agent 795 lib/services/systemd.c char *override_file = get_override_filename(agent); agent 797 lib/services/systemd.c create_override_dir(agent); agent 807 lib/services/systemd.c char *override = crm_strdup_printf(SYSTEMD_OVERRIDE_TEMPLATE, agent); agent 825 lib/services/systemd.c systemd_remove_override(const char *agent, int timeout) agent 827 lib/services/systemd.c char *override_file = get_override_filename(agent); agent 919 lib/services/systemd.c systemd_create_override(op->agent, op->timeout); agent 923 lib/services/systemd.c systemd_remove_override(op->agent, op->timeout); agent 946 lib/services/systemd.c char *name = systemd_service_name(op->agent); agent 984 lib/services/systemd.c crm_warn("%s operation on systemd unit %s named '%s' timed out", op->action, op->agent, op->rsc); agent 1012 lib/services/systemd.c if ((op->action == NULL) || (op->agent == NULL)) { agent 1025 lib/services/systemd.c (op->synchronous? "" : "a"), op->action, op->agent, agent 1029 lib/services/systemd.c op->stdout_data = systemd_unit_metadata(op->agent, op->timeout); agent 1040 lib/services/systemd.c if (invoke_unit_by_name(op->agent, op, NULL) == pcmk_rc_ok) { agent 436 lib/services/upstart.c op->action, op->agent, crm_str(op->rsc), error->message); agent 527 lib/services/upstart.c if ((op->action == NULL) || (op->agent == NULL)) { agent 540 lib/services/upstart.c op->stdout_data = upstart_job_metadata(op->agent); agent 545 lib/services/upstart.c if (!object_path_for_job(op->agent, &job, op->timeout)) { agent 58 tools/stonith_admin.c char *agent; agent 173 tools/stonith_admin.c { "agent", 'a', 0, G_OPTION_ARG_STRING, &options.agent, agent 483 tools/stonith_admin.c if (required_agent && options.agent == NULL) { agent 541 tools/stonith_admin.c rc = st->cmds->register_device(st, st_opts, device, NULL, options.agent, agent 560 tools/stonith_admin.c rc = pcmk__fence_metadata(out, st, options.agent, options.timeout*1000); agent 598 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params,