VNF validation tests
The VNF validation tests can only be run from the Commissioning VM, when performing an automatic deployment. |
What are VNF validation tests?
The VNF validation tests can be used to run some basic checks on deployed VMs to ensure they have been deployed correctly. Tests include:
-
Checking that the management IP can be reached;
-
Checking that the management gateway can be reached;
-
Checking that
sudo
works on the VM; -
Checking that the VM has converged to its initial configuration.
Running the VNF validation tests
After deploying the VMs and performing the initial configuration, you can run the VNF validation tests from the Commissioning VM.
First, generate an 'Ansible hosts' file from the SDF:
csar ansible-hosts --sdf <path to SDF>
Then, run the validation tests using the Ansible hosts file just generated:
csar validate --vnf shcm hosts_ansible.yaml
If any of the tests fail, refer to the troubleshooting section.
Rhino Console Checks
Check via the rhino-console that various ShCM components are active.
Check | Actions | Expected Result |
---|---|---|
Check ShCM is running |
login as sentinel |
The SLEE should be in started state |
Check ShCM microservice is active |
rhino-console |
Both sh-cache-microservice and sh-cache-microservice-notification-service should be active |
Check ShCM Resource Adaptors are active |
rhino-console |
cassandra-cql-ra, diameter-sh-ra and http-ra should be active. |
List Active Alarms |
rhino-console |
Check for any active alarms. Further information about alarms can be found in |
Health Check API
If the curl commands fail with a connection exception check the correct port is being used.
Check | Actions | HTTP Result |
---|---|---|
Check the microservice is working correctly. |
curl -G http://localhost:8088/shcache/v1/infra/up -v |
204 |
Check that the microservice is in service and ready to receive requests on this API. |
curl -G http://localhost:8088/shcache/v1/infra/ready -v |
204 |