Skip to content

Commit 3440ba6

Browse files
committed
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>
1 parent 6f1155c commit 3440ba6

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

drivers/vmwarevcloudair/vcloudair.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -409,24 +409,6 @@ func (d *Driver) Create() error {
409409
return err
410410
}
411411

412-
log.Infof("Waiting for SSH...")
413-
414-
if err := ssh.WaitForTCP(fmt.Sprintf("%s:%d", d.PublicIP, d.SSHPort)); err != nil {
415-
return err
416-
}
417-
418-
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 )"
419-
420-
log.Debugf("Connectivity and DNS sanity test...")
421-
cmd, err := drivers.GetSSHCommandFromDriver(d, connTest)
422-
if err != nil {
423-
return err
424-
}
425-
426-
if err := cmd.Run(); err != nil {
427-
return err
428-
}
429-
430412
log.Debugf("Disconnecting from vCloud Air...")
431413

432414
if err = p.Disconnect(); err != nil {

0 commit comments

Comments
 (0)