Hi there.

I'm using NTF to get notified of state changes to monitor the status of my 
applications. I've been monitoring the state of a ServiceInstance in order to 
know whether some software is fully or partially assigned.

The problem I've found is that NTF issues a SA_NTF_OBJECT_STATE_CHANGE event 
for all transitions of the AssignmentState of the Service Instance, EXCEPT for 
the transitions to SA_AMF_ASSIGNMENT_UNASSIGNED. I've been testing it with 
Opensaf 5.19.10 and both my own code and the ntfsubscribe helper app show the 
same behavior:

I unlock a ServiceUnit to force an assignment state change in the 
ServiceInstance and I get:

===  Jun  9  6:26:31 - State Change  ===
eventType = SA_NTF_OBJECT_STATE_CHANGE
notificationObject = "safSu=AppFirstA,safSg=AppFirst,safApp=SCDS"
notifyingObject = "safApp=safAmfService"
notificationClassId = SA_NTF_VENDOR_ID_SAF.SA_SVC_AMF.102 (0x66)
additionalText = "Admin state of safSu=AppFirstA,safSg=AppFirst,safApp=SCDS 
changed"
sourceIndicator = SA_NTF_MANAGEMENT_OPERATION
State ID = SA_AMF_ADMIN_STATE
Old State: SA_AMF_ADMIN_LOCKED
New State: SA_AMF_ADMIN_UNLOCKED

===  Jun  9  6:26:31 - State Change  ===
eventType = SA_NTF_OBJECT_STATE_CHANGE
notificationObject = "safSi=AppFirst,safApp=SCDS"
notifyingObject = "safApp=safAmfService"
notificationClassId = SA_NTF_VENDOR_ID_SAF.SA_SVC_AMF.111 (0x6f)
additionalText = "The Assignment state of SI safSi=AppFirst,safApp=SCDS changed"
sourceIndicator = SA_NTF_OBJECT_OPERATION
State ID = SA_AMF_ASSIGNMENT_STATE
Old State: SA_AMF_ASSIGNMENT_UNASSIGNED
New State: SA_AMF_ASSIGNMENT_PARTIALLY_ASSIGNED


However if I now lock the ServiceUnit, I get the following:

===  Jun  9  6:27:55 - State Change  ===
eventType = SA_NTF_OBJECT_STATE_CHANGE
notificationObject = "safSu=AppFirstA,safSg=AppFirst,safApp=SCDS"
notifyingObject = "safApp=safAmfService"
notificationClassId = SA_NTF_VENDOR_ID_SAF.SA_SVC_AMF.102 (0x66)
additionalText = "Admin state of safSu=AppFirstA,safSg=AppFirst,safApp=SCDS 
changed"
sourceIndicator = SA_NTF_MANAGEMENT_OPERATION
State ID = SA_AMF_ADMIN_STATE
Old State: SA_AMF_ADMIN_UNLOCKED
New State: SA_AMF_ADMIN_LOCKED

===  Jun  9  6:27:55 - Alarm  ===
eventType = SA_NTF_ALARM_PROCESSING
notificationObject = "safSi=AppFirst,safApp=SCDS"
notifyingObject = "safApp=safAmfService"
notificationClassId = SA_NTF_VENDOR_ID_SAF.SA_SVC_AMF.5 (0x5)
additionalText = "SI designated by safSi=AppFirst,safApp=SCDS has no current 
active assignments to any SU"
probableCause = SA_NTF_SOFTWARE_ERROR
perceivedSeverity = SA_NTF_SEVERITY_MAJOR

In the first case, I get the state change, but in the second case, I get an 
alarm instead, but in both cases the AssignmentState changes, as can be 
verified with amf-state or immlist or the API itself.

Is that the expected behavior?

Thanks.

--
José Tomás Tocino García
Ingeniero Informático - System Infrastructure Team

Ubicación: Edif. Integración LBTS F110 / F105 / SCOMBA, Navantia Sistemas, SF
Email: elimco.jttoci...@navantia.es<mailto:elimco.jttoci...@navantia.es>
Tfno: 856 30 9163
[logoSoologicSmall]





[Navantia]
________________________________

NAVANTIA S.A. S.M.E. Este mensaje y cualquier fichero anexo al mismo contiene 
información de carácter confidencial dirigida exclusivamente a su(s) 
destinatario(s) y, en su caso, sometida a secreto profesional. Queda prohibida 
su difusión, copia o distribución a terceros sin la previa autorización 
escrita. Si Vd. ha recibido este mensaje por error, se ruega lo comunique 
inmediatamente por esta misma vía y proceda a su completa eliminación. Puede 
revisar nuestra política de privacidad en http://www.navantia.es/es/legal/.

The information in this e-mail and in any attachments is confidential and, if 
any, protected by a professional privilege and intended solely for the 
attention and use of the named address(es). You are hereby notified that any 
dissemination, copy or distribution of this information is prohibited without 
the prior written consent. If you have received this communication in error, 
please notify the sender by reply e-mail and delete it. You can review our 
privacy policy at http://www.navantia.es/en/legal/.

________________________________

[Navantia] Piense en el medio ambiente. ¿Necesita realmente imprimir este 
correo? Please care for the environment. Do you really need to print this 
e-mail?

_______________________________________________
Opensaf-users mailing list
Opensaf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-users

Reply via email to