tripleo-quickstart-extras/playbooks/quickstart-extras-validate.yml
Arx Cruz 8c570777f3 Centralize tempest execution
Today we have two roles that run tempest, the first one that is
deprecated, validate-tempest, and the new one os_tempest.
The problem right now is that, in order to deprecate validate-tempest,
we need to ensure a smooth transition, and centralize everything in one
single playbook, is the best way to do it.
Furthermore, move old jobs running on centos 7 require some workarounds
to create the clouds.yaml file, that today would be harder.
This patch consolidate both os_tempest and validate-tempest in one
single playbook, and so, in the future, it's easier to just remove the
calls from validate-tempest in one single place rather than keep
searching for all the places we use it.

Change-Id: I9991f6c0ea51a3bf537bdcafd4220a5a025cc026
2020-07-21 18:34:24 +00:00

42 lines
990 B
YAML

---
# Validate the deployment
- name: setup dstat performance monitoring
hosts: overcloud
tags:
- overcloud-validate
roles:
- {role: validate-perf,
when: validate_performance|bool and run_tempest|bool}
ignore_errors: true
- name: validate the overcloud
hosts: undercloud
tags:
- overcloud-validate
gather_facts: false
roles:
- {role: validate-simple, when: test_ping|bool}
# Execute tempest against the overcloud deployment
- name: Validate the deployment
hosts: undercloud
tasks:
- include_tasks: tempest.yml
vars:
tempest_install_method: distro
tempest_cloud_name: 'overcloud'
tags:
- overcloud-validate
# Ensure services and containers are OK
- name: Execute simple service and container validations
hosts:
- undercloud
- overcloud
tags:
- overcloud-validate
- undercloud-validate
gather_facts: false
roles:
- {role: validate-services, when: validate_services|default(false)|bool}