Commit 9fbc6a77 authored by fleischmann's avatar fleischmann
Browse files

Add K8s Proxy Charms Testing Procedure

This commit adds a testing Procedure for feature
8716. It depends on the following MR in
osm-packages:
vnf-onboarding/osm-packages!36



Signed-off-by: default avatarDominik Fleischmann <dominik.fleischmann@canonical.com>
parent 91b2c7be
Loading
Loading
Loading
Loading
+47 −0
Original line number Diff line number Diff line
@@ -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