blob: b47c0693c6237810b38a2a35cd0be530029e6540 [file] [log] [blame]
Gary Wue4a2df82018-11-29 12:49:09 -08001.. _docs_scaleout:
2
Marco Plataniae5064cd2018-11-28 15:33:47 -05003VF Module Scale Out Use Case
4----------------------------
5
6Source files
7~~~~~~~~~~~~
Marco Plataniaccf78702019-10-16 12:10:52 -04008- Heat templates directory: https://git.onap.org/demo/tree/heat/vLB_CDS?h=elalto
Marco Plataniae5064cd2018-11-28 15:33:47 -05009
Marco Plataniab9e219f2019-06-16 16:09:20 -040010Additional files
11~~~~~~~~~~~~~~~~
12- DCAE blueprint: https://git.onap.org/integration/tree/docs/files/scaleout/k8s-tca-clamp-policy-05162019.yaml
13- TOSCA model template: https://git.onap.org/integration/tree/docs/files/scaleout/service-Vloadbalancercds-template.yml
Marco Platania9442f8f2019-06-17 09:12:21 -040014- Naming policy script: https://git.onap.org/integration/tree/docs/files/scaleout/push_naming_policy.sh
stark, steven6a507a42019-04-24 12:04:41 -070015
Marco Plataniae5064cd2018-11-28 15:33:47 -050016Description
17~~~~~~~~~~~
Marco Plataniab9e219f2019-06-16 16:09:20 -040018The scale out use case uses a VNF composed of three virtual functions. A traffic generator (vPacketGen), a load balancer (vLB), and a DNS (vDNS). Communication between the vPacketGen and the vLB, and the vLB and the vDNS occurs via two separate private networks. In addition, all virtual functions have an interface to the ONAP OAM private network, as shown in the topology below.
Marco Plataniae5064cd2018-11-28 15:33:47 -050019
Marco Platania9442f8f2019-06-17 09:12:21 -040020.. figure:: files/scaleout/topology.png
21 :align: center
Marco Plataniae5064cd2018-11-28 15:33:47 -050022
Marco Plataniab9e219f2019-06-16 16:09:20 -040023The vPacketGen issues DNS lookup queries that reach the DNS server via the vLB. vDNS replies reach the packet generator via the vLB as well. The vLB reports the average amount of traffic per vDNS instances over a given time interval (e.g. 10 seconds) to the DCAE collector via the ONAP OAM private network.
Marco Plataniae5064cd2018-11-28 15:33:47 -050024
Marco Plataniab9e219f2019-06-16 16:09:20 -040025To run the use case, make sure that the security group in OpenStack has ingress/egress entries for protocol 47 (GRE). Users can test the VNF by running DNS queries from the vPakcketGen:
26
Marco Plataniae5064cd2018-11-28 15:33:47 -050027::
28
Marco Plataniab9e219f2019-06-16 16:09:20 -040029 dig @vLoadBalancer_IP host1.dnsdemo.onap.org
30
Rene_Robert8f8f27f2019-07-01 15:18:40 +020031The output below means that the vLB has been set up correctly, has forwarded the DNS queries to a vDNS instance, and the vPacketGen has received the vDNS reply message.
Marco Plataniab9e219f2019-06-16 16:09:20 -040032
Marco Plataniae5064cd2018-11-28 15:33:47 -050033::
34
Marco Plataniab9e219f2019-06-16 16:09:20 -040035 ; <<>> DiG 9.10.3-P4-Ubuntu <<>> @192.168.9.111 host1.dnsdemo.onap.org
36 ; (1 server found)
37 ;; global options: +cmd
38 ;; Got answer:
39 ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31892
40 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
41 ;; WARNING: recursion requested but not available
Rene_Robert8f8f27f2019-07-01 15:18:40 +020042
Marco Plataniab9e219f2019-06-16 16:09:20 -040043 ;; OPT PSEUDOSECTION:
44 ; EDNS: version: 0, flags:; udp: 4096
45 ;; QUESTION SECTION:
46 ;host1.dnsdemo.onap.org. IN A
Rene_Robert8f8f27f2019-07-01 15:18:40 +020047
Marco Plataniab9e219f2019-06-16 16:09:20 -040048 ;; ANSWER SECTION:
49 host1.dnsdemo.onap.org. 604800 IN A 10.0.100.101
Rene_Robert8f8f27f2019-07-01 15:18:40 +020050
Marco Plataniab9e219f2019-06-16 16:09:20 -040051 ;; AUTHORITY SECTION:
52 dnsdemo.onap.org. 604800 IN NS dnsdemo.onap.org.
Rene_Robert8f8f27f2019-07-01 15:18:40 +020053
Marco Plataniab9e219f2019-06-16 16:09:20 -040054 ;; ADDITIONAL SECTION:
55 dnsdemo.onap.org. 604800 IN A 10.0.100.100
Rene_Robert8f8f27f2019-07-01 15:18:40 +020056
Marco Plataniab9e219f2019-06-16 16:09:20 -040057 ;; Query time: 0 msec
58 ;; SERVER: 192.168.9.111#53(192.168.9.111)
59 ;; WHEN: Fri Nov 10 17:39:12 UTC 2017
60 ;; MSG SIZE rcvd: 97
61
62
63The Scale Out Use Case
64~~~~~~~~~~~~~~~~~~~~~~
Marco Plataniaccf78702019-10-16 12:10:52 -040065The Scale Out use case shows how users/network operators can add Virtual Network Function Components (VNFCs) as part of a VF Module that has been instantiated in the Service model, in order to increase capacity of the network. ONAP El Alto release supports scale out with manual trigger by directly calling SO APIs and closed-loop-enabled automation from Policy. For El Alto, the APPC controller is used to demonstrate post-scaling VNF reconfiguration operations. APPC can handle different VNF types, not only the VNF described in this document.
Marco Plataniab9e219f2019-06-16 16:09:20 -040066
Marco Platania4b8acc92019-09-16 12:16:54 -040067The figure below shows all the interactions that take place during scale out operations.
68
69.. figure:: files/scaleout/scaleout.png
70 :align: center
71
72There are four different message flows:
Marco Plataniaccf78702019-10-16 12:10:52 -040073 - Gray: This communication happens internally to the VNF and it is described in the section above.
Marco Platania4b8acc92019-09-16 12:16:54 -040074 - Green: Scale out with manual trigger.
75 - Red: Closed-loop enabled scale out.
76 - Black: Orchestration and VNF lifecycle management (LCM) operations.
77
78The numbers in the figure represent the sequence of steps within a given flow. Note that interactions between the components in the picture and AAI, SDNC, and DMaaP are not shown for clarity's sake.
79
Marco Plataniaccf78702019-10-16 12:10:52 -040080Scale out with manual trigger (green flow) and closed-loop-enabled scale out (red flow) are mutually exclusive. When the manual trigger is used, VID directly triggers the appropriate workflow in SO (step 1 of the green flow in the figure above). See Section 4 for more details.
Marco Platania4b8acc92019-09-16 12:16:54 -040081
82When closed-loop enabled scale out is used, Policy triggers the SO workflow. The closed loop starts with the vLB periodically reporting telemetry about traffic patterns to the VES collector in DCAE (step 1 of the red flow). When the amount of traffic exceeds a given threshold (which the user defines during closed loop creation in CLAMP - see Section 1-4), DCAE notifies Policy (step 2), which in turn triggers the appropriate action. For this use case, the action is contacting SO to augment resource capacity in the network (step 3).
83
84At high level, once SO receives a call for scale out actions, it first creates a new VF module (step 1 of the black flow), then calls APPC to trigger some LCM actions (step 2). APPC runs VNF health check and configuration scale out as part of LCM actions (step 3). At this time, the VNF health check only reports the health status of the vLB, while the configuration scale out operation adds a new vDNS instance to the vLB internal state. As a result of configuration scale out, the vLB opens a connection towards the new vDNS instance.
85
86At deeper level, the SO workflow works as depicted below:
87
88.. figure:: files/scaleout/so-blocks.png
89 :align: center
90
Marco Plataniaccf78702019-10-16 12:10:52 -040091SO first contacts APPC to run VNF health check and proceeds on to the next block of the workflow only if the vLB is healthy (not shown in the previous figure for simplicity's sake). Then, SO assigns resources, instantiates, and activates the new VF module. Finally, SO calls APPC again for configuration scale out and VNF health check. The VNF health check at the end of the workflow validates that the vLB health status hasn't been negatively affected by the scale out operation.
Marco Plataniab9e219f2019-06-16 16:09:20 -040092
Rene_Robert8f8f27f2019-07-01 15:18:40 +020093PART 1 - Service Definition and Onboarding
94------------------------------------------
Marco Plataniac80274e2019-08-15 12:11:31 -040095This use-case requires operations on several ONAP components to perform service definition and onboarding.
Rene_Robert8f8f27f2019-07-01 15:18:40 +020096
97
Marco Plataniaccf78702019-10-16 12:10:52 -0400981-1 VNF Configuration Modeling and Upload with CDS
99~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
100Since Dublin, the scale out use case integrates with the Controller Design Studio (CDS) ONAP component to automate the generation of cloud configuration at VNF instantiation time. The user interested in running the use case only with manual preload can skip this section and start from Section 1-2. The description of the use case with manual preload is provided in Section5.
101
102Users can model this configuration at VNF design time and onboard the blueprint to CDS via the CDS GUI. The blueprint includes naming policies and network configuration details (e.g. IP address families, network names, etc.) that CDS will use during VNF instantiation to generate resource names and assign network configuration to VMs through the cloud orchestrator.
Marco Plataniab9e219f2019-06-16 16:09:20 -0400103
104Please look at the CDS documentation for details about how to create configuration models, blueprints, and use the CDS tool: https://wiki.onap.org/display/DW/Modeling+Concepts. For running the use case, users can use the standard model package that CDS provides out of the box, which can be found here: https://wiki.onap.org/pages/viewpage.action?pageId=64007442
105
Marco Plataniab9e219f2019-06-16 16:09:20 -0400106
Marco Plataniaccf78702019-10-16 12:10:52 -04001071-2 VNF Onboarding and Service Creation with SDC
108~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Marco Plataniac80274e2019-08-15 12:11:31 -0400109Once the configuration blueprint is uploaded to CDS, users can define and onboard a service using SDC. SDC requires users to onboard a VNF descriptor that contains the definition of all the resources (private networks, compute nodes, keys, etc.) with their parameters that compose a VNF. The VNF used to demonstrate the scale out use case supports Heat templates as VNF descriptor, and hence requires OpenStack as cloud layer. Users can use the Heat templates linked at the top of the page to create a zip file that can be uploaded to SDC during service creation. To create a zip file, the user must be in the same folder that contains the Heat templates and the Manifest file that describes the content of the package. To create a zip file from command line, type:
110::
111
112 zip ../vLB.zip *
113
114For a complete description of service design and creation, please refer to the SDC wiki page: https://wiki.onap.org/display/DW/Design
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200115
116During the creation of the service in SDC, there are a few extra steps that need to be executed to make the VNF ready for scale out. These require users to login to the SDC Portal as service designer user (username: cs0008, password: demo123456!).
Marco Plataniab9e219f2019-06-16 16:09:20 -0400117
118After importing the Vendor Software Package (VSP), as described in the SDC wiki page, users need to set property values in the Property Assignment window, as shown below:
119
Marco Platania9442f8f2019-06-17 09:12:21 -0400120.. figure:: files/scaleout/9.png
121 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400122
123These properties include parameters in the Heat template (which will be overridden by CDS and then don't need to be changed) and other parameters that describe the VNF type or are used to link the service to the configuration in the CDS package.
124
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200125Users can search for parameter names starting with "nf" to assign values that describe the VNF type, such as nf_type, nf_function, and nf_role. Users are free to choose the values they like. Users should also set "skip_post_instantiation" to "TRUE", as for Dublin CDS is not used for post-instantiation configuration.
Marco Plataniab9e219f2019-06-16 16:09:20 -0400126
Marco Platania9442f8f2019-06-17 09:12:21 -0400127.. figure:: files/scaleout/10.png
128 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400129
130For CDS parameters, users can search for names starting with "sdnc". These parameters have to match the configuration blueprint in CDS. To use the standard blueprint shipped with CDS, please set the parameters as below. For further details, please refer to the CDS documentation.
131
Marco Platania9442f8f2019-06-17 09:12:21 -0400132.. figure:: files/scaleout/11.png
133 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400134
135
Marco Plataniaccf78702019-10-16 12:10:52 -0400136After importing the VSP, users need to onboard the DCAE blueprint and the Policy Model used to design closed loops in CLAMP. This step is only required for users that want to run closed loop; users interested in manual scale out only can skip the remainder of the section.
137
138From the "Composition" tab in the service menu, select the artifact icon on the right, as shown below:
Marco Plataniab9e219f2019-06-16 16:09:20 -0400139
Marco Platania9442f8f2019-06-17 09:12:21 -0400140.. figure:: files/scaleout/1.png
141 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400142
143Upload the DCAE blueprint linked at the top of the page using the pop-up window.
144
Marco Platania9442f8f2019-06-17 09:12:21 -0400145.. figure:: files/scaleout/2.png
146 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400147
148The blueprint will appear in the artifacts section on the right.
149
Marco Platania9442f8f2019-06-17 09:12:21 -0400150.. figure:: files/scaleout/3.png
151 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400152
153To attach a Policy Model to the service, open the Policy drop-down list on left.
154
Marco Platania9442f8f2019-06-17 09:12:21 -0400155.. figure:: files/scaleout/4.png
156 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400157
158Then, add the TCA Policy.
159
Marco Platania9442f8f2019-06-17 09:12:21 -0400160.. figure:: files/scaleout/5.png
161 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400162
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200163The Policy will be attached to the service defined in SDC
Marco Plataniab9e219f2019-06-16 16:09:20 -0400164
Marco Platania9442f8f2019-06-17 09:12:21 -0400165.. figure:: files/scaleout/6.png
166 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400167
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200168Finally, users need to provide the maximum number of VNF instances that ONAP is allowed to create as part of the scale out use case by setting up deployment properties.
Marco Plataniab9e219f2019-06-16 16:09:20 -0400169
Marco Platania9442f8f2019-06-17 09:12:21 -0400170.. figure:: files/scaleout/7.png
171 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400172
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200173This VNF only supports scaling the vDNS, so users should select the vDNS module from the right panel and then click the "max_vf_module_instance" link. The maximum number of VNF instances to scale can be set to an arbitrary number higher than zero.
Marco Plataniab9e219f2019-06-16 16:09:20 -0400174
Marco Platania9442f8f2019-06-17 09:12:21 -0400175.. figure:: files/scaleout/8.png
176 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400177
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200178At this point, users can complete the service creation in SDC by testing, accepting, and distributing the Service Models as described in the SDC user manual.
Marco Plataniab9e219f2019-06-16 16:09:20 -0400179
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200180
181
Marco Plataniaccf78702019-10-16 12:10:52 -04001821-3 Deploy Naming Policy
183~~~~~~~~~~~~~~~~~~~~~~~~
184This step is only required if CDS is used.
185
Marco Platania9442f8f2019-06-17 09:12:21 -0400186In order to instantiate the VNF using CDS features, users need to deploy the naming policy that CDS uses for resource name generation to the Policy Engine. User can copy and run the script at the top of the page from any ONAP pod, for example Robot or Drools. The script uses the Policy endpoint defined in the Kubernetes domain, so the execution has to be triggered from some pod in the Kubernetes space.
187
188::
189
190 kubectl exec -it dev-policy-drools-0
191 ./push_naming_policy.sh
192
Marco Plataniab9e219f2019-06-16 16:09:20 -0400193
Marco Plataniaccf78702019-10-16 12:10:52 -04001941-4 Closed Loop Design with CLAMP
195~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
196This step is only required if closed loop is used.
197
198Once the service model is distributed, users can design the closed loop from CLAMP, using the GUI at https://clamp.api.simpledemo.onap.org:30258/designer/index.html In El Alto, CLAMP doesn't authenticate with AAF, so users have to login using "admin" and "password" as username and password, respectively.
Marco Plataniab9e219f2019-06-16 16:09:20 -0400199
200Use the "Closed Loop" link to open a distributed model.
201
Marco Platania9442f8f2019-06-17 09:12:21 -0400202.. figure:: files/scaleout/12.png
203 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400204
205Select the closed loop associated to the distributed service model.
206
Marco Platania9442f8f2019-06-17 09:12:21 -0400207.. figure:: files/scaleout/13.png
208 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400209
210The closed loop main page for TCA microservices is shown below.
211
Marco Platania9442f8f2019-06-17 09:12:21 -0400212.. figure:: files/scaleout/14.png
213 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400214
215Click on the TCA box to create a configuration policy. From the pop-up window, users need to click "Add item" to create a new policy and fill it in with specific information, as shown below.
216
Marco Platania9442f8f2019-06-17 09:12:21 -0400217.. figure:: files/scaleout/15.png
218 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400219
220For this use case, the control loop schema type is "VM", while the event name has to match the event name reported in the VNF telemetry, which is "vLoadBalancer".
221
222Once the policy item has been created, users can define a threshold that will be used at runtime to evaluate telemetry reported by the vLB. When the specified threshold is crossed, DCAE generates an ONSET event that will tell Policy Engine which closed loop to activate.
223
Marco Platania9442f8f2019-06-17 09:12:21 -0400224.. figure:: files/scaleout/16.png
225 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400226
227After the configuration policy is created, users need to create the operational policy, which the Policy Engine uses to determine which actions and parameters should be used during closed loop.
228
Marco Platania9442f8f2019-06-17 09:12:21 -0400229.. figure:: files/scaleout/17.png
230 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400231
Marco Plataniaccf78702019-10-16 12:10:52 -0400232Since El Alto, CLAMP adds the "Policy Decision Entry" parameter, which has to contain the name of the root operational policy in the decision tree. For this use case, there is only one operational policy, called "vlbpolicy2" in the example above ("Policy ID" parameter). As such, "Policy Decision Entry" has to be set to "vlbpolicy2" as well. During creation of the operational policy, the user should select "VF Module Create" recipe and "SO" actor. The payload section is:
Marco Plataniab9e219f2019-06-16 16:09:20 -0400233
Marco Plataniae5064cd2018-11-28 15:33:47 -0500234::
235
Marco Plataniab9e219f2019-06-16 16:09:20 -0400236 requestParameters: '{"usePreload":false,"userParams":[]}'
Marco Plataniaccf78702019-10-16 12:10:52 -0400237 configurationParameters: '[{"ip-addr":"$.vf-module-topology.vf-module-parameters.param[16].value","oam-ip-addr":"$.vf-module-topology.vf-module-parameters.param[30].value"}]'
Marco Plataniae5064cd2018-11-28 15:33:47 -0500238
Marco Plataniab9e219f2019-06-16 16:09:20 -0400239Policy Engine passes the payload to SO, which will then use it during VF module instantiation to resolve configuration parameters. The JSON path
240
241::
242
Marco Plataniaccf78702019-10-16 12:10:52 -0400243 "ip-addr":"$.vf-module-topology.vf-module-parameters.param[16].value"
Marco Plataniab9e219f2019-06-16 16:09:20 -0400244
Marco Plataniaccf78702019-10-16 12:10:52 -0400245indicates that resolution for parameter "ip-addr" is available at "$.vf-module-topology.vf-module-parameters.param[16].value" in the JSON object linked by the VF module self-link in AAI. See section 1-7 for an example of how to determine the right path to configuration parameters.
Marco Plataniab9e219f2019-06-16 16:09:20 -0400246
Marco Plataniaccf78702019-10-16 12:10:52 -0400247The target tab allows users to select the target type for the closed loop. For this use case, the user should select VF module as target type, as we are scaling a VF module. Please select the vDNS module as target resource ID.
Marco Plataniab9e219f2019-06-16 16:09:20 -0400248
Marco Platania9442f8f2019-06-17 09:12:21 -0400249.. figure:: files/scaleout/18.png
250 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400251
Marco Plataniaccf78702019-10-16 12:10:52 -0400252For what regards guard policies, either "Frequency Limiter", or "MinMax", or both can be used for the scale out use case. The example below shows the definition of a "Frequency Limiter" guard policy. The policy name should be guard.frequency.<policy ID> for Frequency Limiter and guard.minmax.<policy ID> for MinMax, where <policy ID> is vlbpolicy2 in the example above.
253
254.. figure:: files/scaleout/19.png
255 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400256
257Once the operational policy design is completed, users can submit and then deploy the closed loop clicking the "Submit" and "Deploy" buttons, respectively, as shown below.
258
Marco Platania9442f8f2019-06-17 09:12:21 -0400259.. figure:: files/scaleout/20.png
260 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -0400261
262At this point, the closed loop is deployed to Policy Engine and DCAE, and a new microservice will be deployed to the DCAE platform.
263
264
Marco Plataniaccf78702019-10-16 12:10:52 -04002651-5 Creating a VNF Template with CDT
266~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Marco Plataniab9e219f2019-06-16 16:09:20 -0400267Before running scale out use case, the users need to create a VNF template using the Controller Design Tool (CDT), a design-time tool that allows users to create and on-board VNF templates into APPC. The template describes which control operation can be executed against the VNF (e.g. scale out, health check, modify configuration, etc.), the protocols that the VNF supports, port numbers, VNF APIs, and credentials for authentication. Being VNF agnostic, APPC uses these templates to "learn" about specific VNFs and the supported operations.
Marco Plataniae5064cd2018-11-28 15:33:47 -0500268CDT requires two input:
269
Rene_Robert8f8f27f2019-07-01 15:18:40 +02002701) the list of parameters that APPC will receive (ip-addr, oam-ip-addr, enabled in the example above);
Marco Plataniae5064cd2018-11-28 15:33:47 -0500271
2722) the VNF API that APPC will use to reconfigure the VNF.
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200273
Marco Plataniae5064cd2018-11-28 15:33:47 -0500274Below is an example of the parameters file (yaml format), which we call parameters.yaml:
275::
276
277 version: V1
278 vnf-parameter-list:
279 - name: ip-addr
280 type: null
281 description: null
282 required: "true"
283 default: null
284 source: Manual
285 rule-type: null
286 request-keys: null
287 response-keys: null
288 - name: oam-ip-addr
289 type: null
290 description: null
291 required: "true"
292 default: null
293 source: Manual
294 rule-type: null
295 request-keys: null
296 response-keys: null
297 - name: enabled
298 type: null
299 description: null
Marco Plataniab9e219f2019-06-16 16:09:20 -0400300 required: "false"
Marco Plataniae5064cd2018-11-28 15:33:47 -0500301 default: null
302 source: Manual
303 rule-type: null
304 request-keys: null
305 response-keys: null
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200306
Marco Plataniab9e219f2019-06-16 16:09:20 -0400307Here is an example of API for the vLB VNF used for this use case. We name the file after the vnf-type contained in SDNC (i.e. Vloadbalancerms..vdns..module-3):
Marco Plataniae5064cd2018-11-28 15:33:47 -0500308::
309
310 <vlb-business-vnf-onap-plugin xmlns="urn:opendaylight:params:xml:ns:yang:vlb-business-vnf-onap-plugin">
311 <vdns-instances>
312 <vdns-instance>
313 <ip-addr>${ip-addr}</ip-addr>
314 <oam-ip-addr>${oam-ip-addr}</oam-ip-addr>
Marco Plataniab9e219f2019-06-16 16:09:20 -0400315 <enabled>true</enabled>
Marco Plataniae5064cd2018-11-28 15:33:47 -0500316 </vdns-instance>
317 </vdns-instances>
318 </vlb-business-vnf-onap-plugin>
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200319
Marco Plataniae5064cd2018-11-28 15:33:47 -0500320To create the VNF template in CDT, the following steps are required:
321
Marco Plataniab9e219f2019-06-16 16:09:20 -0400322- Connect to the CDT GUI: http://ANY-K8S-IP:30289
Marco Plataniae5064cd2018-11-28 15:33:47 -0500323- Click "My VNF" Tab. Create your user ID, if necessary
324- Click "Create new VNF" entering the VNF type as reported in VID or AAI, e.g. vLoadBalancerMS/vLoadBalancerMS 0
325- Select "ConfigScaleOut" action
Marco Plataniab9e219f2019-06-16 16:09:20 -0400326- Create a new template identifier using the VNF type name in service model as template name, e.g. Vloadbalancerms..vdns..module-3
Marco Plataniae5064cd2018-11-28 15:33:47 -0500327- Select protocol (Netconf-XML), VNF username (admin), and VNF port number (2831 for NETCONF)
328- Click "Parameter Definition" Tab and upload the parameters (.yaml) file
329- Click "Template Tab" and upload API template (.yaml) file
330- Click "Reference Data" Tab
331- Click "Save All to APPC"
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200332
333For health check operation, we just need to specify the protocol, the port number and username of the VNF (REST, 8183, and "admin" respectively, in the case of vLB/vDNS) and the API. For the vLB/vDNS, the API is:
Marco Plataniae5064cd2018-11-28 15:33:47 -0500334::
335
336 restconf/operational/health-vnf-onap-plugin:health-vnf-onap-plugin-state/health-check
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200337
Marco Plataniae5064cd2018-11-28 15:33:47 -0500338Note that we don't need to create a VNF template for health check, so the "Template" flag can be set to "N". Again, the user has to click "Save All to APPC" to update the APPC database.
339At this time, CDT doesn't allow users to provide VNF password from the GUI. To update the VNF password we need to log into the APPC Maria DB container and change the password manually:
340::
341
342 mysql -u sdnctl -p (type "gamma" when password is prompted)
343 use sdnctl;
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200344 UPDATE DEVICE_AUTHENTICATION SET PASSWORD='admin' WHERE
Marco Plataniae5064cd2018-11-28 15:33:47 -0500345 VNF_TYPE='vLoadBalancerMS/vLoadBalancerMS 0'; (use your VNF type)
Marco Plataniae5064cd2018-11-28 15:33:47 -0500346
Marco Platania54262a92019-02-15 15:06:37 -0500347
Marco Plataniaccf78702019-10-16 12:10:52 -04003481-6 Setting the Controller Type in SO Database
349~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Marco Plataniab9e219f2019-06-16 16:09:20 -0400350Users need to specify which controller to use for the scale out use case. For Dublin, the supported controller is APPC. Users need to create an association between the controller and the VNF type in the SO database.
351
352To do so:
353
354- Connect to one of the replicas of the MariaDB database
355- Type
356
357::
358
359 mysql -ucataloguser -pcatalog123
360
361- Use catalogdb databalse
362
363::
364
365 use catalogdb;
366
367- Create an association between APPC and the VNF type, for example:
368
369::
370
Marco Platania64105bb2019-07-24 10:17:41 -0400371 INSERT INTO controller_selection_reference (`VNF_TYPE`, `CONTROLLER_NAME`, `ACTION_CATEGORY`) VALUES ('<VNF Type>', 'APPC', 'ConfigScaleOut');
372 INSERT INTO controller_selection_reference (`VNF_TYPE`, `CONTROLLER_NAME`, `ACTION_CATEGORY`) VALUES ('<VNF Type>', 'APPC', 'HealthCheck');
Marco Plataniab9e219f2019-06-16 16:09:20 -0400373
374SO has a default entry for VNF type "vLoadBalancerMS/vLoadBalancerMS 0"
375
376
Marco Plataniaccf78702019-10-16 12:10:52 -04003771-7 Determining VNF reconfiguration parameters
378~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
379The post scale out VNF reconfiguration is VNF-independent but the parameters used for VNF reconfiguration depend on the specific use case. For example, the vLB-vDNS-vPacketGenerator VNF described in this documentation use the vLB as "anchor" point. The vLB maintains the state of the VNF, which, for this use case is the list of active vDNS instances. After creating a new vDNS instance, the vLB needs to know the IP addresses (of the internal private network and management network) of the new vDNS. The reconfiguration action is executed by APPC, which receives those IP addresses from SO during the scale out workflow execution. Note that different VNFs may have different reconfiguration actions. A parameter resolution is expressed as JSON path to the SDNC VF module topology parameter array. For each reconfiguration parameter, the user has to specify the array location that contains the corresponding value (IP address in the specific case). For example, the "configurationParameters" section of the input request to SO during scale out with manual trigger (see Section 4) contains the resolution path to "ip-addr" and "oam-ip-addr" parameters used by the VNF.
380
381::
382
383 "configurationParameters": [
384 {
385 "ip-addr": "$.vf-module-topology.vf-module-parameters.param[16].value",
386 "oam-ip-addr": "$.vf-module-topology.vf-module-parameters.param[30].value"
387 }
388 ]
389
390The same resolution path needs to be provided for the closed-loop enabled use case during the closed loop design phase in CLAMP (see Section 1-4). The reconfiguration parameters and their resolution path will be pushed to the Policy Engine during closed loop deployment. Policy will eventually push them to SO during closed loop execution.
391
392Users can determine the correct location by querying the SDNC topology object. The URL can be obtained from AAI following these steps:
393
3941) Retrieve the list of VNF instances in AAI using the following link:
395
396::
397
398 curl -k -X GET \
399 https://<Any_K8S_Node_IP_Address>:30233/aai/v16/network/generic-vnfs \
400 -H 'Accept: application/json' \
401 -H 'Authorization: Basic QUFJOkFBSQ==' \
402 -H 'Content-Type: application/json' \
403 -H 'X-FromAppId: AAI' \
404 -H 'X-TransactionId: get_aai_subscr'
405
4062) From the returned JSON object, search for the generic VNF object related to the VNF of interest (for example by using the VNF name defined during VNF instantiation). Then, select the "vnf-id" value to build a request to AAI to list all the VF modules of that VNF:
407
408::
409
410 curl -k -X GET \
411 https://<Any_K8S_Node_IP_Address>:30233/aai/v16/network/generic-vnfs/generic-vnf/0e905228-c719-489a-9bcc-4470f3254e87/vf-modules \
412 -H 'Accept: application/json' \
413 -H 'Authorization: Basic QUFJOkFBSQ==' \
414 -H 'Content-Type: application/json' \
415 -H 'X-FromAppId: AAI' \
416 -H 'X-TransactionId: get_aai_subscr'
417
4183) From the returned list of VF modules, select the "selflink" URL of the VF module type that is target of the scaling action. This object refers to an existing instance of that VF module type, which could have been created either as part of regular VNF instantiation process or scaling action. The selflink points to the topology of that VF module instance in SDNC. A new instance of this VF module type will have a topology of the same form, just different parameter values. As such, the existing topology pointed by the selflink in AAI can be used to determine the resolution path to configuration parameters for future instantiation of that VF module type.
419
420The selflink has the following structure:
421
422::
423
424 restconf/config/GENERIC-RESOURCE-API:services/service/4545562a-cbe3-409a-8227-0b863f5bc34e/service-data/vnfs/vnf/0e905228-c719-489a-9bcc-4470f3254e87/vnf-data/vf-modules/vf-module/793df714-106e-40a6-a28a-746b65f9e247/vf-module-data/vf-module-topology/
425
426The complete URL to access the VF module topology in SDNC becomes:
427
428::
429
430 http://<Any_K8S_Node_IP_Address>:30202/restconf/config/GENERIC-RESOURCE-API:services/service/4545562a-cbe3-409a-8227-0b863f5bc34e/service-data/vnfs/vnf/0e905228-c719-489a-9bcc-4470f3254e87/vnf-data/vf-modules/vf-module/793df714-106e-40a6-a28a-746b65f9e247/vf-module-data/vf-module-topology/
431
432See below an example of VF module topology. It can be stored in SDNC either using CDS (see Section 2) or manual preload (see Section 5).
433
434::
435
436 {
437 "vf-module-topology": {
438 "onap-model-information": {
439 "model-name": "VlbCds..vdns..module-3",
440 "model-invariant-uuid": "b985f371-4c59-45f7-b53e-36f970946469",
441 "model-version": "1",
442 "model-customization-uuid": "613b6877-0231-4ca4-90e4-4aa3374674ef",
443 "model-uuid": "739e4a32-f744-47be-9208-5dcf15772306"
444 },
445 "vf-module-parameters": {
446 "param": [
447 {
448 "name": "vfc_customization_uuid",
449 "value": "770af15f-564d-438c-ba3e-6df318c2b1fe",
450 "resource-resolution-data": {
451 "capability-name": "RA Resolved",
452 "status": "SUCCESS"
453 }
454 },
455 {
456 "name": "key_name",
457 "value": "${key_name}",
458 "resource-resolution-data": {
459 "capability-name": "RA Resolved",
460 "status": "SUCCESS"
461 }
462 },
463 {
464 "name": "vdns_flavor_name",
465 "value": "m1.medium",
466 "resource-resolution-data": {
467 "capability-name": "RA Resolved",
468 "status": "SUCCESS"
469 }
470 },
471 {
472 "name": "cloud_env",
473 "value": "openstack",
474 "resource-resolution-data": {
475 "capability-name": "RA Resolved",
476 "status": "SUCCESS"
477 }
478 },
479 {
480 "name": "vnfc-model-customization-uuid",
481 "value": "770af15f-564d-438c-ba3e-6df318c2b1fe",
482 "resource-resolution-data": {
483 "capability-name": "RA Resolved",
484 "status": "SUCCESS"
485 }
486 },
487 {
488 "name": "vf-module-name",
489 "value": "RegionOne_ONAP-NF_20191010T013003141Z_vdns_Expansion_003",
490 "resource-resolution-data": {
491 "capability-name": "generate-name",
492 "resource-key": [
493 {
494 "name": "VF_MODULE_LABEL",
495 "value": "vdns"
496 },
497 {
498 "name": "resource-name",
499 "value": "vf-module-name"
500 },
501 {
502 "name": "resource-value",
503 "value": "${vf-module-name}"
504 },
505 {
506 "name": "naming-type",
507 "value": "VF-MODULE"
508 },
509 {
510 "name": "VNF_NAME",
511 "value": "RegionOne_ONAP-NF_20191010T013003141Z"
512 },
513 {
514 "name": "external-key",
515 "value": "793df714-106e-40a6-a28a-746b65f9e247_vf-module-name"
516 },
517 {
518 "name": "policy-instance-name",
519 "value": "SDNC_Policy.Config_MS_ONAP_VNF_NAMING_TIMESTAMP"
520 },
521 {
522 "name": "VF_MODULE_TYPE",
523 "value": "Expansion"
524 }
525 ],
526 "status": "SUCCESS"
527 }
528 },
529 {
530 "name": "vnfc-model-version",
531 "value": "1.0",
532 "resource-resolution-data": {
533 "capability-name": "RA Resolved",
534 "status": "SUCCESS"
535 }
536 },
537 {
538 "name": "pktgen_private_net_cidr",
539 "value": "${pktgen_private_net_cidr}",
540 "resource-resolution-data": {
541 "capability-name": "RA Resolved",
542 "status": "SUCCESS"
543 }
544 },
545 {
546 "name": "vnf_model_customization_uuid",
547 "value": "c7be2fca-9a5c-4364-8c32-801e64f90ccd",
548 "resource-resolution-data": {
549 "capability-name": "RA Resolved",
550 "status": "SUCCESS"
551 }
552 },
553 {
554 "name": "service-instance-id",
555 "value": "4545562a-cbe3-409a-8227-0b863f5bc34e",
556 "resource-resolution-data": {
557 "capability-name": "RA Resolved",
558 "status": "SUCCESS"
559 }
560 },
561 {
562 "name": "vlb_private_net_cidr",
563 "value": "192.168.10.0/24",
564 "resource-resolution-data": {
565 "capability-name": "RA Resolved",
566 "status": "SUCCESS"
567 }
568 },
569 {
570 "name": "install_script_version",
571 "value": "1.5.0-SNAPSHOT",
572 "resource-resolution-data": {
573 "capability-name": "RA Resolved",
574 "status": "SUCCESS"
575 }
576 },
577 {
578 "name": "vlb_int_private_ip_0",
579 "value": "192.168.10.50",
580 "resource-resolution-data": {
581 "capability-name": "RA Resolved",
582 "status": "SUCCESS"
583 }
584 },
585 {
586 "name": "vnfc-model-invariant-uuid",
587 "value": "49e70b6f-87e7-4f68-b1ec-958e68c7cbf5",
588 "resource-resolution-data": {
589 "capability-name": "RA Resolved",
590 "status": "SUCCESS"
591 }
592 },
593 {
594 "name": "pub_key",
595 "value": "${pub_key}",
596 "resource-resolution-data": {
597 "capability-name": "RA Resolved",
598 "status": "SUCCESS"
599 }
600 },
601 {
602 "name": "onap_private_net_cidr",
603 "value": "10.0.0.0/8",
604 "resource-resolution-data": {
605 "capability-name": "RA Resolved",
606 "status": "SUCCESS"
607 }
608 },
609 {
610 "name": "vdns_int_private_ip_0",
611 "value": "192.168.10.54",
612 "resource-resolution-data": {
613 "capability-name": "netbox-ip-assign",
614 "resource-key": [
615 {
616 "name": "external_key",
617 "value": "0e905228-c719-489a-9bcc-4470f3254e87-vdns_int_private_ip_0"
618 },
619 {
620 "name": "vnf-id",
621 "value": "0e905228-c719-489a-9bcc-4470f3254e87"
622 },
623 {
624 "name": "service-instance-id",
625 "value": "4545562a-cbe3-409a-8227-0b863f5bc34e"
626 },
627 {
628 "name": "prefix-id",
629 "value": "2"
630 }
631 ],
632 "status": "SUCCESS"
633 }
634 },
635 {
636 "name": "vnf_id",
637 "value": "0e905228-c719-489a-9bcc-4470f3254e87",
638 "resource-resolution-data": {
639 "capability-name": "RA Resolved",
640 "status": "SUCCESS"
641 }
642 },
643 {
644 "name": "nfc-naming-code",
645 "value": "vdns",
646 "resource-resolution-data": {
647 "capability-name": "RA Resolved",
648 "status": "SUCCESS"
649 }
650 },
651 {
652 "name": "onap_private_subnet_id",
653 "value": "oam_network_qXyY",
654 "resource-resolution-data": {
655 "capability-name": "RA Resolved",
656 "status": "SUCCESS"
657 }
658 },
659 {
660 "name": "vf_module_customization_uuid",
661 "value": "613b6877-0231-4ca4-90e4-4aa3374674ef",
662 "resource-resolution-data": {
663 "capability-name": "RA Resolved",
664 "status": "SUCCESS"
665 }
666 },
667 {
668 "name": "vf_module_type",
669 "value": "Expansion",
670 "resource-resolution-data": {
671 "capability-name": "RA Resolved",
672 "status": "SUCCESS"
673 }
674 },
675 {
676 "name": "vlb_onap_private_ip_0",
677 "value": "10.0.101.32",
678 "resource-resolution-data": {
679 "capability-name": "RA Resolved",
680 "status": "SUCCESS"
681 }
682 },
683 {
684 "name": "vf_module_id",
685 "value": "793df714-106e-40a6-a28a-746b65f9e247",
686 "resource-resolution-data": {
687 "capability-name": "RA Resolved",
688 "status": "SUCCESS"
689 }
690 },
691 {
692 "name": "vdns_name_0",
693 "value": "RegionOne_ONAP-NF_20191010T013003141Z_vdns_003",
694 "resource-resolution-data": {
695 "capability-name": "generate-name",
696 "resource-key": [
697 {
698 "name": "resource-name",
699 "value": "vdns_name_0"
700 },
701 {
702 "name": "resource-value",
703 "value": "${vdns_name_0}"
704 },
705 {
706 "name": "naming-type",
707 "value": "VNFC"
708 },
709 {
710 "name": "VNF_NAME",
711 "value": "RegionOne_ONAP-NF_20191010T013003141Z"
712 },
713 {
714 "name": "external-key",
715 "value": "793df714-106e-40a6-a28a-746b65f9e247_vdns_name_0"
716 },
717 {
718 "name": "policy-instance-name",
719 "value": "SDNC_Policy.Config_MS_ONAP_VNF_NAMING_TIMESTAMP"
720 },
721 {
722 "name": "NFC_NAMING_CODE",
723 "value": "vdns"
724 }
725 ],
726 "status": "SUCCESS"
727 }
728 },
729 {
730 "name": "vm-type",
731 "value": "vdns",
732 "resource-resolution-data": {
733 "capability-name": "RA Resolved",
734 "status": "SUCCESS"
735 }
736 },
737 {
738 "name": "vlb_int_pktgen_private_ip_0",
739 "value": "192.168.20.35",
740 "resource-resolution-data": {
741 "capability-name": "RA Resolved",
742 "status": "SUCCESS"
743 }
744 },
745 {
746 "name": "onap_private_net_id",
747 "value": "oam_network_qXyY",
748 "resource-resolution-data": {
749 "capability-name": "RA Resolved",
750 "status": "SUCCESS"
751 }
752 },
753 {
754 "name": "nb_api_version",
755 "value": "1.2.0",
756 "resource-resolution-data": {
757 "capability-name": "RA Resolved",
758 "status": "SUCCESS"
759 }
760 },
761 {
762 "name": "vdns_image_name",
763 "value": "${image_name}",
764 "resource-resolution-data": {
765 "capability-name": "RA Resolved",
766 "status": "SUCCESS"
767 }
768 },
769 {
770 "name": "vdns_onap_private_ip_0",
771 "value": "10.0.101.35",
772 "resource-resolution-data": {
773 "capability-name": "netbox-ip-assign",
774 "resource-key": [
775 {
776 "name": "external_key",
777 "value": "0e905228-c719-489a-9bcc-4470f3254e87-vdns_onap_private_ip_0"
778 },
779 {
780 "name": "vnf-id",
781 "value": "0e905228-c719-489a-9bcc-4470f3254e87"
782 },
783 {
784 "name": "service-instance-id",
785 "value": "4545562a-cbe3-409a-8227-0b863f5bc34e"
786 },
787 {
788 "name": "prefix-id",
789 "value": "3"
790 }
791 ],
792 "status": "SUCCESS"
793 }
794 },
795 {
796 "name": "aai-vf-module-put",
797 "value": "SUCCESS",
798 "resource-resolution-data": {
799 "capability-name": "aai-vf-module-put",
800 "resource-key": [
801 {
802 "name": "vf-module",
803 "value": "vf-module"
804 }
805 ],
806 "status": "SUCCESS"
807 }
808 },
809 {
810 "name": "aic-cloud-region",
811 "value": "${aic-cloud-region}",
812 "resource-resolution-data": {
813 "capability-name": "RA Resolved",
814 "status": "SUCCESS"
815 }
816 },
817 {
818 "name": "nfc-function",
819 "value": "${nf-role}",
820 "resource-resolution-data": {
821 "capability-name": "RA Resolved",
822 "status": "SUCCESS"
823 }
824 },
825 {
826 "name": "sec_group",
827 "value": "onap_sg_qXyY",
828 "resource-resolution-data": {
829 "capability-name": "RA Resolved",
830 "status": "SUCCESS"
831 }
832 },
833 {
834 "name": "vnf_name",
835 "value": "RegionOne_ONAP-NF_20191010T013003141Z",
836 "resource-resolution-data": {
837 "capability-name": "RA Resolved",
838 "status": "SUCCESS"
839 }
840 },
841 {
842 "name": "nexus_artifact_repo",
843 "value": "https://nexus.onap.org",
844 "resource-resolution-data": {
845 "capability-name": "RA Resolved",
846 "status": "SUCCESS"
847 }
848 },
849 {
850 "name": "public_net_id",
851 "value": "external",
852 "resource-resolution-data": {
853 "capability-name": "RA Resolved",
854 "status": "SUCCESS"
855 }
856 }
857 ]
858 },
859 "tenant": "41d6d38489bd40b09ea8a6b6b852dcbd",
860 "sdnc-generated-cloud-resources": true,
861 "vf-module-topology-identifier": {
862 "vf-module-id": "793df714-106e-40a6-a28a-746b65f9e247",
863 "vf-module-name": "vfModuleName",
864 "vf-module-type": "VlbCds..vdns..module-3"
865 },
866 "aic-cloud-region": "RegionOne"
867 }}
868
869Search for the reconfiguration parameters in the vf-module-topology.vf-module-parameters.param array. The user should count (starting from 0, as in most programming languages) the number of array elements to determine the exact location of the parameters of interest. For the VNF described in this documentation, the parameters of interest are "vdns_int_private_ip_0" and "vdns_onap_private_ip_0", which correspond to "ip-addr" and "onap-ip-addr" in the scale out request, respectively. As the user can see by counting the number of array locations (starting from 0), "vdns_int_private_ip_0" and "vdns_onap_private_ip_0" are stored at locations 16 and 30, respectively. As such, the complete resolution path to reconfiguration parameters for the VNF described in this documentation is:
870
871::
872
873 [{"ip-addr":"$.vf-module-topology.vf-module-parameters.param[16].value","oam-ip-addr":"$.vf-module-topology.vf-module-parameters.param[30].value"}]
874
875In future releases, we plan to leverage CDS to model post scaling VNF reconfiguration, so as to remove the dependency from JSON paths and simplify the overall process.
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200876
877
Marco Plataniac80274e2019-08-15 12:11:31 -0400878PART 2 - Scale Out Use Case Instantiation
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200879-----------------------------------------
Marco Plataniaccf78702019-10-16 12:10:52 -0400880This step is only required if CDS is used.
Rene_Robert8f8f27f2019-07-01 15:18:40 +0200881
Rene_Robert1d00e972019-07-08 16:03:08 +0200882GET information from SDC catalogdb
883
884::
885
886 curl -X GET \
887 'https://{{k8s}}:30204/sdc/v1/catalog/services' \
888 -H 'Authorization: Basic dmlkOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU=' \
889 -H 'X-ECOMP-InstanceID: VID' \
890 -H 'cache-control: no-cache'
891
892
893In the response you should find values for:
894
895* service-uuid
896* service-invariantUUID
897* service-name
898
899
Marco Plataniaccf78702019-10-16 12:10:52 -0400900GET informations from SO catalogdb.
Rene_Robert1d00e972019-07-08 16:03:08 +0200901
902::
903
904 curl -X GET \
905 'http://{{k8s}}:30744/ecomp/mso/catalog/v2/serviceVnfs?serviceModelName={{service-name}}' \
906 -H 'Authorization: Basic YnBlbDpwYXNzd29yZDEk' \
907 -H 'cache-control: no-cache'
908
909
910In the response you should find values for:
911
912* vnf-modelinfo-modelname
913* vnf-modelinfo-modeluuid
914* vnf-modelinfo-modelinvariantuuid
915* vnf-modelinfo-modelcustomizationuuid
916* vnf-modelinfo-modelinstancename
917* vnf-vfmodule-0-modelinfo-modelname
918* vnf-vfmodule-0-modelinfo-modeluuid
919* vnf-vfmodule-0-modelinfo-modelinvariantuuid
920* vnf-vfmodule-0-modelinfo-modelcustomizationuuid
921* vnf-vfmodule-1-modelinfo-modelname
922* vnf-vfmodule-1-modelinfo-modeluuid
923* vnf-vfmodule-1-modelinfo-modelinvariantuuid
924* vnf-vfmodule-1-modelinfo-modelcustomizationuuid
925* vnf-vfmodule-2-modelinfo-modelname
926* vnf-vfmodule-2-modelinfo-modeluuid
927* vnf-vfmodule-2-modelinfo-modelinvariantuuid
928* vnf-vfmodule-2-modelinfo-modelcustomizationuuid
929* vnf-vfmodule-3-modelinfo-modelname
930* vnf-vfmodule-3-modelinfo-modeluuid
931* vnf-vfmodule-3-modelinfo-modelinvariantuuid
932* vnf-vfmodule-3-modelinfo-modelcustomizationuuid
933
934
935Note : all those informations are also available in the TOSCA service template in the SDC
936
937You need after:
938
Marco Plataniac80274e2019-08-15 12:11:31 -0400939* the SSH public key value that will allow you to connect to the VM.
Rene_Robert1d00e972019-07-08 16:03:08 +0200940* the cloudSite name and TenantId where to deploy the service
941* the name of the security group that will be used in the tenant for your service
942* the name of the network that will be used to connect your VM
Marco Plataniac80274e2019-08-15 12:11:31 -0400943* the name of your OpenStack image
944* the name of your OpenStack VM flavor
Rene_Robert1d00e972019-07-08 16:03:08 +0200945
946We supposed here that we are using some already declared informations:
947
948* customer named "Demonstration"
949* subscriptionServiceType named "vLB"
950* projectName named "Project-Demonstration"
951* owningEntityName named "OE-Demonstration"
952* platformName named "test"
953* lineOfBusinessName named "someValue"
954
Marco Plataniaccf78702019-10-16 12:10:52 -0400955Having all those information, you are now able to build the SO Macro request
Rene_Robert1d00e972019-07-08 16:03:08 +0200956that will instantiate Service, VNF, VF modules and Heat stacks:
957
958::
959
960 curl -X POST \
961 'http://{{k8s}}:30277/onap/so/infra/serviceInstantiation/v7/serviceInstances' \
962 -H 'Content-Type: application/json' \
963 -H 'cache-control: no-cache' \
964 -d '{
Marco Plataniaccf78702019-10-16 12:10:52 -0400965 "requestDetails":{
966 "subscriberInfo":{
967 "globalSubscriberId":"Demonstration"
968 },
969 "requestInfo":{
970 "suppressRollback":false,
971 "productFamilyId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
972 "requestorId":"adt",
973 "instanceName":"{{cds-instance-name}}",
974 "source":"VID"
975 },
976 "cloudConfiguration":{
977 "lcpCloudRegionId":"RegionOne",
978 "tenantId":"41d6d38489bd40b09ea8a6b6b852dcbd",
979 "cloudOwner":"CloudOwner"
980 },
981 "requestParameters":{
982 "subscriptionServiceType":"vLB",
983 "userParams":[
984 {
985 "Homing_Solution":"none"
Rene_Robert1d00e972019-07-08 16:03:08 +0200986 },
Marco Plataniaccf78702019-10-16 12:10:52 -0400987 {
988 "service":{
989 "instanceParams":[
990
991 ],
992 "instanceName":"{{cds-instance-name}}",
993 "resources":{
994 "vnfs":[
995 {
996 "modelInfo":{
997 "modelName":"{{vnf-modelinfo-modelname}}",
998 "modelVersionId":"{{vnf-modelinfo-modeluuid}}",
999 "modelInvariantUuid":"{{vnf-modelinfo-modelinvariantuuid}}",
1000 "modelVersion":"1.0",
1001 "modelCustomizationId":"{{vnf-modelinfo-modelcustomizationuuid}}",
1002 "modelInstanceName":"{{vnf-modelinfo-modelinstancename}}"
1003 },
1004 "cloudConfiguration":{
1005 "lcpCloudRegionId":"RegionOne",
1006 "tenantId":"41d6d38489bd40b09ea8a6b6b852dcbd"
1007 },
1008 "platform":{
1009 "platformName":"test"
1010 },
1011 "lineOfBusiness":{
1012 "lineOfBusinessName":"LOB-Demonstration"
1013 },
1014 "productFamilyId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
1015 "instanceName":"{{vnf-modelinfo-modelinstancename}}",
1016 "instanceParams":[
1017 {
1018 "onap_private_net_id":"oam_network_qXyY",
1019 "dcae_collector_ip":"10.12.5.214",
1020 "onap_private_subnet_id":"oam_network_qXyY",
1021 "pub_key":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKXDgoo3+WOqcUG8/5uUbk81+yczgwC4Y8ywTmuQqbNxlY1oQ0YxdMUqUnhitSXs5S/yRuAVOYHwGg2mCs20oAINrP+mxBI544AMIb9itPjCtgqtE2EWo6MmnFGbHB4Sx3XioE7F4VPsh7japsIwzOjbrQe+Mua1TGQ5d4nfEOQaaglXLLPFfuc7WbhbJbK6Q7rHqZfRcOwAMXgDoBqlyqKeiKwnumddo2RyNT8ljYmvB6buz7KnMinzo7qB0uktVT05FH9Rg0CTWH5norlG5qXgP2aukL0gk1ph8iAt7uYLf1ktp+LJI2gaF6L0/qli9EmVCSLr1uJ38Q8CBflhkh",
1022 "sec_group":"onap_sg_qXyY",
1023 "install_script_version":"1.5.0",
1024 "demo_artifacts_version":"1.5.0",
1025 "cloud_env":"openstack",
1026 "flavor_name":"m1.medium",
1027 "public_net_id":"external",
1028 "image_name":"ubuntu-16-04-cloud-amd64"
1029 }
1030 ],
1031 "vfModules":[
1032 {
1033 "modelInfo":{
1034 "modelName":"{{vnf-vfmodule-0-modelinfo-modelname}}",
1035 "modelVersionId":"{{vnf-vfmodule-0-modelinfo-modeluuid}}",
1036 "modelInvariantUuid":"{{vnf-vfmodule-0-modelinfo-modelinvariantuuid}}",
1037 "modelVersion":"1",
1038 "modelCustomizationId":"{{vnf-vfmodule-0-modelinfo-modelcustomizationuuid}}"
1039 },
1040 "instanceName":"{{vnf-vfmodule-0-modelinfo-modelname}}",
1041 "instanceParams":[
1042 {
1043 "sec_group":"onap_sg_imAd",
1044 "public_net_id":"external"
1045 }
1046 ]
1047 },
1048 {
1049 "modelInfo":{
1050 "modelName":"{{vnf-vfmodule-1-modelinfo-modelname}}",
1051 "modelVersionId":"{{vnf-vfmodule-1-modelinfo-modeluuid}}",
1052 "modelInvariantUuid":"{{vnf-vfmodule-1-modelinfo-modelinvariantuuid}}",
1053 "modelVersion":"1",
1054 "modelCustomizationId":"{{vnf-vfmodule-1-modelinfo-modelcustomizationuuid}}"
1055 },
1056 "instanceName":"{{vnf-vfmodule-1-modelinfo-modelname}}",
1057 "instanceParams":[
1058 {
1059 "sec_group":"onap_sg_imAd",
1060 "public_net_id":"external"
1061 }
1062 ]
1063 },
1064 {
1065 "modelInfo":{
1066 "modelName":"{{vnf-vfmodule-2-modelinfo-modelname}}",
1067 "modelVersionId":"{{vnf-vfmodule-2-modelinfo-modeluuid}}",
1068 "modelInvariantUuid":"{{vnf-vfmodule-2-modelinfo-modelinvariantuuid}}",
1069 "modelVersion":"1",
1070 "modelCustomizationId":"{{vnf-vfmodule-2-modelinfo-modelcustomizationuuid}}"
1071 },
1072 "instanceName":"{{vnf-vfmodule-2-modelinfo-modelname}}",
1073 "instanceParams":[
1074 {
1075 "sec_group":"onap_sg_imAd",
1076 "public_net_id":"external"
1077 }
1078 ]
1079 },
1080 {
1081 "modelInfo":{
1082 "modelName":"{{vnf-vfmodule-3-modelinfo-modelname}}",
1083 "modelVersionId":"{{vnf-vfmodule-3-modelinfo-modeluuid}}",
1084 "modelInvariantUuid":"{{vnf-vfmodule-3-modelinfo-modelinvariantuuid}}",
1085 "modelVersion":"1",
1086 "modelCustomizationId":"{{vnf-vfmodule-3-modelinfo-modelcustomizationuuid}}"
1087 },
1088 "instanceName":"{{vnf-vfmodule-3-modelinfo-modelname}}",
1089 "instanceParams":[
1090 {
1091 "sec_group":"onap_sg_imAd",
1092 "public_net_id":"external"
1093 }
1094 ]
1095 }
1096 ]
1097 }
1098 ]
1099 },
1100 "modelInfo":{
1101 "modelVersion":"1.0",
1102 "modelVersionId":"{{service-uuid}}",
1103 "modelInvariantId":"{{service-invariantUUID}}",
1104 "modelName":"{{service-name}}",
1105 "modelType":"service"
1106 }
1107 }
Rene_Robert1d00e972019-07-08 16:03:08 +02001108 }
Marco Plataniaccf78702019-10-16 12:10:52 -04001109 ],
1110 "aLaCarte":false
1111 },
1112 "project":{
1113 "projectName":"Project-Demonstration"
1114 },
1115 "owningEntity":{
1116 "owningEntityId":"6f6c49d0-8a8c-4704-9174-321bcc526cc0",
1117 "owningEntityName":"OE-Demonstration"
1118 },
1119 "modelInfo":{
1120 "modelVersion":"1.0",
1121 "modelVersionId":"{{service-uuid}}",
1122 "modelInvariantId":"{{service-invariantUUID}}",
1123 "modelName":"{{service-name}}",
1124 "modelType":"service"
1125 }
1126 }
1127}'
Rene_Robert1d00e972019-07-08 16:03:08 +02001128
Marco Plataniaccf78702019-10-16 12:10:52 -04001129Note that the "dcae_collector_ip" parameter has to contain the IP address of one of the Kubernetes cluster nodes, 10.12.5.214 in the example above. In the response to the Macro request, the user will obtain a requestId that will be usefulto follow the instantiation request status in the ONAP SO:
Rene_Robert1d00e972019-07-08 16:03:08 +02001130
1131::
1132
1133 curl -X GET \
1134 'http://{{k8s}}:30086/infraActiveRequests/{{requestid}}' \
1135 -H 'cache-control: no-cache'
1136
1137
1138
Rene_Robert8f8f27f2019-07-01 15:18:40 +02001139
1140
Marco Plataniac80274e2019-08-15 12:11:31 -04001141PART 3 - Post Instantiation Operations
1142--------------------------------------
Rene_Robert8f8f27f2019-07-01 15:18:40 +02001143
Marco Plataniaccf78702019-10-16 12:10:52 -040011443-1 Post Instantiation VNF configuration
1145~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1146CDS executes post-instantiation VNF configuration if the "skip-post-instantiation" flag in the SDC service model is set to false, which is the default behavior. Manual post-instantiation configuration is necessary if the "skip-post-instantiation" flag in the service model is set to true or if the VNF is instantiated using the preload approach, which doesn't include CDS. Regardless, this step is NOT required during scale out operations, as VNF reconfiguration will be triggered by SO and executed by APPC.
1147
1148If VNF post instantiation is executed manually, in order to change the state of the vLB the users should run the following REST call, replacing the IP addresses in the VNF endpoint and JSON object to match the private IP addresses of their vDNS instance:
Marco Plataniab9e219f2019-06-16 16:09:20 -04001149
1150::
1151
1152 curl -X PUT \
1153 http://10.12.5.78:8183/restconf/config/vlb-business-vnf-onap-plugin:vlb-business-vnf-onap-plugin/vdns-instances/vdns-instance/192.168.10.59 \
1154 -H 'Accept: application/json' \
1155 -H 'Content-Type: application/json' \
1156 -H 'Postman-Token: a708b064-adb1-4804-89a7-ee604f5fe76f' \
1157 -H 'cache-control: no-cache' \
1158 -d '{
1159 "vdns-instance": [
1160 {
1161 "ip-addr": "192.168.10.59",
1162 "oam-ip-addr": "10.0.101.49",
1163 "enabled": true
1164 }
Marco Plataniac80274e2019-08-15 12:11:31 -04001165 ]
1166 }'
Marco Plataniab9e219f2019-06-16 16:09:20 -04001167
Rene_Robert8f8f27f2019-07-01 15:18:40 +02001168At this point, the VNF is fully set up.
1169
1170
Marco Plataniac80274e2019-08-15 12:11:31 -040011713-2 Updating AAI with VNF resources
1172~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rene_Robert8f8f27f2019-07-01 15:18:40 +02001173To allow automated scale out via closed loop, the users need to inventory the VNF resources in AAI. This is done by running the heatbridge python script in /root/oom/kubernetes/robot in the Rancher VM in the Kubernetes cluster:
Marco Plataniab9e219f2019-06-16 16:09:20 -04001174
1175::
1176
Marco Plataniaba7c0742019-07-30 09:15:35 -04001177 ./demo-k8s.sh onap heatbridge <vLB stack_name in OpenStack> <service_instance_id> vLB vlb_onap_private_ip_0
Marco Plataniab9e219f2019-06-16 16:09:20 -04001178
Marco Plataniaccf78702019-10-16 12:10:52 -04001179Note that "vlb_onap_private_ip_0" used in the heatbridge call is the actual parameter name, not its value (e.g. the actual IP address). Heatbridge is needed for control loops because DCAE and Policy runs queries against AAI using vServer names as key.
Marco Plataniab9e219f2019-06-16 16:09:20 -04001180
Rene_Robert8f8f27f2019-07-01 15:18:40 +02001181
Marco Plataniac80274e2019-08-15 12:11:31 -04001182PART 4 - Triggering Scale Out Manually
1183--------------------------------------
Rene_Robert8f8f27f2019-07-01 15:18:40 +02001184
Marco Plataniab9e219f2019-06-16 16:09:20 -04001185For scale out with manual trigger, VID is not supported at this time. Users can run the use case by directly calling SO APIs:
1186
1187::
1188
1189 curl -X POST \
Marco Plataniac80274e2019-08-15 12:11:31 -04001190 http://<Any_K8S_Node_IP_Address>:30277/onap/so/infra/serviceInstantiation/v7/serviceInstances/7d3ca782-c486-44b3-9fe5-39f322d8ee80/vnfs/9d33cf2d-d6aa-4b9e-a311-460a6be5a7de/vfModules/scaleOut \
Marco Plataniab9e219f2019-06-16 16:09:20 -04001191 -H 'Accept: application/json' \
1192 -H 'Authorization: Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA==' \
1193 -H 'Cache-Control: no-cache' \
1194 -H 'Connection: keep-alive' \
1195 -H 'Content-Type: application/json' \
Marco Plataniab9e219f2019-06-16 16:09:20 -04001196 -H 'Postman-Token: 12f2601a-4eb2-402c-a51a-f29502359501,9befda68-b2c9-4e7a-90ca-1be9c24ef664' \
1197 -H 'User-Agent: PostmanRuntime/7.15.0' \
1198 -H 'accept-encoding: gzip, deflate' \
1199 -H 'cache-control: no-cache' \
1200 -H 'content-length: 2422' \
1201 -H 'cookie: JSESSIONID=B3BA24216367F9D39E3DF5E8CBA4BC64' \
1202 -b JSESSIONID=B3BA24216367F9D39E3DF5E8CBA4BC64 \
1203 -d '{
1204 "requestDetails": {
1205 "modelInfo": {
1206 "modelCustomizationName": "VdnsloadbalancerCds..vdns..module-3",
Marco Plataniac80274e2019-08-15 12:11:31 -04001207 "modelCustomizationId": "ded42059-2f35-42d4-848b-16e1ab1ad197",
1208 "modelInvariantId": "2815d321-c6b4-4f21-b7f7-fa5adf8ed7d9",
1209 "modelVersionId": "524e34ed-9789-453e-ab73-8eff30eafef3",
Marco Plataniab9e219f2019-06-16 16:09:20 -04001210 "modelName": "VdnsloadbalancerCds..vdns..module-3",
1211 "modelType": "vfModule",
1212 "modelVersion": "1"
1213 },
1214 "cloudConfiguration": {
1215 "lcpCloudRegionId": "RegionOne",
1216 "tenantId": "d570c718cbc545029f40e50b75eb13df",
1217 "cloudOwner": "CloudOwner"
1218 },
1219 "requestInfo": {
Marco Plataniac80274e2019-08-15 12:11:31 -04001220 "instanceName": "vDNS-VM-02",
Marco Plataniab9e219f2019-06-16 16:09:20 -04001221 "source": "VID",
1222 "suppressRollback": false,
1223 "requestorId": "demo"
1224 },
1225 "requestParameters": {
1226 "userParams": []
1227 },
1228 "relatedInstanceList": [
1229 {
1230 "relatedInstance": {
1231 "instanceId": "7d3ca782-c486-44b3-9fe5-39f322d8ee80",
1232 "modelInfo": {
1233 "modelType": "service",
Marco Plataniac80274e2019-08-15 12:11:31 -04001234 "modelInvariantId": "dfabdcae-cf50-4801-9885-9a3a9cc07e6f",
1235 "modelVersionId": "ee55b537-7be5-4377-93c1-5d92931b6a78",
1236 "modelName": "vLoadBalancerCDS",
1237 "modelVersion": "1.0"
Marco Plataniab9e219f2019-06-16 16:09:20 -04001238 }
1239 }
1240 },
1241 {
1242 "relatedInstance": {
1243 "instanceId": "9d33cf2d-d6aa-4b9e-a311-460a6be5a7de",
1244 "modelInfo": {
1245 "modelType": "vnf",
Marco Plataniac80274e2019-08-15 12:11:31 -04001246 "modelInvariantId": "a77f9280-5c02-46cd-b1fc-855975db9df9",
1247 "modelVersionId": "ff0e99ce-a521-44b5-b11b-da7e07ac83fc",
1248 "modelName": "vLoadBalancerCDS",
1249 "modelVersion": "1.0",
1250 "modelCustomizationId": "b8b8a25d-19de-4581-bb63-f2dc8c0d79a7"
Marco Plataniab9e219f2019-06-16 16:09:20 -04001251 }
1252 }
1253 }
1254 ],
1255 "configurationParameters": [
1256 {
1257 "ip-addr": "$.vf-module-topology.vf-module-parameters.param[17].value",
1258 "oam-ip-addr": "$.vf-module-topology.vf-module-parameters.param[31].value"
1259 }
1260 ]
Marco Plataniac80274e2019-08-15 12:11:31 -04001261 }
1262 }'
Marco Plataniab9e219f2019-06-16 16:09:20 -04001263
1264
Marco Platania4b8acc92019-09-16 12:16:54 -04001265To fill in the JSON object, users need to download the Service Model TOSCA template from the SDC Portal using one of the standard SDC users (for example user: cs0008, password: demo123456!). After logging to SDC, the user should select from the catalog the vLB service that they created, click the "TOSCA Artifacts" link on the left, and finally the download button on the right, as shown in the figure below:
1266
1267.. figure:: files/scaleout/tosca_template_fig.png
1268 :align: center
1269
1270For the example described below, users can refer to the TOSCA template linked at the top of the page. The template contains all the model (invariant/version/customization) IDs of service, VNF, and VF modules that the input request to SO needs.
Marco Plataniac80274e2019-08-15 12:11:31 -04001271
1272The values of modelInvariantId, modelVersionId, and modelName in the relatedInstance item identified by "modelType": "service" in the JSON request to SO have to match invariantUUID, UUID, and name, respectively, in the TOSCA template:
1273::
1274
1275 {
1276 "relatedInstance": {
1277 "instanceId": "7d3ca782-c486-44b3-9fe5-39f322d8ee80",
1278 "modelInfo": {
1279 "modelType": "service",
1280 "modelInvariantId": "dfabdcae-cf50-4801-9885-9a3a9cc07e6f",
1281 "modelVersionId": "ee55b537-7be5-4377-93c1-5d92931b6a78",
1282 "modelName": "vLoadBalancerCDS",
1283 "modelVersion": "1.0"
1284 }
1285 }
1286 }
1287
1288.. figure:: files/scaleout/service.png
1289 :align: center
Marco Plataniab9e219f2019-06-16 16:09:20 -04001290
Marco Plataniae5064cd2018-11-28 15:33:47 -05001291
Marco Plataniac80274e2019-08-15 12:11:31 -04001292The values of modelInvariantId, modelVersionId, modelName, and modelVersion in the relatedInstance item identified by "modelType": "vnf" in the JSON request to SO have to match invariantUUID, UUID, name, and version, respectively, in the TOSCA template:
1293
1294::
1295
1296 {
1297 "relatedInstance": {
1298 "instanceId": "9d33cf2d-d6aa-4b9e-a311-460a6be5a7de",
1299 "modelInfo": {
1300 "modelType": "vnf",
1301 "modelInvariantId": "a77f9280-5c02-46cd-b1fc-855975db9df9",
1302 "modelVersionId": "ff0e99ce-a521-44b5-b11b-da7e07ac83fc",
1303 "modelName": "vLoadBalancerCDS",
1304 "modelVersion": "1.0",
1305 "modelCustomizationId": "b8b8a25d-19de-4581-bb63-f2dc8c0d79a7"
1306 }
1307 }
1308 }
1309
1310.. figure:: files/scaleout/vnf.png
1311 :align: center
Rene_Robert8f8f27f2019-07-01 15:18:40 +02001312
1313
Marco Plataniac80274e2019-08-15 12:11:31 -04001314The modelCustomizationId, modelInvariantId, modelVersionId, modelName, and modelVersion in the modelInfo item identified by "modelType": "vfModule" in the JSON request to SO have to match vfModuleModelCustomizationUUID, vfModuleModelInvariantUUID, vfModuleModelUUID, vfModuleModelName, and vfModuleModelVersion, respectively, in the TOSCA template. The modelCustomizationName parameter in the SO object can be set as the modelName parameter in the same JSON object:
Rene_Robert8f8f27f2019-07-01 15:18:40 +02001315
Marco Plataniac80274e2019-08-15 12:11:31 -04001316::
1317
1318 "modelInfo": {
1319 "modelCustomizationName": "Vloadbalancercds..vdns..module-3",
1320 "modelCustomizationId": "ded42059-2f35-42d4-848b-16e1ab1ad197",
1321 "modelInvariantId": "2815d321-c6b4-4f21-b7f7-fa5adf8ed7d9",
1322 "modelVersionId": "524e34ed-9789-453e-ab73-8eff30eafef3",
1323 "modelName": "Vloadbalancercds..vdns..module-3",
1324 "modelType": "vfModule",
1325 "modelVersion": "1"
1326 }
1327
1328The vLB-vDNS-vPacketGenerator VNF that we use to describe the scale out use case supports the scaling of the vDNS VF module only. As such, in the TOSCA template users should refer to the section identified by "vfModuleModelName": "Vloadbalancercds..vdns..module-3", as highlighted below:
1329
1330.. figure:: files/scaleout/service.png
1331 :align: center
1332
1333
1334Note that both Service and VNF related instances have a field called "instanceId" that represent the Service and VNF instance ID, respectively. These IDs are assigned at Service and VNF instantiation time and can be retrieved from AAI, querying for generic VNF objects:
1335
1336::
1337
1338 curl -k -X GET \
1339 https://<Any_K8S_Node_IP_Address>:30233/aai/v16/network/generic-vnfs \
1340 -H 'Accept: application/json' \
1341 -H 'Authorization: Basic QUFJOkFBSQ==' \
1342 -H 'Content-Type: application/json' \
1343 -H 'X-FromAppId: AAI' \
1344 -H 'X-TransactionId: get_aai_subscr'
1345
1346From the list of VNFs reported by AAI, search for the name of the VNF that was previously instantiated, for example "vLB_VNF_01" in the example below:
1347
1348::
1349
1350 {
1351 "vnf-id": "9d33cf2d-d6aa-4b9e-a311-460a6be5a7de",
1352 "vnf-name": "vLB_VNF_01",
1353 "vnf-type": "vLoadBalancer/vLoadBalancer 0",
1354 "prov-status": "ACTIVE",
1355 "equipment-role": "",
1356 "orchestration-status": "Active",
1357 "ipv4-oam-address": "10.0.220.10",
1358 "in-maint": true,
1359 "is-closed-loop-disabled": false,
1360 "resource-version": "1565817789379",
1361 "model-invariant-id": "a77f9280-5c02-46cd-b1fc-855975db9df9",
1362 "model-version-id": "ff0e99ce-a521-44b5-b11b-da7e07ac83fc",
1363 "model-customization-id": "b8b8a25d-19de-4581-bb63-f2dc8c0d79a7",
1364 "selflink": "restconf/config/GENERIC-RESOURCE-API:services/service/7d3ca782-c486-44b3-9fe5-39f322d8ee80/service-data/vnfs/vnf/9d33cf2d-d6aa-4b9e-a311-460a6be5a7de/vnf-data/vnf-topology/",
1365 "relationship-list": {
1366 "relationship": [
1367 {
1368 "related-to": "service-instance",
1369 "relationship-label": "org.onap.relationships.inventory.ComposedOf",
1370 "related-link": "/aai/v16/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vRAR/service-instances/service-instance/7d3ca782-c486-44b3-9fe5-39f322d8ee80",
1371 "relationship-data": [
1372 {
1373 "relationship-key": "customer.global-customer-id",
1374 "relationship-value": "Demonstration"
1375 },
1376 {
1377 "relationship-key": "service-subscription.service-type",
1378 "relationship-value": "vLB"
1379 },
1380 {
1381 "relationship-key": "service-instance.service-instance-id",
1382 "relationship-value": "7d3ca782-c486-44b3-9fe5-39f322d8ee80"
1383 }
1384 ],
1385 "related-to-property": [
1386 {
1387 "property-key": "service-instance.service-instance-name",
1388 "property-value": "vLB-Service-0814-1"
1389 }
1390 ]
1391 }
1392 ...
1393 }
1394
1395To identify the VNF ID, look for the "vnf-id" parameter at the top of the JSON object, while to determine the Service ID, look for the "relationship-value" parameter corresponding to the "relationship-key": "service-instance.service-instance-id" item in the "relationship-data" list. In the example above, the Service instance ID is 7d3ca782-c486-44b3-9fe5-39f322d8ee80, while the VNF ID is 9d33cf2d-d6aa-4b9e-a311-460a6be5a7de.
1396
1397These IDs are also used in the URL request to SO:
1398
1399::
1400
1401 http://<Any_K8S_Node_IP_Address>:30277/onap/so/infra/serviceInstantiation/v7/serviceInstances/7d3ca782-c486-44b3-9fe5-39f322d8ee80/vnfs/9d33cf2d-d6aa-4b9e-a311-460a6be5a7de/vfModules/scaleOut
1402
1403
Marco Plataniaccf78702019-10-16 12:10:52 -04001404Finally, the "configurationParameters" section in the JSON request to SO contains the parameters that will be used to reconfigure the VNF after scaling. Please see Section 1-7 for an in-depth description of how to set the parameters correctly.
Marco Plataniac80274e2019-08-15 12:11:31 -04001405
1406::
1407
1408 "configurationParameters": [
1409 {
Marco Plataniaccf78702019-10-16 12:10:52 -04001410 "ip-addr": "$.vf-module-topology.vf-module-parameters.param[16].value",
1411 "oam-ip-addr": "$.vf-module-topology.vf-module-parameters.param[30].value"
Marco Plataniac80274e2019-08-15 12:11:31 -04001412 }
1413 ]
1414
Marco Plataniac80274e2019-08-15 12:11:31 -04001415
1416PART 5 - Running the Scale Out Use Case with Configuration Preload
1417------------------------------------------------------------------
1418
Marco Plataniaccf78702019-10-16 12:10:52 -04001419While CDS can be used to model and automate the generation of cloud configuration for VNF instantiation, the manual preload approach is still supported for scale out with manual trigger (no closed loop). Note that preload operations must be executed before VF modules are created or scaled, as the instantiation process will use the preload to determine the VF module configuration.
Marco Plataniac80274e2019-08-15 12:11:31 -04001420
1421The procedure is similar to one described above, with some minor changes:
1422
14231) **Service Design and Creation**: The heat template used to create a vendor software product in SDC is the same. However, during property assignment (Section 1-2) "sdnc_artifact_name", "sdnc_model_version", "sdnc_model_name" **must be** left blank, as they are used for CDS only.
1424
14252) As closed loop with preload is not supported for scale out, DCAE blueprint and Policy onboarding (Section 1-2), deployment of naming policy (Section 1-3), and closed loop design and deployment from CLAMP (Section 1-4) are not necessary.
1426
14273) **Creation of VNF template with CDT** works as described in Section 1-5.
1428
14294) **Controller type selection** in SO works as described in Section 1-6.
1430
Marco Plataniaccf78702019-10-16 12:10:52 -040014315) **VNF instantiation from VID**: users can use VID to create the service, the VNF, and instantiate the VF modules. In the VID main page, users should select GR API (this should be the default option).
1432
1433.. figure:: files/scaleout/vid.png
1434 :align: center
1435
1436Based on the Heat template structure, there are four VF modules:
Marco Plataniac80274e2019-08-15 12:11:31 -04001437
1438 * module-0: base module that contains resources, such as internal private networks and public key, shared across the VNF elements
1439 * module-1: vLB resource descriptor
1440 * module-2: vPacketGen resource descriptor
1441 * module-3: vDNS resource descriptor
1442
1443These VF modules have to be installed in the following order, so as to satisfy heat dependencies: module-0, module-1, module-2, module-3. The parameters defined in the Heat environment files can be overridden by loading cloud configuration to SDNC before the VF modules are instantiated. See example of preloads below. They need to be customized based on the OpenStack cloud and execution environment in which the VF modules are going to be instantiated.
1444
1445Module-0 Preload
1446~~~~~~~~~~~~~~~~
1447
1448::
1449
1450 curl -X POST \
1451 http://<Any_K8S_Node_IP_Address>:30202/restconf/operations/GENERIC-RESOURCE-API:preload-vf-module-topology-operation \
1452 -H 'Content-Type: application/json' \
1453 -H 'Postman-Token: 0a7abc62-9d8f-4f63-8b05-db7cc4c3e28b' \
1454 -H 'cache-control: no-cache' \
1455 -d '{
1456 "input": {
1457 "preload-vf-module-topology-information": {
1458 "vf-module-topology": {
1459 "vf-module-topology-identifier": {
1460 "vf-module-name": "vNetworks-0211-1"
1461 },
1462 "vf-module-parameters": {
1463 "param": [
1464 {
1465 "name": "vlb_private_net_id",
1466 "value": "vLBMS_zdfw1lb01_private_ms"
1467 },
1468 {
1469 "name": "pktgen_private_net_id",
1470 "value": "vLBMS_zdfw1pktgen01_private_ms"
1471 },
1472 {
1473 "name": "vlb_private_net_cidr",
1474 "value": "192.168.10.0/24"
1475 },
1476 {
1477 "name": "pktgen_private_net_cidr",
1478 "value": "192.168.9.0/24"
1479 },
1480 {
1481 "name": "vlb_0_int_pktgen_private_port_0_mac",
1482 "value": "fa:16:3e:00:01:10"
1483 },
1484 {
1485 "name": "vpg_0_int_pktgen_private_port_0_mac",
1486 "value": "fa:16:3e:00:01:20"
1487 },
1488 {
1489 "name": "vnf_id",
1490 "value": "vLoadBalancerMS"
1491 },
1492 {
1493 "name": "vnf_name",
1494 "value": "vLBMS"
1495 },
1496 {
1497 "name": "key_name",
1498 "value": "vlb_key"
1499 },
1500 {
1501 "name": "pub_key",
1502 "value": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQXYJYYi3/OUZXUiCYWdtc7K0m5C0dJKVxPG0eI8EWZrEHYdfYe6WoTSDJCww+1qlBSpA5ac/Ba4Wn9vh+lR1vtUKkyIC/nrYb90ReUd385Glkgzrfh5HdR5y5S2cL/Frh86lAn9r6b3iWTJD8wBwXFyoe1S2nMTOIuG4RPNvfmyCTYVh8XTCCE8HPvh3xv2r4egawG1P4Q4UDwk+hDBXThY2KS8M5/8EMyxHV0ImpLbpYCTBA6KYDIRtqmgS6iKyy8v2D1aSY5mc9J0T5t9S2Gv+VZQNWQDDKNFnxqYaAo1uEoq/i1q63XC5AD3ckXb2VT6dp23BQMdDfbHyUWfJN"
1503 }
1504 ]
1505 }
1506 },
1507 "vnf-topology-identifier-structure": {
1508 "vnf-name": "vLoadBalancer-Vnf-0211-1",
1509 "vnf-type": "vLoadBalancer/vLoadBalancer 0"
1510 },
1511 "vnf-resource-assignments": {
1512 "availability-zones": {
1513 "availability-zone": [
1514 "nova"
1515 ],
1516 "max-count": 1
1517 },
1518 "vnf-networks": {
1519 "vnf-network": []
1520 }
1521 }
1522 },
1523 "request-information": {
1524 "request-id": "robot12",
1525 "order-version": "1",
1526 "notification-url": "openecomp.org",
1527 "order-number": "1",
1528 "request-action": "PreloadVfModuleRequest"
1529 },
1530 "sdnc-request-header": {
1531 "svc-request-id": "robot12",
1532 "svc-notification-url": "http://openecomp.org:8080/adapters/rest/SDNCNotify",
1533 "svc-action": "reserve"
1534 }
1535 }
1536 }'
1537
1538
1539Module-1 Preload
1540~~~~~~~~~~~~~~~~
1541
1542::
1543
1544 curl -X POST \
1545 http://<Any_K8S_Node_IP_Address>:30202/restconf/operations/GENERIC-RESOURCE-API:preload-vf-module-topology-operation \
1546 -H 'Content-Type: application/json' \
1547 -H 'Postman-Token: 662914ac-29fc-414d-8823-1691fb2c718a' \
1548 -H 'cache-control: no-cache' \
1549 -d '{
1550 "input": {
1551 "preload-vf-module-topology-information": {
1552 "vf-module-topology": {
1553 "vf-module-topology-identifier": {
1554 "vf-module-name": "vLoadBalancer-0211-1"
1555 },
1556 "vf-module-parameters": {
1557 "param": [
1558 {
1559 "name": "vlb_image_name",
1560 "value": "ubuntu-16-04-cloud-amd64"
1561 },
1562 {
1563 "name": "vlb_flavor_name",
1564 "value": "m1.medium"
1565 },
1566 {
1567 "name": "public_net_id",
1568 "value": "public"
1569 },
1570 {
1571 "name": "int_private_net_id",
1572 "value": "vLBMS_zdfw1lb01_private_ms"
1573 },
1574 {
1575 "name": "int_private_subnet_id",
1576 "value": "vLBMS_zdfw1lb01_private_sub_ms"
1577 },
1578 {
1579 "name": "int_pktgen_private_net_id",
1580 "value": "vLBMS_zdfw1pktgen01_private_ms"
1581 },
1582 {
1583 "name": "int_pktgen_private_subnet_id",
1584 "value": "vLBMS_zdfw1pktgen01_private_sub_ms"
1585 },
1586 {
1587 "name": "onap_private_net_id",
1588 "value": "oam_onap_vnf_test"
1589 },
1590 {
1591 "name": "onap_private_subnet_id",
1592 "value": "oam_onap_vnf_test"
1593 },
1594 {
1595 "name": "vlb_private_net_cidr",
1596 "value": "192.168.10.0/24"
1597 },
1598 {
1599 "name": "pktgen_private_net_cidr",
1600 "value": "192.168.9.0/24"
1601 },
1602 {
1603 "name": "onap_private_net_cidr",
1604 "value": "10.0.0.0/16"
1605 },
1606 {
1607 "name": "vlb_int_private_ip_0",
1608 "value": "192.168.10.111"
1609 },
1610 {
1611 "name": "vlb_onap_private_ip_0",
1612 "value": "10.0.150.1"
1613 },
1614 {
1615 "name": "vlb_int_pktgen_private_ip_0",
1616 "value": "192.168.9.111"
1617 },
1618 {
1619 "name": "vdns_int_private_ip_0",
1620 "value": "192.168.10.211"
1621 },
1622 {
1623 "name": "vdns_onap_private_ip_0",
1624 "value": "10.0.150.3"
1625 },
1626 {
1627 "name": "vpg_int_pktgen_private_ip_0",
1628 "value": "192.168.9.110"
1629 },
1630 {
1631 "name": "vpg_onap_private_ip_0",
1632 "value": "10.0.150.2"
1633 },
1634 {
1635 "name": "vlb_name_0",
1636 "value": "vlb-0211-1"
1637 },
1638 {
1639 "name": "vlb_0_mac_address",
1640 "value": "fa:16:3e:00:01:10"
1641 },
1642 {
1643 "name": "vpg_0_mac_address",
1644 "value": "fa:16:3e:00:01:20"
1645 },
1646 {
1647 "name": "vip",
1648 "value": "192.168.9.112"
1649 },
1650 {
1651 "name": "gre_ipaddr",
1652 "value": "192.168.10.112"
1653 },
1654 {
1655 "name": "vnf_id",
1656 "value": "vLoadBalancerMS"
1657 },
1658 {
1659 "name": "vf_module_id",
1660 "value": "vLoadBalancerMS"
1661 },
1662 {
1663 "name": "vnf_name",
1664 "value": "vLBMS"
1665 },
1666 {
1667 "name": "dcae_collector_ip",
1668 "value": "10.12.5.20"
1669 },
1670 {
1671 "name": "dcae_collector_port",
1672 "value": "30235"
1673 },
1674 {
1675 "name": "demo_artifacts_version",
Marco Plataniaf2d8bca2019-10-13 10:47:19 -04001676 "value": "1.6.0-SNAPSHOT"
Marco Plataniac80274e2019-08-15 12:11:31 -04001677 },
1678 {
1679 "name": "install_script_version",
Marco Plataniaf2d8bca2019-10-13 10:47:19 -04001680 "value": "1.6.0-SNAPSHOT"
Marco Plataniac80274e2019-08-15 12:11:31 -04001681 },
1682 {
1683 "name": "nb_api_version",
1684 "value": "1.2.0"
1685 },
1686 {
1687 "name": "keypair",
1688 "value": "vlb_key"
1689 },
1690 {
1691 "name": "cloud_env",
1692 "value": "openstack"
1693 },
1694 {
1695 "name": "nexus_artifact_repo",
1696 "value": "https://nexus.onap.org"
1697 },
1698 {
1699 "name": "sec_group",
1700 "value": "default"
1701 }
1702 ]
1703 }
1704 },
1705 "vnf-topology-identifier-structure": {
1706 "vnf-name": "vLoadBalancer-Vnf-0211-1",
1707 "vnf-type": "vLoadBalancer/vLoadBalancer 0"
1708 },
1709 "vnf-resource-assignments": {
1710 "availability-zones": {
1711 "availability-zone": [
1712 "nova"
1713 ],
1714 "max-count": 1
1715 },
1716 "vnf-networks": {
1717 "vnf-network": []
1718 }
1719 }
1720 },
1721 "request-information": {
1722 "request-id": "robot12",
1723 "order-version": "1",
1724 "notification-url": "openecomp.org",
1725 "order-number": "1",
1726 "request-action": "PreloadVfModuleRequest"
1727 },
1728 "sdnc-request-header": {
1729 "svc-request-id": "robot12",
1730 "svc-notification-url": "http://openecomp.org:8080/adapters/rest/SDNCNotify",
1731 "svc-action": "reserve"
1732 }
1733 }
1734 }'
1735
1736
1737Module-2 Preload
1738~~~~~~~~~~~~~~~~
1739::
1740
1741
1742 curl -X POST \
1743 http://<Any_K8S_Node_IP_Address>:30202/restconf/operations/GENERIC-RESOURCE-API:preload-vf-module-topology-operation \
1744 -H 'Content-Type: application/json' \
1745 -H 'Postman-Token: 5f2490b3-6e4a-4512-9a0d-0aa6f6fa0ea8' \
1746 -H 'cache-control: no-cache' \
1747 -d '{
1748 "input": {
1749 "preload-vf-module-topology-information": {
1750 "vf-module-topology": {
1751 "vf-module-topology-identifier": {
1752 "vf-module-name": "vPacketGen-0211-1"
1753 },
1754 "vf-module-parameters": {
1755 "param": [
1756 {
1757 "name": "vpg_image_name",
1758 "value": "ubuntu-16-04-cloud-amd64"
1759 },
1760 {
1761 "name": "vpg_flavor_name",
1762 "value": "m1.medium"
1763 },
1764 {
1765 "name": "public_net_id",
1766 "value": "public"
1767 },
1768 {
1769 "name": "int_pktgen_private_net_id",
1770 "value": "vLBMS_zdfw1pktgen01_private_ms"
1771 },
1772 {
1773 "name": "int_pktgen_private_subnet_id",
1774 "value": "vLBMS_zdfw1pktgen01_private_sub_ms"
1775 },
1776 {
1777 "name": "onap_private_net_id",
1778 "value": "oam_onap_vnf_test"
1779 },
1780 {
1781 "name": "onap_private_subnet_id",
1782 "value": "oam_onap_vnf_test"
1783 },
1784 {
1785 "name": "pktgen_private_net_cidr",
1786 "value": "192.168.9.0/24"
1787 },
1788 {
1789 "name": "onap_private_net_cidr",
1790 "value": "10.0.0.0/16"
1791 },
1792 {
1793 "name": "vlb_int_pktgen_private_ip_0",
1794 "value": "192.168.9.111"
1795 },
1796 {
1797 "name": "vpg_int_pktgen_private_ip_0",
1798 "value": "192.168.9.110"
1799 },
1800 {
1801 "name": "vpg_onap_private_ip_0",
1802 "value": "10.0.150.2"
1803 },
1804 {
1805 "name": "vpg_name_0",
1806 "value": "vpg-0211-1"
1807 },
1808 {
1809 "name": "vlb_0_mac_address",
1810 "value": "fa:16:3e:00:01:10"
1811 },
1812 {
1813 "name": "vpg_0_mac_address",
1814 "value": "fa:16:3e:00:01:20"
1815 },
1816 {
1817 "name": "pg_int",
1818 "value": "192.168.9.109"
1819 },
1820 {
1821 "name": "vnf_id",
1822 "value": "vLoadBalancerMS"
1823 },
1824 {
1825 "name": "vf_module_id",
1826 "value": "vLoadBalancerMS"
1827 },
1828 {
1829 "name": "vnf_name",
1830 "value": "vLBMS"
1831 },
1832 {
1833 "name": "demo_artifacts_version",
Marco Plataniaf2d8bca2019-10-13 10:47:19 -04001834 "value": "1.6.0-SNAPSHOT"
Marco Plataniac80274e2019-08-15 12:11:31 -04001835 },
1836 {
1837 "name": "install_script_version",
Marco Plataniaf2d8bca2019-10-13 10:47:19 -04001838 "value": "1.6.0-SNAPSHOT"
Marco Plataniac80274e2019-08-15 12:11:31 -04001839 },
1840 {
1841 "name": "nb_api_version",
1842 "value": "1.2.0"
1843 },
1844 {
1845 "name": "keypair",
1846 "value": "vlb_key"
1847 },
1848 {
1849 "name": "cloud_env",
1850 "value": "openstack"
1851 },
1852 {
1853 "name": "nexus_artifact_repo",
1854 "value": "https://nexus.onap.org"
1855 },
1856 {
1857 "name": "sec_group",
1858 "value": "default"
1859 }
1860 ]
1861 }
1862 },
1863 "vnf-topology-identifier-structure": {
1864 "vnf-name": "vLoadBalancer-Vnf-0211-1",
1865 "vnf-type": "vLoadBalancer/vLoadBalancer 0"
1866 },
1867 "vnf-resource-assignments": {
1868 "availability-zones": {
1869 "availability-zone": [
1870 "nova"
1871 ],
1872 "max-count": 1
1873 },
1874 "vnf-networks": {
1875 "vnf-network": []
1876 }
1877 }
1878 },
1879 "request-information": {
1880 "request-id": "robot12",
1881 "order-version": "1",
1882 "notification-url": "openecomp.org",
1883 "order-number": "1",
1884 "request-action": "PreloadVfModuleRequest"
1885 },
1886 "sdnc-request-header": {
1887 "svc-request-id": "robot12",
1888 "svc-notification-url": "http://openecomp.org:8080/adapters/rest/SDNCNotify",
1889 "svc-action": "reserve"
1890 }
1891 }
1892 }'
1893
1894
1895Module-3 Preload
1896~~~~~~~~~~~~~~~~
1897
1898::
1899
1900 curl -X POST \
1901 http://<Any_K8S_Node_IP_Address>:30202/restconf/operations/GENERIC-RESOURCE-API:preload-vf-module-topology-operation \
1902 -H 'Content-Type: application/json' \
1903 -H 'Postman-Token: fd0a4706-f955-490a-875e-08ddd8fe002e' \
1904 -H 'cache-control: no-cache' \
1905 -d '{
1906 "input": {
1907 "preload-vf-module-topology-information": {
1908 "vf-module-topology": {
1909 "vf-module-topology-identifier": {
1910 "vf-module-name": "vDNS-0125-1"
1911 },
1912 "vf-module-parameters": {
1913 "param": [
1914 {
1915 "name": "vdns_image_name",
1916 "value": "ubuntu-16-04-cloud-amd64"
1917 },
1918 {
1919 "name": "vdns_flavor_name",
1920 "value": "m1.medium"
1921 },
1922 {
1923 "name": "public_net_id",
1924 "value": "public"
1925 },
1926 {
1927 "name": "int_private_net_id",
1928 "value": "vLBMS_zdfw1lb01_private"
1929 },
1930 {
1931 "name": "int_private_subnet_id",
1932 "value": "vLBMS_zdfw1lb01_private_sub_ms"
1933 },
1934 {
1935 "name": "onap_private_net_id",
1936 "value": "oam_onap_vnf_test"
1937 },
1938 {
1939 "name": "onap_private_subnet_id",
1940 "value": "oam_onap_vnf_test"
1941 },
1942 {
1943 "name": "vlb_private_net_cidr",
1944 "value": "192.168.10.0/24"
1945 },
1946 {
1947 "name": "onap_private_net_cidr",
1948 "value": "10.0.0.0/16"
1949 },
1950 {
1951 "name": "vlb_int_private_ip_0",
1952 "value": "192.168.10.111"
1953 },
1954 {
1955 "name": "vlb_onap_private_ip_0",
1956 "value": "10.0.150.1"
1957 },
1958 {
1959 "name": "vlb_int_pktgen_private_ip_0",
1960 "value": "192.168.9.111"
1961 },
1962 {
1963 "name": "vdns_int_private_ip_0",
1964 "value": "192.168.10.212"
1965 },
1966 {
1967 "name": "vdns_onap_private_ip_0",
1968 "value": "10.0.150.4"
1969 },
1970 {
1971 "name": "vdns_name_0",
1972 "value": "vdns-0211-1"
1973 },
1974 {
1975 "name": "vnf_id",
1976 "value": "vLoadBalancerMS"
1977 },
1978 {
1979 "name": "vf_module_id",
1980 "value": "vLoadBalancerMS"
1981 },
1982 {
1983 "name": "vnf_name",
1984 "value": "vLBMS"
1985 },
1986 {
1987 "name": "install_script_version",
Marco Plataniaf2d8bca2019-10-13 10:47:19 -04001988 "value": "1.6.0-SNAPSHOT"
Marco Plataniac80274e2019-08-15 12:11:31 -04001989 },
1990 {
1991 "name": "nb_api_version",
1992 "value": "1.2.0"
1993 },
1994 {
1995 "name": "keypair",
1996 "value": "vlb_key"
1997 },
1998 {
1999 "name": "cloud_env",
2000 "value": "openstack"
2001 },
2002 {
2003 "name": "sec_group",
2004 "value": "default"
2005 },
2006 {
2007 "name": "nexus_artifact_repo",
2008 "value": "https://nexus.onap.org"
2009 }
2010 ]
2011 }
2012 },
2013 "vnf-topology-identifier-structure": {
2014 "vnf-name": "vLoadBalancer-Vnf-0125-1",
2015 "vnf-type": "vLoadBalancer/vLoadBalancer 0"
2016 },
2017 "vnf-resource-assignments": {
2018 "availability-zones": {
2019 "availability-zone": [
2020 "nova"
2021 ],
2022 "max-count": 1
2023 },
2024 "vnf-networks": {
2025 "vnf-network": []
2026 }
2027 }
2028 },
2029 "request-information": {
2030 "request-id": "robot12",
2031 "order-version": "1",
2032 "notification-url": "openecomp.org",
2033 "order-number": "1",
2034 "request-action": "PreloadVfModuleRequest"
2035 },
2036 "sdnc-request-header": {
2037 "svc-request-id": "robot12",
2038 "svc-notification-url": "http://openecomp.org:8080/adapters/rest/SDNCNotify",
2039 "svc-action": "reserve"
2040 }
2041 }
2042 }'
2043
2044The Heat environment files already set many parameters used for VF module instantiation. Those parameters can be reused in the SDNC preload too, while placeholders like "PUT THE IP ADDRESS HERE" or "PUT THE PUBLIC KEY HERE" must be overridden.
2045
2046To instantiate VF modules, please refer to this wiki page: https://wiki.onap.org/display/DW/Tutorial+vIMS%3A+VID+Instantiate+the+VNF using vLB as ServiceType.
2047
20486) **Post Instantiation Actions**: Please refer to Sections 3-1 for vLB configuration and Section 3-2 for resource orchestration with heatbridge.
2049
20507) **Triggering Scale Out Manually**: Please refer to Section 4 to trigger scale out manually with direct API call to SO.
2051
2052
Marco Plataniaccf78702019-10-16 12:10:52 -04002053PART 6 - Known Issues and Resolutions
Marco Plataniac80274e2019-08-15 12:11:31 -04002054-------------------------------------
Marco Plataniae5064cd2018-11-28 15:33:47 -050020551) When running closed loop-enabled scale out, the closed loop designed in CLAMP conflicts with the default closed loop defined for the old vLB/vDNS use case
2056
2057Resolution: Change TCA configuration for the old vLB/vDNS use case
2058
2059- Connect to Consul: http://<ANY K8S VM IP ADDRESS>:30270 and click on "Key/Value" → "dcae-tca-analytics"
2060- Change "eventName" in the vLB default policy to something different, for example "vLB" instead of the default value "vLoadBalancer"
2061- Change "subscriberConsumerGroup" in the TCA configuration to something different, for example "OpenDCAE-c13" instead of the default value "OpenDCAE-c12"
Rene_Robert8f8f27f2019-07-01 15:18:40 +02002062- Click "UPDATE" to upload the new TCA configuration