Uploaded image for project: 'Service Orchestrator'
  1. Service Orchestrator
  2. SO-2836

SO GR Api sends wrong reposnse after service instantiation.

XMLWordPrintable

      During tests for PNF service instantiation using GR Api we noticed that after sucesfull POST Request:

      Starting new HTTP connection (1): so.onap:8080                                           12:43:04.869       DEBUG       http://so.onap:8080 "POST /onap/so/infra/serviceInstantiation/v7/serviceInstances HTTP/1.1" 202 228                                           12:43:04.870       DEBUG       post response: {"requestReferences":{"requestId":"87ca9175-3da3-442e-b952-6954e1514b19","instanceId":"be456334-b136-423a-b2dd-cb2908253a6f","requestSelfLink":"http://so.onap:8080/orchestrationRequests/v7/87ca9175-3da3-442e-b952-6954e1514b19"}}                                           12:43:04.870       INFO       Post Request using : alias=so, uri=/onap/so/infra/serviceInstantiation/v7/serviceInstances, data={
          "requestDetails":{
              "modelInfo":{
                  "modelInvariantId": "a4c386b1-52e5-4923-8965-278ff0edc89d",
                  "modelVersionId":"4eb54289-3762-43a0-8fb5-df1057e4582d",
                  "modelName":"Demo_pNF_uCkM0RFnnA8yWngf5Ry0",
                  "modelType":"service",
                  "modelVersion":"1.0"
              },
              "owningEntity":{
                  "owningEntityId":"f1b94094-1516-4ff3-ad60-4c5473d926ee",
                  "owningEntityName":"OE-ETE_Customer"
              },
              "subscriberInfo":{
                  "globalSubscriberId":"ETE_Customer_d7639b74-f38a-4779-9c93-c0acc76bd04f"
              },
              "requestInfo":{
                  "instanceName":"Service_Ete_Named7639b74-f38a-4779-9c93-c0acc76bd04f",
                  "productFamilyId":"6135ce5d-341e-4d40-a465-7bd8e4d72dcf",
                  "source":"VID",
                  "suppressRollback": "False",
                  "requestorId":"demo"
              },
              "requestParameters":{
                  "subscriptionServiceType":"pNF",
                  "aLaCarte": "False",
                  "userParams":[
                      {
                          "service":{
                              "modelInfo":{
                                  "modelVersionId":"4eb54289-3762-43a0-8fb5-df1057e4582d",
                                  "modelName":"Demo_pNF_uCkM0RFnnA8yWngf5Ry0",
                                  "modelType":"service"
                              },
                              "instanceName":"Service_Ete_Named7639b74-f38a-4779-9c93-c0acc76bd04f",
                              "instanceParams":[
                              ],
                              "resources":{
                                  "pnfs":[
                                      {
                                          "modelInfo":{
                                              "modelCustomizationName":"pNF f7b1cfb2-6295 0",
                                              "modelCustomizationId":"2aebc2ed-a18c-42b0-b9df-5eb35e87bb93",
                                              "modelInvariantId":"a4c386b1-52e5-4923-8965-278ff0edc89d",
                                              "modelVersionId":"4eb54289-3762-43a0-8fb5-df1057e4582d",
                                              "modelName":"Demo_pNF_uCkM0RFnnA8yWngf5Ry0",
                                              "modelType":"pnf",
                                              "modelVersion":"1.0"
                                          },
                                          "platform":{
                                              "platformName":"Platform-ETE_Customer"
                                          },
                                          "lineOfBusiness":{
                                              "lineOfBusinessName":"LOB-ETE_Customer"
                                          },
                                          "productFamilyId":"6135ce5d-341e-4d40-a465-7bd8e4d72dcf",
                                          "instanceParams":[],
                                          "instanceName":"uCkM0RFnnA8yWngf5Ry0"
                                      }
                                  ]
                              }
                          }
                      },
                      {
                          "Homing_Solution":"none"
                      }
                  ]
              }
          }
      }, headers={'X-FromAppId': 'robot-ete', 'X-TransactionId': '87ca9175-3da3-442e-b952-6954e1514b19', 'Content-Type': 'application/json', 'Accept': 'application/json', 'Content-MD5': 'YjIyMWU4ZTdlYTg0YzQ4M2UzZDY5OTg5OTMzODllY2I='}, files=None, allow_redirects=True                                            12:43:04.870       
      

      we get reponse:

      INFO Received response from [so]: 
      {
        "requestReferences": {
          "requestId": "87ca9175-3da3-442e-b952-6954e1514b19",
          "instanceId": "be456334-b136-423a-b2dd-cb2908253a6f",
          "requestSelfLink": "http://so.onap:8080/orchestrationRequests/v7/87ca9175-3da3-442e-b952-6954e1514b19"
        }
      }
      12:43:04.870 INFO Creation request submitted to SO, got response
      

      Unfortunately path http://so.onap:8080/orchestrationRequests/v7/87ca9175-3da3-442e-b952-6954e1514b19 is wrong.

      Should be:

      http://so.onap:8080/onap/so/infra/orchestrationRequests/v7/87ca9175-3da3-442e-b952-6954e1514b19

       

            lukaszm lukaszm
            kkuzmick kkuzmick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: