Andrew Beekhof escribió:
On Thu, Oct 30, 2008 at 18:54, Andrew Beekhof <[EMAIL PROTECTED]> wrote:
On Oct 30, 2008, at 6:24 PM, Adrian Chapela wrote:
Hello again guys!
After a hard tests, Hearbeat + Pacemaker seem to work very well now. All
of rules are running OK. Tomorrow I will do more complex test.
This mail is related to documentation (Pacemaker Configuration Explained,
from 15/10/2008), to page 40. In this page there is this rule:
<rsc_location id="WebServer-connectivity" rsc="Webserver">
<rule id="pingd-exclude-rule" score="-INFINITY" >
<expression id="pingd-exclude" attribute="pingd" operation="lt"
value="3000"/>
</rule>
<rule id="pingd-prefer-rule" score_attribute="pingd" >
<expression id="pingd-prefer" attribute="pingd" operation="defined"/>
</rule>
</rsc_location>
DTD validation fails at rule id "pingd-prefer-rule". It shows me the
error:
element rule: Relax-NG validity error : Element rsc_location has extra
content: rule
I don't know if it is a documentation error, if rule is ok... I send to
you to have a look.
i think you can only have one rule (but multiple rules inside that rule)
no - multiple rules are ok.
did the resource referenced by the constraint exist when you tried to
create the constraint?
Yes, this was the error when I tried to validate the rule:
/var/run/shadow.uFzKAe:13: element rule: Relax-NG validity error :
Element rsc_location has extra content: rule
/var/run/shadow.uFzKAe:7: element rsc_order: Relax-NG validity error :
Element constraints has extra content: rsc_order
/var/run/shadow.uFzKAe:2: element configuration: Relax-NG validity error
: Invalid sequence in interleave
/var/run/shadow.uFzKAe:2: element configuration: Relax-NG validity error
: Element configuration failed to validate content
/var/run/shadow.uFzKAe:1: element cib: Relax-NG validity error : Element
cib failed to validate content
/var/run/shadow.uFzKAe:7: element rsc_order: validity error : IDREF
attribute then references an unknown ID "Montaxe_mail"
/var/run/shadow.uFzKAe:8: element rsc_colocation: validity error : IDREF
attribute rsc references an unknown ID "Montaxe_mail"
/var/run/shadow.uFzKAe:8: element rsc_colocation: validity error : IDREF
attribute rsc references an unknown ID "Montaxe_mail"
/var/run/shadow.uFzKAe:7: element rsc_order: validity error : IDREF
attribute first references an unknown ID "ms-drbd0"
/var/run/shadow.uFzKAe:8: element rsc_colocation: validity error : IDREF
attribute with-rsc references an unknown ID "ms-drbd0"
/var/run/shadow.uFzKAe:8: element rsc_colocation: validity error : IDREF
attribute with-rsc references an unknown ID "ms-drbd0"
/var/run/shadow.uFzKAe:9: element rsc_location: validity error : IDREF
attribute rsc references an unknown ID "ms-drbd0"
/var/run/shadow.uFzKAe:9: element rsc_location: validity error : IDREF
attribute rsc references an unknown ID "ms-drbd0"
cibadmin[3682]: 2008/11/03_10:10:38 ERROR: main: Call failed: Update
does not conform to the configured schema/DTD
can you send the rest of your config?
Yes, It is attached to the mail. I have included the rule in the config
file.
_______________________________________________
Pacemaker mailing list
[email protected]
http://list.clusterlabs.org/mailman/listinfo/pacemaker
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.0.0-node: a79dc66e18e7db17a99358f1f2f5111e46f90823"/>
</cluster_property_set>
</crm_config>
<nodes>
<node id="ea8af0a5-d8f2-41e7-a861-83236d53689f" uname="node1" type="normal"/>
<node id="016a6a9d-898c-4606-aa59-00e64ecaab86" uname="node2" type="normal"/>
</nodes>
<resources>
<master id="ms-drbd0">
<meta_attributes id="ma-ms-drbd0">
<nvpair id="ma-ms-drbd0-1" name="clone_max" value="2"/>
<nvpair id="ma-ms-drbd0-2" name="clone_node_max" value="1"/>
<nvpair id="ma-ms-drbd0-3" name="master_max" value="1"/>
<nvpair id="ma-ms-drbd0-4" name="master_node_max" value="1"/>
<nvpair id="ma-ms-drbd0-5" name="notify" value="yes"/>
<nvpair id="ma-ms-drbd0-6" name="globally_unique" value="true"/>
</meta_attributes>
<primitive id="drbd0" class="ocf" provider="heartbeat" type="drbd">
<instance_attributes id="ia-drbd0">
<nvpair id="ia-drbd0-1" name="drbd_resource" value="mail_disk"/>
</instance_attributes>
<operations>
<op id="op-ms-drbd0-1" name="monitor" interval="59s" timeout="60s" role="Master"/>
<op id="op-ms-drbd0-2" name="monitor" interval="60s" timeout="60s" role="Slave"/>
</operations>
</primitive>
</master>
<group id="mail_Group">
<primitive class="ocf" id="Montaxe_mail" provider="heartbeat" type="Filesystem">
<operations>
<op id="op_montaxe_mail" name="start" interval="0s" timeout="500s"/>
</operations>
<instance_attributes id="ia_montaxe_mail">
<nvpair id="drbd_montaxe_mail_1" name="device" value="/dev/drbd0"/>
<nvpair id="drbd_montaxe_mail_2" name="directory" value="/mnt/mail"/>
<nvpair id="drbd_montaxe_mail_3" name="fstype" value="ext3"/>
</instance_attributes>
</primitive>
</group>
<clone id="pingd-clone">
<primitive id="pingd" provider="heartbeat" class="ocf" type="pingd">
<instance_attributes id="pingd-attrs">
<nvpair id="pingd-dampen" name="dampen" value="5s"/>
<nvpair id="pingd-multiplier" name="multiplier" value="1000"/>
<nvpair id="pingd-hosts" name="host_list" value="192.168.18.210 192.168.18.254 192.168.18.253 192.168.18.200 192.168.18.201"/>
</instance_attributes>
</primitive>
</clone>
</resources>
<constraints>
<rsc_order id="ms-drbd0-promote-then-mail" first="ms-drbd0" first-action="promote" then="Montaxe_mail" then-action="start"/>
<rsc_colocation id="mail_drbrd_rule" rsc="Montaxe_mail" with-rsc="ms-drbd0" with-rsc-role="Master" score="INFINITY"/>
<rsc_location id="connectivity" rsc="ms-drbd0">
<rule id="pingd-exclude-rule" score="-INFINITY">
<expression id="pingd-exclude" attribute="pingd" operation="lt" value="5000"/>
</rule>
<rule id="pingd-prefer-rule" score_attribute="pingd" >
<expression id="pingd-prefer" attribute="pingd" operation="defined"/>
</rule>
</rsc_location>
<rsc_location id="primNode" rsc="ms-drbd0">
<rule id="preferred_primNode" score="INFINITY" role="Master">
<expression attribute="#uname" id="expression.id2242728" operation="eq" value="node2"/>
</rule>
</rsc_location>
</constraints>
</configuration>
_______________________________________________
Pacemaker mailing list
[email protected]
http://list.clusterlabs.org/mailman/listinfo/pacemaker