kubernetes: Multiple service delete with Foreground propagation policy results in hanging services
What happened:
Observed on minikube 1.9.2
with kubernetes 1.18
. When I do multiple service delete requests with propagationPolicy: Foreground
, some services are not deleted, only finalizer
and deletionTimestamp
is applied.
What you expected to happen: All services that were requested to delete are actually deleted.
How to reproduce it (as minimally and precisely as possible):
https://gist.github.com/sparkoo/21fc1ef85872d2919f73e9d03f06693e
this script creates 10 services, then sends delete request with curl to all of them. It uses localhost:8088 so run kubectl proxy --port=8088
first and also create test
namespace.
Anything else we need to know?:
I think this issue might be related https://github.com/kubernetes/kubernetes/issues/87603. We’ve discovered the issue in Eclipse Che project https://github.com/eclipse/che/issues/16610 and fixed it by changing policy to Background
, which works fine.
Environment:
- Kubernetes version (use
kubectl version
):
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:50:46Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}
- 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: minikube 1.9.2
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 17 (10 by maintainers)
I now checked and I can confirm that this issue is fixed by #91311 in the master branch (and v1.19.0), release-1.18 cherry-pick is opened today - #94253.
I also hit the issue. Using the script to reproduce against minikube v1.18.5, all svcs hang in deletion: