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
As of helm v2.7.1, after updating tiller, running helm upgrade --install flag no longer works. The following error is displayed: Error: UPGRADE FAILED: "${RELEASE}" has no deployed releases. Downgrading to v2.7.0 or v2.6.2 does not produce the error.
Reacted by Justin Domingus, zx8, Tamura Yoshiya, Paweł Rein, Saj Goonatilleke, Jeff White, George Christou, htch, Erik Sundell, Pierre Ozoux and 47 more
I thought I was experiencing the same problem, but it turned out I just had an old delete (but not purged), release hanging around. check helm list -a , and if your release is there, helm delete --purge releasename. helm upgrade -i is working successfully on 2.7.2 for me.
Reacted by Cory Klein, prezly-github-bot, Adam Jaffe, Greg Konradt, Spyros Mandekis, Frank DiRocco, Daniel Alder (formerly Hnyk), Kostas Demiris, Daniel Mahlow, Miklos Vincze and 174 more
Reacted by Luis Alfredo Lorenzo, Daniel Gartmann, Junaid Ali, loganhenderson, Marc Cortinas, sdkks, Nikola Sepentulevski, Pavel Sadikov, ₿eeant, Morgan Connolly and 6 more
Reacted by Erik Sundell, prezly-github-bot, Adam Jaffe, Daniel Alder (formerly Hnyk), Abhishek Agarwal, Etienne Dilocker, Chris Atomix, Dane, Pedro Fadel, Piotr Gospodarek and 30 more
Reacted by Erik Sundell, Franz Eichhorn, Adam Jaffe, Daniel Alder (formerly Hnyk), Aengus Walton, Etienne Dilocker, Chris Atomix, Kai Schmidt, Pedro Fadel, SachinHg and 26 more
Reacted by Daniel Rejniak, loganhenderson, Marc Cortinas, sdkks, Felipe Girotti, Valentin LANDEMAINE, Nikola Sepentulevski, Shota Terashita, Morgan Connolly, Bhavesh Sethi and 4 more
Reacted by assaf, Morgan Connolly, Ole Reidar Holm and Jithin Zachariah
This is a side-effect of fixing issues around upgrading releases that were in a bad state. #3097 was the PR that fixed this issue. Is there an edge case here that we failed to catch?
Check helm list -a as @tcolgate mentioned, perhaps also explaining how to reproduce it would also be helpful to determine if it's an uncaught edge case or a bug.
Reacted by Milad, Serhii Vasyliev, Dustin Mowcomber and Aleksey Koloskov
Reacted by Serhii Vasyliev, Dustin Mowcomber and pupukung2007
I mean in the previous upgrade attempts that ended up in a FAILED status. I want to know how we get into the situation where all releases are in a failed state.
Ohh, the duplicate release name deployments? That I'm not sure, I get it quite often. Sometimes they are all in a DEPLOYED state, sometimes a mix of FAILED and DEPLOYED. We use a CI/CD Jenkins server that constantly updates every PR merge so we do several helm upgrade's a day, typically only having a new container tag. Usually the duplicates are just annoying when looking at whats deployed, this was the first time we had a hard issue with them, and normally we don't upgrade the ingress controller as we were in this case.
I seem to have ended up with something similar, I see a few duplicates in my releases lists:
$ helm ls
NAME REVISION UPDATED STATUS CHART NAMESPACE
.....
front-prod 180 Tue Dec 5 17:28:22 2017 DEPLOYED front-1 prod
front-prod 90 Wed Sep 13 14:36:06 2017 DEPLOYED front-1 prod
...
All of them seem to be in a DEPLOYED state, but it could well be that a previous upgrade failed at some point, as I have hit that bug several times. I am still on K8S 1.7, so have not updated to helm 2.7 yet.
Reacted by Tobias L. Maier, Shalin Patel, leigh capili, Daniel Jay Haskin, Mike Dite, Malte Finsterwalder, jPrest, notque, Peter Cummuskey, Jace Warren and 11 more
Same here using 2.7.2. The first attempt of a release was failed. Then when I tried an upgrade --install I've got the error "Error: UPGRADE FAILED: "${RELEASE}" has no deployed releases".
If the release is entirely purged with helm del --purge APPNAME then a subsequent upgrade --install works ok.
Reacted by leigh capili, Daniel Mahlow, Martin Liu, Ifeanyi, Malte Finsterwalder, tddt, Mikhail Shcherbinin, Attila Nagy, Mykhailo Havelia, hitochan777 and 26 more
Reacted by 刘智杰, Horia, Shanaka Aponso, (Frank) Yu Cheng Gu, Joost van der Griendt, Aaron France, collins-b, Jonathan Bass, Maria Clara, Smaine Kahlouch and 1 more
I'm experiencing the same problem. Combined with #3134 that leaves no option for automated idempotent deployments without some scripting to workaround.
@winjer just tried deleting with --purge and for me it didn't work although the error changed
/ # helm upgrade foo /charts/foo/ -i --wait
Error: UPGRADE FAILED: "foo" has no deployed releases
/ # helm delete --purge foo
release "foo" deleted
/ # helm upgrade foo /charts/foo/ -i --wait
Release "foo" does not exist. Installing it now.
Error: release foo failed: deployments.extensions "foo-foo-some-service-name" already exists
Reacted by Mauricio Scheffer, Olve Hansen, karunasoft, Steven Klar and Vitalii Diravka
@thomastaylor312, we faced this issue as well as #2426 (up: I found the real root cause for 2426) with helm 2.11.0. Do you think they should be reopened?
I found this thread after a Error: UPGRADE FAILED: "xxx-service" has no deployed releases
While it was visible from a helm ls -a.
I decided to see if it was an issue because of an incorrect --set value, and --debug --dry-run --force actually STILL deleted my running pod ... my expectation was that a dry run action would NEVER modify cluster resources.
It did work though, and the service could be redeployed afterwards, but we experienced downtime.
@gerbsen, there isn't a way around this with current versions of Helm that is non-destructive.
We still use Helm 2.7.0 for everything in my org. It is a very old version that has other bugs, but it does not have this issue.
Just had helm upgrade --install --force do a delete --purge and destroy my pvc/pv without telling me (on recycling). Had several failed releases, so it was in a state it was running in kubernetes, but helm thought there were no running releases. Not good times at all.
Reacted by Slimior, Alessandro Tagliapietra, Niels Krijger, Jesse Stuart, yevhenvolchenko, Fabian Wallwitz, Bohdan Yurov, Thuan Duong and Craig Johnston
Reacted by Michael Fry, Fabian Wallwitz, Mark Massoud, marcin, Daniel Karnutsch and Lior Rozen
@notque after losing all grafana dashboard twice I've started doing backups before doing any kind of upgrade, having this kind of risk removes all the benefits of using helm
Reacted by Richard Donkin, Peter Cummuskey, Lukas Beranek, Fabrizio Lazzaretti, Jesse Stuart, Yevhen Lukin, Chris McGrath, Suleyman Akbas, Felix, Piotr Joński and 16 more
Activity
[-]helm update --install no longer works[/-][+]helm upgrade --install no longer works[/+]tcolgate commentedon Nov 30, 2017
I thought I was experiencing the same problem, but it turned out I just had an old delete (but not purged), release hanging around. check helm list -a , and if your release is there, helm delete --purge releasename.
helm upgrade -iis working successfully on 2.7.2 for me.bacongobbler commentedon Nov 30, 2017
This is a side-effect of fixing issues around upgrading releases that were in a bad state. #3097 was the PR that fixed this issue. Is there an edge case here that we failed to catch?
Check
helm list -aas @tcolgate mentioned, perhaps also explaining how to reproduce it would also be helpful to determine if it's an uncaught edge case or a bug.TD-4242 commentedon Nov 30, 2017
Also having the same problem, along with duplicate release names:
bacongobbler commentedon Nov 30, 2017
When you were upgrading, what message was displayed?
TD-4242 commentedon Nov 30, 2017
same error as the diff above, but an install would say it was already installed.
bacongobbler commentedon Nov 30, 2017
I mean in the previous upgrade attempts that ended up in a FAILED status. I want to know how we get into the situation where all releases are in a failed state.
TD-4242 commentedon Dec 1, 2017
Ohh, the duplicate release name deployments? That I'm not sure, I get it quite often. Sometimes they are all in a DEPLOYED state, sometimes a mix of FAILED and DEPLOYED. We use a CI/CD Jenkins server that constantly updates every PR merge so we do several
helm upgrade's a day, typically only having a new container tag. Usually the duplicates are just annoying when looking at whats deployed, this was the first time we had a hard issue with them, and normally we don't upgrade the ingress controller as we were in this case.bcorijn commentedon Dec 5, 2017
I seem to have ended up with something similar, I see a few duplicates in my releases lists:
All of them seem to be in a DEPLOYED state, but it could well be that a previous upgrade failed at some point, as I have hit that bug several times. I am still on K8S 1.7, so have not updated to helm 2.7 yet.
s4nch3z commentedon Dec 13, 2017
Same issue, can't upgrade over FAILED deploy
aelbarkani commentedon Dec 15, 2017
Same here using 2.7.2. The first attempt of a release was failed. Then when I tried an upgrade --install I've got the error "Error: UPGRADE FAILED: "${RELEASE}" has no deployed releases".
winjer commentedon Dec 17, 2017
Same problem here with 2.7.2,
helm upgrade --installfails with:winjer commentedon Dec 17, 2017
If the release is entirely purged with
helm del --purge APPNAMEthen a subsequentupgrade --installworks ok.prein commentedon Dec 18, 2017
I'm experiencing the same problem. Combined with #3134 that leaves no option for automated idempotent deployments without some scripting to workaround.
@winjer just tried deleting with --purge and for me it didn't work although the error changed
/ # helm upgrade foo /charts/foo/ -i --wait
Error: UPGRADE FAILED: "foo" has no deployed releases
/ # helm delete --purge foo
release "foo" deleted
/ # helm upgrade foo /charts/foo/ -i --wait
Release "foo" does not exist. Installing it now.
Error: release foo failed: deployments.extensions "foo-foo-some-service-name" already exists
32 remaining items
KIVagant commentedon Oct 8, 2018
I am curious, if Helm can't deploy a chart over existing resources so why
helm deletecauses deleting exactly these resources?KIVagant commentedon Oct 8, 2018
@thomastaylor312, we faced this issue
as well as #2426(up: I found the real root cause for 2426) with helm 2.11.0. Do you think they should be reopened?krishofmans commentedon Oct 30, 2018
I found this thread after a
Error: UPGRADE FAILED: "xxx-service" has no deployed releasesWhile it was visible from a helm ls -a.
I decided to see if it was an issue because of an incorrect --set value, and --debug --dry-run --force actually STILL deleted my running pod ... my expectation was that a dry run action would NEVER modify cluster resources.
It did work though, and the service could be redeployed afterwards, but we experienced downtime.
stealthybox commentedon Nov 13, 2018
This is a fair expectation -- we should make that... not happen
bacongobbler commentedon Nov 13, 2018
I believe that was patched in #4402 but it'd be nice if someone were to check. Sorry about that!
MohamedHedi commentedon Jan 2, 2019
same problem after upgrade to 2.11.0
stealthybox commentedon Jan 11, 2019
Cross post:
FairwindsOps/reckoner#48 (comment)
gerbsen commentedon Feb 5, 2019
Why is this closed? Do we have a proper way to handle this now?
stealthybox commentedon Feb 6, 2019
@gerbsen, there isn't a way around this with current versions of Helm that is non-destructive.
We still use Helm 2.7.0 for everything in my org. It is a very old version that has other bugs, but it does not have this issue.
notque commentedon Feb 13, 2019
Just had
helm upgrade --install --forcedo adelete --purgeand destroy my pvc/pv without telling me (on recycling). Had several failed releases, so it was in a state it was running in kubernetes, but helm thought there were no running releases. Not good times at all.alex88 commentedon Feb 26, 2019
@notque after losing all grafana dashboard twice I've started doing backups before doing any kind of upgrade, having this kind of risk removes all the benefits of using helm
yehee commentedon Nov 4, 2019
For those who are seeking for help, the issue was gone for me after upgrading helm to v.2.15.2
ScubaDrew commentedon Nov 22, 2019
Still seeing this issue on
2.16.0nick4fake commentedon Dec 10, 2019
Why is it still closed? 2.16.1 is still affected
alex88 commentedon Dec 10, 2019
@nick4fake I think it's a duplicate of #5595