date_spec also needs an id.
try looking at the rule.rng schema

On Tue, Aug 4, 2009 at 8:49 AM, abhishek agrawal<[email protected]> wrote:
> I tried to add a score in that rule but after that also it is not
> working.with that score my xml looks like following
>
> <resources>
>      <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" score="100">
>  <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>
>    </resources>
>
> but for it its giving same error :
> Update does not conform to the configured schema/DTD
> <null>
>
>
>
> --abhishek
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
_______________________________________________
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