Skip to content

Commit 1a4a475

Browse files
authored
Merge pull request #3517 from chrischdi/pr-debug-mtu-to-vsphere
🌱 hack: debug vsphere connectivity
2 parents ec48ec6 + e7c4ee0 commit 1a4a475

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

hack/e2e.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ fi
140140
# Ensure vSphere is reachable
141141
function wait_for_vsphere_reachable() {
142142
local n=0
143-
until [ $n -ge 30 ]; do
143+
until [ $n -ge 300 ]; do
144144
curl -s -v "https://${VSPHERE_SERVER}/sdk" --connect-timeout 2 -k && RET=$? || RET=$?
145145
if [[ "$RET" -eq 0 ]]; then
146146
break
@@ -149,6 +149,15 @@ function wait_for_vsphere_reachable() {
149149
echo "Failed to reach https://${VSPHERE_SERVER}/sdk. Retrying in 1s ($n/30)"
150150
sleep 1
151151
done
152+
if [ "$RET" -ne 0 ]; then
153+
# Output some debug information in case of failing connectivity.
154+
echo "$ ip link"
155+
ip link
156+
echo "# installing tcptraceroute to check route"
157+
apt-get update && apt-get install -y tcptraceroute
158+
echo "$ tcptraceroute ${VSPHERE_SERVER} 443"
159+
tcptraceroute "${VSPHERE_SERVER}" 443
160+
fi
152161
return "$RET"
153162
}
154163
# Only run the boskos/check for IPAM when we need them (not for vcsim)

0 commit comments

Comments
 (0)