diff options
author | MichaĆ Grzesik <michal.grzesik@orange.com> | 2021-03-10 17:26:04 +0100 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2021-03-10 21:22:15 +0100 |
commit | 1ff5827ffde7af1d8aed23890a571455300ade6d (patch) | |
tree | 6abdbeba5e1233d06c36e45ff1d4b8f7d30130d5 /heat/vFW_CNF_CDS/automation/README.md | |
parent | 1e501466e21b774ccaadef19f4618decc0650001 (diff) |
Add cofig-assign and config-deploy to cds workflow
Add cofig-assign and config-deploy to cds workflow,
cloud region and vf params list updated,
exporting onap settings for onapsdk
Issue-ID: INT-1868
Signed-off-by: Michal Grzesik <michal.grzesik@orange.com>
Change-Id: I68acbc2ecedfafb4d2291707f5fef82e8feab831
Diffstat (limited to 'heat/vFW_CNF_CDS/automation/README.md')
-rwxr-xr-x | heat/vFW_CNF_CDS/automation/README.md | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/heat/vFW_CNF_CDS/automation/README.md b/heat/vFW_CNF_CDS/automation/README.md index e153cc68..a37ec9db 100755 --- a/heat/vFW_CNF_CDS/automation/README.md +++ b/heat/vFW_CNF_CDS/automation/README.md @@ -1,10 +1,12 @@ # vFW_CNF_CDS use case automation +0. Make sure you have python 3.8.x installed and default interpreter, what is required by onap-pythonsdk 1. Install required packages with pipenv `pipenv install` -2. Run virtual environment `pipenv shell --fancy` -3. Add kubeconfig files, one for ONAP cluster, and one for k8s cluster that will host vFW: +2. Run virtual environment `pipenv shell`. In case of problems use `--fancy` option + + **In case of problems with pipenv:** `venv` can be used as well. In that case, please install all required python packages in correct version according the list in `Pipfile` +3. Add kubeconfig file for k8s cluster that will host vFW - `artifacts/cluster_kubeconfig` - - `artifacts/onap_kubeconfig` 4. Prepare onboarding packages `cd ../templates/ && make && cd ../automation/` 5. Modify `config.py`: - NATIVE - enables native helm orchestration path in SO @@ -13,7 +15,15 @@ - VENDOR - SERVICENAME - CUSTOMER_RESOURCE_DEFINITIONS - add list of CRDs to be installed on non KUD k8s cluster -6. Run script `python create_k8s_region.py` in order to create **k8s cloud region** -7. Onboard **vFW** `python onboard.py` -8. Instantiate **vFW** `python instantiate.py` -9. Once test is done, **vFW** service instance can be deleted with `python delete.py` command + - VNF_PARAM_LIST - list of parameters to pass for VNF creation process + - VF_MODULE_PARAM_LIST - list of parameters to pass for VF Module creation +6. __Important:__ Before running python scripts, some settings for `onapsdk` with information about ONAP endpoints (and socks) have to be exported. + All settings for ONAP instance are located in `automation/onap_settings.py` file. To export that settings please run command inside `pipenv` or `venv` shell + ```shell + (automation) ubuntu@onap:~/automation$ export ONAP_PYTHON_SDK_SETTINGS="onap_settings" + ``` +7. Run script `python create_k8s_region.py` in order to create **k8s cloud region** +8. Onboard **vFW** `python onboard.py` +9. Instantiate **vFW** `python instantiate.py` +10. Once test is done, **vFW** service instance can be deleted with `python delete.py` command + |