[Pacemaker] using xml for rules

Andrew Beekhof andrew at beekhof.net
Mon Nov 15 02:14:10 EST 2010


On Thu, Nov 11, 2010 at 2:10 PM, Pavlos Parissis
<pavlos.parissis at gmail.com> wrote:
> I removed "score=2" from
> <rule id="working-hours-rule" boolean_op="or" score="2">

Have a look at the schema file:
   http://hg.clusterlabs.org/pacemaker/stable-1.0/raw-file/tip/xml/pacemaker.rng.in
   http://hg.clusterlabs.org/pacemaker/stable-1.0/raw-file/tip/xml/rule.rng.in

For starters: s/boolean_op/boolean-op/

>
>  245     <rsc_defaults>
>  246       <meta_attributes id="working-hours">
>  247         <rule id="working-hours-rule" boolean_op="or">
>  248           <date_expression id="six-to-eleven" operation="date_spec">
>  249             <date_spec id="six-to-elevene-Mon-Fri-spec"
> hours="6-23" weekdays="1-5"/>
>  250           </date_expression>
>  251           <date_expression id="eight-six" operation="date_spec">
>  252             <date_spec id="eight-six-Sat-Sun-spec" hours="8-16"
> weekdays="6-7"/>
>  253           </date_expression>
>  254         </rule>
>  255         <nvpair id="working-hours-stickiness"
> name="resource-stickiness" value="INFINITY"/>
>  256       </meta_attributes>
>  257       <meta_attributes id="after-hours" score="1">
>  258         <nvpair id="after-hours-stickiness"
> name="resource-stickiness" value="0"/>
>  259       </meta_attributes>
>  260     </rsc_defaults>
>
> and now I only get, from these I can't figure out where exactly is my
> mistake on the rules, coffee didn't help that much
>
> Relax-NG validity error : Extra element rsc_defaults in interleave
> /var/run/crm/cib-invalid.9yBICJ:245: element rsc_defaults: Relax-NG
> validity error : Element configuration failed to validate content
> /var/run/crm/cib-invalid.9yBICJ:1: element cib: Relax-NG validity
> error : Element cib failed to validate content
> cibadmin[9627]: 2010/11/11_14:07:26 ERROR: main: Call failed: Update
> does not conform to the configured schema/DTD
> Call failed: Update does not conform to the configured schema/DTD
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>




More information about the Pacemaker mailing list