OOM Offline Installer removed from conf.py
[doc.git] / docs / guides / onap-user / design / resource-onboarding / index.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0
2 .. International License. http://creativecommons.org/licenses/by/4.0
3 .. Copyright 2019-2021 ONAP Contributors. All rights reserved.
4
5 .. _doc_guide_user_des_res-onb:
6
7 Resource Onboarding
8 ===================
9 **Goal:** Add models and other artifacts required to create, configure,
10           instantiate, and manage a VF/PNF and, optionally, a VFC.
11
12 **Tool:** SDC
13
14 **SDC user role:** Designer
15
16 |image0|
17
18 **Steps**
19     * `Create a License Model [Optional]`_
20         * `Create a License Key Group [Optional]`_
21         * `Create an Entitlement Pool`_
22         * `Create a Feature Group`_
23         * `Create a License Agreement`_
24     * `Create a Vendor Software Product`_
25     * `Update VFCs in a VSP [optional]`_
26     * `Update a VSP [optional]`_
27
28 After updating the artifacts in a VSP, also update:
29     * the VF/PNF created from the VSP
30     * any services that include the VF/PNF
31
32 |image1|
33
34 .. _doc_guide_user_des_res-onb_cre-lic:
35
36 Create a License Model [Optional]
37 ---------------------------------
38
39 VSPs optionally require a license and entitlements to enable the service
40 provider to track the usage.
41
42 .. note::
43    For interim saving while creating the license model and its components, click |image2|
44
45 **Prerequisites:** To obtain license information, contact the service
46 provider's Supply Chain Management (SCM) group.
47
48
49 #. From the SDC HOME page, navigate to the ONBOARD Tab.
50
51    |image11|
52
53 #. In the Workspace select *CREATE NEW VLM*.
54
55    |image12|
56
57 #. Complete all fields.
58 #. Click *Create*.
59 #. After creation of the VLM, you should be presented with the “Overview” tab of the VLM.
60
61    |image13|
62
63    Select the following options in order:
64
65    #. Create 0 or more license key groups (see
66       `Create a License Key Group [Optional]`_).
67    #. Create 1 or more entitlement pools (see `Create an Entitlement Pool`_).
68    #. Create 1 or more feature groups (see `Create a Feature Group`_).
69    #. Create 1 or more license agreements (see `Create a License Agreement`_).
70
71       Note: Perform all steps above before submitting the license model to
72       the SDC catalog.
73
74    |image14|
75
76 #. Click *Submit* to add the license model to the catalog.After filling a comment, press *Commit&Submit*.
77
78    |image15|
79
80 #. After creating a license, complete `Create a Vendor Software Product`_ to
81    add the VSP required for the associated VF/PNF.
82
83
84 Create a License Key Group [Optional]
85 -------------------------------------
86
87 If required by the resource model, create one or more license key groups;
88 otherwise the license key group is optional.
89
90 **Prerequisites:** `Create a License Model [Optional]`_
91
92 #. Select the License Model in the Onboard section of the SDC.
93 #. In the Overview click the + inside the License Key Groups OR Navigate to License Key Groups and click on “+ ADD LICENSE KEY GROUP”
94
95    |image4|
96
97 #. Complete all fields (mandatory fields are marked by a red asterisk).
98 #. Click *Save*.
99
100 Create an Entitlement Pool
101 --------------------------
102
103 **Prerequisites:** If required by the resource model, create one or more
104 license key groups (see
105 `Create a License Key Group [Optional]`_).
106
107 #. Select the License Model in the Onboard section of the SDC.
108 #. In the Overview click the + sign inside the Entitlement Pools OR Navigate to Entitlement Pools and click on “+ ADD ENTITLEMENT POOL”
109
110    |image5|
111
112 #. Complete required fields (mandatory fields are marked by a red asterisk).
113 #. Click *Save*.
114
115 Create a Feature Group
116 ----------------------
117
118 **Prerequisites:** Create one or more:
119
120 * license key groups if required by the resource model
121   (see `Create a License Key Group [optional]`_)
122 * entitlement pools (see `Create an Entitlement Pool`_)
123
124 #. Select the License Model in the Onboard section of the SDC.
125 #. In the Overview click the + sign inside the Feature Groups OR Navigate to Feature Groups and click on “+ ADD FEATURE GROUP”
126
127    |image6|
128
129 #. On the General tab, complete all fields.
130 #. Navigate to the *Entitlement Pools*. Tab
131     * In the Available Entitlement Pools, select one or more entitlement pools and click on the “>” sign.
132     * Selected pools should now be seen under the Selected Entitlements Pools.
133 #. Navigate to the *License Key Groups*. Tab
134     * In the Available License Key Groups, select one or more license key groups and click on the “>” sign.
135     * Selected pools should now be seen under the Selected License Key Groups.
136 #. Click *Save*.
137
138 Create a License Agreement
139 --------------------------
140
141 **Prerequisites:** Create one or more feature groups
142                    (see `Create a Feature Group`_).
143
144 #. Select the License Model in the Onboard section of the SDC.
145 #. In the Overview click the + sign inside the License Agreements OR Navigate to License Agreements and click on “+ Add FEATURE GROUP”
146
147    |image7|
148
149 #. On the General tab, complete required fields.
150 #. Click *Feature Groups*.
151 #. If not selected, click Available *Feature Groups*.
152     * Select one or more groups in the Available Feature Groups, select one or more feature groups and click on the “>” sign.
153     * Selected feature groups should now be seen under the Selected Feature Groups.
154 #. Click *Save*.
155 #. Return to step 6 of `Create a License Model [Optional]`_ to complete the license model.
156
157 .. _doc_guide_user_des_res-onb_cre-vsp:
158
159 Create a Vendor Software Product
160 --------------------------------
161
162 Create one or more Vendor Software Products (VSPs) as the building blocks
163 for VFs/PNFs.
164
165 .. note::
166    For interim saving while creating a VSP, click |image2|
167
168 **Prerequisites:**
169
170 * `Create a License Model [Optional]`_
171 * VNF HEAT package or VNF/PNF CSAR/Zip package is available.
172
173   See :ref:`sdc_onboarding_package_types` for a description
174   of the onboarding package types.
175 * If the package is a secure package then :ref:`pre-install the corresponding Root Certificate in SDC <doc_guide_user_des_res-onb_pre-install_root_certificate>`.
176
177 .. note::
178    Example packages can be found in the SDC project: :ref:`SDC Packages<onap-sdc:sdc_onboarding_package_types>`
179
180 #. From the SDC HOME page, click *ONBOARD*.
181
182    |image11|
183
184 #. In the Workspace select *CREATE NEW VSP*.
185
186    |image21|
187
188 #. Complete all fields.
189 #. Click *Create*.
190      The Overview page is shown
191
192    |image22|
193
194 #. Click *Internal* in the software product details section.
195
196    .. note::
197      Under License Agreement, there is a choice between internal or external license.
198      If internal is selected then after redirect to general tab, select licenses details.
199      If external is selected then in general tab licenses details are disabled.
200
201 #. For the defined Vendor, select a licensing version, a license agreement,
202    and one or more feature groups.
203
204    |image23|
205
206 #. [Optional] Complete other fields, such as Availability (high-availability
207    zones) and Storage Data Replication (requirement for storage replication),
208    as required.
209 #. In the *Overview* section, select *Software Product Attachments*
210    (right pane), click *Select file*.
211 #. In case of a VNF HEAT file: Locate the Heat .zip package and click *Open*.
212
213    In case of a VNF or PNF CSAR file: Locate the VNF or PNF csar/.zip package
214    and click *Open*.
215 #. The file is loaded and the attachments page opens
216
217    |image24|
218
219 #. Press the Button *Proceed to Validation*. After successful validation, SDC
220    displays the files and a success message. If validation fails, SDC displays
221    the errors in the files.
222
223    In case the SDC Helm Validator is enabled in SDC configuration file and the
224    onboarding package is a CNF which contains any helm charts listed in MANIFEST.json
225    and marked as type=HELM, there will be an attempt to make a request to the Helm Validator
226    for each chart, to check its validity. More information on Helm Validator can be found
227    :ref:`here<onap-sdc:sdc_helm_validator>`
228
229    This validation feature is enabled by default, and checks, if the chart can be deployed by
230    running helm template command. Helm v3 libraries are used for validation.
231
232    Example Heat errors:
233
234    |image9|
235
236    Example helm chart validation warnings:
237
238    |image27|
239
240    Example helm chart validation errors (which caused the *Submit* button to be disabled)
241
242    |image28|
243
244 #. Click *Submit* to add the VSP to the catalog.
245
246    After filling a comment, press *Commit&Submit*.
247 #. A success message is displayed. If the VSP attachments contain errors, an
248    error message is displayed instead. Fix the issue(s) and re-submit.
249 #. To configure VFCs associated with the VSP, see
250    `Update VFCs in a VSP [optional]`_, below.
251
252
253 .. _doc_guide_user_des_res-onb_upd-vfc:
254
255 Update VFCs in a VSP [optional]
256 -------------------------------
257
258 If required, configure Virtual Function Components (VFCs) associated with a
259 VSP, such as the Hypervisor, VM recovery details, and cloning. VFCs are listed
260 on the Components tab.
261
262 .. note::
263   All fields are optional. Answers to questionnaires are stored as metadata
264   only on the SDC platform.
265
266 **Prerequisites:** Add one or more VSPs
267                    (see `Create a Vendor Software Product`_).
268
269 #. From the SDC HOME page, click *ONBOARD* and search for a VSP.
270 #. Selecting the VSP opens the *Versions* page.
271
272    |image25|
273
274 #. Press the + at *Create New Version* on the version to update
275
276    |image26|
277
278 #. Fill the fields and press *Create*
279 #. In Components , click a VFC (VSP component).
280
281    The component links display in the left pane.
282 #. Click *General* to view and edit general parameters such as hypervisor,
283    image format, VM recovery details, and DNS configuration.
284 #. Click *Compute* to view and edit VM parameters such as the number of VMs
285    required for a VFC instance and persistent storage/volume size.
286 #. Click *High Availability & Load Balancing* to answer questions related
287    to VM availability and load balancing.
288 #. Click *Networks* to view or edit parameters related to network capacity
289    and interfaces.
290
291    .. note::
292      Click an interface to view or edit it. A dialog box displays similar
293      to the figure below.
294
295    |image10|
296
297 #. Click *Storage* to configure storage information, such as backup type,
298    storage size, and logging.
299 #. Click *Process Details*, click *Add Component Process Details*, and complete
300    the *Create New Process Details* dialog box.
301
302    Use Process Details to identify
303    the processes and configuration associated with VFCs.
304 #. Click *Monitoring* to upload MIB or JSON files for SNMP traps and polling.
305 #. To update the VSP, click *Submit*
306
307    After filling a comment, press *Commit&Submit* and the
308    new version is certified.
309
310 .. _doc_guide_user_des_res-onb_upd-vsp:
311
312 Update a VSP [optional]
313 -----------------------
314
315 Upload a new onboarding package to a VSP. Afterward, update the VF/PNF and service.
316
317 **Prerequisites:** Add one or more VSPs
318                    (see `Create a Vendor Software Product`_).
319
320 #. From the SDC HOME page, click *ONBOARD* and search for a VSP.
321 #. Selecting the VSP opens the *Versions* page.
322
323    |image25|
324
325 #. Press the + at *Create New Version* on the version to update
326
327    |image26|
328
329 #. Fill the fields and press *Create*
330 #. In Software Product Attachments (right pane), click *Select file*.
331 #. In case of a VNF HEAT file: Locate the Heat .zip package and click *Open*.
332
333    In case of a VNF or PNF CSAR file: Locate the VNF or PNF csar/.zip package
334    and click *Open*.
335
336     SDC warns that uploading a new package erases existing data.
337 #. Click *Continue* to upload the new package.
338 #. The file is loaded and the attachments page opens
339
340    |image24|
341
342 #. Press the Button *Proceed to Validation*. After successful validation, SDC
343    displays the files and a success message. If validation fails, SDC displays
344    the errors in the files.
345
346    In case the SDC Helm Validator is enabled in SDC configuration file and the
347    onboarding package is a CNF which contains any helm charts listed in MANIFEST.json
348    and marked as type=HELM, there will be an attempt to make a request to the Helm Validator
349    for each chart, to check its validity. More information on Helm Validator can be found
350    :ref:`here<onap-sdc:sdc_helm_validator>`.
351
352    This validation feature is enabled by default, and checks, if the chart can be deployed by
353    running helm template command. Helm v3 libraries are used for validation.
354
355    Example Heat errors:
356
357    |image9|
358
359    Example helm chart validation warnings:
360
361    |image27|
362
363    Example helm chart validation errors (which caused the *Submit* button to be disabled)
364
365    |image28|
366
367 #. Click *Submit* to add the new VSP version to the catalog.
368     After filling a comment, press *Commit&Submit* and the
369     new version is certified.
370 #. After updating the VSP:
371
372    #. Upload the VSP to the Vf/PNF
373       (see steps 3 to 5 in :ref:`doc_guide_user_des_vf-cre`).
374    #. Update the VF/PNF version in services that include the VF/PNF (see step 4
375        in :ref:`doc_guide_user_des_ser-des`).
376
377 .. _doc_guide_user_des_res-onb_pre-install_root_certificate:
378
379 Pre-Install Root Certificate in SDC [only needed for secure package]
380 --------------------------------------------------------------------
381 SDC supports the onboarding of packages that are secured according to security option 2 in ETSI NFV-SOL 004v2.6.1.
382
383 During onboarding, SDC will validate the authenticity and integrity of a secure package. To enable this validation,
384 the root certificate corresponding to the certificate included in the package needs to be available to SDC.
385 This is currently done by uploading the root certificate to the following default directory location::
386
387    /dockerdata-nfs/{{ .Release.Name }}/sdc/onbaording/cert
388
389 .. note::
390    The directory listed above is mapped to the following directory in the onboarding pod (sdc-onboarding-be)
391    ::
392
393       /var/lib/jetty/cert
394
395    so it is also possible to copy the root certificate directly to this directory in the pod.
396
397 The location where the root certificate is uploaded is configurable. The relevant parameters are described in
398 the *cert* block in the following values file::
399
400    <path_to_oom_kubernetes>/sdc/charts/sdc-onboarding-be/values.yaml
401
402
403 .. |image0| image:: media/sdro-resource-onboarding-workflow.png
404
405 .. |image1| image:: media/sdro-vsp-service-workflow.png
406
407 .. |image2| image:: media/sdro-sdc_vsp_save.png
408
409 .. |image3| image:: media/sdro-license-creation.png
410
411 .. |image4| image:: media/sdro-license-keygroup.png
412
413 .. |image5| image:: media/sdro-entitlement-pool.png
414
415 .. |image6| image:: media/sdro-feature-group.png
416
417 .. |image7| image:: media/sdro-license-agreement.png
418
419 .. |image8| image:: media/sdro-software-product.png
420
421 .. |image9| image:: media/sdro-design_onboardvsp_heaterrors.png
422
423 .. |image10| image:: media/sdro-edit-nic.png
424
425 .. |image11| image:: media/sdro-new-vlm.png
426
427 .. |image12| image:: media/sdro-new-vlm-dialog.png
428
429 .. |image13| image:: media/sdro-new-vlm-overview.png
430
431 .. |image14| image:: media/sdro-license-model.png
432
433 .. |image15| image:: media/sdro-license-model-submit.png
434
435 .. |image21| image:: media/sdro-new-vsp.png
436
437 .. |image22| image:: media/sdro-new-vsp-overview.png
438
439 .. |image23| image:: media/sdro-new-vsp-general.png
440
441 .. |image24| image:: media/sdro-new-vsp-attachments.png
442
443 .. |image25| image:: media/sdro-vsp-version.png
444
445 .. |image26| image:: media/sdro-vsp-version-dialog.png
446
447 .. |image27| image:: media/sdro-design-onboardcnf-helm-validator-warnings.png
448
449 .. |image28| image:: media/sdro-design-onboardcnf-helm-validator-errors.png