i was trying following code to stop me IPaddr resource after business
hours.Without addition of rule this config was working but now with this
rule its showing errors-

<primitive class="ocf" id="failover-ip" provider="heartbeat" type="IPaddr">
        <instance_attributes id="failover-ip-instance_attributes">
          <nvpair id="failover-ip-instance_attributes-ip" name="ip"
value="15.154.59.49"/>
        </instance_attributes>
        <operations>
          <op id="failover-ip-monitor-5s" interval="5s" name="monitor"/>
        </operations>
        <meta_attributes id="core-hours" score="10">
<rule id="core-hour-rule">
<date_expression id="9to5" operation="date_spec">
<date_spec hours="9-17"/>
</date_expression>
</rule>
          <nvpair id="core-hour-role" name="target-role" value="started"/>
        </meta_attributes>
        <meta_attributes id="after-hours" score="5">
          <nvpair id="after-hour-role" name="target-role" value="stopped"/>
        </meta_attributes>
      </primitive>




output of crm_verify--

Relax-NG validity error : Extra element rule in interleave
test.xml:24: element rule: Relax-NG validity error : Element meta_attributes
failed to validate content
Relax-NG validity error : Extra element meta_attributes in interleave
test.xml:23: element meta_attributes: Relax-NG validity error : Element
primitive failed to validate content
test.xml:16: element primitive: Relax-NG validity error : Element resources
has extra content: primitive
test.xml:1: element cib: Relax-NG validity error : Element cib failed to
validate content
crm_verify[23745]: 2009/08/01_20:14:19 ERROR: main: CIB did not pass
DTD/schema validation
Errors found during check: config not valid


can someone pls help me with it.
-- 
Abhishek
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to