On 10/15/07, Junko IKEDA <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I try to set a time based configuration rule using "date_spec".
> Heartbeat started successfully with the following cib.xml,
> but crm_mon went to a segmentation fault.
> are there any wrong setting in my cib.xml?

no, crm_mon just didn't expect to be processing date_specs and so
didnt set up the "now" variable.

I'll commit this patch shortly:

diff -r c71cad445406 lib/crm/pengine/status.c
--- a/lib/crm/pengine/status.c  Fri Oct 12 22:00:13 2007 +0200
+++ b/lib/crm/pengine/status.c  Mon Oct 15 11:57:04 2007 +0200
@@ -81,6 +81,10 @@ cluster_status(pe_working_set_t *data_se
                return FALSE;
        }

+       if(data_set->now == NULL) {
+           data_set->now = new_ha_date(TRUE);
+       }
+
        if(data_set->input != NULL
           && crm_element_value(data_set->input, XML_ATTR_DC_UUID) != NULL) {
                /* this should always be present */


>
> ...
> <instance_attributes id="monday_override" score="100">
>   <rule id="rule1" boolean_op="and">
>     <date_expression id="prmDummy:days1" operation="date_spec">
>       <date_spec id="prmDummy:days1" weekdays="1"/>
>     </date_expression>
>   </rule>
>   <attributes>
>     <nvpair id="tuesday-sticky" name="resource_stickiness" value="150"/>
>   </attributes>
> </instance_attributes>
> <instance_attributes id="otherday" score="10">
>   <attributes>
>     <nvpair id="other-sticky" name="resource_stickiness" value="0"/>
>   </attributes>
> </instance_attributes>
> ...
>
> I attached the logs.
>
> Best Regards,
> Junko Ikeda
>
> NTT DATA INTELLILINK CORPORATION
>
>
> _______________________________________________
> 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