Skip to content

Commit d80981b

Browse files
test: Detect flakes caused by container teardown races on CRI
CRI returns a different reason than the dockershim, and we must also catch the symptoms of kubernetes#88766 in that environment.
1 parent 672aa55 commit d80981b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/node/pods.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ var _ = SIGDescribe("Pods Extended", func() {
350350
switch {
351351
case t.ExitCode == 1:
352352
// expected
353-
case t.ExitCode == 128 && t.Reason == "ContainerCannotRun" && reBug88766.MatchString(t.Message):
353+
case t.ExitCode == 128 && (t.Reason == "StartError" || t.Reason == "ContainerCannotRun") && reBug88766.MatchString(t.Message):
354354
// pod volume teardown races with container start in CRI, which reports a failure
355355
framework.Logf("pod %s on node %s failed with the symptoms of https://github.com/kubernetes/kubernetes/issues/88766")
356356
default:

0 commit comments

Comments
 (0)