mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
drivers/vcloudair: don't test connectivity
VMWare VCloudAir driver is the only one taking an extra step to test connectivity after machine creation. If this is a desirable step, it should be done for all drivers in libmachine directly. Signed-off-by: Vincent Bernat <Vincent.Bernat@exoscale.ch>
This commit is contained in:
@@ -409,24 +409,6 @@ func (d *Driver) Create() error {
|
||||
return err
|
||||
}
|
||||
|
||||
log.Infof("Waiting for SSH...")
|
||||
|
||||
if err := ssh.WaitForTCP(fmt.Sprintf("%s:%d", d.PublicIP, d.SSHPort)); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
connTest := "ping -c 3 www.google.com >/dev/null 2>&1 && ( echo \"Connectivity and DNS tests passed.\" ) || ( echo \"Connectivity and DNS tests failed, trying to add Nameserver to resolv.conf\"; echo \"nameserver 8.8.8.8\" >> /etc/resolv.conf )"
|
||||
|
||||
log.Debugf("Connectivity and DNS sanity test...")
|
||||
cmd, err := drivers.GetSSHCommandFromDriver(d, connTest)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := cmd.Run(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
log.Debugf("Disconnecting from vCloud Air...")
|
||||
|
||||
if err = p.Disconnect(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user