[Openais] Parse error when setting saAmfCompDisableRestart to
TRUE
Anders Eriksson
anders.s-o.eriksson at ericsson.com
Mon Feb 5 01:29:22 PST 2007
Hi,
Probably you are running a version where 'saAmfCompDisableRestart' is
not supported. (This configuration attribute is supported in latest
trunk version.)
A work around is to set the following two attributes equal to zero:
saAmfSGSuRestartMax
saAmfSGCompRestartMax
Best Regards
Anders Eriksson
Mujibur Rehman wrote:
>
> Hi,
>
> In the amf_conf config file , I am setting saAmfCompDisableRestart=true
> , it means that component restart should not happen.
> but I observe that component restart is still happening. There is not
> impact on aisexec whether I set saAmfCompDisableRestart=true or False.
>
> why this is happening? what should more I do to disable component
> restart during failure cases ?
>
> Thanks & Regards,
> Mujibur Rehman
>
>
>
> On Fri, 2007-02-02 at 08:03 +0100, Hans Feldt wrote:
>
>>Hi,
>>
>>That piece of code has been fixed in trunk:
>>
>>> } else if ((loc = strstr_rs (line, "saAmfCompDisableRestart=")) != 0) {
>>> if (strcmp (loc, "false") == 0) {
>>> comp->saAmfCompDisableRestart = SA_FALSE;
>>> } else if (strcmp (loc, "true") == 0) {
>>> comp->saAmfCompDisableRestart = SA_TRUE;
>>> } else {
>>> error_reason = "bad value";
>>> goto parse_error;
>>> }
>>
>>
>>Please observe that you have to use 'true' or 'false' as value for this
>>configuration key.
>>
>>Regards,
>>Hans
>>
>>Mujibur Rehman wrote:
>>> Hi ,
>>>
>>> I trying execute a scenario where I don't want component restart to
>>> happen during failure cases.
>>>
>>> In the *amf_conf *file I set the parameter *saAmfCompDisableRestart =
>>> TRUE*. It means that there should be no component restart during failure.
>>>
>>> but when I am running aisexec , I am getting parse error at
>>> /etc/ais/amf.conf: 49: returns bad value.
>>>
>>> I went through the *amf_util.c* file where there is code written to
>>> check the saAmfCompDisableRestart value.
>>>
>>> 671 } else if ((loc = strstr_rs (line,
>>> "saAmfCompDisableRestart")) != 0) {
>>> 672 //comp->saAmfCompDisableRestart =
>>> SA_TRUE;
>>> 673 if (strcmp (loc, "false") == 0) {
>>> 674
>>> comp->saAmfCompDisableRestart = SA_FALSE;
>>> 675 } else if (strcmp (loc, "true")
>>> == 0) {
>>> 676
>>> comp->saAmfCompDisableRestart = SA_TRUE;
>>> 677 } else {
>>> 678 error_reason = "returns
>>> bad value";
>>> 679 goto parse_error;
>>> 680 }
>>>
>>> By looking into code I got that it is going to else condition and
>>> returning a parse error.
>>>
>>>
>>> Please help me out why this is happening though I am correctly setting
>>> the saAmfCompDisableRestart = TRUE.
>>>
>>> Thanks,
>>> Mujibur Rehman.
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Openais mailing list
>>> Openais at lists.osdl.org <mailto:Openais at lists.osdl.org>
>>> https://lists.osdl.org/mailman/listinfo/openais
>>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Openais mailing list
> Openais at lists.osdl.org
> https://lists.osdl.org/mailman/listinfo/openais
More information about the Openais
mailing list