Introduction
This wiki is meant to detail the steps to automate the Network Slicing use case testing using the O-RAN-SC SMO package.
...
The source code are stored under SMO package on ORAN gerrit in the "it/dep" repo below:
https://github.com/sebdet/oran-deploymentgerrit.o-ran-sc.org/r/gitweb?p=it/dep.git;a=tree;f=smo-install;h=2e4539d6c3c2e2a274d1913c89df371c956f0793;hb=HEAD
step 1: Deploy ONAP components using SMO starting script
Start the platform for the use case, we could use the SMO starting scripts.
...
Increasing the max-pod number to 200 will solve the issue. Different system set max pod in different ways. With microk8s you can open file /var/snap/microk8s/current/args/kubelet, add the line "--max-pods=200" at the end of the file, restart the service with command service snap.microk8s.daemon-kubelite restart and verify whether the date has been updated with command kubectl describe node <node_value> | grep -i capacity -A 13.
step 2: Run use case preparation scripts to configure all the components
The preparation scripts are python scripts, based on the ONAP pythonsdk framework. The detailed introduction of the framework can be found in the SMO package introduction.
...
Since SDC doesn't support creating template with the same name, neither deleting of any templates, you have to add a suffix to the original name to create template with a new name.
step 3: Starting needed simulators
Network Slicing Option2 use case involves 3 simulators: external core NSSMF simulator, ACTN simulator and external RAN NSSMF simulator.
SMO packages prepares the lab using helm charts, but unfortunately there are no helm chart available yet for those 3 simulators, so they should be started manually at this moment.
It is in our plan to create helm chart for those 3 simulators and put them under tests_oom folder, so that they could be deployed easily using SMO starting script in the future.
which are under tests_oom folder.
When starting the testing script, the needed simulators will be started at the beginning. After the tests is completed, the simulators will be deleted.
step 4 : Run test script and verify the result
When typing the tox command, it first runs the preparation scripts and then triggers the real testing script.
...
If you want to continue the Network Slicing Option2 use case test, please run it manually.
Currently known issues
Currently the SMO package is based on the ONAP oom Jakarta release. There's already some known issues regarding the Network Slicing related code.
...
Restart the so-bpmn-infra pod with command "kubectl delete pod <onap-so-bpmn-infra-pod-name> -n onap"
Demos:
View file | ||||
---|---|---|---|---|
|
View file | ||||
---|---|---|---|---|
|