From fb0d5236af8ee0687009fed2b794a9eecbe10d69 Mon Sep 17 00:00:00 2001 From: garciaale Date: Wed, 15 Jul 2020 13:48:47 -0400 Subject: [PATCH 1/2] Adds instructions for test SA-08 with Prometheus SNMP exporters Signed-off-by: garciaale --- 02-osm-nfvi-test-plan.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/02-osm-nfvi-test-plan.md b/02-osm-nfvi-test-plan.md index 9a82eb8..e4dda21 100644 --- a/02-osm-nfvi-test-plan.md +++ b/02-osm-nfvi-test-plan.md @@ -1060,6 +1060,37 @@ NOTE: VNF Metrics collection for scaled instances is not supported. ```text 05/28/2019 04:29:07 PM - osm_policy_module.alarming.service - INFO - Executing request to url https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871 for vnf alarm alarm-1 with status alarm ``` +### \[SA-08\] VNF Indicator collection using Prometheus exporters + +As a precondition for this test, please make sure: + +1. Your VIM has an accessible management network (in this case called "") +2. Your VIM has the appropriate test image, in this case `vyos-1.1.7`. +``` + +Onboard the descriptors: + +```bash +osm vnfpkg-create snmp_ee_vnf +osm nspkg-create snmp_ee_ns +``` + +Launch the NS: + +```bash +osm ns-create --ns_name snmpee_sa08 --nsd_name snmp_ee-ns --vim_account | --config '{vld: [ {name: mgmtnet, vim-network-name: } ] }' +osm ns-list +``` + +Wait ~5 minutes for the SNMP metrics to get collected. After that, check some of them at Prometheus, visiting [`http://[OSM_IP]:9091`](http://[OSM_IP]:9091) and looking for `ifMtu` and `ifInOctets` (you should see one value per VM interface). + +Finally, delete the NS and the packages: + +```bash +osm ns-delete snmpee_sa08 +osm nsd-delete snmp_ee-ns +osm vnfd-delete snmp_ee-vnf +``` ## Network Slicing -- GitLab From c04c965aa4e2f84641ad8b9a45b47bb404ce0fc1 Mon Sep 17 00:00:00 2001 From: garciaale Date: Thu, 16 Jul 2020 10:32:31 -0400 Subject: [PATCH 2/2] Moved SA-08 test to new osm-rel8-tests file Signed-off-by: garciaale --- 02-osm-nfvi-test-plan.md | 31 ------------------------------- 03-osm-rel8-tests.md | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 31 deletions(-) diff --git a/02-osm-nfvi-test-plan.md b/02-osm-nfvi-test-plan.md index e4dda21..9a82eb8 100644 --- a/02-osm-nfvi-test-plan.md +++ b/02-osm-nfvi-test-plan.md @@ -1060,37 +1060,6 @@ NOTE: VNF Metrics collection for scaled instances is not supported. ```text 05/28/2019 04:29:07 PM - osm_policy_module.alarming.service - INFO - Executing request to url https://webhook.site/e65ad8a0-53b5-4d7f-bd50-c1a50b260871 for vnf alarm alarm-1 with status alarm ``` -### \[SA-08\] VNF Indicator collection using Prometheus exporters - -As a precondition for this test, please make sure: - -1. Your VIM has an accessible management network (in this case called "") -2. Your VIM has the appropriate test image, in this case `vyos-1.1.7`. -``` - -Onboard the descriptors: - -```bash -osm vnfpkg-create snmp_ee_vnf -osm nspkg-create snmp_ee_ns -``` - -Launch the NS: - -```bash -osm ns-create --ns_name snmpee_sa08 --nsd_name snmp_ee-ns --vim_account | --config '{vld: [ {name: mgmtnet, vim-network-name: } ] }' -osm ns-list -``` - -Wait ~5 minutes for the SNMP metrics to get collected. After that, check some of them at Prometheus, visiting [`http://[OSM_IP]:9091`](http://[OSM_IP]:9091) and looking for `ifMtu` and `ifInOctets` (you should see one value per VM interface). - -Finally, delete the NS and the packages: - -```bash -osm ns-delete snmpee_sa08 -osm nsd-delete snmp_ee-ns -osm vnfd-delete snmp_ee-vnf -``` ## Network Slicing diff --git a/03-osm-rel8-tests.md b/03-osm-rel8-tests.md index 778c962..aad7e7c 100644 --- a/03-osm-rel8-tests.md +++ b/03-osm-rel8-tests.md @@ -410,3 +410,37 @@ _Note. The following is a basic test of PLA using a nsd with a single vnf and on ``` In this example the VNF is deployed to OpenStack1 being the cheapest VIM for the VNF. + +## Service Assurance + +### \[SA-08\] VNF Indicator collection using Prometheus exporters + +As a precondition for this test, please make sure: + +1. Your VIM has an accessible management network (in this case called "") +2. Your VIM has the appropriate test image, in this case `vyos-1.1.7`. +``` + +Onboard the descriptors: + +```bash +osm vnfpkg-create snmp_ee_vnf +osm nspkg-create snmp_ee_ns +``` + +Launch the NS: + +```bash +osm ns-create --ns_name snmpee_sa08 --nsd_name snmp_ee-ns --vim_account | --config '{vld: [ {name: mgmtnet, vim-network-name: } ] }' +osm ns-list +``` + +Wait ~5 minutes for the SNMP metrics to get collected. After that, check some of them at Prometheus, visiting [`http://[OSM_IP]:9091`](http://[OSM_IP]:9091) and looking for `ifMtu` and `ifInOctets` (you should see one value per VM interface). + +Finally, delete the NS and the packages: + +```bash +osm ns-delete snmpee_sa08 +osm nsd-delete snmp_ee-ns +osm vnfd-delete snmp_ee-vnf +``` \ No newline at end of file -- GitLab