blob: b712958aacfe4db7e3fe29a9d9de71753ecd5e79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
.. This work is licensed under a Creative Commons Attribution 4.0
.. International License. http://creativecommons.org/licenses/by/4.0
.. Copyright 2019 ONAP Contributors. All rights reserved.
.. _doc_guide_user_des_pre-onb:
Pre-Onboarding
==============
* `Generate Manifest and Package Artifacts`_ (for HEAT based VNFs)
* `Validate xNF Package (VNF/PNF)`_
.. _doc_guide_user_des_pre-onb_gen-man:
Generate Manifest and Package Artifacts
---------------------------------------
.. note::
This section describes the steps required to package a given HEAT
template into a zip-file, which can be onboarded to SDC. Instructions
to create TOSCA based VNF or PNF Onboarding Packages are not described
here
The for onboarding the zip-file requires besides the Heat template also a
MANIFEST.json file, which describes the content of the package. To generate a
MANIFEST.json file a script can be used offered by the SDC project:
`generate-manifest.py`_
These steps are performed outside SDC.
**Prerequisites:** Obtain Heat/ENV files and other files required for
onboarding. The requirements are found in the following document.
:ref:`Heat requirements<onap-vnfrqts-requirements:heat_requirements>`
#. Put the Heat, ENV, nested Heat, and other files used by get-file in templates
in a directory on a host, which supports python.
Naming guidelines:
- The base Heat should include "base" in the name.
- The ENV file name should match the name of the Heat file with which it
is associated.
- All get-file file names need to be unique.
#. Put the python script in a directory one level above the directory that
contains the Heat/ENV and other files.
For example, [dir x]/[dir y]
- [dir y] contains the Heat/ENV files and other files
- [dir x] contains the python script
#. Run the script via command line:
.. code-block:: python
python generate-manifest.py -f "dir y"
#. Examine the manifest file and confirm that is correct.
#. Package all Heat/ENV files, all other files, and the MANIFEST.json
into one .zip file.
Example packages can be found in the SDC poject: `example-packages`_
.. _doc_guide_user_des_pre-onb_val:
Validate xNF Package (VNF/PNF)
------------------------------
VNF and PNF packages have to follow the requirements described in:
:ref:`VNF and PNF Modeling Requirements
<onap-vnfrqts-requirements:tosca_requirements>`
:ref:`ONAP Management Requirements
<onap-vnfrqts-requirements:onap_management_requirements>`
For Validation of VNF and PNF packages the tools delivered by VNFSDK can be
used:
.. toctree::
:maxdepth: 1
:titlesonly:
../../../onap-provider/vnfvalidator.rst
Prior to resource onboarding, the Certification Group does the following:
- for VNF and PNF
- Validation of the delivered xNF package and artifacts
- using the VNF Validation Tools
- in case of VNF
- onboards the Heat template(s) and metadata to the SDC catalog
- creates a test VF
- runs the Heat scanning tools
- shares the results with any group that approves Virtual Functions
In parallel, the Certification Group onboards the VF Image and OS to a
standalone ONAP instance (the "sandbox") and performs the following:
- security scan
- compatibility test for the OS and vendor binary
- malware scan
The Certification group then instantiates the VF image using the vendor
Heat (if provided) in order to validate that the VM can run on the Network
Cloud.
No VF functionality testing is performed at this stage.
.. _generate-manifest.py: https://git.onap.org/sdc/tree/openecomp-be/tools/scripts/generate-manifest.py
.. _example-packages: https://git.onap.org/sdc/tree/integration-tests/src/test/resources/Files/VNFs
|