blob: 8dc2af8a0c9eceb69e6ac7c1b3f69ba5f4f1224c [file] [log] [blame]
thmsdt9803c162019-04-25 08:16:14 +02001.. This work is licensed under a Creative Commons Attribution 4.0
2.. International License. http://creativecommons.org/licenses/by/4.0
3.. Copyright 2019 ONAP Contributors. All rights reserved.
4
andreasgeisslerf3ba1822019-05-24 13:22:42 +02005.. _doc_guide_user_des_pre-onb:
6
thmsdt9803c162019-04-25 08:16:14 +02007Pre-Onboarding
8==============
9
andreasgeissler3502b062019-06-05 21:14:56 +020010 * `Generate Manifest and Package Artifacts`_ (for HEAT based VNFs)
11 * `Validate xNF Package (VNF/PNF)`_
12
thmsdt9803c162019-04-25 08:16:14 +020013
andreasgeissler3502b062019-06-05 21:14:56 +020014.. _doc_guide_user_des_pre-onb_gen-man:
thmsdt9803c162019-04-25 08:16:14 +020015
16Generate Manifest and Package Artifacts
17---------------------------------------
18
andreasgeissler3502b062019-06-05 21:14:56 +020019.. note::
20 This section describes the steps required to package a given HEAT
21 template into a zip-file, which can be onboarded to SDC. Instructions
22 to create TOSCA based VNF or PNF Onboarding Packages are not described
23 here
24
Eric Debeaud2af87d2020-08-27 14:12:45 +020025The for onboarding the zip-file requires besides the Heat template also a
26MANIFEST.json file, which describes the content of the package. To generate a
27MANIFEST.json file a script can be used offered by the SDC project:
andreasgeissler8b0b1462020-03-26 17:45:53 +010028`generate-manifest.py`_
29
30These steps are performed outside SDC.
thmsdt9803c162019-04-25 08:16:14 +020031
andreasgeissler3502b062019-06-05 21:14:56 +020032**Prerequisites:** Obtain Heat/ENV files and other files required for
thmsdtec774532022-05-02 16:21:35 +020033onboarding. The requirements are found in the following document: ONAP VNF
34Requirements -> Heat Requirements.
thmsdt9803c162019-04-25 08:16:14 +020035
thmsdtec774532022-05-02 16:21:35 +020036.. warning:: ONAP VNF Requirements (vnfrqts) are no longer maintained!
thmsdt9803c162019-04-25 08:16:14 +020037
38#. Put the Heat, ENV, nested Heat, and other files used by get-file in templates
andreasgeissler8b0b1462020-03-26 17:45:53 +010039 in a directory on a host, which supports python.
thmsdt9803c162019-04-25 08:16:14 +020040
41 Naming guidelines:
42
43 - The base Heat should include "base" in the name.
44 - The ENV file name should match the name of the Heat file with which it
45 is associated.
46 - All get-file file names need to be unique.
47
48#. Put the python script in a directory one level above the directory that
49 contains the Heat/ENV and other files.
50
51 For example, [dir x]/[dir y]
52
53 - [dir y] contains the Heat/ENV files and other files
54 - [dir x] contains the python script
55
andreasgeissler8b0b1462020-03-26 17:45:53 +010056#. Run the script via command line:
thmsdt9803c162019-04-25 08:16:14 +020057
andreasgeissler3502b062019-06-05 21:14:56 +020058 .. code-block:: python
thmsdt9803c162019-04-25 08:16:14 +020059
andreasgeissler3502b062019-06-05 21:14:56 +020060 python generate-manifest.py -f "dir y"
thmsdt9803c162019-04-25 08:16:14 +020061
62#. Examine the manifest file and confirm that is correct.
63
64#. Package all Heat/ENV files, all other files, and the MANIFEST.json
65 into one .zip file.
66
andreasgeissler8b0b1462020-03-26 17:45:53 +010067Example packages can be found in the SDC poject: `example-packages`_
68
andreasgeissler3502b062019-06-05 21:14:56 +020069.. _doc_guide_user_des_pre-onb_val:
70
71Validate xNF Package (VNF/PNF)
72------------------------------
73
thmsdtec774532022-05-02 16:21:35 +020074VNF and PNF packages have to follow the requirements described in "VNF and PNF
75Modeling Requirements -> TOSCA Requirements" and "ONAP Management
76Requirements".
andreasgeissler3502b062019-06-05 21:14:56 +020077
thmsdtec774532022-05-02 16:21:35 +020078.. warning:: ONAP VNF Requirements (vnfrqts) are no longer maintained!
andreasgeissler3502b062019-06-05 21:14:56 +020079
andreasgeissler3502b062019-06-05 21:14:56 +020080
81For Validation of VNF and PNF packages the tools delivered by VNFSDK can be
thmsdtec774532022-05-02 16:21:35 +020082used.
andreasgeissler3502b062019-06-05 21:14:56 +020083
84Prior to resource onboarding, the Certification Group does the following:
85
86 - for VNF and PNF
87 - Validation of the delivered xNF package and artifacts
88 - using the VNF Validation Tools
89 - in case of VNF
90 - onboards the Heat template(s) and metadata to the SDC catalog
91 - creates a test VF
92 - runs the Heat scanning tools
93 - shares the results with any group that approves Virtual Functions
94
95In parallel, the Certification Group onboards the VF Image and OS to a
96standalone ONAP instance (the "sandbox") and performs the following:
97
98 - security scan
99 - compatibility test for the OS and vendor binary
100 - malware scan
101
102The Certification group then instantiates the VF image using the vendor
103Heat (if provided) in order to validate that the VM can run on the Network
104Cloud.
105
106No VF functionality testing is performed at this stage.
107
thmsdt9803c162019-04-25 08:16:14 +0200108
andreasgeissler8b0b1462020-03-26 17:45:53 +0100109.. _generate-manifest.py: https://git.onap.org/sdc/tree/openecomp-be/tools/scripts/generate-manifest.py
ramagpc95e6ed2020-10-27 11:06:05 +0000110.. _example-packages: https://git.onap.org/sdc/tree/integration-tests/src/test/resources/Files/VNFs