...
Code Block |
---|
ubuntu@jumpserver:~$ shbash validation/bluval/blucon.sh [-l <LAYER>] [-o] [-n host] <Bluprint Name> |
...
Code Block |
---|
ubuntu@jumpserver:~$ ls results/k8s/conformance/ 201909110859_sonobuoy_376a4ddc-4498-49fc-af2e-999242c4c245.tar.gz Conformance.Conformance.log log.html output.xml report.html |
Troubleshooting
In case of failures, the sonobuoy archive can be used to inspect all the logs. For live troubleshooting the container for a specific layer can be started with the command below:
...
Development Environment / Trouble Shooting
These following steps helps you to setup development environment if you want to contribute back to community or trouble shoot the issue for yourself.
blucon.sh is building a docker image, mount required directories and runs a blucon container.
blucon container runs a container to validate each layer and mount directories as mentioned in volumes.yaml. Entire docker command including mount points is printed on the screen. As part of your development process you can modify this docker statement a little and start the container manually and play with it. Couple modification needed for every developer are -it to start the container in the interactive mode and -v /home/ubuntu/validation/:/opt/akraino/validation/ to mount your local code to container. In this way you can modify code in your favorite IDE and just run it in the container. If you are happy with the changes you can commit them http://gerrit.akraino.org/r/validation
Code Block |
---|
... On your host ubuntu@jumpserver:~$ docker run -ti--rm -it \ -v <mount-volume-to-access-the-cluster>/home/ubuntu/validation/:/opt/akraino/validation/ \ -v /home/ubuntu/results:/opt/akraino/results \ -v /home/ubuntu/.ssh:/root/.ssh \ akraino/validation:<layer>os-latest /bin/sh ... Within in the container # cd /opt/akraino/validation && python bluval/bluval.py -l os -o rec |
Tests can be invoked directly using the bluval.py script located at /opt/akraino/validation/bluval/
...