Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions hack/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ fi

# Ensure vSphere is reachable
function wait_for_vsphere_reachable() {
echo "# installing tcptraceroute to check route"
{
apt-get update && apt-get install -y tcptraceroute
} > /dev/null

echo "$ ip link"
ip link
echo "$ tcptraceroute ${VSPHERE_SERVER} 443"
tcptraceroute "${VSPHERE_SERVER}" 443

local n=0
until [ $n -ge 300 ]; do
curl -s -v "https://${VSPHERE_SERVER}/sdk" --connect-timeout 2 -k && RET=$? || RET=$?
Expand All @@ -168,15 +178,10 @@ function wait_for_vsphere_reachable() {
echo "Failed to reach https://${VSPHERE_SERVER}/sdk. Retrying in 1s ($n/30)"
sleep 1
done
if [ "$RET" -ne 0 ]; then
# Output some debug information in case of failing connectivity.
echo "$ ip link"
ip link
echo "# installing tcptraceroute to check route"
apt-get update && apt-get install -y tcptraceroute
echo "$ tcptraceroute ${VSPHERE_SERVER} 443"
tcptraceroute "${VSPHERE_SERVER}" 443
fi

echo "$ tcptraceroute ${VSPHERE_SERVER} 443"
tcptraceroute "${VSPHERE_SERVER}" 443

return "$RET"
}
# Only run the boskos/check for IPAM when we need them (not for vcsim)
Expand Down