Skip to content
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

Helm delete doesn't support tolerations/affinities #1504

Closed
bburghaus opened this issue Apr 30, 2020 · 2 comments · Fixed by #1521
Closed

Helm delete doesn't support tolerations/affinities #1504

bburghaus opened this issue Apr 30, 2020 · 2 comments · Fixed by #1521
Labels
area/operations Installation, updating, metrics etc kind/bug These are bugs.
Milestone

Comments

@bburghaus
Copy link
Contributor

What happened:
Helm delete will fail due to the job created by hook script pre_delete_hook.yaml if there are tolerations/affinities.

What you expected to happen:
Successful release deletion when running helm delete.

How to reproduce it (as minimally and precisely as possible):
Add tolerations/affinities to cluster, run helm delete.

Environment:

  • Agones version: 1.4.0
  • Kubernetes version (use kubectl version): 1.14
  • Cloud provider or hardware configuration:
  • Install method (yaml/helm): helm
  • Troubleshooting guide log(s):
  • Others:
@bburghaus bburghaus added the kind/bug These are bugs. label Apr 30, 2020
@aLekSer
Copy link
Collaborator

aLekSer commented May 6, 2020

@bburghaus Can you please provide details on what kind of tolerations do you use? Did you put them on GameServers?
There is a script which actually waits for all pods used by GameServers to be deleted install/helm/agones/scripts/delete_agones_resources.sh so it seems that this final step got stuck.
There was an issue with helm delete --purge agones time out and then helm install .. gives:

Release "agones" does not exist. Installing it now.
Error: release agones failed: object is being deleted: customresourcedefinitions.apiextensions.k8s.io "gameservers.agones.dev" already exists                                                            
make: *** [install] Error 1

In that case patching helps:

 $ kubectl patch crd/gameservers.agones.dev  -p '{"metadata":{"finalizers":[]}}' --type=merge

@bburghaus
Copy link
Contributor Author

Hey @aLekSer, the issue is that all our nodes have taints so the job pod itself cannot be scheduled and the delete hits a timeout.

We could use either --no-hooks as a solution or agones.crds.cleanupOnDelete=false, though we want to be able to have the cleanup. We did also remove the finalizers in order to make it work.

The job should take them as separate parameters, or re-use controller tolerations/affinities.

@markmandel markmandel added this to the 1.6.0 milestone May 19, 2020
@markmandel markmandel added the area/operations Installation, updating, metrics etc label May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/operations Installation, updating, metrics etc kind/bug These are bugs.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants