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