[Pacemaker] using xml for rules

Pavlos Parissis pavlos.parissis at gmail.com
Thu Nov 11 13:10:32 UTC 2010


I removed "score=2" from
<rule id="working-hours-rule" boolean_op="or" score="2">



 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




More information about the Pacemaker mailing list