mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-11 09:53:38 -04:00
Merge pull request #137749 from dims/dsrinivas/issue-135713-pod-status-exit-2
test/e2e/node: tolerate exit code 2 in pod status flake
This commit is contained in:
commit
0e71d2d28f
1 changed files with 5 additions and 0 deletions
|
|
@ -1015,6 +1015,11 @@ func (v *podStartVerifier) Verify(event watch.Event) error {
|
|||
switch {
|
||||
case t.ExitCode == 1:
|
||||
// expected
|
||||
case t.ExitCode == 2 && t.Reason == "Error" && t.Message == "":
|
||||
// Some runtimes occasionally surface exit code 2 if stopped before execve makes
|
||||
// it to launching /bin/false in fast-delete scenarios. The test only cares
|
||||
// that the container failed.
|
||||
framework.Logf("pod %s on node %s failed with the symptoms of https://github.com/kubernetes/kubernetes/issues/135713", pod.Name, pod.Spec.NodeName)
|
||||
case t.ExitCode == 137 && (t.Reason == "ContainerStatusUnknown" || t.Reason == "Error"):
|
||||
// expected, pod was force-killed after grace period
|
||||
case t.ExitCode == 128 && (t.Reason == "StartError" || t.Reason == "ContainerCannotRun") && reBug88766.MatchString(t.Message):
|
||||
|
|
|
|||
Loading…
Reference in a new issue