Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-2845

pnf resource is not saved an AAI after distribution in sdc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Frankfurt Release
    • Frankfurt Release
    • None

      onap jira: https://jira.onap.org/browse/SO-2640

       

      Step to reproduce:

      Open SDC GUI, create macro service and put pnf as composition. After distribution, try to do macro orchestration. The flow gets error in AssignPnfBB in the "Create Pnf Entry in AAI".
      In the debug.log there is a message:

        "statusMessage" : "Runtime error : Error while evaluating expression: ${AAICreateTasks.createPnf(InjectExecution.execute(execution, execution.getVariable(\"gBuildingBlockExecution\")))}. Cause: javax.ws.rs.NotFoundException: Error calling A&AI. Request-Id=9ca22867-3fcd-41cf-bede-bbef61322e00 Resource not found for PUT using id network/pnfs/pnf/PNF_054 (msg=Node Not Found:object located at service-design-and-creation/models/model/02349602-59ce-4096-8dab-fe1c7eef08e7/model-vers/model-ver/4dcd0a14-d916-436d-8c9c-c033acea3216 not found) (ec=ERR.5.4.6114)"

      The problem is that before writing a pnf instance an aai, there is no entry about pnf resource.  This entry should be created after sdc distribution.

      --------------------------------------------------------------------------------------------

      Workaround:
      If we set proper entries in aai manually, the flow will pass. 

      Example:

      Let us assume that pnf Invariant UUID is 02349602-59ce-4096-8dab-fe1c7eef08e7 and uuid is 4dcd0a14-d916-436d-8c9c-c033acea3216

      send a proper rest to aai about invariant uuid:

      curl -k --request PUT \   --url https://10.74.72.231:30233/aai/v16/service-design-and-creation/models/model/02349602-59ce-4096-8dab-fe1c7eef08e7 \   --header 'authorization: Basic TW9kZWxMb2FkZXI6TW9kZWxMb2FkZXI=' \   --header 'content-type: application/json' \   --header 'x-fromappid: 8765432121' \   --header 'x-transactionid: 987654321' \   --data '{     "model-type":"resource" }'

      Then you have make an entry about pnf resource uuid:

      curl -k --request PUT \  --url https://10.74.72.231:30233/aai/v16/service-design-and-creation/models/model/02349602-59ce-4096-8dab-fe1c7eef08e7/model-vers/model-ver/4dcd0a14-d916-436d-8c9c-c033acea3216 \  --header 'authorization: Basic TW9kZWxMb2FkZXI6TW9kZWxMb2FkZXI=' \  --header 'content-type: application/json' \  --header 'x-fromappid: 8765432121' \  --header 'x-transactionid: 987654321' \  --data '{    "model-name":"pNF afd2243e-3e51",    "model-version":"1.0",    "model-description":"vendor software product"}'

      After these operation the flow will pass.

       

            lukaszm lukaszm
            lukaszm lukaszm
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: