Fix IPv6 address format in ProxySQL configuration
This patch resolves an issue where ProxySQL could not bind due to incorrectly formatted IPv6 addresses in the `mysql_ifaces` configuration. The kolla's `put_address_in_context` filter is now used, ensuring the addresses are properly enclosed in square brackets for correct binding. Closes-Bug: #2081106 Change-Id: Ic166b8d9a500023c8d23ec9fee03b28b268b26e7 (cherry picked from commit 12eeccdd91f543dee722f46d3eee6bdf84e543b7) (cherry picked from commit 99e14950e949c29e9515b016a8da3755b3c42841)
This commit is contained in:
parent
cd6ae92feb
commit
c8f81f122c
@ -10,13 +10,13 @@ errorlog: "/var/log/kolla/proxysql/proxysql.log"
|
||||
|
||||
admin_variables:
|
||||
admin_credentials: "{{ proxysql_admin_user }}:{{ proxysql_admin_password }}"
|
||||
mysql_ifaces: "{{ api_interface_address }}:{{ proxysql_admin_port }};{{ kolla_internal_vip_address }}:{{ proxysql_admin_port }};/var/lib/kolla/proxysql/admin.sock"
|
||||
mysql_ifaces: "{{ api_interface_address | put_address_in_context('url') }}:{{ proxysql_admin_port }};{{ kolla_internal_vip_address | put_address_in_context('url') }}:{{ proxysql_admin_port }};/var/lib/kolla/proxysql/admin.sock"
|
||||
stats_credentials: "{{ proxysql_stats_user }}:{{ proxysql_stats_password }}"
|
||||
|
||||
mysql_variables:
|
||||
threads: {{ proxysql_workers }}
|
||||
max_connections: {{ proxysql_max_connections }}
|
||||
interfaces: "{{ kolla_internal_vip_address }}:{{ database_port }}"
|
||||
interfaces: "{{ kolla_internal_vip_address | put_address_in_context('url') }}:{{ database_port }}"
|
||||
monitor_username: "{{ mariadb_monitor_user }}"
|
||||
monitor_password: "{{ mariadb_monitor_password }}"
|
||||
|
||||
|
6
releasenotes/notes/bug-2081106-ef0df790780c612d.yaml
Normal file
6
releasenotes/notes/bug-2081106-ef0df790780c612d.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fix ProxySQL unable to bind due to incorrect format
|
||||
of IPv6 addresses in the `mysql_ifaces` configuration.
|
||||
`LP#2081106 <https://launchpad.net/bugs/2081106>`__
|
Loading…
x
Reference in New Issue
Block a user