Chapter 15. Using the validation framework
Red Hat OpenStack Platform includes a validation framework that you can use to verify the requirements and functionality of the undercloud and overcloud. The framework includes two types of validations:
Manual Ansible-based validations, which you execute through the
openstack tripleo validatorcommand set.
- Automatic in-flight validations, which execute during the deployment process.
15.1. Ansible-based validations
During the installation of Red Hat OpenStack Platform director, director also installs a set of playbooks from the
openstack-tripleo-validations package. Each playbook contains tests for certain system requirements and a set of groups that define when to run the test:
- Validations that run a no-op (no operation) task to verify to workflow functions correctly. These validations run on both the undercloud and overcloud.
Validations that check the hardware configuration of the undercloud node. Run these validation before you run the
openstack undercloud installcommand.
- Validations that check that the environment meets the requirements to be able to deploy OpenShift on OpenStack.
- Validations to run before the nodes introspection using Ironic Inspector.
Validations to run before the
openstack overcloud deploycommand.
- Validations to run after the overcloud deployment has finished.
- Validations to validate your OpenStack deployment before an upgrade.
- Validations to validate your OpenStack deployment after an upgrade.
15.2. Listing validations
openstack tripleo validator list command to list the different types of validations available.
$ source ~/stackrc
openstack tripleo validator listcommand:
To list all validations, run the command without any options:
$ openstack tripleo validator list
To list validations in a group, run the command with the
$ openstack tripleo validator list --group prep
For a full list of options, run
openstack tripleo validator list --help.
15.3. Running validations
To run a validation or validation group, use the
openstack tripleo validator run command. To see a full list of options, use the
openstack tripleo validator run --help command.
$ source ~/stackrc
openstack tripleo validator runcommand:
To run a single validation, enter the command with the
--validationoption and the name of the validation. For example, to check the undercloud memory requirements, enter
$ openstack tripleo validator run --validation undercloud-ram
To run all validations in a group, enter the command with the
$ openstack tripleo validator run --group prep
To view detailed output from a specific validation, run the
openstack tripleo validator show runcommand against the UUID of the specific validation from the report:
$ openstack tripleo validator show run <UUID>
15.4. In-flight validations
Red Hat OpenStack Platform includes in-flight validations in the templates of composable services. In-flight validations verify the operational status of services at key steps of the overcloud deployment process.
In-flight validations run automatically as part of the deployment process. Some in-flight validations also use the roles from the