Versions Compared

Key

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

...

Jira Legacy
serverSystem Jira
serverId4733707d-2057-3a0f-ae5e-4fd8aff50176
keyCPS-799

Issues/Decisions

#

Issue

Notes

Decision

1

Proposal

The state of a given cmhandle consists of the cmhandle state itself as well as the synchronization state information related to the model instance data related to the cmhandle.  Below shows the makeup of this state follow by the allowed cmhandle state transitions.

...

CmHandle state transitions : 

...

Drawio
mVer2
simple0
zoom1
inComment0
pageId16493113
custContentId91685265
diagramDisplayNameCM Handle State Transition.drawio
lbox1
contentVer1
revision1
baseUrlhttps://lf-onap.atlassian.net/wiki
diagramNameCM Handle State Transition.drawio
pCenter0
width1046
links
tbstyle
height621

Supported NCMP API Requests  (CPS-E-05):  

No Formatcode


------ Sync : Get the current state of a cmhandle when cmhandle is READY ----------------
    Request (sync)
           GET  {ncmp-root}/ncmp/v1/ch/<cmhandle>/state
           Accept: application/json

     Response 
           "state" : {
                "cmHandleState" : "READY",
                "dataSyncEnabled" : true,
                "dataSyncState" : {  *
                   operational {
                       "state" : "SYNCHRONIZED",
                       "lastSyncTime" : "2022-04-01 07:37:20"
                   }
                }
            }    

*  runningStoreState is not included in response if it does not exist / is not supported (yet)           
   

------ Sync :Get the current state of a cmhandle when cmhandle is LOCKED ---------------
    Request (sync)
           GET  {ncmp-root}/ncmp/v1/ch/<cmhandle>/state
           Accept: application/json

     Response 
           "state" : {
               "cmHandleState" : "LOCKED",
               "lockReason"    : {
                     "reason"  : "LOCKED_MISBEHAVING",
                     "details" : "Error recovering Modules for cmhandle"
                }
            }
               

------ Async : Get the current state of a cmhandle when cmhandle is READY ---------------- 
     Request (async)
            GET  {ncmp-root}/ncmp/v1/ch/<cmhandle>/state?topic=<topic-name>
            Accept: application/json

    Response 
            {
               "requestId" : "dffrtg56-rt56"
            }

    Event :

             "requestId" : "dffrtg56-rt56",
             "data" : {
                 "cmhandle" : "dfsdgfw454df",
                 "state" : {
                    "cmHandleState" : "READY",
                    "dataSyncEnabled" : true,
                    "dataSyncState" : {
                        operational { 
                            "state" : "SYNCHRONIZED",
                           "lastSyncTime" : "2022-04-01 07:37:20"
                       }
                    }
                }
              }
                  

...