-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explicitly marked cascade deletion as Foreground #16540
Conversation
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure the changes are necessary; the requirement for foreground deletion is for k8s <1.7 which was released mid 2017, and shipped in OKD 3.7, which is no longer supported.
I recall pod orphaning issues coming up a few times in Che's history, but I don't think propagation has been the problem.
Edit: Reading the discussion on #16512, this makes more sense, ignore the comment above. However, I worry that this is solving the problem in an indirect way. We delete secrets directly as far as I can tell -- if the root cause of this issue is that we're trying to create a workspace before the secret is deleted, we could be avoiding the issue with this PR because a foreground delete will take longer (resulting in the workspace being in a STOPPING state for a few seconds longer) -- in other words, unless the secret that isn't being deleted is owned by some other object, I don't know that this PR addresses the issue directly. I'll have to play with the changes directly.
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
❌ E2E Happy path tests failed ❗ See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) ℹ️ |
@mshaposhnik: please, take changes from master branch with fix of Happy path tests. |
@dmytro-ndp ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skabashnyuk LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sense now
...in/java/org/eclipse/che/workspace/infrastructure/kubernetes/namespace/KubernetesSecrets.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1) |
* Explicitly marked cascade deletion as Foreground Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
What does this PR do?
Explicitly marked cascade deletion as Foreground.
My assumption is that reason for #16512 is deleted but not garbage collected objects.
In this PR fabric8io/kubernetes-client#1742 introduced changes in delete behavior. As you can see here #16512 (comment)
Instead of
{"apiVersion":"v1","kind":"DeleteOptions","orphanDependents":false}
it sends now{"apiVersion":"v1","kind":"DeleteOptions","orphanDependents":true}
. This issue was reported here fabric8io/kubernetes-client#1840.After studying this code
I think that instead of trying to revert this behavior we should use new semantic with
propagationPolicy= foreground
since we don't expect some leftovers after we calldelete
operation. See more: https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/#controlling-how-the-garbage-collector-deletes-dependents.What issues does this PR fix or reference?
#16512
Release Notes
n/a
Docs PR
n/a