topgun: debug ping timeouts even harder
@@ -6,6 +6,7 @@ import (
"database/sql"
"fmt"
"io/ioutil"
+ "log"
"net/http"
"os"
"path/filepath"
@@ -217,6 +218,9 @@ func Deploy(manifest string, args ...string) {
if strings.Contains(string(deploy.Out.Contents()), "Timed out pinging") {
fmt.Fprintln(GinkgoWriter, "detected ping timeout; dumping vm info...")
bosh("vms")
+ log.Println("SLEEPING TO DEBUG PING TIMEOUT")
+ log.Printf("DEPLOY OUTPUT:\n%s\n", deploy.Out.Contents())
+ time.Sleep(24 * time.Hour)
Fail("deploy failed due to ping timeout; possible iaas flake")
}
