Navigation Menu

Skip to content

Commit

Permalink
Low: tools: crm_resource should set OCF_RESKEY_crm_feature_set
Browse files Browse the repository at this point in the history
Some resource agent relies on this environment variable during their
validate-all action to check the CRM feature set compatibility.

Without this environment variable, most of the --force-ACTION are
failing.

At least the Linbit/drbd and PAF (pgsqlms) agents are using it.
  • Loading branch information
ioguix committed Mar 17, 2017
1 parent 00ef0c1 commit aa584a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/crm_resource_runtime.c
Expand Up @@ -1508,6 +1508,10 @@ cli_resource_execute(const char *rsc_id, const char *rsc_action, GHashTable *ove
}

params = generate_resource_params(rsc, data_set);

/* add crm_feature_set env needed by some resource agents */
g_hash_table_insert(params, strdup(XML_ATTR_CRM_VERSION), strdup(CRM_FEATURE_SET));

op = resources_action_create(rsc->id, rclass, rprov, rtype, action, 0, -1, params, 0);

if(do_trace) {
Expand Down

0 comments on commit aa584a7

Please sign in to comment.