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
Error: UPGRADE FAILED: no resource with the name "anything_goes" found #3275
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.
Reacted by Greg Lanthier, Timofey Kirillov, Alex Chychkan, Bohdan Yurov, Vitalii Sn, Sergey Gnuskov, Levi Thornton, Tom Wieczorek, Dan Schuman, Zhomart M and 77 more
Reacted by Hong, Bohdan Yurov, vmrm, Zhomart M, Huy Le, Pavel Nikolov, mobilesfinks, Alvaro Gutierrez Perez, Iskandar Setiadi, Fernando Barbosa and 8 more
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?
Reacted by Trevor Hartman, Max Desiatov, Kevin Liu, mobilesfinks, Andrey Voronkov, Morven Cao, Frank Hamand, Yann Ponzoni, Fernando Barbosa, Martin Liu and 47 more
Reacted by Bohdan Yurov, vmrm, James Lal, Michael Schmidt, Zhomart M, Patrick Skjennum, Krisztián Szabó , Mikael, Brad Bowman, Hong and 25 more
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...
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.
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"
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
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
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.
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!
Reacted by Alex Withrow, Are Almaas, Jon Watte, Fabio Rauber, Thomas Jungblut, wowqing and Abhimanyu Ray
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.
Reacted by bykvaadm, Kyle Root, Caleb Whiting, Jason Kuhrt, Constantin Bugneac, travishen.tw, popcornylu, Richard Wilburn and Aviad Shikloshi
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.
Reacted by bykvaadm, Kyle Root, Marco Wettstein and Jason Kuhrt
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 😕
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!
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.
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.
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.
Reacted by Joachim Barheine, Rudolf Vriend, Amir Alavi, Fulton Byrne, Chris Cooney, Alan Ning, Ryan Hefner, Julius Jurgelėnas, Maxime Guyot, Chris Bartholomew and 3 more
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.
redo helm upgrade. Now this time it should be "Happy Helming" shows up. :)
Reacted by Moody Saada, Tomasz Główka, travishen.tw, Dorin and Andrew Plummer
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
Activity
zuzzas commentedon Dec 20, 2017
Completely removing release from Helm via
helm delete releaseworks, 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?
jpoizat commentedon Dec 21, 2017
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...
ajtrichards commentedon Dec 21, 2017
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 XXXand it worked fine. Probably still something that should be investigated as the PV did exist.jpoizat commentedon Dec 21, 2017
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"
jpoizat commentedon Dec 21, 2017
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
jpoizat commentedon Dec 21, 2017
might be related to #2941
jpoizat commentedon Dec 21, 2017
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...
zuzzas commentedon Dec 21, 2017
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
jubel-han commentedon Dec 25, 2017
I've faced the issue as well when we upgrade an release if there are multiple
DEPLOYEDstatus of this release, Have to fix it with delete those corresponding configmaps.amritb commentedon Jan 16, 2018
Same problem. Everything was just fine yesterday and I did multiple upgrades. Today I just added a new yaml with
serviceanddeploymentblock separated with---and the upgrade failed.The interesting thing is, helm created the
serviceand then complained about it (and didn't do the deployment).I commented out the
serviceand just ran upgrade with thedeploymentblock - 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!awwithro commentedon Jan 18, 2018
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:
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.
shz commentedon Jan 19, 2018
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.
nick4fake commentedon Jan 23, 2018
Just trapped into this even without using any configmaps
lsthornt commentedon Jan 27, 2018
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 😕
55 remaining items
tdavis commentedon Mar 15, 2019
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!thedumbtechguy commentedon Mar 16, 2019
geosword commentedon Mar 22, 2019
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
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.
bacongobbler commentedon Mar 22, 2019
#5460 should better clarify the error message going forward.
geosword commentedon Mar 22, 2019
Fair point.
Keep up the good work helm team.
fernandrone commentedon Mar 22, 2019
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.
dnetguru commentedon Mar 26, 2019
Having the same issue and only workaround seems to be
helm delete --purge releaseand install again!kvangrae commentedon Apr 20, 2019
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.
majewsky commentedon Apr 24, 2019
A less destructive option is doing a
helm rollbackto the /current/ version (i.e. by 0 steps). I cannot guarantee success, but for us so far, it has always unwedged things successfully.CDingerdis commentedon Jun 5, 2019
Is there an idea if this is going to be in the next release, and if it does when it is coming?
bacongobbler commentedon Jun 5, 2019
#5460 was merged 2 months ago, which means it should be in helm 2.14.0.
ishallbethat commentedon Jun 26, 2019
I fixed the issue by
Benbentwo commentedon Oct 11, 2019
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
tobypeschel commentedon Mar 4, 2020
For us, a simple rollback to the current revision has always worked:
ypadlyak commentedon Aug 26, 2020
@tobypeschel do you have idea how your fix works?