From 35a9bfb42e81b0ee0bfbe4ee36797f5e39bb331d Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Mon, 23 Mar 2026 11:47:17 +0000 Subject: [PATCH] Use 'proxysql' hostname in proxysql_servers instead of 127.0.0.1 TAP tests running in the test-runner container query proxysql_servers to find cluster nodes, then connect to them directly. With 127.0.0.1, the test-runner connects to itself instead of the ProxySQL container. Using 'proxysql' (the container hostname) works from both inside the container (resolves via /etc/hosts) and from the test-runner (resolves via Docker DNS on the shared network). --- test/infra/control/start-proxysql-isolated.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/infra/control/start-proxysql-isolated.bash b/test/infra/control/start-proxysql-isolated.bash index 220c31d86..95b6da831 100755 --- a/test/infra/control/start-proxysql-isolated.bash +++ b/test/infra/control/start-proxysql-isolated.bash @@ -156,7 +156,7 @@ if [ "${NUM_NODES}" -gt 0 ]; then PROXYSQL_SERVERS_SQL="DELETE FROM proxysql_servers;" for i in $(seq 1 "${CORE_NODES}"); do PORT=$((6032 + i * 10)) - PROXYSQL_SERVERS_SQL="${PROXYSQL_SERVERS_SQL} INSERT INTO proxysql_servers (hostname,port,weight,comment) VALUES ('127.0.0.1',${PORT},0,'core-node${i}');" + PROXYSQL_SERVERS_SQL="${PROXYSQL_SERVERS_SQL} INSERT INTO proxysql_servers (hostname,port,weight,comment) VALUES ('proxysql',${PORT},0,'core-node${i}');" done # Configure primary @@ -185,7 +185,7 @@ SET admin-restapi_enabled='true'; SET admin-debug='true'; ${PROXYSQL_SERVERS_SQL} -- Also add the primary -INSERT INTO proxysql_servers (hostname,port,weight,comment) VALUES ('127.0.0.1',6032,0,'primary'); +INSERT INTO proxysql_servers (hostname,port,weight,comment) VALUES ('proxysql',6032,0,'primary'); LOAD ADMIN VARIABLES TO RUNTIME; SAVE ADMIN VARIABLES TO DISK; LOAD PROXYSQL SERVERS TO RUNTIME;