Fix keystone configuration for haproxy.

* Use proper balancing mode when federation is enabled.

Closes-Bug: #2058656
Change-Id: Ia81a6efc38ec2bdc1355d058c03568cf740fdac5
This commit is contained in:
Gaël THEROND (Fl1nt) 2024-03-21 15:32:39 +01:00 committed by Gaël THEROND
parent 86873f4ccd
commit 33d03a4267
2 changed files with 9 additions and 2 deletions

View File

@ -16,7 +16,8 @@ keystone_services:
tls_backend: "{{ keystone_enable_tls_backend }}"
port: "{{ keystone_internal_port }}"
listen_port: "{{ keystone_internal_listen_port }}"
backend_http_extra: "{{ ['balance source'] if enable_keystone_federation | bool else [] }}"
backend_http_extra:
- balance "{{ 'source' if enable_keystone_federation | bool else 'roundrobin' }}"
keystone_external:
enabled: "{{ enable_keystone }}"
mode: "http"
@ -25,7 +26,8 @@ keystone_services:
tls_backend: "{{ keystone_enable_tls_backend }}"
port: "{{ keystone_public_port }}"
listen_port: "{{ keystone_public_listen_port }}"
backend_http_extra: "{{ ['balance source'] if enable_keystone_federation | bool else [] }}"
backend_http_extra:
- balance "{{ 'source' if enable_keystone_federation | bool else 'roundrobin' }}"
keystone-ssh:
container_name: "keystone_ssh"
group: "keystone"

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes keystone service configuration for haproxy when using federation.
`LP#2058656 <https://bugs.launchpad.net/kolla-ansible/+bug/2058656>`__