kubernetes: Failure cluster [6140da15...] e2e Flake: Finished pod is deleted before events can be retrieved

Failure cluster 6140da152b810b30d99b

Error text:
[FAILED] timed out waiting for the condition
In [It] at: test/e2e/node/pods.go:276 @ 01/02/23 10:40:40.11

Recent failures:

1/9/2023, 3:08:19 PM pr:pull-kubernetes-e2e-kind 1/9/2023, 12:37:26 PM pr:pull-kubernetes-e2e-kind-ipv6 1/9/2023, 9:57:40 AM pr:pull-kubernetes-e2e-kind-ipv6 1/6/2023, 6:35:47 PM pr:pull-kubernetes-e2e-kind-ipv6 1/6/2023, 4:48:42 PM pr:pull-kubernetes-e2e-kind-ipv6

/kind failing-test /kind flake

/sig node

Additional Information

It looks like the test does the following:

  1. Creates a pod that has a container that immediately exits (command is /bin/true)
  2. Confirms that the pod has completed successfully
  3. Attempts to read the events for the pod

When this test flakes/fails, it seems like steps 1 and 2 are successful, but it times out on step 3 because apparently the pod no longer exists.

This makes me wonder if, under certain load conditions, the pod GC is cleaning up the terminated pod before step 3 (or even step 2) can do its thing.

It looks like the default value for --terminated-pod-gc-threshold is 12500,

That seems high enough that it would be unlikely that the threshold would be reached (could there really be 12500 completed pods?), but I wonder if something in the e2e tests is lowering it. I noticed this line which sets TERMINATED_POD_GC_THRESHOLD to 100, but that is gce-specific. Is it possible something similar is being set to lower the threshold for the e2e-kind tests? I did a search but didn’t see anywhere that it was being set.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 21 (18 by maintainers)

Most upvoted comments

@ffromani: Closing this issue.

In response to this:

/close

per https://github.com/kubernetes/kubernetes/issues/114971#issuecomment-2718516655

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.