diff --git a/03-osm-rel8-tests.md b/03-osm-rel8-tests.md index 2daaa6edf513210a33f8158d8a512f66a9451493..236aa0718e737c24370a86d44fcfe3640061cc60 100644 --- a/03-osm-rel8-tests.md +++ b/03-osm-rel8-tests.md @@ -195,3 +195,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.