diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-08-18 02:23:17 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-08-18 02:23:17 +0000 |
commit | f5bd6f997b728ee51e5cceee635757f692756bc7 (patch) | |
tree | efff7e30529d0d23289d3f8797463869cbeb6540 /puppet | |
parent | 4207a03b4c9866b7d1fb23eca33172592009269b (diff) | |
parent | 42d8a1c9440d4f37830bdcbda9c88a6bf39265f5 (diff) |
Merge "Make cinder-manage db sync run on only one controller during upgrade"
Diffstat (limited to 'puppet')
-rw-r--r-- | puppet/services/pacemaker/cinder-volume.yaml | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/puppet/services/pacemaker/cinder-volume.yaml b/puppet/services/pacemaker/cinder-volume.yaml index a1134f3e..f4675875 100644 --- a/puppet/services/pacemaker/cinder-volume.yaml +++ b/puppet/services/pacemaker/cinder-volume.yaml @@ -66,11 +66,17 @@ outputs: resource: openstack-cinder-volume state: disable wait_for_resource: true - - name: Sync cinder DB + - name: get bootstrap nodeid tags: step5 - command: cinder-manage db sync - - name: Start cinder_volume service (pacemaker) - tags: step5 - pacemaker_resource: - resource: openstack-cinder-volume - state: enable + command: hiera bootstrap_nodeid + register: bootstrap_node + - block: + - 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 + when: bootstrap_node.stdout == ansible_hostname |