[Openais] No component starting

Hans Feldt Hans.Feldt at ericsson.com
Mon Sep 4 05:48:08 PDT 2006


Remember to wrap every AIS call in a TRY_AGAIN loop as in testamf1.c:

> 	do {
> 		result = saAmfResponse (handle, invocation, error);
> 		if (result == SA_AIS_ERR_TRY_AGAIN) {
> 			fprintf(stderr, "%d: TRY_AGAIN received\n", getpid());
> 			usleep (100000);
> 		}
> 	} while (result == SA_AIS_ERR_TRY_AGAIN);

otherwise you will be in trouble one day...

The sleep time and the healthcheck duration period must not interfere.

/Hans

Ola Lundqvist wrote:
> Hi
> 
> I have found the problem now. The application did not properly register
> itself to AMF. Now it works fine.
> 
> Thanks for the help.
> 
> // Ola
> 
> Ola Lundqvist wrote:
> 
>>Hi
>>
>>Hans Feldt wrote:
>>
>>>SU names in the same SG needs to be unique. Both your Sus are named
>>>'OAM-SU-1'.
>>
>>Thanks for pointing that out. However that did not solve the problem,
>>unfortunatly.
>>
>>
>>>Every configuration object needs to be uniquely identified, read about
>>>the distinguished name (DN) concept.
>>
>>Regards,
>>
>>// Ola
>>
>>
>>>/Hans
>>>
>>>Ola Lundqvist wrote:
>>>
>>>>Hi
>>>>
>>>>Now I'm trying to determine why the CSI is not assigned to the
>>>>components. It seems to me like the SU is considered out of service.
>>>>
>>>>I can see that the component is instantiated and the application is
>>>>assigned.
>>>>
>>>>Sep  4  9:10:44.768886 [amf.c:1821] Cluster startup timeout, assigning
>>>>workload
>>>>Sep  4  9:10:44.769059 [amfsg.c:1209] (inservice=0)
>>>>(active_sus_needed=1) (standby_sus_needed=1)
>>>>Sep  4  9:10:44.769116 [amfsg.c:1215] assignment VI - partial assignment
>>>>with SIs drop outs
>>>>Sep  4  9:10:44.769170 [amfsg.c:1265] (inservice=0) (assigning active=0)
>>>>(assigning standby=0) (assigning spares=0)
>>>>Sep  4  9:10:44.769233 [amfcluster.c:0213] Cluster: application COM-A-1
>>>>assigned.
>>>>Sep  4  9:10:44.769677 [totemsrp.c:2132] releasing messages up to and
>>>>including 11
>>>>
>>>>After this nothing happens.
>>>>
>>>>Attaching my amf.conf file.
>>>>
>>>>Regards,
>>>>
>>>>// Ola
>>>>
>>>>
>>>>
>>>>------------------------------------------------------------------------
>>>>
>>>>safAmfCluster = COM_CLUSTER {
>>>>       saAmfClusterStartupTimeout=3000
>>>>   safAmfNode = node-com-1 {
>>>>       saAmfNodeSuFailOverProb=2000
>>>>       saAmfNodeSuFailoverMax=2
>>>>               saAmfNodeClmNode=node-com-1
>>>>   }
>>>>   safAmfNode = node-com-2 {
>>>>       saAmfNodeSuFailOverProb=2000
>>>>       saAmfNodeSuFailoverMax=2
>>>>               saAmfNodeClmNode=node-com-2
>>>>   }
>>>>   safApp = COM-A-1 {
>>>>       safSg = COM-SG-1 {
>>>>           saAmfSGRedundancyModel=nplusm   
>>>>           saAmfSGNumPrefActiveSUs=1
>>>>           saAmfSGMaxActiveSIsperSUs=1
>>>>           saAmfSGNumPrefStandbySUs=1
>>>>           saAmfSGMaxStandbySIsperSUs=1
>>>>           saAmfSGCompRestartProb=100000
>>>>           saAmfSGCompRestartMax=1
>>>>           saAmfSGSuRestartProb=20000   
>>>>           saAmfSGSuRestartMax=1
>>>>           saAmfSGAutoAdjustProb=5000
>>>>           safSu = OAM-SU-1
>>>>               saAmfSUHostedByNode=node-com-1
>>>>               saAmfSUNumComponents=1
>>>>               safComp = OAM-C-1 {
>>>>                   saAmfCompCategory=sa_aware
>>>>                   saAmfCompCapability=x_active_or_y_standby
>>>>                   saAmfCompNumMaxActiveCsi=1
>>>>                   saAmfCompNumMaxStandbyCsi=1
>>>>                   saAmfCompDefaultClcCliTimeout = 500
>>>>                   saAmfCompDefaultCallbackTimeOut = 500
>>>>                   saAmfCompInstantiateCmd = /opt/com/bin/cominit
>>>>                   saAmfCompInstantiateCmdArgv= instantiate oam -
>>>>                   saAmfCompTerminateCmd = /opt/com/bin/cominit
>>>>                   saAmfCompTerminateCmdArgv = terminate oam 0
>>>>                   saAmfCompCleanupCmd = /opt/com/bin/cominit
>>>>                   saAmfCompCleanupCmdArgv = cleanup oam 0
>>>>                   saAmfCompCsTypes {
>>>>                                               OAM
>>>>                   }
>>>>                   saAmfCompCmdEnv {
>>>>                   }
>>>>                   saAmfCompRecoveryOnError=component_restart
>>>>                   safHealthcheckKey = key1 {
>>>>                       saAmfHealthcheckPeriod = 5000
>>>>                       saAmfHealthcheckMaxDuration = 350
>>>>                   }
>>>>               }
>>>>           }
>>>>           safSu = OAM-SU-1
>>>>               saAmfSUHostedByNode=node-com-2
>>>>               saAmfSUNumComponents=1
>>>>               safComp = OAM-C-1 {
>>>>                   saAmfCompCategory=sa_aware
>>>>                   saAmfCompCapability=x_active_or_y_standby
>>>>                   saAmfCompNumMaxActiveCsi=1
>>>>                   saAmfCompNumMaxStandbyCsi=1
>>>>                   saAmfCompDefaultClcCliTimeout = 500
>>>>                   saAmfCompDefaultCallbackTimeOut = 500
>>>>                   saAmfCompInstantiateCmd = /opt/com/bin/cominit
>>>>                   saAmfCompInstantiateCmdArgv= instantiate oam -
>>>>                   saAmfCompTerminateCmd = /opt/com/bin/cominit
>>>>                   saAmfCompTerminateCmdArgv = terminate oam 0
>>>>                   saAmfCompCleanupCmd = /opt/com/bin/cominit
>>>>                   saAmfCompCleanupCmdArgv = cleanup oam 0
>>>>                   saAmfCompCsTypes {
>>>>                                               OAM
>>>>                   }
>>>>                   saAmfCompCmdEnv {
>>>>                   }
>>>>                   saAmfCompRecoveryOnError=component_restart
>>>>                   safHealthcheckKey = key1 {
>>>>                       saAmfHealthcheckPeriod = 5000
>>>>                       saAmfHealthcheckMaxDuration = 350
>>>>                   }
>>>>               }
>>>>           }
>>>>       }
>>>>       safSi = OAMWL {
>>>>           saAmfSINumCSIs=1
>>>>           safCsi = OAM-1 {
>>>>               saAmfCSTypeName = OAM
>>>>           }
>>>>       }
>>>>       safCSType = OAM {
>>>>       }
>>>>   }
>>>>}
>>>>
>>>>
>>>>
>>>>------------------------------------------------------------------------
>>>>
>>>>_______________________________________________
>>>>Openais mailing list
>>>>Openais at lists.osdl.org
>>>>https://lists.osdl.org/mailman/listinfo/openais
>>
>>
> 
> 




More information about the Openais mailing list