From c5d58150dd58075b54ac790684daf6f6cf617ea6 Mon Sep 17 00:00:00 2001 From: Mathieu Bultel Date: Mon, 12 Dec 2016 15:35:53 +0100 Subject: [PATCH] Execute ping test role at the end of the upgrade Validate that the upgrade is working by running the ping test when the upgrade role is finished and successful Change-Id: Ie2de9ae28dadb8bf1a1af28e7650164f92aba945 --- playbooks/upgrade-baremetal.yml | 9 +++++++++ playbooks/upgrade.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/playbooks/upgrade-baremetal.yml b/playbooks/upgrade-baremetal.yml index 0c4d37716..81441733c 100644 --- a/playbooks/upgrade-baremetal.yml +++ b/playbooks/upgrade-baremetal.yml @@ -7,3 +7,12 @@ gather_facts: no roles: - { role: overcloud-upgrade, deployment_type: baremetal } + +# Validate the deployment +- name: validate the overcloud + hosts: undercloud + tags: + - overcloud-validate + gather_facts: no + roles: + - { role: validate-simple, when: test_ping|bool } diff --git a/playbooks/upgrade.yml b/playbooks/upgrade.yml index ca12a801d..4dddcddc8 100644 --- a/playbooks/upgrade.yml +++ b/playbooks/upgrade.yml @@ -7,3 +7,12 @@ gather_facts: no roles: - overcloud-upgrade + +# Validate the deployment +- name: validate the overcloud + hosts: undercloud + tags: + - overcloud-validate + gather_facts: no + roles: + - { role: validate-simple, when: test_ping|bool }