From 3440ba64fa4206725d32c778c1da17fdc3abb9ff Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 11 Apr 2015 08:11:15 +0200 Subject: [PATCH] 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 --- drivers/vmwarevcloudair/vcloudair.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/drivers/vmwarevcloudair/vcloudair.go b/drivers/vmwarevcloudair/vcloudair.go index a115da8899..3b6df907cd 100644 --- a/drivers/vmwarevcloudair/vcloudair.go +++ b/drivers/vmwarevcloudair/vcloudair.go @@ -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 {