f791f5b3cd
When pipe is added to command, it should still exit with its result code, so save it by setting pipeline option before each command. Close-Bug: #1676156 Change-Id: Ibbe49b4a15a5b7825447a563fe35af85fd48b3ff
Validate-Sanity-Checks
This role provides a script for executing sanity checks on an overcloud deployment. The role creates basic checks using openstack CLI depending on the services enabled on the overcloud deployment. These sanity checks are useful when a full overcloud is not deployed and the overcloud validation roles cannot be run.
Requirements
This role requires that the overcloud is deployed and the services of interest are available for testing.
Role Variables
sanity_content_name
: <sanity_test> - The sanity tests to be run in checkssanity_scripts
: <validate-sanity-checks.sh.j2> - Script to create the sanity checks testssanity_checks_log
: <validate_sanity_test.log> - Log file to store the output of the sanity checkssanitytest_create
: - Boolean variable whether to create the artifacts to test enabled servicessanitytest_cleanup
: - Boolean variable whether to clean up the artifacts created by the sanity checkssanity_step_sanity_checks
: - Boolean variable whether to execute the sanity checks test
Dependencies
No dependencies.
Example Playbook
# Execute sanity checks against the overcloud deployment
- name: Sanity check the overcloud services
hosts: undercloud
roles:
- { role: validate-sanity-checks, when: run_sanity_checks|bool}
License
Apache 2.0
Author Information
TripleO CI Team