You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Helm doesn't cleanup on unsuccessful deployments #3338
After encountering an error during install/upgrade helm doesn't clean after itself (that is operation isn't atomic), which forces me to clean manually each time during testing. Also, that deployment name isn't registered, thus I cannot use helm delete --purge <name>
Reacted by Bartek Antoniak, Cathal Conroy, Patrick Lee Scott, Lachlan Cooper, @alexcleac, Andriy Kushnir, Cédric de Saint Martin, Marcel Michelfelder, Pariwat Ramphuengnit and Erik Sundell
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale
Yes, it would be nice. The most common case when an update fails is when cluster IP is changed to NodePort or things like that in services. ((IIRC)). The usual solution is to perform rollback with --force
I hit this error frequently. An install fails and then I make some changes to my config and try to install again but hit errors complaining about how many pods/configmaps etc already exist. When you run helm list it doesn't list any failed or successful deployments so then I have to go and cleanup everything manually. If an install fails it should definitely rollback the changes it has already made not leave a half installed helm chart.
Reacted by jibinjohnbabu, Martin Jambon and Alan Chen
@jibinjohnbabu that doesn't work when helm doesn't appear in the releases and leaves the cluster in an unclean state. Which is what this whole git issue is about.
Well, as far as I understand things, this feature must be ported to dev-v3 branch. Should it be done related to different issue? Or maybe this one shouls be reopened?
@cleac I think this was more targeted to Helm 2. @adamreese should we put something on the project board?
In the meantime, feel free to work on the port if you were planning on doing so, we won't block opening a PR just because there isn't an issue for it 🙂
Can a new status code be added to programmatically know that a chart was reverted? Reporting “1” as before does not provide proper understandings of what that has happened.
Activity
nmiculinic commentedon Jan 12, 2018
Also this is related to following bug..if the release name has _ in it, things break. (e.g. sss_ss breaks )
antoniaklja commentedon Jan 12, 2018
Would be nice to make helm install/upgrade transactional for entire chart.
Maybe even
--rollbackparameter.What do you think?
fejta-bot commentedon Apr 12, 2018
Issues go stale after 90d of inactivity.
Mark the issue as fresh with
/remove-lifecycle stale.Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with
/close.Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale
nmiculinic commentedon Apr 13, 2018
/remove-lifecycle stale
Yes, it would be nice. The most common case when an update fails is when cluster IP is changed to NodePort or things like that in services. ((IIRC)). The usual solution is to perform rollback with
--forcedpepper commentedon May 3, 2018
I hit this error frequently. An install fails and then I make some changes to my config and try to install again but hit errors complaining about how many pods/configmaps etc already exist. When you run helm list it doesn't list any failed or successful deployments so then I have to go and cleanup everything manually. If an install fails it should definitely rollback the changes it has already made not leave a half installed helm chart.
jibinjohnbabu commentedon Jul 25, 2018
This issue is frustrating, Why do helm charts gets installed partially , when the whole chart isn't perfect? Any work around commands for this?
ERR : Error: release t1 failed: storageclasses.storage.k8s.io "xxxxx" already exists
ysaakpr commentedon Jul 26, 2018
this is horrible....getting pissed off...most of the time i have delete and re install...thats not a trivial solution. Anyone have any other approach
jibinjohnbabu commentedon Jul 26, 2018
@ysaakpr
if you want to make changes to the release use,
also , below command is useful to delete the full release itself
3. helm del --purge xyz
--Thanks
dpepper commentedon Jul 26, 2018
@jibinjohnbabu that doesn't work when helm doesn't appear in the releases and leaves the cluster in an unclean state. Which is what this whole git issue is about.
dpepper commentedon Jul 26, 2018
@bacongobbler why is this labelled as a feature? It's a bug.
desaintmartin commentedon Jan 10, 2019
Although I am affected by this bug, I can run
helm delete --purge $name. Is that related to this_thing?4 remaining items
[helm#3338] Rename "safe" to "atomic" which gives more clear understa…
[helm#3338] Rename "safe" to "atomic" which gives more clear understa…
[helm#3338] Rename "safe" to "atomic" which gives more clear understa…
[helm#3338] Rename "safe" to "atomic" which gives more clear understa…
Merge pull request #5143 from cleac/master
cleac commentedon Jan 29, 2019
Well, as far as I understand things, this feature must be ported to
dev-v3branch. Should it be done related to different issue? Or maybe this one shouls be reopened?thomastaylor312 commentedon Jan 29, 2019
@cleac I think this was more targeted to Helm 2. @adamreese should we put something on the project board?
In the meantime, feel free to work on the port if you were planning on doing so, we won't block opening a PR just because there isn't an issue for it 🙂
Remove #ready? method in favor of #available?
Remove #ready? method in favor of #available?
[helm#3338] Rename "safe" to "atomic" which gives more clear understa…
Merge pull request helm#5143 from cleac/master
IdanAdar commentedon Apr 11, 2019
Can a new status code be added to programmatically know that a chart was reverted? Reporting “1” as before does not provide proper understandings of what that has happened.
fix(chart): keep PVC across helm uninstall to break install retry loop
fix(chart): keep PVC across helm uninstall to break install retry loop (