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

Cannot execute macro instantiation using VID - wrong default for "Homing_Solution"

XMLWordPrintable

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

      Update by deen1985:
      This situation happens, when no Homing_Solution parameter is provided in the SO API call (included in SO/GR API - requestParameters/userParams).
      (By default VID generates such an SO API call, with requestParameters/userParams - but without the Homing_Solution parameter).
      In our environments, we are not using any homing solution - and in such a case the default SO OpenStack configuration is used.

      The solution proposal is, to set (within SO), the default value of this parameter to "none", which triggers using the default SO OpenStack configuration.
      If OOF/HAS is to be used, then a client can provide this parameter, and include it in an SO API call as well.

      Still, I think, we`re missing a default value for this parameter, which shall be probably set within SO, and used if nothing provided in SO API.
      Proposing default value to be set to "none".
      (In SO API call, we`re using this one, and it works - without calling any OOF/HAS solution).
      {
      "Homing_Solution": "none"
      }

      Hint 1: "sniro" is not a HAS solution used in ONAP - shouldn`t be used by default.
      Hint 2: The scale-out use-case initial instantiation uses as well Homing_solution: none, which serves as a valid default value.

      Details by wsliwka:
      During service macro instantiation following error is visible in bpmn log:

      2019-09-11T14:01:02.939Z|| o.onap.so.logging.jaxrs.filter.SpringClientFilter - ==========================request end================================================
      2019-09-11T14:01:02.952Z|| o.onap.so.logging.jaxrs.filter.SpringClientFilter - ============================response begin==========================================
      2019-09-11T14:01:02.953Z|| o.onap.so.logging.jaxrs.filter.SpringClientFilter - Status code : 200
      2019-09-11T14:01:02.953Z|| o.onap.so.logging.jaxrs.filter.SpringClientFilter - Status text :
      2019-09-11T14:01:02.953Z|| o.onap.so.logging.jaxrs.filter.SpringClientFilter - Headers :

      {X-Content-Type-Options=[nosniff], X-XSS-Protection=[1; mode=block], Cache-Control=[no-cache, no-store, max-age=0, must-revalidate], Pragma=[no- cache], Expires=[0], X-Frame-Options=[DENY], Content-Type=[application/json;charset=UTF-8], Transfer-Encoding=[chunked], Date=[Wed, 11 Sep 2019 14:01:02 GMT]}

      2019-09-11T14:01:02.954Z|| o.onap.so.logging.jaxrs.filter.SpringClientFilter - Response body: {
      "clientRequestId" : null,
      "action" : "createInstance",
      "requestStatus" : "IN_PROGRESS",
      "statusMessage" : "Internal Error - occurred while preparing sniro request: 404 Not Found",
      "rollbackStatusMessage" : null,
      "flowStatus" : "Execution of AssignServiceInstanceBB has completed successfully, next invoking AssignVnfBB (Execution Path progress: BBs completed = 1; BBs remaining = 8).",
      "retryStatusMessage" : null,
      "progress" : 15,
      "startTime" : "2019-09-11T14:00:50.000+0000",
      "endTime" : null,
      "source" : "VID",
      "vnfId" : "3d97d2fc-e436-48bd-b48c-31c5cedab012",
      "vnfName" : null,
      "vnfType" : null,
      "serviceType" : null,
      "aicNodeClli" : null,
      "tenantId" : null,
      "provStatus" : null,
      "vnfParams" : null,
      "vnfOutputs" : null,
      "requestBody" : "{\n \"requestDetails\": {\n \"modelInfo\":

      {\n \"modelInvariantId\": \"583c58f7-59d2-4d09-86ae-31599e9916bc\",\n \"modelVersionId\": \"178c5d27-c975-4a03-b1f4-925f690ff2c8\",\n \"modelName\": \"sample-alacarte\",\n \"modelType\": \"service\",\n \"modelVersion\": \"2.0\"\n }

      ,\n \"owningEntity\":

      {\n \"owningEntityId\": \"104a18b0-9577-4ff5-9e1b-808e063418bb\",\n \"owningEntityName\": \"Demonstration\"\n }

      ,\n \"subscriberInfo\": {\n \"globalSubscriberId\": \"Demonstration\"\n },\n \"project\":

      {\n \"projectName\": \"Demonstration\"\n }

      ,\n \"requestInfo\":

      {\n \"instanceName\": \"test\",\n \"productFamilyId\": \"3278ced4-05db-4d91-a23b-e6a74840202d\",\n \"source\": \"VID\",\n \"suppressRollback\": false,\n \"requestorId\": \"demo\"\n }

      ,\n \"requestParameters\": {\n \"subscriptionServiceType\": \"vLB\",\n \"aLaCarte\": false,\n \"userParams\": [\n {\n \"service\
      ": {\n \"modelInfo\":

      {\n \"modelVersionId\": \"178c5d27-c975-4a03-b1f4-925f690ff2c8\",\n \"modelName\": \"sample-alacarte\",\n \"mode lType\": \"service\"\n }

      ,\n \"instanceName\": \"test\",\n \"instanceParams\": [],\n \"resources\": {\n \"vnfs\": [\n
      {\n \"modelInfo\":

      {\n \"modelCustomizationName\": \"sample-service 0\",\n \"modelCustomizationI d\": \"8242a7b0-021c-4ddf-8ca9-060e314ed5de\",\n \"modelInvariantId\": \"b54ade01-386a-4573-a030-4b5c7a833e29\",\n \"modelVersionId\": \"1bec7146-2160-461b-9ba8 -0df93a7d6af3\",\n \"modelName\": \"sample-service\",\n \"modelType\": \"vnf\",\n \"modelVersion\": \"1.0\"\n }

      ,\n \"cloudConfiguration\":

      {\n \"lcpCloudRegionId\": \"RegionOne\",\n \"tenantId\": \"b05f5c5a932f4 f93acd034873df4fbc6\",\n \"cloudOwner\": \"CloudOwner\"\n }

      ,\n \"platform\":

      {\n \"platfor mName\": \"Demonstration\"\n }

      ,\n \"lineOfBusiness\":

      {\n \"lineOfBusinessName\": \"Demonstration\"\n }

      ,\n \"productFamilyId\": \"3278ced4-05db-4d91-a23b-e6a74840202d\",\n \"instanceParams\": [],\n \"vfModules\": [\n
      {\n \"modelInfo\":

      {\n \"modelCustomizationName\": \"SampleService..base_vdp..module-0\",\n \"modelCustomizationId\": \"ebbe5a8b-fd35-4df3-a88c-023c26e724f0\",\n \"modelInvariantId\": \"cd4d5d30-2fa1-441a-b1da-9c170120db51\",\n \"modelVersionId\": \"064b7845-4141-480b-8263-ea47219c5c62\",\n \"modelName\": \"SampleService..base_vdp..module-0\",\n \"modelType\ ": \"vfModule\",\n \"modelVersion\": \"1\"\n }

      ,\n \"instanceName\": \"test\",\n
      \"instanceParams\": []\n }\n ],\n \"instanceName\": \"test\"\n }\n
      ]\n }\n }\n }\n ]\n }\n }\n}",
      "responseBody" : null,
      "lastModifiedBy" : "CamundaBPMN",
      "modifyTime" : "2019-09-11T14:01:01.000+0000",
      "requestType" : null,

       

       

       

      and due to that error macro instantiation is not possible.

       

       

      Please find request that is send from VID to SO (http://mso.api.simpledemo.onap.org:30277/onap/so/infra/serviceInstantiation/v7/serviceInstances ):

       

      {
      "requestDetails": {
      "modelInfo":

      { "modelInvariantId": "583c58f7-59d2-4d09-86ae-31599e9916bc", "modelVersionId": "178c5d27-c975-4a03-b1f4-925f690ff2c8", "modelName": "sample-alacarte", "modelType": "service", "modelVersion": "2.0" }

      ,
      "owningEntity":

      { "owningEntityId": "104a18b0-9577-4ff5-9e1b-808e063418bb", "owningEntityName": "Demonstration" }

      ,
      "subscriberInfo":

      { "globalSubscriberId": "Demonstration" }

      ,
      "project":

      { "projectName": "Demonstration" }

      ,
      "requestInfo":

      { "instanceName": "test", "productFamilyId": "3278ced4-05db-4d91-a23b-e6a74840202d", "source": "VID", "suppressRollback": false, "requestorId": "demo" }

      ,
      "requestParameters": {
      "subscriptionServiceType": "vLB",
      "aLaCarte": false,
      "userParams": [
      {
      "service": {
      "modelInfo":

      { "modelVersionId": "178c5d27-c975-4a03-b1f4-925f690ff2c8", "modelName": "sample-alacarte", "modelType": "service" }

      ,
      "instanceName": "test",
      "instanceParams": [],
      "resources": {
      "vnfs": [
      {
      "modelInfo":

      { "modelCustomizationName": "sample-service 0", "modelCustomizationId": "8242a7b0-021c-4ddf-8ca9-060e314ed5de", "modelInvariantId": "b54ade01-386a-4573-a030-4b5c7a833e29", "modelVersionId": "1bec7146-2160-461b-9ba8-0df93a7d6af3", "modelName": "sample-service", "modelType": "vnf", "modelVersion": "1.0" }

      ,
      "cloudConfiguration":

      { "lcpCloudRegionId": "RegionOne", "tenantId": "b05f5c5a932f4f93acd034873df4fbc6", "cloudOwner": "CloudOwner" }

      ,
      "platform":

      { "platformName": "Demonstration" }

      ,
      "lineOfBusiness":

      { "lineOfBusinessName": "Demonstration" }

      ,
      "productFamilyId": "3278ced4-05db-4d91-a23b-e6a74840202d",
      "instanceParams": [],
      "vfModules": [
      {
      "modelInfo":

      { "modelCustomizationName": "SampleService..base_vdp..module-0", "modelCustomizationId": "ebbe5a8b-fd35-4df3-a88c-023c26e724f0", "modelInvariantId": "cd4d5d30-2fa1-441a-b1da-9c170120db51", "modelVersionId": "064b7845-4141-480b-8263-ea47219c5c62", "modelName": "SampleService..base_vdp..module-0", "modelType": "vfModule", "modelVersion": "1" }

      ,
      "instanceName": "test",
      "instanceParams": []
      }
      ],
      "instanceName": "test"
      }
      ]
      }
      }
      }
      ]
      }
      }
      }

       

            deen1985 deen1985
            wsliwka wsliwka
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: