kubernetes: HostPathType Socket e2e tests hang on containerd
What happened: Once we switched over the default runtime to containerd, the slow ci and pull jobs started timing out. The tests, which used to take 13 minutes, jumped to 30 minutes. https://github.com/kubernetes/kubernetes/issues/92045
This increase in test time is only observed in the slow job, so I suspect the slow job is exercising some functionality that may not be exercised as frequently in the other jobs.
What you expected to happen: No performance regression
How to reproduce it (as minimally and precisely as possible): Run the tests in the slow job with containerd
Anything else we need to know?:
Environment:
- Kubernetes version (use
kubectl version): - Cloud provider or hardware configuration:
- OS (e.g:
cat /etc/os-release): - Kernel (e.g.
uname -a): - Install tools:
- Network plugin and version (if this is a network-related bug):
- Others:
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21 (21 by maintainers)
The test logs don’t seem to show up in the artifacts. Running it manually, I see it hung on the exec during BeforeEach():
However when I do this manually using “kubectl exec” it is fine.
I have opened https://github.com/kubernetes/kubernetes/pull/92205 to fix the tests.
We have a similar issue with CRI-O. I agree with @Random-Liu that we should define this clearly and meanwhile setting a timeout makes sense.
https://github.com/kubernetes/kubernetes/issues/92057#issuecomment-644485839
This seems to be a known issue. If an exec:
It is arguable a bug in containerd, and the behavior of background process spawned by exec was never clearly defined. We’ve seen several production issues caused by this.
Maybe we should:
ExecSynctimeout is supported by many runtimes, but kubelet doesn’t pass a proper value right now. https://github.com/kubernetes/kubernetes/blob/v1.19.0-beta.2/pkg/kubelet/lifecycle/handlers.go#L63i can easily recreate the problem locally using kubetest + local-up-cluster.sh running against containerd.