Skip to content

helm upgrade --install no longer works #3208

Closed

Description

@kbrinnehl

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.

Activity

  1. changed the title [-]helm update --install no longer works[/-] [+]helm upgrade --install no longer works[/+] on Nov 28, 2017
  2. tcolgate commented on Nov 30, 2017

    @tcolgate

    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.

  3. bacongobbler commented on Nov 30, 2017

    @bacongobbler
    Member

    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.

  4. TD-4242 commented on Nov 30, 2017

    @TD-4242

    Also having the same problem, along with duplicate release names:

    $>helm ls -a|grep ingress
    nginx-ingress            	9       	Thu Nov 30 11:33:06 2017	FAILED  	nginx-ingress-0.8.2        	kube-ingress
    nginx-ingress            	11      	Thu Nov 30 11:37:58 2017	FAILED  	nginx-ingress-0.8.2        	kube-ingress
    nginx-ingress            	12      	Thu Nov 30 11:38:50 2017	FAILED  	nginx-ingress-0.8.2        	kube-ingress
    nginx-ingress            	8       	Thu Nov 30 11:31:27 2017	FAILED  	nginx-ingress-0.8.2        	kube-ingress
    nginx-ingress            	10      	Thu Nov 30 11:33:53 2017	FAILED  	nginx-ingress-0.8.2        	kube-ingress
    $>helm diff nginx-ingress ./nginx-ingress
    Error: "nginx-ingress" has no deployed releases
    
  5. bacongobbler commented on Nov 30, 2017

    @bacongobbler
    Member

    When you were upgrading, what message was displayed?

  6. TD-4242 commented on Nov 30, 2017

    @TD-4242

    same error as the diff above, but an install would say it was already installed.

  7. bacongobbler commented on Nov 30, 2017

    @bacongobbler
    Member

    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.

  8. TD-4242 commented on Dec 1, 2017

    @TD-4242

    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.

  9. bcorijn commented on Dec 5, 2017

    @bcorijn

    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.

  10. s4nch3z commented on Dec 13, 2017

    @s4nch3z

    Same issue, can't upgrade over FAILED deploy

  11. aelbarkani commented on Dec 15, 2017

    @aelbarkani

    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".

  12. winjer commented on Dec 17, 2017

    @winjer

    Same problem here with 2.7.2, helm upgrade --install fails with:

    Error: UPGRADE FAILED: "APPNAME" has no deployed releases
    
  13. winjer commented on Dec 17, 2017

    @winjer

    If the release is entirely purged with helm del --purge APPNAME then a subsequent upgrade --install works ok.

  14. prein commented on Dec 18, 2017

    @prein

    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

  15. 32 remaining items

  16. KIVagant commented on Oct 8, 2018

    @KIVagant

    I am curious, if Helm can't deploy a chart over existing resources so why helm delete causes deleting exactly these resources?

  17. KIVagant commented on Oct 8, 2018

    @KIVagant

    @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?

  18. krishofmans commented on Oct 30, 2018

    @krishofmans

    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.

  19. stealthybox commented on Nov 13, 2018

    @stealthybox
    Contributor

    my expectation was that a dry run action would NEVER modify cluster resources.

    This is a fair expectation -- we should make that... not happen

  20. bacongobbler commented on Nov 13, 2018

    @bacongobbler
    Member

    I believe that was patched in #4402 but it'd be nice if someone were to check. Sorry about that!

  21. MohamedHedi commented on Jan 2, 2019

    @MohamedHedi

    same problem after upgrade to 2.11.0

  22. stealthybox commented on Jan 11, 2019

    @stealthybox
    Contributor
  23. gerbsen commented on Feb 5, 2019

    @gerbsen

    Why is this closed? Do we have a proper way to handle this now?

  24. stealthybox commented on Feb 6, 2019

    @stealthybox
    Contributor

    @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.

  25. notque commented on Feb 13, 2019

    @notque

    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.

  26. alex88 commented on Feb 26, 2019

    @alex88

    @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

  27. yehee commented on Nov 4, 2019

    @yehee

    For those who are seeking for help, the issue was gone for me after upgrading helm to v.2.15.2

  28. ScubaDrew commented on Nov 22, 2019

    @ScubaDrew

    Still seeing this issue on 2.16.0

  29. nick4fake commented on Dec 10, 2019

    @nick4fake

    Why is it still closed? 2.16.1 is still affected

  30. alex88 commented on Dec 10, 2019

    @alex88

    @nick4fake I think it's a duplicate of #5595

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions