aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-02 15:33:42 +0000
committerGerrit Code Review <review@openstack.org>2017-06-02 15:33:42 +0000
commitd01de0e985f0b8ed9a65a303c233ebb49d47886e (patch)
tree194c3db2d9313508b2f6f1385275df0dea033095
parentcbf74d6e614aad829b93f99357d87eae0db6bca5 (diff)
parentc4e3bbe039135f32f0e198365e704b3dbfd00290 (diff)
Merge "Handle upgrading cinder-volume under pacemaker"
-rw-r--r--puppet/services/pacemaker/cinder-volume.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/puppet/services/pacemaker/cinder-volume.yaml b/puppet/services/pacemaker/cinder-volume.yaml
index 659368a4..39914db5 100644
--- a/puppet/services/pacemaker/cinder-volume.yaml
+++ b/puppet/services/pacemaker/cinder-volume.yaml
@@ -54,3 +54,18 @@ outputs:
cinder::host: hostgroup
step_config:
include ::tripleo::profile::pacemaker::cinder::volume
+ upgrade_tasks:
+ - name: Stop cinder_volume service (pacemaker)
+ tags: step1
+ pacemaker_resource:
+ resource: openstack-cinder-volume
+ state: disable
+ wait_for_resource: true
+ - name: Sync cinder DB
+ tags: step5
+ command: cinder-manage db sync
+ - name: Start cinder_volume service (pacemaker)
+ tags: step5
+ pacemaker_resource:
+ resource: openstack-cinder-volume
+ state: enable