You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 41 Next »

References

CPS-1616 - Getting issue details... STATUS

CM Data Notification Subscription LCM (incl. merge)

Impl. Proposal CM Event Subscription LCM: Create

CPS-1776 - Getting issue details... STATUS

Out-of-scope

  • Working with wildcards and subscription update which will be taken care by a separate epic.
  • Subscription create ( done as part of a different story ) 
  • Merging of the ongoing subscriptions.


Assumptions

#

Issue

Notes

Decisions

1Delete use case works for a valid ongoing subscription only.

2Works only for the passthrough datastores.


Issues & Decisions

#

Issue

Notes

Decisions

1

Delete the subscription from the database?

  1. When do we actually delete the subscription from CPS DB ? We plan to do it when we receive response from the DMI plugins and the underlying subscriptions from the devices are deleted.

2What do we need to send to the DMI Plugin so that they are able to decide that how to delete the ongoing subscription.
  1. subscription name + client id
  2. + cmhandle ids?
  3. + cmhandle properties?
  4. + datastore?

3Who should be able to retry and make sure the subscriptions are deleted from the respective DMIs managing the devices.

kieran mccarthy  The agenda for the next meeting. We can decide then.

More on the "DELETING" stage ( if we want to have it ) 

kieran mccarthy As discussed on , The DME should be able to maintain Subscription State and make decision when to retry based on the response outcome we provide to it for create and/or delete use cases.


4DME to NCMP Event to have targets and datastore-xpath-filter information for the subscription delete use case ?

kieran mccarthy  As per the discussion today   we agreed to use targets , datastore-xpath-filters and datastores for the subscription delete use case.

5Do we send additional properties from NCMP to DMIAre additional properties needed to delete the subscription


Overview

  1. We receive an event of type : subscriptionDeleted from the client ( DME ) containing the subscription clientId and subscription name along with datastore and dataCategory details ( DMEtoNCMP )
  2. We check in NCMP that we have an ongoing subscription using clientId and subscriptionName.
  3. If we have ongoing subscription , we forward the event to dmi-plugins so that the changes are applied in the devices managed by dmi-plugin as well. ( Impl. Proposal CM Event Subscription LCM: Delete ( Positive Scenarios ) )
  4. Now if the dmi-plugins have applied the request then we get an event back from dmi-plugin and NCMP will process that event and based on that it will delete the ongoing subscription request from the database itself. If the response from DMI plugins is accepted ( i.e it can delete the subscriptions from the underlying devices and no subscription delete request are in PENDING or REJECTED state )Then we delete the subscriptions from the DB as well. ( Impl. Proposal CM Event Subscription LCM: Delete ( Positive Scenarios ) )
  5. After processing the received event from DMI , NCMP will send the final event to the client (DME). (  Impl. Proposal CM Event Subscription LCM: Delete ( Positive Scenarios ) )

Subscription Delete Sequence Diagram

CmSubscription Delete Exclusive Usecase DME DME NCMP NCMP CPS-DB CPS-DB DMI-PLUGIN DMI-PLUGIN 1'Request to delete the CmSubscription using subscriptionId' 2'Check if the CmSubscription is fully shared or exclusive per DMI' 3'for exclusive CmSubscription(part of the subscription) notify the "DMI-PLUGIN"s to ACCEPT/REJECT the subscription' 4'Request ACCEPTED by "DMI-PLUGIN"' 5'Delete the CmSubscription from the database and update the cache with ACCEPTED' 6'Respond with the status as ACCEPTED'


CmSubscription Delete Shared Usecase DME DME NCMP NCMP CPS-DB CPS-DB 1'Request to Delete the CmSubscription using subscriptionId' 2'Check if the CmSubscription is fully SHARED or EXCLUSIVE per DMI' 3'for SHARED CmSubscription dont notify the "DMI-PLUGIN"s' 4'Delete the CmSubscription from the database and update the cache with ACCEPTED' 5'Respond with the status as ACCEPTED'

  • No labels