[Pacemaker] using xml for rules

Pavlos Parissis pavlos.parissis at gmail.com
Sun Oct 17 13:26:38 EDT 2010


Hi,

I am trying to make a rule to control the failback on the resources. I want
during working days from 06:00 to 23:00 and on weekend from 08:00 to 16:00
to have
resource-stickiness 1000 and on the left hours zero, so cluster can perform
failback any resource which failed over during the working hours.
I wrote the following but I also get error [1]. I am not xml guru so I must
have done some stupid mistake here. Any hints?


<rsc_defaults>
  <meta_attributes id="working-hours">
   <rule id="working-hours-rule" boolean_op="or" score="2">
     <date_expression id="six-to-eleven" operation="date_spec">
       <date_spec id="six-to-elevene-Mon-Fri-spec" hours="6-23"
weekdays="1-5"/>
     </date_expression>
     <date_expression id="eight-six" operation="date_spec">
       <date_spec id="eight-six-Sat-Sun-spec" hours="8-16" weekdays="6-7"/>
     </date_expression>
   </rule>
    <nvpair id="working-hours-stickiness" name="resource-stickiness"
value="INFINITY"/>
  </meta_attributes>
  <meta_attributes id="after-hours" score="1">
    <nvpair id="after-hours-stickiness" name="resource-stickiness"
value="0"/>
  </meta_attributes>
</rsc_defaults>

[1]
cibadmin -V --replace --obj_type rsc_defaults --xml-file tmp.xml
Call cib_replace failed (-47): Update does not conform to the configured
schema/DTD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20101017/097233b2/attachment.html>


More information about the Pacemaker mailing list