Hi all, hi Kristoffer, hi Dejan,
I do have the following problem with crm 1.2.6 rc3 and older
in the context of ms resources.
When I declare the following config:
primitive r_drbd_fodb ocf:linbit:drbd \
params drbd_resource="fodb" drbdconf="/usr/local/etc/drbd.conf" \
op monitor interval="15s" timeout="120s" role="Master" \
op monitor interval="45s" timeout="120s" role="Slave" \
op start timeout="240" \
op stop timeout="240"
ms ms_drbd_fodb r_drbd_fodb \
meta master-max="1" master-node-max="1" \
clone-max="2" clone-node-max="1" \
notify="true" \
meta target-role="Stopped" migration-threshold="2"
then two meta-attributes sections are inserted into the cib:
<meta_attributes id="ms_drbd_fodb-meta_attributes">
<nvpair name="master-max" value="1"
id="ms_drbd_fodb-meta_attributes-master-max"/>
<nvpair name="master-node-max" value="1"
id="ms_drbd_fodb-meta_attributes-master-node-max"/>
<nvpair name="clone-max" value="2"
id="ms_drbd_fodb-meta_attributes-clone-max"/>
<nvpair name="clone-node-max" value="1"
id="ms_drbd_fodb-meta_attributes-clone-node-max"/>
<nvpair name="notify" value="true"
id="ms_drbd_fodb-meta_attributes-notify"/>
</meta_attributes>
<meta_attributes id="ms_drbd_fodb-meta_attributes-0">
<nvpair name="target-role" value="Stopped"
id="ms_drbd_fodb-meta_attributes-0-target-role"/>
<nvpair name="migration-threshold" value="2"
id="ms_drbd_fodb-meta_attributes-0-migration-threshold"/>
</meta_attributes>
You can see one <nvpair name="target-role"/>.
After a 'crm resource start ms_drbd_fodb' you see the following:
<meta_attributes id="ms_drbd_fodb-meta_attributes">
<nvpair name="master-max" value="1"
id="ms_drbd_fodb-meta_attributes-master-max"/>
<nvpair name="master-node-max" value="1"
id="ms_drbd_fodb-meta_attributes-master-node-max"/>
<nvpair name="clone-max" value="2"
id="ms_drbd_fodb-meta_attributes-clone-max"/>
<nvpair name="clone-node-max" value="1"
id="ms_drbd_fodb-meta_attributes-clone-node-max"/>
<nvpair name="notify" value="true"
id="ms_drbd_fodb-meta_attributes-notify"/>
<nvpair id="ms_drbd_fodb-meta_attributes-target-role"
name="target-role" value="Started"/>
</meta_attributes>
<meta_attributes id="ms_drbd_fodb-meta_attributes-0">
<nvpair name="target-role" value="Started"
id="ms_drbd_fodb-meta_attributes-0-target-role"/>
<nvpair name="migration-threshold" value="2"
id="ms_drbd_fodb-meta_attributes-0-migration-threshold"/>
</meta_attributes>
HAAAAA: Now you have two entries name="target-role".
As long as I use a 'crm resource stop ms_drbd_fodb' it's no (?) problem as
you get the follwing:
<meta_attributes id="ms_drbd_fodb-meta_attributes">
<nvpair name="master-max" value="1"
id="ms_drbd_fodb-meta_attributes-master-max"/>
<nvpair name="master-node-max" value="1"
id="ms_drbd_fodb-meta_attributes-master-node-max"/>
<nvpair name="clone-max" value="2"
id="ms_drbd_fodb-meta_attributes-clone-max"/>
<nvpair name="clone-node-max" value="1"
id="ms_drbd_fodb-meta_attributes-clone-node-max"/>
<nvpair name="notify" value="true"
id="ms_drbd_fodb-meta_attributes-notify"/>
<nvpair id="ms_drbd_fodb-meta_attributes-target-role"
name="target-role" value="Stopped"/>
</meta_attributes>
<meta_attributes id="ms_drbd_fodb-meta_attributes-0">
<nvpair name="target-role" value="Stopped"
id="ms_drbd_fodb-meta_attributes-0-target-role"/>
<nvpair name="migration-threshold" value="2"
id="ms_drbd_fodb-meta_attributes-0-migration-threshold"/>
</meta_attributes>
You see, both incarnations are set to "Stopped".
Now the bug "BUT":
When I try a 'crm resource demote ms_drbd_fodb' insted of the stop, I get
the following:
Multiple attributes match name=target-role
Value: Started (id=ms_drbd_fodb-meta_attributes-target-role)
Value: Started (id=ms_drbd_fodb-meta_attributes-0-target-role)
Error performing operation: Invalid argument
what is definitely correct as shown by the cib-excerpt.
So, I'm not sure whether the initial duplication is the problem or the
behaviour
in the demote case.
Thank you in advance.
Best regards
Andreas Mock
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems