Adds cluster status check_and_fail before running upgrade (step0)

This depends on a change in the pacemaker_cluster resource
https://review.gerrithub.io/#/c/307078/

Change-Id: Iaf50e27607b159173190912604198b6a471fe35f
This commit is contained in:
marios 2016-12-23 14:18:20 +02:00 committed by Marios Andreou
parent a6a69ade38
commit 5e411fa85f
1 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,9 @@ outputs:
step_config: |
include ::tripleo::profile::base::pacemaker
upgrade_tasks:
- name: Check pacemaker cluster running before upgrade
tags: step0,validation
pacemaker_cluster: state=online check_and_fail=true
- name: Stop pacemaker cluster
tags: step1
pacemaker_cluster: state=offline