Remove ping, was added in merge conflict
Supposed to be removed in 361222f
, along with
some other random changes to comments and such.
pull/5679/head
parent
3ac263f6e3
commit
47fe5b2822
|
@ -1024,7 +1024,6 @@ func validateNetwork(h *host.Host, r command.Runner) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
tryLookup(r)
|
tryLookup(r)
|
||||||
tryPing(r)
|
|
||||||
tryRegistry(r)
|
tryRegistry(r)
|
||||||
return ip
|
return ip
|
||||||
}
|
}
|
||||||
|
@ -1058,13 +1057,6 @@ func tryLookup(r command.Runner) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func tryPing(r command.Runner) {
|
|
||||||
// Try both UDP and ICMP to assert basic external connectivity
|
|
||||||
if err := r.Run("nslookup k8s.io 8.8.8.8 || nslookup k8s.io 1.1.1.1 || ping -c1 8.8.8.8"); err != nil {
|
|
||||||
out.WarningT("VM is unable to directly connect to the internet: {{.error}}", out.V{"error": err})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func tryRegistry(r command.Runner) {
|
func tryRegistry(r command.Runner) {
|
||||||
// Try an HTTPS connection to the image repository
|
// Try an HTTPS connection to the image repository
|
||||||
proxy := os.Getenv("HTTPS_PROXY")
|
proxy := os.Getenv("HTTPS_PROXY")
|
||||||
|
|
Loading…
Reference in New Issue