Menu

#1998 amf: protection group track non existing csi returns SA_AIS_ERR_INIT

5.1.RC1
fixed
None
defect
amf
-
minor
2016-09-06
2016-09-05
No

Steps to reproduce

  • Use 2N model.
  • Modify amf_demo.c as follow:
    • Initialze amf_demo with saAmfInitialize_4 or saAmfInitialize_o4.
    • Add a callback for protection group.
    • Call saAmfProtectionGroupTrack with a non-existing csi (e.g. "dummy" csi), the flag is SA_TRACK_CURRENT and notificationBuffer is NULL.

Observed behaviour

Before the patches for #1553 were pushed, the testcase had returned SA_AIS_ERR_NOT_EXIST return code.
After the patches for #1553 were pushed, the testcase has returned SA_AIS_ERR_INIT return code.

Initial investigation:

In the patches for #1553, Praveen added an internal callback structure (OsafAmfCallbacksT):
The structure divides protection track callback in two cases:
- SaAmfProtectionGroupTrackCallbackT for versions older than B.04.01.
- SaAmfProtectionGroupTrackCallbackT_4 for versions from B.04.01.

In the case that amf_demo is initialized with callbacks for B.04.01 (i.e. saAmfProtectionGroupTrackCallback_4 is set). When amf_demo call saAmfProtectionGroupTrack, amfa checks saAmfProtectionGroupTrackCallback (it is NULL now).
Then, amfa returns SA_AIS_ERR_INIT.

Related

Tickets: #1998

Discussion

  • Long H Buu Nguyen

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     Steps to reproduce
     ------------------
     - Use 2N model.
    
    • status: unassigned --> assigned
    • assigned_to: Long HB Nguyen
     
  • Long H Buu Nguyen

    • status: assigned --> review
     
  • Long H Buu Nguyen

    • status: review --> fixed
     

Log in to post a comment.