[Pacemaker] cibconfig dtd error

Andrew Beekhof andrew at beekhof.net
Sun Jun 26 20:21:35 EDT 2011


On Tue, Jun 14, 2011 at 6:55 AM, Shravan Mishra
<shravan.mishra at gmail.com> wrote:
> Hi all,
>
> I'm trying to define a constraint like this:
>
>
> cibadmin -o constraints -U -p<<END
> <rsc_location id="drbd-master" rsc="ms-drbd">
>  <rule id="diskless_constraint_evaluator" score="-INFINITY" role="master"
> boolean-op="or">
>   <rule id="diskless_constraint_1" boolean-op="and">
> <expression id="${node1}_expr_1" value="${node1}" attribute="#uname"
> operation="eq"/>
> <expression id="${node1}_expr_2" attribute="master-drbd0:0" operation="lt"
> value="1000"/>
>    <expression id="${node1}_expr3" attribute="master-drbd0:0"
> operation="not_defined"/>
>  </rule>
>   <rule id="diskless_constraint_2" boolean-op="and">
> <expression id="${node2}_expr_1" value="${node2}" attribute="#uname"
> operation="eq"/>
> <expression id="${node2}_expr_2" attribute="master-drbd0:1" operation="lt"
> value="1000"/>
>         <expression id="${node2}_expr3" attribute="master-drbd0:1"
> operation="not_defined"/>
>  </rule>
> </rsc_location>
> END
>
>
> I'm getting
> Call cib_create failed (-47): Update does not conform to the configured
> schema/DTD
>
>
> Is it not possible to define constraints like these ?
>

Sure. But are you sure ${node2} was expanded correctly?
Try a recent 1.1 build - it will show you the xml validation errors.

Or look in syslog for why it complained.




More information about the Pacemaker mailing list