From 5d4e38072d442f810b5446c03d7a67432af7217e Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Tue, 6 Sep 2022 12:56:00 +0200 Subject: [PATCH] mariadb: Add reuseaddr to socat execution Sometimes in CI we're seeing Address already in use on clustercheck restarts. Adding reuseaddr that allows immediate restart of the server process. Change-Id: Ib1c9dcf99381b6b9d1095f450d74c797d39f4cb2 --- ansible/roles/mariadb/templates/mariadb-clustercheck.json.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/mariadb/templates/mariadb-clustercheck.json.j2 b/ansible/roles/mariadb/templates/mariadb-clustercheck.json.j2 index 38af51c016..7e273d8887 100644 --- a/ansible/roles/mariadb/templates/mariadb-clustercheck.json.j2 +++ b/ansible/roles/mariadb/templates/mariadb-clustercheck.json.j2 @@ -1,5 +1,5 @@ { - "command": "socat {% if network_address_family == 'ipv6' %}-6{% endif %} -d -lf/var/log/kolla/mariadb/mariadb-clustercheck.log tcp-l:{{ mariadb_clustercheck_port }},fork,bind={{ api_interface_address }} EXEC:clustercheck", + "command": "socat {% if network_address_family == 'ipv6' %}-6{% endif %} -d -lf/var/log/kolla/mariadb/mariadb-clustercheck.log tcp-l:{{ mariadb_clustercheck_port }},fork,reuseaddr,bind={{ api_interface_address }} EXEC:clustercheck", "config_files": [], "permissions": [ {