Hi Anatoly,

   Please see my comments inline marked [suga].

Regards
Sugadeesh

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Anatoly Shirokov
> Sent: Monday, October 15, 2007 6:06 PM
> To: [email protected]
> Subject: [Users] Start SA-Aware component as background process
> 
> 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.

[suga] From the Paragraph you have pasted from the spec it is clear that
both the 
INSTANTIATE command should return success and the component should
Call saAmfComponentRegister()to consider the component instantiated.


> 
> 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.
> 

[suga] The openSAF components INSTANTIATE scripts return success if
already the process
are executing. They return error only if the process start command
fails. If the start
Succeeds, we expect that if any problem happens after the start, the
registration will not happen
So anyway instantiation will fail so the script will just return
success.

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

Reply via email to