...
This page will walk through the robot framework automated creation of the vFirewall Closed Loop (vFWCL) use case to show how the overall vFWCL works and to high light the confirmation steps and training that can be derived from the robot automated test.
Preconditions:
- The demonstration VNFs like vFWCL assume that the ONAP OAM network is setup in your environment as a 10.0.0.0/16 with a prefix cidr of 10.0. Robot will assign OAM IP addresses in this range.
- The demonstration VNF heat templates assume that the PUBLIC neutron network (openStackPublicNetId) provided in the robot section of the override.yaml / values.yaml chart is setup so that new interfaces can be created via the VNF Heat template on that public interface. It need not be an external public network and many environments use a separate external network with floating IPs to assign an external IP to the VNFs external facing ip address/ports after instantiation if they have that setup.
- ONAP has been installed
...
- robot init
...
- has been run ((e.g., ./demo-k8s.sh onap init
...
- )) to setup the customer , cloud configurations, distribution of models and set the owning entity/project/line of business in VID for tracking the Service and VNF
- Additionally a distribution
...
- should be run
...
- ( ./ete-k8s.sh onap healthdist) to confirm that model distribution succeeds
cd /root/onap/kubernetes/robot
./ete-k8s.sh onap health
./ete-k8s.sh onap healthdist
./demo-k8s.sh onap init
./demo-k8s.sh onap init_robot
...
Select one of the test cases from the list and then open log.html (e.g., http://<k8host-ip>:30209/logs/0005_ete_instantiateVFWCL/log.html )
View file
height
./ete-k8s.sh onap instantiateVFWCL
Expand | ||
---|---|---|
| ||
root@onap-rancher:~/oom/kubernetes/robot# ./ete-k8s.sh onap instantiateVFWCL ++ export NAMESPACE=onap ++ NAMESPACE=onap +++ kubectl --namespace onap get pods +++ sed 's/ .*//' +++ grep robot ++ POD=dev-robot-robot-7bf98dfb65-k2p65 ++ TAGS='-i instantiateVFWCL' ++ ETEHOME=/var/opt/ONAP +++ kubectl --namespace onap exec dev-robot-robot-7bf98dfb65-k2p65 -- bash -c 'ls -1q /share/logs/ | wc -l' ++ export GLOBAL_BUILD_NUMBER=1921 ++ GLOBAL_BUILD_NUMBER=1921 +++ printf %04d 1921 ++ OUTPUT_FOLDER=00190021_ete_instantiateVFWCL ++ DISPLAY_NUM=109111 ++ VARIABLEFILES='-V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py' ++ VARIABLES='-v GLOBAL_BUILD_NUMBER:1189912049' ++ kubectl --namespace onap exec dev-robot-robot-7bf98dfb65-k2p65 -- /var/opt/ONAP/runTags.sh -V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py -v GLOBAL_BUILD_NUMBER:11899 12049 -d /share/logs/00190021_ete_instantiateVFWCL -i instantiateVFWCL --display 109111 Starting Xvfb on display :109 111 with res 1280x1024x24 Executing robot tests at log level TRACE ============================================================================== Testsuites ============================================================================== Testsuites.Demo :: Executes the VNF Orchestration Test cases including setu... ============================================================================== Instantiate VFWCL Downloaded:service-Vfwcl201907101445Vfwcl201907101631-csar.csar Set VNF ProvStatus: bfa216fbe26ed2db-23ac43a4-460e40bd-9b639880-aec3e06ddd2f 65a02dbf734f to ACTIVE Set VNF ProvStatus: 3d931dabfc482c95-35e93d58-4e3745e5-a7e0b6c0-e8d1d166db34 bc0321c049a1 to ACTIVE Customer Name=DemoCust_0d3a3c71aec5b5b9-ff3b6e62-449d4e07-8d78bef6-6627a972632888bddacd5132 VNF Module Name=Vfmodule_Ete_vFWCLvFWSNK_0d3a3c71aec5b5b9_0 VNF Module Name=Vfmodule_Ete_vFWCLvPKG_0d3a3c71aec5b5b9_1 Update old vFWCL Policy for ModelInvariantID=283e1a720b663b8a-52712b4a-4d5642d8-9a3d9ea6-2dc9a8d558b6f965602be1fc Create vFWCL Monitoring Policy Create vFWCL Operational Policy {u'content': u'controlLoop%3A%0A++++version%3A+2.0.0%0A++++controlLoopName%3A+ControlLoop-vFirewall-283e1a720b663b8a-52712b4a-4d5642d8-9a3d9ea6-2dc9a8d558b6%0Af965602be1fc%0A++++trigger_policy%3A+unique-policy-id-1-modifyConfig%0A++++timeout%3A+1200%0A++++abatement%3A+false%0Apolicies%3A%0A++++-+id%3A+unique-policy-id-1-modifyConfig%0A++++++name%3A+modify_packet_gen_config%0A++++++description%3A%0A++++++actor%3A+APPC%0A++++++recipe%3A+ModifyConfig%0A++++++target%3A%0A++++++++++resourceID%3A+283e1a720b663b8a-52712b4a-4d5642d8-9a3d9ea6-2dc9a8d558b6%0Af965602be1fc%0A++++++++++type%3A+VNF%0A++++++payload%3A%0A++++++++++streams%3A+%27%7B%22active-streams%22%3A5%7D%27%0A++++++retry%3A+0%0A++++++timeout%3A+300%0A++++++success%3A+final_success%0A++++++failure%3A+final_failure%0A++++++failure_timeout%3A+final_failure_timeout%0A++++++failure_retries%3A+final_failure_retries%0A++++++failure_exception%3A+final_failure_exception%0A++++++failure_guard%3A+final_failure_guard%0A', u'policy-id': u'operational.modifyconfig'} Push vFWCL To PDP Group Validate vFWCL Policy APPC Mount Point for VNF Module Name=Vfmodule_Ete_vFWCLvFWSNK_0d3a3c71aec5b5b9_0 APPC Mount Point for VNF Module Name=Vfmodule_Ete_vFWCLvPKG_0d3a3c71aec5b5b9_1 | PASS | ------------------------------------------------------------------------------ Testsuites.Demo :: Executes the VNF Orchestration Test cases inclu... | PASS | 1 critical test, 1 passed, 0 failed 1 test total, 1 passed, 0 failed ============================================================================== Testsuites | PASS | 1 critical test, 1 passed, 0 failed 1 test total, 1 passed, 0 failed ============================================================================== Output: /share/logs/00190021_ete_instantiateVFWCL/output.xml Log: /share/logs/00190021_ete_instantiateVFWCL/log.html Report: /share/logs/00190021_ete_instantiateVFWCL/report.html |
...