Skip to content

Error: UPGRADE FAILED: no resource with the name "anything_goes" found #3275

Closed

Description

@zuzzas

Hi,

We are constantly hitting a problem that manifests itself with this Error: UPGRADE FAILED: no resource with the name "site-ssl" found, for example. They can appear after any innocuous update to a template.
Could you, please, help me with understanding the problem. What causes those messages to appear?

I've been unsuccessful in triaging the issue further, it may happen anytime, haven't really found a pattern yet.

Perhaps, there is a problem with how we deploy? helm upgrade hmmmmm /tmp/dapp-helm-chart-20171219-20899-1ppm74grrwrerq --set global.namespace=hmm --set global.env=test --set global.erlang_cookie=ODEzMTBlZjc5ZGY5NzQwYTM3ZDkwMzEx --set global.tests=no --set global.selenium_tests=no --namespace hmm --install --timeout 300

Helm: v2.7.2, v2.6.2, Kubernetes: v1.7.6, v1.8.5. I've tried every possible combination of these 4 versions, neither work.

Activity

  1. zuzzas commented on Dec 20, 2017

    @zuzzas
    ContributorAuthor

    Completely removing release from Helm via helm delete release works, but it is not a viable solution.

    Why can't Helm just overwrite whatever is currently installed? Aren't we living in a declarative world with Kubernetes?

  2. jpoizat commented on Dec 21, 2017

    @jpoizat

    Just got the same thing... quite new for me at it seems to be a new issue. delete the resource will fix it.
    v2.7.2 with Kubernetes 1.7.7.
    pretty it worked before...

  3. ajtrichards commented on Dec 21, 2017

    @ajtrichards

    I had this problem - it was due to a PersistentVolume that i'd created. To resolve, I deleted the PV and PVC. Ran helm upgrade XXX XXX and it worked fine. Probably still something that should be investigated as the PV did exist.

  4. jpoizat commented on Dec 21, 2017

    @jpoizat

    I got the feeling it might be related to bad pv... but then the error is quite misleading !
    also some weirds logs from tiller... seems that it is working on 2 version at the same time...

    just tried with 2.7.1 with no luck...

    [main] 2017/12/21 15:30:48 Starting Tiller v2.7.1 (tls=false)
    [main] 2017/12/21 15:30:48 GRPC listening on :44134
    [main] 2017/12/21 15:30:48 Probes listening on :44135
    [main] 2017/12/21 15:30:48 Storage driver is ConfigMap
    [main] 2017/12/21 15:30:48 Max history per release is 0
    [tiller] 2017/12/21 15:30:55 preparing update for xxx
    [storage] 2017/12/21 15:30:55 getting deployed release from "xxx" history
    [tiller] 2017/12/21 15:30:56 copying values from xxx (v65) to new release.
    [storage] 2017/12/21 15:30:56 getting last revision of "xxx"
    [storage] 2017/12/21 15:30:56 getting release history for "xxx"
    [tiller] 2017/12/21 15:30:59 rendering helm-xxx chart using values
    2017/12/21 15:30:59 info: manifest "helm-xxx/templates/scheduler-deploy.yaml" is empty. Skipping.
    2017/12/21 15:30:59 info: manifest "helm-xxx/templates/recomposer-deploy.yaml" is empty. Skipping.
    2017/12/21 15:31:00 info: manifest "helm-xxx/templates/recomposer-pvc.yaml" is empty. Skipping.
    2017/12/21 15:31:00 info: manifest "helm-xxx/templates/scheduler-pvc.yaml" is empty. Skipping.
    2017/12/21 15:31:00 info: manifest "helm-xxx/templates/scheduler-secret.yaml" is empty. Skipping.
    2017/12/21 15:31:00 info: manifest "helm-xxx/templates/recomposer-secret.yaml" is empty. Skipping.
    [tiller] 2017/12/21 15:31:09 creating updated release for xxx
    [storage] 2017/12/21 15:31:09 creating release "xxx.v80"
    [tiller] 2017/12/21 15:31:09 performing update for xxx
    [tiller] 2017/12/21 15:31:09 executing 0 pre-upgrade hooks for xxx
    [tiller] 2017/12/21 15:31:09 hooks complete for pre-upgrade xxx
    [tiller] 2017/12/21 15:31:11 preparing update for xxx
    [storage] 2017/12/21 15:31:11 getting deployed release from "xxx" history
    [storage] 2017/12/21 15:31:11 getting last revision of "xxx"
    [storage] 2017/12/21 15:31:11 getting release history for "xxx"
    [tiller] 2017/12/21 15:31:18 rendering helm-xxx chart using values
    2017/12/21 15:31:18 info: manifest "helm-xxx/templates/scheduler-secret.yaml" is empty. Skipping.
    2017/12/21 15:31:18 info: manifest "helm-xxx/templates/scheduler-pvc.yaml" is empty. Skipping.
    2017/12/21 15:31:19 info: manifest "helm-xxx/templates/scheduler-deploy.yaml" is empty. Skipping.
    [kube] 2017/12/21 15:31:28 building resources from updated manifest
    [tiller] 2017/12/21 15:31:46 creating updated release for xxx
    [storage] 2017/12/21 15:31:46 creating release "xxx.v81"
    [tiller] 2017/12/21 15:31:47 performing update for xxx
    [tiller] 2017/12/21 15:31:47 executing 0 pre-upgrade hooks for xxx
    [tiller] 2017/12/21 15:31:47 hooks complete for pre-upgrade xxx
    [kube] 2017/12/21 15:31:49 checking 7 resources for changes
    [kube] 2017/12/21 15:31:49 Looks like there are no changes for Secret "xxx-helm-xxx-nginx-secret"
    [kube] 2017/12/21 15:31:50 Looks like there are no changes for Secret "xxx-application-secret"
    [kube] 2017/12/21 15:31:50 Looks like there are no changes for Secret "azure-secret"
    [kube] 2017/12/21 15:31:51 Looks like there are no changes for ConfigMap "xxx-helm-xxx-nginx-config"
    [kube] 2017/12/21 15:31:51 Looks like there are no changes for ConfigMap "xxx-application-config"
    [kube] 2017/12/21 15:31:51 Looks like there are no changes for Service "xxx-application-svc"
    [kube] 2017/12/21 15:31:51 Looks like there are no changes for StatefulSet "xxx-application"
    [tiller] 2017/12/21 15:31:51 executing 0 post-upgrade hooks for xxx
    [tiller] 2017/12/21 15:31:51 hooks complete for post-upgrade xxx
    [storage] 2017/12/21 15:31:51 updating release "xxx.v65"
    [tiller] 2017/12/21 15:31:51 updating status for updated release for xxx
    [storage] 2017/12/21 15:31:51 updating release "xxx.v80"
    [kube] 2017/12/21 15:31:57 building resources from updated manifest
    [kube] 2017/12/21 15:32:10 checking 11 resources for changes
    [kube] 2017/12/21 15:32:10 Looks like there are no changes for Secret "xxx-helm-xxx-nginx-secret"
    [tiller] 2017/12/21 15:32:10 warning: Upgrade "xxx" failed: no resource with the name "xxx-recomposer-secret" found
    [storage] 2017/12/21 15:32:10 updating release "xxx.v65"
    [storage] 2017/12/21 15:32:10 updating release "xxx.v81"

  5. jpoizat commented on Dec 21, 2017

    @jpoizat

    seems it get confused at doing to release at the same time...

    just reapplied the same config twice...

    [tiller] 2017/12/21 15:50:46 preparing update for xxx
    [storage] 2017/12/21 15:50:46 getting deployed release from "xxx" history
    [storage] 2017/12/21 15:50:46 getting last revision of "xxx"
    [storage] 2017/12/21 15:50:46 getting release history for "xxx"
    [tiller] 2017/12/21 15:50:50 rendering helm-xxx chart using values
    2017/12/21 15:50:50 info: manifest "helm-xxx/templates/scheduler-pvc.yaml" is empty. Skipping.
    2017/12/21 15:50:50 info: manifest "helm-xxx/templates/recomposer-deploy.yaml" is empty. Skipping.
    2017/12/21 15:50:50 info: manifest "helm-xxx/templates/scheduler-secret.yaml" is empty. Skipping.
    2017/12/21 15:50:50 info: manifest "helm-xxx/templates/scheduler-deploy.yaml" is empty. Skipping.
    2017/12/21 15:50:50 info: manifest "helm-xxx/templates/recomposer-secret.yaml" is empty. Skipping.
    2017/12/21 15:50:50 info: manifest "helm-xxx/templates/recomposer-pvc.yaml" is empty. Skipping.
    [tiller] 2017/12/21 15:50:58 creating updated release for xxx
    [storage] 2017/12/21 15:50:58 creating release "xxx.v85"
    [tiller] 2017/12/21 15:50:59 performing update for xxx
    [tiller] 2017/12/21 15:50:59 executing 0 pre-upgrade hooks for xxx
    [tiller] 2017/12/21 15:50:59 hooks complete for pre-upgrade xxx
    [kube] 2017/12/21 15:51:13 building resources from updated manifest
    [kube] 2017/12/21 15:51:22 checking 7 resources for changes
    [kube] 2017/12/21 15:51:22 Looks like there are no changes for Secret "xxx-helm-xxx-nginx-secret"
    [kube] 2017/12/21 15:51:23 Looks like there are no changes for Secret "xxx-application-secret"
    [kube] 2017/12/21 15:51:23 Looks like there are no changes for Secret "azure-secret"
    [kube] 2017/12/21 15:51:23 Looks like there are no changes for ConfigMap "xxx-helm-xxx-nginx-config"
    [kube] 2017/12/21 15:51:23 Looks like there are no changes for ConfigMap "xxx-application-config"
    [kube] 2017/12/21 15:51:24 Looks like there are no changes for Service "xxx-application-svc"
    [kube] 2017/12/21 15:51:24 Deleting "xxx-recomposer-secret" in xxx...
    [kube] 2017/12/21 15:51:24 Failed to delete "xxx-recomposer-secret", err: secrets "xxx-recomposer-secret" not found
    [kube] 2017/12/21 15:51:24 Deleting "xxx-recomposer-config" in xxx...
    [kube] 2017/12/21 15:51:24 Failed to delete "xxx-recomposer-config", err: configmaps "xxx-recomposer-config" not found
    [kube] 2017/12/21 15:51:24 Deleting "xxx-recomposer-pv" in ...
    [kube] 2017/12/21 15:51:24 Failed to delete "xxx-recomposer-pv", err: persistentvolumes "xxx-recomposer-pv" not found
    [kube] 2017/12/21 15:51:24 Deleting "xxx-recomposer-pvc" in xxx...
    [kube] 2017/12/21 15:51:24 Failed to delete "xxx-recomposer-pvc", err: persistentvolumeclaims "xxx-recomposer-pvc" not found
    [kube] 2017/12/21 15:51:24 Deleting "xxx-recomposer" in xxx...
    [kube] 2017/12/21 15:51:24 Using reaper for deleting "xxx-recomposer"
    [kube] 2017/12/21 15:51:24 Failed to delete "xxx-recomposer", err: deployments.extensions "xxx-recomposer" not found
    [tiller] 2017/12/21 15:51:24 executing 0 post-upgrade hooks for xxx
    [tiller] 2017/12/21 15:51:24 hooks complete for post-upgrade xxx
    [storage] 2017/12/21 15:51:24 updating release "xxx.v68"
    [tiller] 2017/12/21 15:51:24 updating status for updated release for xxx
    [storage] 2017/12/21 15:51:24 updating release "xxx.v85"
    [storage] 2017/12/21 15:51:25 getting last revision of "xxx"
    [storage] 2017/12/21 15:51:25 getting release history for "xxx"
    [kube] 2017/12/21 15:51:38 Doing get for Secret: "xxx-helm-xxx-nginx-secret"
    [kube] 2017/12/21 15:51:39 get relation pod of object: xxx/Secret/xxx-helm-xxx-nginx-secret
    [kube] 2017/12/21 15:51:39 Doing get for Secret: "xxx-application-secret"
    [kube] 2017/12/21 15:51:39 get relation pod of object: xxx/Secret/xxx-application-secret
    [kube] 2017/12/21 15:51:39 Doing get for Secret: "azure-secret"
    [kube] 2017/12/21 15:51:39 get relation pod of object: xxx/Secret/azure-secret
    [kube] 2017/12/21 15:51:39 Doing get for ConfigMap: "xxx-helm-xxx-nginx-config"
    [kube] 2017/12/21 15:51:39 get relation pod of object: xxx/ConfigMap/xxx-helm-xxx-nginx-config
    [kube] 2017/12/21 15:51:39 Doing get for ConfigMap: "xxx-application-config"
    [kube] 2017/12/21 15:51:39 get relation pod of object: xxx/ConfigMap/xxx-application-config
    [kube] 2017/12/21 15:51:39 Doing get for Service: "xxx-application-svc"
    [kube] 2017/12/21 15:51:39 get relation pod of object: xxx/Service/xxx-application-svc
    [kube] 2017/12/21 15:51:39 Doing get for StatefulSet: "xxx-application"
    [kube] 2017/12/21 15:51:39 get relation pod of object: xxx/StatefulSet/xxx-application

  6. jpoizat commented on Dec 21, 2017

    @jpoizat

    might be related to #2941

  7. jpoizat commented on Dec 21, 2017

    @jpoizat

    a said in the other thread, one of the way to fix the issue was to delete the buggy configmaps ... seems to do it for me currently...

  8. zuzzas commented on Dec 21, 2017

    @zuzzas
    ContributorAuthor

    That is all fine and dandy. Until that time, when you have to delete something critical from a production namespace. Which, coincidentally, happened to me just now. :c

  9. jubel-han commented on Dec 25, 2017

    @jubel-han

    I've faced the issue as well when we upgrade an release if there are multiple DEPLOYED status of this release, Have to fix it with delete those corresponding configmaps.

  10. amritb commented on Jan 16, 2018

    @amritb

    Same problem. Everything was just fine yesterday and I did multiple upgrades. Today I just added a new yaml with service and deployment block separated with --- and the upgrade failed.

    The interesting thing is, helm created the service and then complained about it (and didn't do the deployment).
    I commented out the service and just ran upgrade with the deployment block - it worked. However, helm didn't delete the service - which it should have as it's removed from the yaml file.

    Update: I manually deleted the service, uncommented it from the yaml and ran the upgrade - this time it worked like a charm!

  11. awwithro commented on Jan 18, 2018

    @awwithro

    I was having this exact error. It looks like the issue is related to templates with multiple API objects similar to what @amritb saw. In my case, I had a template that had multiple API objects that could be toggled on and off similar to:

    {{ if .Values.enabled }}
    ---
    ...
    

    Breaking that into its own template file and cleaning up the orphaned objects that helm created and forgot about resolved the issue for me. It sounds like there is a bug in how helm gets previous config if the number of objects per template changes between releases.

  12. shz commented on Jan 19, 2018

    @shz

    Adding another datapoint: I appear to be having the exact same issue as @awwithro. We're using a jinja loop to create multiple cronjobs via a template, and when a new upgrade caused this loop to fill in an additional cronjob, we ran into the bug. Seemed to trigger #2941 as well (or possibly one bug causes the other), and deleting the zombie configmaps fixes it.

  13. nick4fake commented on Jan 23, 2018

    @nick4fake

    Just trapped into this even without using any configmaps

  14. lsthornt commented on Jan 27, 2018

    @lsthornt

    Some extra color for anyone who may be stuck:
    I was running into this when introducing new subcharts and objects to my release. I was able to solve by checking every object type that was being added, and deleting any existing objects that would cause a naming collision.

    This seems to be in line with others' evidence that deletion is the only way to solve right now 😕

  15. 55 remaining items

  16. tdavis commented on Mar 15, 2019

    @tdavis

    Same, @thedumbtechguy. I run into this issue routinely. It's especially fun when Helm decides you need to delete all your secrets, configmaps, roles, etc. Upgrading becomes a game of wack-a-mole with an ever-increasing list of arguments to kubectl delete. I should have thrown in the towel on this sisyphean task months ago, but it's too late for that now. Sure hope this and the dozens of similar issues can be fixed!

  17. thedumbtechguy commented on Mar 16, 2019

    @thedumbtechguy
  18. geosword commented on Mar 22, 2019

    @geosword

    I experienced the same with Helm v2.10. I already had a chart deployed, added another configMap to the chart. It reported that the deployment failed because it couldn't find configMap "blah". I did

    helm upgrade <NAME> chart --debug --dryrun 
    

    To verify the configMap was indeed being rendered, it was. Checked the configMaps in the cluster, and found it there. Deleted the blah configMap, re-ran the upgrade, it worked.

  19. bacongobbler commented on Mar 22, 2019

    @bacongobbler
    Member

    #5460 should better clarify the error message going forward.

  20. geosword commented on Mar 22, 2019

    @geosword

    Fair point.

    $ helm upgrade linting-unicorn testrail                                                                                                                                                                                        
    Error: UPGRADE FAILED: no ConfigMap with the name "linting-unicorn-testrail-php-config" found
    

    Keep up the good work helm team.

  21. fernandrone commented on Mar 22, 2019

    @fernandrone

    In case this is a big deal to anyone else, thought I'd point out #4871 should fix these issues.

    Note that it appears it still hasn't been approved by the Helm team. Plus there were some concerns about the automatic deletion resources. Just mentioning it in case anyone wants to build it from source and give it a try.

  22. dnetguru commented on Mar 26, 2019

    @dnetguru

    Having the same issue and only workaround seems to be helm delete --purge release and install again!

  23. kvangrae commented on Apr 20, 2019

    @kvangrae

    I ran into the same issue. @fbcbarbosa it looks like it was merged 2 weeks ago. It should hopefully be a part of the next release 2.14.0.

  24. majewsky commented on Apr 24, 2019

    @majewsky

    Having the same issue and only workaround seems to be helm delete --purge release and install again!

    A less destructive option is doing a helm rollback to the /current/ version (i.e. by 0 steps). I cannot guarantee success, but for us so far, it has always unwedged things successfully.

  25. CDingerdis commented on Jun 5, 2019

    @CDingerdis

    Is there an idea if this is going to be in the next release, and if it does when it is coming?

  26. bacongobbler commented on Jun 5, 2019

    @bacongobbler
    Member

    #5460 was merged 2 months ago, which means it should be in helm 2.14.0.

  27. ishallbethat commented on Jun 26, 2019

    @ishallbethat

    I fixed the issue by

    1. delete those resources that complained by "helm upgrade". (It says Not found but actually it can be found). Don't delete the whole release, otherwise if in production you will be screwed completely.
    2. redo helm upgrade. Now this time it should be "Happy Helming" shows up. :)
  28. Benbentwo commented on Oct 11, 2019

    @Benbentwo

    We ran into this issue in PROD, when a requirement to our umbrella helm chart added a configmap based on a conditional. For us the work around fix was to

    helm rollback <some revision that's acceptable>
    helm upgrade <desired version>
    
  29. tobypeschel commented on Mar 4, 2020

    @tobypeschel

    For us, a simple rollback to the current revision has always worked:

    helm ls
    helm rollback <NAME> <current REVISION>
    
  30. ypadlyak commented on Aug 26, 2020

    @ypadlyak

    @tobypeschel do you have idea how your fix works?

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions