File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 140
140
# Ensure vSphere is reachable
141
141
function wait_for_vsphere_reachable() {
142
142
local n=0
143
- until [ $n -ge 30 ]; do
143
+ until [ $n -ge 300 ]; do
144
144
curl -s -v " https://${VSPHERE_SERVER} /sdk" --connect-timeout 2 -k && RET=$? || RET=$?
145
145
if [[ " $RET " -eq 0 ]]; then
146
146
break
@@ -149,6 +149,15 @@ function wait_for_vsphere_reachable() {
149
149
echo " Failed to reach https://${VSPHERE_SERVER} /sdk. Retrying in 1s ($n /30)"
150
150
sleep 1
151
151
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
152
161
return " $RET "
153
162
}
154
163
# Only run the boskos/check for IPAM when we need them (not for vcsim)
You can’t perform that action at this time.
0 commit comments