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