E2E: add debugging outputs for disconnected clients test (#12572)

This test has a failure that's happening only occassionally and not
very reproducibly. Print out the allocation status on test failure so
that we can do some post-mortum debugging of the test on nightly.
This commit is contained in:
Tim Gross 2022-04-14 17:03:57 -04:00 committed by GitHub
parent 267c056e0e
commit d62dd5b3fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,6 +216,13 @@ func waitForAllocStatusMap(jobID, disconnectedAllocID, unchangedAllocID string,
}
}
if merr != nil {
fmt.Printf("test failed, printing allocation status of all %q allocs for analysis\n", jobID)
fmt.Println("----------------")
for _, alloc := range allocs {
out, _ := e2eutil.Command("nomad", "alloc", "status", alloc["ID"])
fmt.Println(out)
fmt.Println("----------------")
}
return false, merr.ErrorOrNil()
}