2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-11 02:22:31 +00:00

Improve robustness of Ubuntu net bringup

If using DHCP, have the loop to validate connectivity repeat.
This commit is contained in:
Jarrod Johnson
2025-09-19 15:44:55 -04:00
parent 8911193aca
commit d7879bad5b

View File

@@ -54,10 +54,16 @@ while ! grep NODENAME /custom-installation/confluent/confluent.info; do
echo $NIC > /tmp/autodetectnic
else
configure_networking
for dsrv in $deploysrvs; do
if openssl s_client -connect $dsrv:443 > /dev/null 2>&1; then
deploysrvs=$dsrv
break
while [ -z "$NIC" ]; do
for dsrv in $deploysrvs; do
if openssl s_client -connect $dsrv:443 > /dev/null 2>&1; then
deploysrvs=$dsrv
NIC=1
break
fi
done
if [ -z "$NIC" ]; then
echo "No connectivity to deployment servers, retrying..."
fi
done
fi