Commit 1c8435ff authored by Francisco-Javier Ramon Salguero's avatar Francisco-Javier Ramon Salguero
Browse files

Merge branch 'k8sproxycharm' into 'master'

Add K8s Proxy Charms Testing Procedure

See merge request !7
parents 34ee26b1 77e73b09
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
@@ -197,3 +197,52 @@ 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.

1. 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
```

2. 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
```

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} ] }'
```

4. Wait until the Network Service is in the READY State:

```bash
osm ns-list
```

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}'
```

6. Wait until the action is in COMPLETED state:

```bash
osm ns-op-list hf-k8s
```

7. SSH into VNF 1  and make sure that the `firsttouch` and `mytouch1` files have been created.