Fix condition when to create backends
Backend creation should happen on the last host in the group, instead of the first one, since we put LB in MAINT state during deployment, while other containers are not ready yet. Thus we should be creating backends at the very end of the deployment, when all containers are set. Change-Id: I3d5811e059d1b5cb3e87fe7657872e41105c832e Closes-Bug: #1920964
This commit is contained in:
parent
145905d26b
commit
91fef6b5cc
@ -197,6 +197,6 @@
|
||||
- import_tasks: cinder_backends.yml
|
||||
when:
|
||||
- "groups[cinder_services['cinder-volume']['group']] | length > 0"
|
||||
- "_cinder_is_first_play_host"
|
||||
- "_cinder_is_last_play_host"
|
||||
tags:
|
||||
- cinder-config
|
||||
|
@ -14,6 +14,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
_cinder_is_first_play_host: "{{ (cinder_services['cinder-api']['group'] in group_names and inventory_hostname == (groups[cinder_services['cinder-api']['group']] | intersect(ansible_play_hosts)) | first) | bool }}"
|
||||
_cinder_is_last_play_host: "{{ (cinder_services['cinder-api']['group'] in group_names and inventory_hostname == (groups[cinder_services['cinder-api']['group']] | intersect(ansible_play_hosts)) | last) | bool }}"
|
||||
|
||||
_cinder_rootwrap_conf_overrides:
|
||||
DEFAULT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user