diff --git a/ansible/roles/mariadb/tasks/restart_services.yml b/ansible/roles/mariadb/tasks/restart_services.yml index 498376f43d..aef0395fad 100644 --- a/ansible/roles/mariadb/tasks/restart_services.yml +++ b/ansible/roles/mariadb/tasks/restart_services.yml @@ -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 diff --git a/releasenotes/notes/bug-2024554-6eb811364536f1e8.yaml b/releasenotes/notes/bug-2024554-6eb811364536f1e8.yaml index 1db1d5a16f..19de8634b4 100644 --- a/releasenotes/notes/bug-2024554-6eb811364536f1e8.yaml +++ b/releasenotes/notes/bug-2024554-6eb811364536f1e8.yaml @@ -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 `__