Adding mariadb_port to wsrep sync status so alterative ports can be used

Closes-Bug: #2024554
Change-Id: Id6eae798784126d4dd53adef15bdce6b47b4601f
This commit is contained in:
Adam Stackhouse 2023-06-21 10:13:23 +01:00
parent e637978e26
commit 842e758221
No known key found for this signature in database
GPG Key ID: 42803222D065361F
3 changed files with 9 additions and 2 deletions

View File

@ -17,7 +17,7 @@
- name: Checking free port for MariaDB - name: Checking free port for MariaDB
wait_for: wait_for:
host: "{{ api_interface_address }}" host: "{{ api_interface_address }}"
port: "{{ database_port }}" port: "{{ mariadb_port }}"
connect_timeout: 1 connect_timeout: 1
timeout: 1 timeout: 1
state: stopped state: stopped

View File

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

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Fixes 2024554.
Adds 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>`__