Use loadbalancer to connect to etcd
Hardcoding the first etcd host creates a single point of failure. Change-Id: I0f83030fcd84ddcdc4bf2226e76605c7cab84cbb
This commit is contained in:
parent
6f536a4f71
commit
e2c7dace44
@ -234,9 +234,8 @@ verify_ssl_path = {{ openstack_cacert }}
|
||||
{% if cinder_coordination_backend == 'redis' %}
|
||||
backend_url = {{ redis_connection_string }}
|
||||
{% elif cinder_coordination_backend == 'etcd' %}
|
||||
# NOTE(yoctozepto): etcd-compatible tooz drivers do not support multiple endpoints here (verified in Stein, Train)
|
||||
# NOTE(yoctozepto): we must use etcd3gw (aka etcd3+http) due to issues with alternative (etcd3) and eventlet (as used by cinder)
|
||||
# see https://bugs.launchpad.net/kolla-ansible/+bug/1854932
|
||||
# and https://review.opendev.org/466098 for details
|
||||
backend_url = etcd3+{{ etcd_protocol }}://{{ 'api' | kolla_address(groups['etcd'][0]) | put_address_in_context('url') }}:{{ etcd_client_port }}
|
||||
backend_url = etcd3+{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ etcd_client_port }}
|
||||
{% endif %}
|
||||
|
@ -79,9 +79,8 @@ dnsmasq_interface = {{ ironic_dnsmasq_interface }}
|
||||
{% if ironic_coordination_backend == 'redis' %}
|
||||
backend_url = {{ redis_connection_string }}
|
||||
{% elif ironic_coordination_backend == 'etcd' %}
|
||||
# NOTE(yoctozepto): etcd-compatible tooz drivers do not support multiple endpoints here (verified in Stein, Train)
|
||||
# NOTE(yoctozepto): we must use etcd3gw (aka etcd3+http) due to issues with alternative (etcd3) and eventlet (as used by cinder)
|
||||
# see https://bugs.launchpad.net/kolla-ansible/+bug/1854932
|
||||
# and https://review.opendev.org/466098 for details
|
||||
backend_url = etcd3+{{ etcd_protocol }}://{{ 'api' | kolla_address(groups['etcd'][0]) | put_address_in_context('url') }}:{{ etcd_client_port }}
|
||||
backend_url = etcd3+{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ etcd_client_port }}
|
||||
{% endif %}
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Services using etcd3gw via tooz now use etcd via haproxy. This removes
|
||||
a single point of failure, where we hardcoded the first etcd host for
|
||||
backend_url.
|
Loading…
Reference in New Issue
Block a user