Good day time!

I have tried to instantiate my component as foreground process 
(blocking process) in my instantiate shell script (I want to analyze a 
error code if the erroneous situation occurs) and got the fault:

AMF restarts my component if a shell script does not return status 
during INSTANTIATE timeout even when my component calls 
saAmfComponentRegister within this period.

Is it prohibited situation? If it is, a instantiation shell script can 
get instantiation error code only via special mechanism.

Current implementation of instantiation script in the OpenSAF examples 
closes the eyes on possible problems which can occurs during 
instantiation of SA-Aware components. It does not meet the standards:

> INSTANTIATE must report success if the component is already instantiated when 
> the
> command is run. If the INSTANTIATE command is completed successfully, the com-
> ponent must be fully instantiated. The timeout associated with the INSTANTIATE
> command is used to set a limit on the time the Availability Management 
> Framework
> will give for the component instantiation to complete. This time includes the 
> comple-
> tion of the INSTANTIATE command itself; for SA-aware components, it also 
> includes
> the extra time which may be needed by the component, after INSTANTIATE 
> returns,
> to register with the Availability Management Framework. 

because the shell script returns SUCCESS immediately after the 
starting component process as background process without analyzing of 
error code which can be returned by the component.

Thanks in advance for your comments,
Anatoly.
_______________________________________________
Users mailing list
[email protected]
http://list.opensaf.org/maillist/listinfo/users

Reply via email to