aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-06-05 19:26:15 +0000
committerGerrit Code Review <review@openstack.org>2017-06-05 19:26:15 +0000
commitba1dfb216907384ef13b826124b9ff0387a9aefe (patch)
treec30e3634962acf5d3ce6e9ea12e01f0237cbb742
parent4c41280aee32fa9786c9da737fc8fec3909f71b3 (diff)
parent862585bbbcf5a8b9bd171ada44cda90d3600f2d5 (diff)
Merge "Handle upgrading cinder-volume under pacemaker" into stable/ocata
-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 bef47a5..da1e456 100644
--- a/puppet/services/pacemaker/cinder-volume.yaml
+++ b/puppet/services/pacemaker/cinder-volume.yaml
@@ -44,3 +44,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