From 9fbc6a77d49a7cecc8d63010540d5e74d8e75f38 Mon Sep 17 00:00:00 2001 From: Dominik Fleischmann Date: Thu, 2 Jul 2020 14:21:33 +0200 Subject: [PATCH 1/2] Add K8s Proxy Charms Testing Procedure This commit adds a testing Procedure for feature 8716. It depends on the following MR in osm-packages: https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages/merge_requests/36 Signed-off-by: Dominik Fleischmann --- 03-osm-rel8-tests.md | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/03-osm-rel8-tests.md b/03-osm-rel8-tests.md index 2daaa6e..457796b 100644 --- a/03-osm-rel8-tests.md +++ b/03-osm-rel8-tests.md @@ -195,3 +195,50 @@ For more details on the current operation, run "osm ns-op-show OPERATION_ID" ``` The network service should be removed fine, without leaving models behind. + +## Kubernetes Features +### [K8S-01} Kubernetes Proxy Charms +This feature is only supported in the Charmed Installation and the Kubernetes Installation. Therefore make sure you have one of either installed. + +Clone the osm-packages repository and download the submodules: + +```bash +git clone https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git +cd osm-packages +git submodule update --init +``` + +Build the hackfest_k8sproxycharm Packages and upload them: + +```bash +tar -czf hackfest_k8sproxycharm_vnf.tar.gz hackfest_k8sproxycharm_vnf/ +tar -czf hackfest_k8sproxycharm_ns.tar.gz hackfest_k8sproxycharm_ns/ +osm upload-package hackfest_k8sproxycharm_vnf.tar.gz +osm upload-package hackfest_k8sproxycharm_ns.tar.gz +``` + +Create the Network Service: + +```bash +osm ns-create --ns_name hf-k8s --nsd_name hackfest_k8sproxycharm-ns --vim_account openstack --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' +``` + +Wait until the Network Service is in the READY State: + +```bash +osm ns-list +``` + +Once the Network Service is ready execute the following action: + +```bash +osm ns-action hf-k8s --vnf_name 1 --action_name touch --params '{filename: /home/ubuntu/mytouch1}' +``` + +Wait until the action is in COMPLETED state: + +```bash +osm ns-op-list hf-k8s +``` + +SSH into VNF 1 and make sure that the `firsttouch` and `mytouch1` files have been created. \ No newline at end of file -- GitLab From 77e73b09898cd5e6076877933bc27e10a908c828 Mon Sep 17 00:00:00 2001 From: Dominik Fleischmann Date: Fri, 3 Jul 2020 09:26:23 +0200 Subject: [PATCH 2/2] Fix Comments Signed-off-by: Dominik Fleischmann --- 03-osm-rel8-tests.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/03-osm-rel8-tests.md b/03-osm-rel8-tests.md index 457796b..236aa07 100644 --- a/03-osm-rel8-tests.md +++ b/03-osm-rel8-tests.md @@ -197,10 +197,12 @@ For more details on the current operation, run "osm ns-op-show OPERATION_ID" The network service should be removed fine, without leaving models behind. ## Kubernetes Features -### [K8S-01} Kubernetes Proxy Charms + +### [K8S-01] Kubernetes Proxy Charms + This feature is only supported in the Charmed Installation and the Kubernetes Installation. Therefore make sure you have one of either installed. -Clone the osm-packages repository and download the submodules: +1. Clone the osm-packages repository and download the submodules: ```bash git clone https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git @@ -208,7 +210,7 @@ cd osm-packages git submodule update --init ``` -Build the hackfest_k8sproxycharm Packages and upload them: +2. Build the hackfest_k8sproxycharm Packages and upload them: ```bash tar -czf hackfest_k8sproxycharm_vnf.tar.gz hackfest_k8sproxycharm_vnf/ @@ -217,28 +219,28 @@ osm upload-package hackfest_k8sproxycharm_vnf.tar.gz osm upload-package hackfest_k8sproxycharm_ns.tar.gz ``` -Create the Network Service: +3. Create the Network Service: ```bash osm ns-create --ns_name hf-k8s --nsd_name hackfest_k8sproxycharm-ns --vim_account openstack --config '{vld: [ {name: mgmtnet, vim-network-name: osm-ext} ] }' ``` -Wait until the Network Service is in the READY State: +4. Wait until the Network Service is in the READY State: ```bash osm ns-list ``` -Once the Network Service is ready execute the following action: +5. Once the Network Service is ready execute the following action: ```bash osm ns-action hf-k8s --vnf_name 1 --action_name touch --params '{filename: /home/ubuntu/mytouch1}' ``` -Wait until the action is in COMPLETED state: +6. Wait until the action is in COMPLETED state: ```bash osm ns-op-list hf-k8s ``` -SSH into VNF 1 and make sure that the `firsttouch` and `mytouch1` files have been created. \ No newline at end of file +7. SSH into VNF 1 and make sure that the `firsttouch` and `mytouch1` files have been created. -- GitLab