tripleo-quickstart-extras/playbooks/multinode-standalone.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

70 lines
1.6 KiB
YAML

---
- name: Add the overcloud nodes to the generated inventory
hosts: undercloud
gather_facts: true
tags:
- standalone
vars:
inventory: multinode
roles:
- tripleo-inventory
- name: Prepare the undercloud for installation
hosts: undercloud
roles:
- undercloud-setup
tags:
- standalone
- name: Run DLRN gate role and install repo
hosts: undercloud
vars:
artg_compressed_gating_repo: "${HOME}/gating_repo.tar.gz"
roles:
- build-test-packages
- {role: install-built-repo, when: compressed_gating_repo is defined}
tags:
- build
- name: Download amphora image for octavia
hosts: undercloud
gather_facts: false
roles:
- {role: octavia-amphora-download,
when: download_amphora is defined and download_amphora|bool}
tags:
- octavia
# NOTE(aschultz): nested virt causes problems in CI so we default to qemu
# and do not do the dynamic virt lookup.
- name: Deploy Standalone
hosts: undercloud
vars:
standalone_libvirt_type: "{{ standalone_virt_type|default('qemu') }}"
roles:
- standalone
tags:
- standalone
- name: Validate the undercloud
hosts: undercloud
gather_facts: false
roles:
- {role: validate-services, when: validate_services|default(false)|bool}
tags:
- standalone
- name: Validate the deployment
hosts: undercloud
# Note(chkumar246): Moved the os_tempest related var at the top
# of play level in order to have scope for the whole of the play
# https://bugs.launchpad.net/tripleo/+bug/1838496
vars:
tempest_install_method: distro
tempest_cloud_name: 'standalone'
tasks:
- include_tasks: tempest.yml
tags:
- standalone