Add missing steps from tripleo-ci ovb playbook

We missed a couple of things that are in the tripleo-ci playbook,
namely undercloud-validate and overcloud-delete. These are both
added, but defaulted to off so as not to impact existing jobs which
use this playbook.

Change-Id: Ic2f1d2d50f8a5b0e19ca93e1b9631a94be91d3c5
This commit is contained in:
John Trowbridge 2017-12-07 11:22:08 -05:00
parent 78b4acba4c
commit 7634e86ec6

View File

@ -23,6 +23,13 @@
- { role: tripleo-validations, - { role: tripleo-validations,
when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool} when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool}
- name: Validate the undercloud
hosts: undercloud
roles:
- { role: validate-undercloud,
when: run_validate_undercloud|default(false)|bool }
- name: Build images for quickstart - name: Build images for quickstart
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: no
@ -50,12 +57,6 @@
roles: roles:
- { role: overcloud-prep-containers, when: containerized_overcloud|bool } - { role: overcloud-prep-containers, when: containerized_overcloud|bool }
- name: Prepare the overcloud images for deployment
hosts: undercloud
gather_facts: no
roles:
- overcloud-prep-images
- name: Run tripleo-validations pre-introspection tests - name: Run tripleo-validations pre-introspection tests
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: no
@ -65,14 +66,20 @@
validations_group: ['pre-introspection'] validations_group: ['pre-introspection']
roles: roles:
- { role: tripleo-validations, - { role: tripleo-validations,
when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool} when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool }
- name: Prepare the overcloud images for deployment
hosts: undercloud
gather_facts: no
roles:
- overcloud-prep-images
- name: Prepare overcloud flavors - name: Prepare overcloud flavors
hosts: undercloud hosts: undercloud
gather_facts: no gather_facts: no
roles: roles:
- overcloud-prep-flavors - { role: overcloud-prep-flavors,
when: step_overcloud_prep_flavors|default(true)|bool }
- name: Prepare the undercloud networks for the overcloud deployment - name: Prepare the undercloud networks for the overcloud deployment
hosts: undercloud hosts: undercloud
@ -104,18 +111,6 @@
roles: roles:
- overcloud-deploy - overcloud-deploy
- name: Run tripleo-validations post-deployment tests
hosts: undercloud
gather_facts: no
tags:
- tripleo-validations
vars:
validations_group: ['post-deployment']
roles:
- { role: tripleo-validations,
when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool}
# Add the overcloud nodes to the generated inventory. # Add the overcloud nodes to the generated inventory.
- name: Inventory the overcloud - name: Inventory the overcloud
hosts: undercloud hosts: undercloud
@ -140,6 +135,17 @@
debug: var=overcloud_deploy_result debug: var=overcloud_deploy_result
failed_when: overcloud_deploy_result == "failed" failed_when: overcloud_deploy_result == "failed"
- name: Run tripleo-validations post-deployment tests
hosts: undercloud
gather_facts: no
tags:
- tripleo-validations
vars:
validations_group: ['post-deployment']
roles:
- { role: tripleo-validations,
when: run_tripleo_validations|bool or run_tripleo_validations_negative_tests|bool}
# Execute sanity checks agsinst the overcloud deployment # Execute sanity checks agsinst the overcloud deployment
- name: Sanity check the overcloud services - name: Sanity check the overcloud services
hosts: undercloud hosts: undercloud
@ -168,3 +174,11 @@
roles: roles:
- { role: validate-tempest, when: run_tempest|bool } - { role: validate-tempest, when: run_tempest|bool }
- name: Delete the overcloud
hosts: undercloud
tags:
- overcloud-delete
gather_facts: no
roles:
- { role: overcloud-delete,
when: step_delete_overcloud|default(false)|bool }