Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-438

pdp-d apps vdns so: mismatch in post request

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • Amsterdam Release
    • Amsterdam Release
    • None
    • Integration lab

      there are mismatches in so interface to be resolved found during integration testing ..

      requestId should not be part of the request.

      modelNameVersionId should be modelVersionId

      policy@drools:/opt/app/policy/tmp$ curl -vvv --user 'InfraPortalClient:password1$' --header "Content-Type: application/json" --data @mso2.json -X POST http://vm1.mso.simpledemo.openecomp.org:8080/ecomp/mso/infra/serviceInstances/v5/3c2d03e3-f264-4544-ae83-322087adf945/vnfs/bb02635b-bda4-49c9-af38-362e21e1ade5/vfModules

      • Hostname was NOT found in DNS cache

      *   Trying 10.0.5.1...

      • Connected to vm1.mso.simpledemo.openecomp.org (10.0.5.1) port 8080 (#0)
      • Server auth using Basic with user 'InfraPortalClient'

      > POST /ecomp/mso/infra/serviceInstances/v5/3c2d03e3-f264-4544-ae83-322087adf945/vnfs/bb02635b-bda4-49c9-af38-362e21e1ade5/vfModules HTTP/1.1

      > Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==

      > User-Agent: curl/7.35.0

      > Host: vm1.mso.simpledemo.openecomp.org:8080

      > Accept: /

      > Content-Type: application/json

      > Content-Length: 1481

      > Expect: 100-continue

      >

      < HTTP/1.1 100 Continue

      < Content-Length: 0

      < HTTP/1.1 400 Bad Request

      < Expires: 0

      < Cache-Control: no-cache, no-store, must-revalidate

      < X-Powered-By: Undertow/1

      • Server WildFly/10 is not blacklisted

      < Server: WildFly/10

      < Pragma: no-cache

      < Date: Wed, 08 Nov 2017 19:50:31 GMT

      < Connection: keep-alive

      < Content-Type: application/json

      < Content-Length: 114

      • HTTP error before end of send, stop sending

      <

      • Closing connection 0

      {"serviceException":{"messageId":"SVC0002","text":"Error parsing request.  No valid modelVersionId is specified"}}

       

      ===
      POST payload:

       

      {

        "requestDetails": {

          "modelInfo": {

            "modelType": "vfModule",

            "modelInvariantId": "6d760188-9a24-451a-b05b-e08b86cb94f2",

            "modelNameVersionId": "1",

            "modelName": "93facad9-55f2-4fe0-9574-814c2bc2d071",

            "modelVersion": "93facad9-55f2-4fe0-9574-814c2bc2d071"

          },

          "cloudConfiguration": {

            "lcpCloudRegionId": "RegionOne",

            "tenantId": "41d6d38489bd40b09ea8a6b6b852dcbd"

          },

          "requestInfo": {

            "instanceName": "vLoadBalancer-1107-1",

            "source": "POLICY",

            "suppressRollback": false

          },

          "relatedInstanceList": [

            {

              "relatedInstance": {

                "instanceId": "3c2d03e3-f264-4544-ae83-322087adf945",

                "modelInfo": {

                  "modelType": "service",

                  "modelInvariantId": "1321d60d-f7ff-4300-96c2-6bf0b3268b7a",

                  "modelNameVersionId": "1.0",

                  "modelName": "732d4692-4b97-46f9-a996-0b3339e88c50",

                  "modelVersion": "732d4692-4b97-46f9-a996-0b3339e88c50"

                }

              }

            },

            {

              "relatedInstance": {

                "instanceId": "bb02635b-bda4-49c9-af38-362e21e1ade5",

                "modelInfo": {

                  "modelType": "vnf",

                  "modelInvariantId": "cee050ed-92a5-494f-ab04-234307a846dc",

                  "modelNameVersionId": "1.0",

                  "modelName": "fd65becc-6b2c-4fe8-ace9-cc29db9a3da2",

                  "modelVersion": "resource",

                  "modelCustomizationName": "vLoadBalancer 0"

                }

              }

            }

          ],

          "requestParameters": {}

        }

      }

            jhh jhh
            jhh jhh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: