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

service instanceParams are not passed from SO to SDNC CreateServiceInstance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • El Alto Release
    • None

      When i try to add something like 

          "requestParameters": {    "requestParameters": {      "subscriptionServiceType": "vLB",      "userParams": [       

      {          "Homing_Solution": "none"        }

      ,        {          "service":

      {             "instanceParams": [           

      { "onap_private_net_id": "olc-onap", "onap_private_subnet_id": "olc-onap"}

                  ],

       

      in the SO service instantiation call, I noticed that SO does not send the instanceParams of the service to SDNC, although it sends the service instance name, like below

       

      2019-10-29T14:39:38.433Z|6dfecc3f-f66d-48a1-a693-0a9070ccf059|org.onap.so.client.sdnc.SDNCClient - {"input":{
      "request-information" :

      { "request-action" : "CreateServiceInstance", "source" : "MSO", "request-id" : "6dfecc3f-f66d-48a1-a693-0a9070ccf059" }

      ,
      "sdnc-request-header" :

      { "svc-request-id" : "d5bec222-47a6-4142-9f03-ef07239f4c5b", "svc-action" : "assign" }

      ,
      "service-information" : {
      "onap-model-information" :

      { "model-name" : "freeradius5", "model-version" : "1.0", "model-uuid" : "4dacb612-935f-4755-91a1-78af64331c42", "model-invariant-uuid" : "98d65302-3be3-4828-a116-1bedb2919048" }

      ,
      "subscription-service-type" : "vLB",
      "service-id" : "de63c4b9-0db8-435b-b5b0-84e9ac9c76eb",
      "global-customer-id" : "Demonstration",
      "service-instance-id" : "de63c4b9-0db8-435b-b5b0-84e9ac9c76eb"
      },
      "service-request-input" :

      { "service-instance-name" : "test2" }

      }}

       

      also, in BPMN logs, i see the service instance params are not mapped to user-params in the requestcontext variable, which is used to build the sdnc payload.

       

      2019-10-30T11:46:46.745Z|9c053288-2006-46a9-a32a-63f310d52b73|o.o.s.bpmn.servicedecomposition.tasks.BBInputSetup - GeneralBB: {
      "requestContext" :

      { "product-family-id" : "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", "source" : "VID", "requestor-id" : "adt", "subscription-service-type" : "vLB", "user-params" : \{ }

      ,          <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< EMPTY
      "action" : "createInstance",
      "callback-url" : null,
      "service-uri" : null,
      "mso-request-id" : "9c053288-2006-46a9-a32a-63f310d52b73",
      "requestParameters" : {
      "subscriptionServiceType" : "vLB",
      "userParams" : [

      { "Homing_Solution" : "none" }

      , {
      "service" : {
      "instanceParams" : [

      { "onap_private_net_id" : "olc-onap",      <<<<<<<<<<<<<<<<<<<<<<<MY VALUES "onap_private_subnet_id" : "olc-onap"  <<<<<<<<<<<<<<<<<<<<<<<MY VALUES }

      ],

       

       

       

      How can i pass some Service Instance Params from SO to SDNC ?

       

      The full curl :

      curl -X POST \curl -X POST \  http://84.39.34.234:30277/onap/so/infra/serviceInstantiation/v7/serviceInstances \  -H 'Accept: /' \  -H 'Accept-Encoding: gzip, deflate' \  -H 'Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==' \  -H 'Cache-Control: no-cache' \  -H 'Connection: keep-alive' \  -H 'Content-Length: 4760' \  -H 'Content-Type: application/json' \  -H 'Cookie: rememberMe=deleteMe; JSESSIONID=16E4DAA7BD7B79299891BBB7D1AAB5DD' \  -H 'Host: 84.39.34.234:30277' \  -H 'Postman-Token: d6ee7ab9-776b-48d2-aed9-005f6d2c66b6,c8682771-d748-4de8-8b0f-5773cee992df' \  -H 'User-Agent: PostmanRuntime/7.19.0' \  -H 'cache-control: no-cache' \  -d '{  "requestDetails":

      {     "subscriberInfo":

      {      "globalSubscriberId": "Demonstration"    }

      ,    "requestInfo": {      "suppressRollback": false,      "productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",      "requestorId": "adt",      "source": "VID",                "instanceName": "test4"    },    "cloudConfiguration": {      "lcpCloudRegionId": "fr1",      "tenantId": "6270eaa820934710960682c506115453",      "cloudOwner":"CloudOwner"    },    "requestParameters": {      "subscriptionServiceType": "vLB",      "userParams": [       

      {          "Homing_Solution": "none"        }

      ,        {          "service":

      {             "instanceParams": [           

      { "onap_private_net_id": "olc-onap", "onap_private_subnet_id": "olc-onap"}

                  ],            "resources": {              "vnfs": [                {                  "modelInfo":

      {                "modelName": "freeradius5",                "modelVersionId": "f7538c8d-c27c-46f9-8c2c-f01eb2a19bfa",                "modelInvariantUuid": "cd322f8b-0496-4126-b3d6-200adceaf11f",                "modelVersion": "1.0",                "modelCustomizationId": "bc976d7c-bf2c-4da5-9b6b-815d9ea22b92",                "modelInstanceName": "freeradius5 0"                  }

      ,                  "cloudConfiguration": {                    "lcpCloudRegionId": "fr1",                    "tenantId": "6270eaa820934710960682c506115453"                  },                  "platform": {                    "platformName": "test"                  },                  "lineOfBusiness": {                    "lineOfBusinessName": "LOB-Demonstration"                  },                  "productFamilyId": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",                  "instanceName": "freeradius5 0",                  "instanceParams": [                   

      {                             "pub_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCs84Cy8+qi/jvucay0BwFtOq3ian0ulTXFGxkZcZCR0N48j88pbHJaEqb9e25MAsrfH+7Etb9Kd5nbBThEL/i0AyHXnDsc80Oq0sqlLcfLo3SGSurkrNoRofHboJ5Hn+N9SlWN5FCQGbTx1w3rjqR4LasAI6XxH9xpXSFyyge6ysVXH0cYaZ8sg98nFZa1fPJR9L8COjZvF+EYudub2RC5HVyV/sx7bliNFo9JwQh6du1abG4G7ZDjTIcYwYp21iq52UzWU28RVcAyY6AQZJu2lHLdsr8fPvyeWZpC5EqGsxI1G609m9G/dURRKwYfez/f2ATzpn5QjEX7LrLWBM8r Generated-by-Nova",                      "image_name": "Ubuntu 16.04",                      "flavor_name":"n1.cw.standard-1",                      "sec_group":"olc-open",                      "cloud_env":"openstack",                      "public_net_id": "olc-public",                      "aic-cloud-region": "fr1",                      "key_name":"olc-key",                      "vf-naming-policy": "SDNC_Policy.Config_MS_ONAP_VNF_NAMING_TIMESTAMP",                      "radius_test_user": "Rene-Robert",                      "radius_test_password": "SecretPassword"                    }

                        ],                  "vfModules": [                    {                      "modelInfo":

      {                        "modelName": "Freeradius5..radius..module-0",                        "modelVersionId": "e08d6d0f-27ea-4b46-a2d1-0d60c49fca59",                        "modelInvariantUuid": "fdb408c6-6dd1-4a0c-88ca-ebc3ff77b445",                        "modelVersion": "1",                        "modelCustomizationId": "e82a94de-6dff-4dc9-a57e-335315c8fdae"                       }

      ,                      "instanceName": "Freeradius5..radius..module-0",                      "instanceParams": [                                                 

      {  }

                            ]                    }                  ]                }              ]            },            "modelInfo": {              "modelVersion": "1.0",        "modelVersionId": "4dacb612-935f-4755-91a1-78af64331c42",        "modelInvariantId": "98d65302-3be3-4828-a116-1bedb2919048",        "modelName": "freeradius5",              "modelType": "service"            }          }        }      ],      "aLaCarte": false    },    "project": {      "projectName": "Project-Demonstration"    },    "owningEntity": {      "owningEntityId": "67f2e84c-734d-4e90-a1e4-d2ffa2e75849",      "owningEntityName": "OE-Demonstration"    },    "modelInfo": {      "modelVersion": "1.0",        "modelVersionId": "4dacb612-935f-4755-91a1-78af64331c42",        "modelInvariantId": "98d65302-3be3-4828-a116-1bedb2919048",        "modelName": "freeradius5",     "modelType": "service"    }  }}'

       

       

            abdelseaudi abdelseaudi
            abdelseaudi abdelseaudi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: