Fix wsrep sync status task while switched to TCP/IP

Followup on Id6eae798784126d4dd53adef15bdce6b47b4601f to fix an issue
when a client with provided port set tries to connect 'localhost', so
while we switch to TCP/IP we need to explicitly provide the host too.

Partial-Bug: #2024554
Change-Id: Ib08c159dadd69a1f44924d658f4afe1e794a18b0
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
This commit is contained in:
Maksim Malchuk 2023-12-03 00:46:40 +03:00
parent 842e758221
commit 35c7a9eb9d
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,8 @@
become: true
command: >-
{{ kolla_container_engine }} exec {{ mariadb_service.container_name }}
mysql -uroot -p{{ database_password }} -P {{ mariadb_port }}
mysql -uroot -p{{ database_password }}
-h {{ api_interface_address }} -P {{ mariadb_port }}
--silent --skip-column-names
-e 'SHOW STATUS LIKE "wsrep_local_state_comment"'
changed_when: false

View File

@ -2,6 +2,6 @@
fixes:
- |
Fixes 2024554.
Adds mariadb_port to the wsrep sync status check.
Adds host and ``mariadb_port`` to the wsrep sync status check.
This is so none standard ports can be used for mariadb deployments.
`LP#2024554 <https://launchpad.net/bugs/2024554>`__