kolla-ansible/ansible/roles/mariadb/templates/mariadb-clustercheck.json.j2
Michal Nasiadka 5d4e38072d 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
2022-09-06 12:57:56 +02:00

12 lines
422 B
Django/Jinja

{
"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": [
{
"path": "/var/log/kolla/mariadb",
"owner": "mysql:mysql",
"recurse": true
}
]
}