tripleo-quickstart-extras/playbooks/baremetal-full-overcloud-va...

79 lines
1.8 KiB
YAML

---
- name: Run dump vars on all!localhost
hosts: all:!localhost:!127.0.0.2
roles:
- dump_vars
- name: Ensure the overcloud nodes are added to the generated inventory
hosts: undercloud
gather_facts: true
tags:
- overcloud-validate
vars:
inventory: all
roles:
- tripleo-inventory
ignore_errors: true
# Execute sanity checks agsinst the overcloud deployment
- name: setup dstat performance monitoring
hosts: all:!localhost:!127.0.0.2:!undercloud:!virthost
tags:
- overcloud-validate
roles:
- {role: validate-perf,
when: validate_performance|bool and use_os_tempest | default(true) | 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: 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}