• Sub-task
    • Status: Closed
    • Medium
    • Resolution: Done
    • None
    • Casablanca Release
    • Casablanca SO Sprint 2


      As a user of SO I'd like to be able to use Multicloud to instantiate VNFs in order to take advantage of various Multicloud features not present in standard openstack API.


      This task is to modify SO workflows, mso-vnf-adapter and other places in the code to make use of Multicloud OpenStack Endpoint Proxy. At a minimum it will require creating a modification or adaptation of so\adapters\mso-openstack-adapters\src\main\java\org\onap\so\adapters\vnf\ with endpoint url code/config changed so that multicloud endpoint url can be dynamically composed using cloud_owner and cloud_region from OOF homing. 

      The flows at issue

      so\adapters\mso-catalog-db-adapter\src\main\resources\db\migration\V2.4__MacroReferenceData1806.sql @ line 52 - Service-Macro-Create

      so\adapters\mso-catalog-db-adapter\src\main\resources\db\migration\V2.4__MacroReferenceData1806.sql @ line 107 - VFModule-Create


      Follow the BBs above from the database, the flows go to

      • CreateVfModuleBB          so\bpmn\so-bpmn-building-blocks\src\main\resources\subprocess\BuildingBlock\CreateVfModuleBB.bpmn  to
      • VnfAdapter                       so\bpmn\so-bpmn-building-blocks\src\main\resources\subprocess\BuildingBlock\VnfAdapter.bpmn             to
      • VnfAdapterRestV1                so\bpmn\MSOCommonBPMN\src\main\groovy\org\onap\so\bpmn\common\scripts\VnfAdapterRestV1.groovy
        • <REST request is sent to vnf adapter @ so\bpmn\MSOCommonBPMN\src\main\groovy\org\onap\so\bpmn\common\scripts\VnfAdapterRestV1.groovy Line 297 >
        • If we set urn properties to match our multicloud endpoint
        • The above method will send the request to our multicloud implementation
      • Multicloud implementation endpoint likely requires additions to at least CXFConfig of  and possibly elsewhere to get adapter endpoint working
        • so\adapters\mso-openstack-adapters\src\main\java\org\onap\so\adapters\openstack\ (add autowire and bean)

      This is what the request should look like, all the highlighted bits in json below are mulitcloud additions to the call, with openstack call data in template_data json field. The red portions are standard stack create call to OpenStack API.










      {        "flavor":"m1.heat"    }





            "description":"Simple template to test heat commands",



      {              "default":"m1.tiny",             "type":"string"          }








      {                    "get_param":"flavor"                }



                     "user_data":"#!/bin/bash -xv\necho \"hello world\" > /root/hello-world.txt\n"











      The tenant_id is provided to SO during the create call to NB SO API and passed through the flows to the adapter.


      The bolded part of the URL is the same as the original vnfAdapter url. Only the prefix is different.

      API URL: POST http://

      {msb IP}

      :{msb port}/api/multicloud/v1/{cloud-owner}/{cloud-region-id}/infra_workload/<tenant_id>/stacks


        No reviews matched the request. Check your Options in the drop-down menu of this sections header.



            ewmulta Eric Multanen
            mgkwill Marcus Williams
            0 Vote for this issue
            1 Start watching this issue