Adds cluster status check_and_fail before running upgrade (step0)
authormarios <marios@redhat.com>
Fri, 23 Dec 2016 12:18:20 +0000 (14:18 +0200)
committerMarios Andreou <marios@redhat.com>
Fri, 10 Feb 2017 16:00:01 +0000 (16:00 +0000)
This depends on a change in the pacemaker_cluster resource
https://review.gerrithub.io/#/c/307078/

Change-Id: Iaf50e27607b159173190912604198b6a471fe35f

puppet/services/pacemaker.yaml

index 9c85fce..0b9ab9f 100644 (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