thmsdt | 9803c16 | 2019-04-25 08:16:14 +0200 | [diff] [blame] | 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 | |
andreasgeissler | f3ba182 | 2019-05-24 13:22:42 +0200 | [diff] [blame] | 5 | .. _doc_guide_user_des_pre-onb: |
| 6 | |
thmsdt | 9803c16 | 2019-04-25 08:16:14 +0200 | [diff] [blame] | 7 | Pre-Onboarding |
| 8 | ============== |
| 9 | |
andreasgeissler | 3502b06 | 2019-06-05 21:14:56 +0200 | [diff] [blame] | 10 | * `Generate Manifest and Package Artifacts`_ (for HEAT based VNFs) |
| 11 | * `Validate xNF Package (VNF/PNF)`_ |
| 12 | |
thmsdt | 9803c16 | 2019-04-25 08:16:14 +0200 | [diff] [blame] | 13 | |
andreasgeissler | 3502b06 | 2019-06-05 21:14:56 +0200 | [diff] [blame] | 14 | .. _doc_guide_user_des_pre-onb_gen-man: |
thmsdt | 9803c16 | 2019-04-25 08:16:14 +0200 | [diff] [blame] | 15 | |
| 16 | Generate Manifest and Package Artifacts |
| 17 | --------------------------------------- |
| 18 | |
andreasgeissler | 3502b06 | 2019-06-05 21:14:56 +0200 | [diff] [blame] | 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 | |
Eric Debeau | d2af87d | 2020-08-27 14:12:45 +0200 | [diff] [blame] | 25 | The for onboarding the zip-file requires besides the Heat template also a |
| 26 | MANIFEST.json file, which describes the content of the package. To generate a |
| 27 | MANIFEST.json file a script can be used offered by the SDC project: |
andreasgeissler | 8b0b146 | 2020-03-26 17:45:53 +0100 | [diff] [blame] | 28 | `generate-manifest.py`_ |
| 29 | |
| 30 | These steps are performed outside SDC. |
thmsdt | 9803c16 | 2019-04-25 08:16:14 +0200 | [diff] [blame] | 31 | |
andreasgeissler | 3502b06 | 2019-06-05 21:14:56 +0200 | [diff] [blame] | 32 | **Prerequisites:** Obtain Heat/ENV files and other files required for |
| 33 | onboarding. The requirements are found in the following document. |
thmsdt | 9803c16 | 2019-04-25 08:16:14 +0200 | [diff] [blame] | 34 | |
andreasgeissler | 3502b06 | 2019-06-05 21:14:56 +0200 | [diff] [blame] | 35 | |
ramagp | 921e7e9 | 2020-08-10 13:37:21 +0000 | [diff] [blame] | 36 | :ref:`Heat requirements<onap-vnfrqts-requirements:heat_requirements>` |
thmsdt | 9803c16 | 2019-04-25 08:16:14 +0200 | [diff] [blame] | 37 | |
| 38 | #. Put the Heat, ENV, nested Heat, and other files used by get-file in templates |
andreasgeissler | 8b0b146 | 2020-03-26 17:45:53 +0100 | [diff] [blame] | 39 | in a directory on a host, which supports python. |
thmsdt | 9803c16 | 2019-04-25 08:16:14 +0200 | [diff] [blame] | 40 | |
| 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 | |
andreasgeissler | 8b0b146 | 2020-03-26 17:45:53 +0100 | [diff] [blame] | 56 | #. Run the script via command line: |
thmsdt | 9803c16 | 2019-04-25 08:16:14 +0200 | [diff] [blame] | 57 | |
andreasgeissler | 3502b06 | 2019-06-05 21:14:56 +0200 | [diff] [blame] | 58 | .. code-block:: python |
thmsdt | 9803c16 | 2019-04-25 08:16:14 +0200 | [diff] [blame] | 59 | |
andreasgeissler | 3502b06 | 2019-06-05 21:14:56 +0200 | [diff] [blame] | 60 | python generate-manifest.py -f "dir y" |
thmsdt | 9803c16 | 2019-04-25 08:16:14 +0200 | [diff] [blame] | 61 | |
| 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 | |
andreasgeissler | 8b0b146 | 2020-03-26 17:45:53 +0100 | [diff] [blame] | 67 | Example packages can be found in the SDC poject: `example-packages`_ |
| 68 | |
andreasgeissler | 3502b06 | 2019-06-05 21:14:56 +0200 | [diff] [blame] | 69 | .. _doc_guide_user_des_pre-onb_val: |
| 70 | |
| 71 | Validate xNF Package (VNF/PNF) |
| 72 | ------------------------------ |
| 73 | |
| 74 | VNF and PNF packages have to follow the requirements described in: |
| 75 | |
Eric Debeau | d2af87d | 2020-08-27 14:12:45 +0200 | [diff] [blame] | 76 | :ref:`VNF and PNF Modeling Requirements |
| 77 | <onap-vnfrqts-requirements:tosca_requirements>` |
andreasgeissler | 3502b06 | 2019-06-05 21:14:56 +0200 | [diff] [blame] | 78 | |
Eric Debeau | d2af87d | 2020-08-27 14:12:45 +0200 | [diff] [blame] | 79 | :ref:`ONAP Management Requirements |
| 80 | <onap-vnfrqts-requirements:onap_management_requirements>` |
andreasgeissler | 3502b06 | 2019-06-05 21:14:56 +0200 | [diff] [blame] | 81 | |
| 82 | For Validation of VNF and PNF packages the tools delivered by VNFSDK can be |
| 83 | used: |
| 84 | |
ramagp | 56cde5f | 2020-07-29 14:40:03 +0000 | [diff] [blame] | 85 | .. toctree:: |
| 86 | :maxdepth: 1 |
| 87 | :titlesonly: |
| 88 | |
| 89 | ../../../onap-provider/vnfvalidator.rst |
andreasgeissler | 3502b06 | 2019-06-05 21:14:56 +0200 | [diff] [blame] | 90 | |
| 91 | Prior to resource onboarding, the Certification Group does the following: |
| 92 | |
| 93 | - for VNF and PNF |
| 94 | - Validation of the delivered xNF package and artifacts |
| 95 | - using the VNF Validation Tools |
| 96 | - in case of VNF |
| 97 | - onboards the Heat template(s) and metadata to the SDC catalog |
| 98 | - creates a test VF |
| 99 | - runs the Heat scanning tools |
| 100 | - shares the results with any group that approves Virtual Functions |
| 101 | |
| 102 | In parallel, the Certification Group onboards the VF Image and OS to a |
| 103 | standalone ONAP instance (the "sandbox") and performs the following: |
| 104 | |
| 105 | - security scan |
| 106 | - compatibility test for the OS and vendor binary |
| 107 | - malware scan |
| 108 | |
| 109 | The Certification group then instantiates the VF image using the vendor |
| 110 | Heat (if provided) in order to validate that the VM can run on the Network |
| 111 | Cloud. |
| 112 | |
| 113 | No VF functionality testing is performed at this stage. |
| 114 | |
thmsdt | 9803c16 | 2019-04-25 08:16:14 +0200 | [diff] [blame] | 115 | |
andreasgeissler | 8b0b146 | 2020-03-26 17:45:53 +0100 | [diff] [blame] | 116 | .. _generate-manifest.py: https://git.onap.org/sdc/tree/openecomp-be/tools/scripts/generate-manifest.py |
Aric Gardner | 6ceaa84 | 2020-04-10 14:00:17 -0400 | [diff] [blame] | 117 | .. _example-packages: https://git.onap.org/sdc/tree/test-apis-ci/sdc-api-tests/chef-repo/cookbooks/sdc-api-tests/files/default/Files |