-
Story
-
Resolution: Unresolved
-
Medium
-
None
CmSubscription Delete : https://wiki.onap.org/pages/viewpage.action?pageId=177079422
Scenarios
- Cm Data Subscription DELETE in PENDING status
- Delete a subscription shared with other subscribers
- Delete a subscription (datastore AND cmhandle AND xpath) when it is the last subscriber for the subscription
Summary :
- The incoming Cm Subscription event to have predicates section as OPTIONAL.
- Only make a call to the DMI Plugin when its the last subscriber (datastore AND cmhandle AND xpath) we are trying to delete
- Eg : create sub-A on xpaths : x , y and z. create sub-B on xpaths q and y. When we DELETE sub-A , call to DMI is made to delete paths x and z.*
- Directly ACCEPT the DELETE request when we have other subscribers for ALL the xpaths that NCMP is tracking.
A/C:
- When Delete request comes in ("subscriptionDeleteRequest"), predicates are completely ignored since they are 'OPTIONAL'.
- No call made to the DMI when the subscription being deleted is 'shared' i.e. sub-A and sub-B shares the same predicates (datastore AND cmhandle AND xpath)
- Changes are only visible in database as removed subscription is deleted from the subscription list
- Request will be 'ACCEPTED' and response is sent to the client
- Call to the DMI is ONLY made when we are trying to delete a subscription wherein it is the last subscriber (datastore AND cmhandle AND xpath) .... meaning it is not shared with other subscribers
- if DMI responds with 'ACCEPTED', then the subscriber is removed along with ALL relevant rows in the database
- Request will be 'ACCEPTED' and response is sent to the client