Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Overview

Jira
serverONAP Jira
serverId425b2b0a-557c-3c0c-b515-579789cceedb
keyCPS-1142

  • Each Cm-Handle Each LCM state change triggers a LCM event notification sent to the user to notify about the state change.
  • When a cm handle Cm-Handle is registered it will initially be set in an 'ADVISED' state and .
  • If the module sync watchdog operation starts to work on an 'ADVISED' Cm-Handle, the Cm-Handle state will transition to 'READY' or 'LOCKED' based on if the module-sync has succeeded or failed respectively.
  • If the module sync watchdog operation is successful, data-sync-enabled will be set to false by and the module-sync watchdogdata sync-state will be 'NONE_REQUESTED'.
  • If the user wants to enable set data-sync-  enabled to true, it has to enable it be enabled on its dedicated API endpoint.
  • Once data sync-enabled is set to true, the data sync-state will be set to 'UNSYNCHRONIZED'.
  • Only the handles with enabled an 'UNSYNCHRONIZED' data sync-sync state will be picked up by the data-sync watchdog operation.
  • If the data-sync watchdog was able to complete the sync successfully then the dataStoreSync state will changed to SYNCHRONIZED.
  • If the handles are to be deleted during update, then their states will be set to 'DELETING' before the deletion happens, then after it to 'DELETED'
  • If the data-sync watchdog starts to work with on a cm Handle state transitions to 'READY' or 'LOCKED' whether data-sync succeeded or failed respectively
  • If the data-sync watchdog was able to the sync then the dataStoreSync state will changed to SYNCHRONIZED
  • . Once deletion is complete, the state is set to 'DELETED'.

Diagram of the possible transactions between CM-Handle states

Excerpt Include
DW:CPS-799 Spike: Define states and state handling for CM handleDW:
CPS-799 Spike: Define states and state handling for CM handle

...

Notification handling in code

Embed draw.io Diagramgliffy
macroId1a06341f-f16a-4d5a-b797-6b622b497afd
displayNameLcmEvents in code
nameLcmEvents in code
pagePin2
diagramNameUntitled Diagram
includedDiagram1
width627
pageId138872901

The Event structure of the notification

...

Gliffy Diagram
macroIdd9e40a29-f5cb-481d-b05f-01789d35b77a
displayNameState change use case diagram
nameState change use case diagram
pagePin1732

State changes after cm Handle update received

Gliffy Diagram
displayNameCm handle state changes after update
nameCm handle state changes after update
pagePin67

State changes

...

during

...

module-sync watchdog execution

Gliffy Diagram
displayNameState changes in module-sync watchdog
nameState changes in watchdog
pagePin24

State changes during data-sync watchdog execution

Gliffy Diagram
macroId75fb5cf6-c5d5-40b4-81b0-6445eb1140ff
namedata-sync Watchdog related state changes
pagePin119

Source materials

Important links to related Spikes and Implementation proposals

...

...