X-Git-Url: https://gerrit.onap.org/r/gitweb?p=multicloud%2Fframework.git;a=blobdiff_plain;f=docs%2Fspecs%2Fmulticloud_infra_workload.rst;h=69fa4e881741e0270dc7a9b707fa93124b841fb6;hp=bbc88fa330ff74fa8c410565815b6dd42560456f;hb=d3580c3c9dfc191f66086ed49a849daf4c37ce24;hpb=4b6680fde7fccf7627035a032b80ebe90612aa12 diff --git a/docs/specs/multicloud_infra_workload.rst b/docs/specs/multicloud_infra_workload.rst index bbc88fa..69fa4e8 100644 --- a/docs/specs/multicloud_infra_workload.rst +++ b/docs/specs/multicloud_infra_workload.rst @@ -19,13 +19,41 @@ Currently HPA flavors are returned by OOF to SO and SO copies these flavors in the Heat template before sending the Heat template to Multicloud. In Casablanca instead of SO making changes in the Heat template the flavor information will be provided to Multicloud and Multicloud will pass this as parameters to HEAT -command line. +command line. In Dublin, instead of SO transferring the content of HEAT and HEAT_ENV +to Multicloud, Mutlicloud will download these information/artifacts. For further detailed design, please refer to https://wiki.onap.org/display/DW/SO+Casablanca+HPA+Design Propose Change ============== +Multi-Tenant Support +-------------------- + +Request Headers: +>>>>>>>>>>>>>>>> + +To support multi-tenants over the same cloud region, all APIs defined below +should support to accept the following optional headers which are used to +specify a tenant other than the default one associated with the cloud region. + +:: + + "Project" : Tenant/Project ID or Name specified by API consumer, Optional + + +Example 1: +:: + + "Project: tenant1" + +Example 2: +:: + + "Project: fcca3cc49d5e42caae15459e27103efc" + + + Add infrastructure workload --------------------------- @@ -38,12 +66,23 @@ Request Body: { "generic-vnf-id":"", "vf-module-id":"", + "vf-module-model-invariant-id":"", + "vf-module-model-version-id":"", + "vf-module-model-customization-id":"", "oof_directives":{}, "sdnc_directives":{}, + "user_directives":{}, "template_type":"", "template_data":{} } + The 'vf-module-model-"*"-id’s will be used by the Multicloud plugin to retrieve the associated cloud artifacts. + The 'oof_directives' is to convey oof’s input to multicloud. + The 'sdnc_directives' for SDNC input to MultiCloud. + The 'user_directives' is the parameter to convey input from VID portal to mutlicloud. + They are all about how to populate data to template parameters. + The precedence of the three directives are user_directives and oof_directives the sdnc_directives. + oof_directives: ::::::::::::::: :: @@ -93,30 +132,7 @@ Heat examples "flavor":"m1.heat" }, "stack_name":"teststack", - "template":{ - "heat_template_version":"2013-05-23", - "description":"Simple template to test heat commands", - "parameters": - { - "flavor":{ - "default":"m1.tiny", - "type":"string" - } - }, - "resources":{ - "hello_world":{ - "type":"OS::Nova::Server", - "properties":{ - "key_name":"heat_key", - "flavor":{ - "get_param":"flavor" - }, - "image":"40be8d1a-3eb9-40de-8abd-43237517384f", - "user_data":"#!/bin/bash -xv\necho \"hello world\" > /root/hello-world.txt\n" - } - } - } - }, + "template": "\nheat_template_version: 2013-05-23\ndescription: Simple template to test heat commands\nparameters:\n flavor: {default: m1.tiny, type: string}\nresources:\n hello_world:\n type: OS::Nova::Server\n properties:\n key_name: heat_key\n flavor: {get_param: flavor}\n image: 40be8d1a-3eb9-40de-8abd-43237517384f\n user_data: |\n #!/bin/bash -xv\n echo \"hello world\" > /root/hello-world.txt", "timeout_mins":60 }