Make Cinder access glance in round robin fashion
In the old rendition of this code, Cinder would attempt one access to glance, fail, and then cinder would fail. Now it accesses all servers in round robin fashion. Change-Id: I4759b0b586919b33f49b974312072820062f35c2 Closes-Bug: #1571128
This commit is contained in:
parent
a4104c2aec
commit
aebb1997a1
@ -11,7 +11,9 @@ use_stderr = False
|
||||
enable_v1_api=false
|
||||
volume_name_template = %s
|
||||
|
||||
glance_api_servers = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ glance_api_port }}
|
||||
glance_api_servers = {% for host in groups['glance-api'] %}{{ internal_protocol }}://{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ glance_api_port }}{% if not loop.last %},{% endif %}{% endfor %}
|
||||
|
||||
glance_num_retries = {{ groups['glance-api'] | length }}
|
||||
glance_api_version = 2
|
||||
|
||||
os_region_name = {{ openstack_region_name }}
|
||||
|
Loading…
Reference in New Issue
Block a user