Page MenuHomeClusterLabs Projects

crm_resource --force-check fails for clones due to bad OCF_RESOURCE_INSTANCE
Open, NormalPublic

Assigned To
None
Authored By
nrwahl2
Wed, Oct 23, 4:11 AM
Tags
  • Restricted Project
  • Restricted Project
Referenced Files
None
Subscribers

Description

Forcing execution of a clone resource is supposed to try the first instance:

if (pcmk__is_clone(rsc)) {
    /* Grab the first child resource in the hope it's not a group */
    rsc = rsc->priv->children->data;
}

But this doesn't happen. Suppose we run crm_resource --resource clone3 --force-check. Then it uses clone3 as the instance name instead of stateful3.

<clone id="clone3" description="clone number 3">
  <primitive id="stateful3" class="ocf" type="Stateful" provider="pacemaker">
    <operations>
      <op name="monitor" interval="10s" timeout="20s" id="stateful3-monitor-interval-10s"/>
    </operations>
  </primitive>
</clone>
OCF_RESKEY_CRM_meta_class=ocf
OCF_RESKEY_CRM_meta_clone=0
OCF_RESKEY_CRM_meta_description=clone number 3
OCF_RESKEY_CRM_meta_globally_unique=false
OCF_RESKEY_CRM_meta_id=stateful3
OCF_RESKEY_CRM_meta_provider=pacemaker
OCF_RESKEY_CRM_meta_resource_stickiness=1
OCF_RESKEY_CRM_meta_timeout=20000
OCF_RESKEY_CRM_meta_type=Stateful
OCF_RESKEY_crm_feature_set=3.19.7
OCF_RESOURCE_INSTANCE=clone3
OCF_RESOURCE_PROVIDER=pacemaker
OCF_RESOURCE_TYPE=Stateful

Event Timeline

nrwahl2 triaged this task as Normal priority.Wed, Oct 23, 4:11 AM
nrwahl2 created this task.
nrwahl2 created this object with edit policy "Restricted Project (Project)".