
This patch allows us to run tripleo-validations tests through the Mistral framework for newton release and above. It also allows us to run negative tests for pre-introspections validations like: - undercloud-ram - undercloud-cpu - undercloud-disk-space The pre-deployment and post-deployment should be done and will be done through different patches. Change-Id: Iec07a18322252af2d484bc3f06a59dbd1b08f537 Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
# Deploy the overcloud
|
|
- name: Deploy the overcloud
|
|
hosts: undercloud
|
|
gather_facts: yes
|
|
tags:
|
|
- overcloud-deploy
|
|
roles:
|
|
- overcloud-deploy
|
|
|
|
- name: Add the overcloud nodes to the generated inventory
|
|
hosts: undercloud
|
|
gather_facts: yes
|
|
tags:
|
|
- overcloud-deploy
|
|
vars:
|
|
inventory: all
|
|
roles:
|
|
- tripleo-inventory
|
|
|
|
- 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}
|
|
|
|
# Check the results of the deployment, note after inventory has executed
|
|
- name: Check the result of the deployment
|
|
hosts: localhost
|
|
tags:
|
|
- overcloud-deploy
|
|
tasks:
|
|
- name: ensure the deployment result has been read into memory
|
|
include_vars: "{{ local_working_dir }}/overcloud_deployment_result.json"
|
|
|
|
# overcloud_deploy_result = ["failed", "passed"]
|
|
- name: did the deployment pass or fail?
|
|
debug:
|
|
var: overcloud_deploy_result
|
|
failed_when: overcloud_deploy_result == "failed"
|