Merge "Make cinder-manage db sync run on only one controller during upgrade" into stable/ocata

This commit is contained in:
Jenkins 2017-09-18 13:21:08 +00:00 committed by Gerrit Code Review
commit 715738eac8
1 changed files with 13 additions and 7 deletions

View File

@ -51,11 +51,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