tripleo-quickstart-extras/playbooks/baremetal-full-overcloud-validate.yml
Arx Cruz b2a3632575 Set condition to run os_tempest
This will avoid all the tasks under tempest.yml to be executed, since
those are only required when run os_tempest.

Related-Bug: #1911696
Change-Id: If546256da1e79d63c102590884e73db49c59e7ab
2021-01-14 18:44:50 +00:00

71 lines
1.6 KiB
YAML

---
# Execute sanity checks agsinst the overcloud 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: Sanity check the overcloud services
hosts: undercloud
tags:
- overcloud-validate
gather_facts: false
roles:
- {role: validate-sanity-checks,
when: run_sanity_checks|default(false)|bool}
# Validate the deployment
- name: validate the overcloud
hosts: undercloud
tags:
- overcloud-validate
gather_facts: false
roles:
- {role: validate-simple, when: test_ping|bool}
- name: Execute netstat for port audit
hosts: overcloud
vars:
execute_netstat: true
roles:
- overcloud-network-discovery
tags:
- overcloud-validate
# Execute tempest against the overcloud deployment
- name: Validate the deployment
hosts: undercloud
tasks:
- include_tasks: tasks/tempest.yml
vars:
tempest_install_method: distro
tempest_cloud_name: 'overcloud'
when: use_os_tempest | default(true)
environment:
# Disable ssl waarnings
CURL_CA_BUNDLE: ""
tags:
- overcloud-validate
- name: Kill netstat
hosts: overcloud
vars:
kill_netstat: true
roles:
- overcloud-network-discovery
tags:
- overcloud-validate
- name: Delete the overcloud
hosts: undercloud
tags:
- overcloud-delete
gather_facts: false
roles:
- {role: overcloud-delete,
when: step_delete_overcloud|default(false)|bool}