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 140140# Ensure vSphere is reachable
141141function 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)
You can’t perform that action at this time.
0 commit comments