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:
parent
267c056e0e
commit
d62dd5b3fe
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue