pull/9043/head
Medya Gh 2020-08-21 15:10:15 -07:00
parent ba04b8bef9
commit 9ab2040be9
1 changed files with 2 additions and 1 deletions

View File

@ -371,7 +371,7 @@ func startHost(api libmachine.API, cc *config.ClusterConfig, n *config.Node, del
if err == nil {
return host, exists, nil
}
glog.Warningf("error starting host: %v", err)
// NOTE: People get very cranky if you delete their prexisting VM. Only delete new ones.
if !exists {
err := machine.DeleteHost(api, driver.MachineName(*cc, *n))
@ -386,6 +386,7 @@ func startHost(api libmachine.API, cc *config.ClusterConfig, n *config.Node, del
}
out.ErrT(out.Embarrassed, "StartHost failed, but will try again: {{.error}}", out.V{"error": err})
glog.Info("Will try again in 5 seconds ...")
// Try again, but just once to avoid making the logs overly confusing
time.Sleep(5 * time.Second)