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 upgrade with --wait is waiting even when all resources are ready #2426
I just installed a new release, then I upgraded the image tag for one of my Deployments inside a chart.
After that, I executed a helm upgrade mychart myrelease --wait --timeout 9999. Tiller logs only detected changes in the above described Deployment, creating a new pod and ReplicaSet with the new image. Then, the upgrade process get stuck in "waiting for resources", even when all my pods are ready and running:
[user@hostname ~]$ kubectl get po -n mynamespace
NAME READY STATUS RESTARTS AGE
XXXXX-2061248956-1k0xc 1/1 Running 0 14m
XXXXXXXX-3687332959-bjb5b 1/1 Running 0 14m
new-created-pod-2470432599-38k9j 1/1 Running 0 1m
XXXXXX-1811469710-3pm6k 1/1 Running 0 14m
XXX-2438109-qv4m1 1/1 Running 0 14m
2017/05/10 18:24:01 wait.go:47: beginning wait for resources with timeout of 2h46m39s
So I figured out that the problem is that a new ReplicaSet was created, but helm seems like also waiting for the old one to get all resources ready.
I manually deleted the old-replica-set-320589364, and the upgrade was completed.
changed the title [-]Helm upgrade with --wait is waiting even when all pods are ready[/-][+]Helm upgrade with --wait is waiting even when all resources are ready[/+]on May 10, 2017
I'm still having problems in 2.4.2 with this. Even if I've changed nothing in my release, tiller ends up waiting the full timeout, and no pods are unready, nothing even changed, so everything is already ready, but the wait seems to not detect this.
Reacted by Aaron Roydhouse, Herman Fries and Théo Chamley
@chancez check the maxUnavailable value of your Deployments. The --wait flag now uses this value for check the "resources ready" condition (Take a look at Notes).
@alexppg no, and even on the latest version I find it problematic/unreliable. I just don't use the --wait option any more. Better to deploy and then script your own wait-for-ready step.
We then have to kill the process and the chart release history show 'PENDING_UPGRADE' for some unknown amount of time before either it says DEPLOYED during some builds or Upgrade "<chart_release>" failed: timed out waiting for the condition
Looks like this workaround suggested by @tcolgate also works for this issue. I just fixed FAILED release using helm rollback myproject 16 where 16 was "FAILED" release.
Looks like in my case there was a real problem. One of the pods stuck in Pending state with the error: 0/6 nodes are available: 2 node(s) had taints that the pod didn't tolerate, 4 Insufficient cpu.
I added one more node and now it works!
Why it looks like this bug but it isn't? Because previously, when I checked the CI result, K8s has already deployed the pod that was in Pending state at the moment of helm upgrade.
Hi. I got the same problem with minikube.
The cause was that the type: LoadBalancer resource did not have an External IP ( kubernetes/minikube#4113 ).
I found the cause because the --debug flag provided me with the following log.
wait.go:48: [debug] beginning wait for 29 resources with timeout of 5m0s
ready.go:258: [debug] Service does not have load balancer ingress IP address: agones-system/agones-allocator
ready.go:258: [debug] Service does not have load balancer ingress IP address: agones-system/agones-allocator
ready.go:258: [debug] Service does not have load balancer ingress IP address: agones-system/agones-allocator
ready.go:258: [debug] Service does not have load balancer ingress IP address: agones-system/agones-allocator
ready.go:258: [debug] Service does not have load balancer ingress IP address: agones-system/agones-allocator
...
Activity
[-]Helm upgrade with --wait is waiting even when all pods are ready[/-][+]Helm upgrade with --wait is waiting even when all resources are ready[/+]blakebarnett commentedon May 10, 2017
Seeing this also, k8s 1.6.2, helm 2.4.1
thomastaylor312 commentedon May 11, 2017
@eduardobaitello Thank you for all of the details. I'll look to see what is happening
thomastaylor312 commentedon May 11, 2017
Ok, I duplicated this and am working on fixing
fix(tiller): Fixes bug with `--wait` and updated deployments
thomastaylor312 commentedon May 11, 2017
@eduardobaitello Can you give #2430 a try if you have some time and see if it solves the issue for you?
eduardobaitello commentedon May 11, 2017
@thomastaylor312, thanks for the quick help!
I don't have expertise in Go lang, so I need to wait a patch release with the fix :(
Thanks again!
fix(tiller): Fixes bug with `--wait` and updated deployments
chancez commentedon May 18, 2017
I'm still having problems in 2.4.2 with this. Even if I've changed nothing in my release, tiller ends up waiting the full timeout, and no pods are unready, nothing even changed, so everything is already ready, but the wait seems to not detect this.
eduardobaitello commentedon May 18, 2017
@chancez check the
maxUnavailablevalue of your Deployments. The--waitflag now uses this value for check the "resources ready" condition (Take a look at Notes).donaldguy commentedon May 22, 2017
can confirm that after upgrading to 2.4.2 I am also having a similar problem (but on a Deployment with
strategy: { type: Recreate })donaldguy commentedon May 22, 2017
In my case downgrading to 2.4.1 fixes my issue, so #2430 is directly implicated
33 remaining items
boosh commentedon Dec 4, 2017
@thomastaylor312 Yes
alexppg commentedon Apr 10, 2018
Hi, is there a solution to this in a 1.5.* cluster?
whereisaaron commentedon Apr 11, 2018
@alexppg no, and even on the latest version I find it problematic/unreliable. I just don't use the
--waitoption any more. Better to deploy and then script your own wait-for-ready step.alexppg commentedon Apr 11, 2018
Shouldn't then be an opened issue about it? This or any other one.
PD: thanks, I'll do that. @whereisaaron
MalhotraVijay commentedon Sep 19, 2018
We are also getting this issue with the helm version v2.10.0 version on Kubernetes version v1.8.2
We have an internal chart, which we intend to upgrade via the CI/CD pipeline using the following command and the upgrade process keeps on waiting.
We then have to kill the process and the chart release history show 'PENDING_UPGRADE' for some unknown amount of time before either it says DEPLOYED during some builds or Upgrade "<chart_release>" failed: timed out waiting for the condition
Is this solved or are we missing something ?
Brightside56 commentedon Oct 3, 2018
I have same issue with install/update with --wait
KIVagant commentedon Oct 5, 2018
Same here.
But all resources were created.
KIVagant commentedon Oct 5, 2018
Looks like this workaround suggested by @tcolgate also works for this issue. I just fixed FAILED release using
helm rollback myproject 16where 16 was "FAILED" release.#3208 (comment)
KIVagant commentedon Oct 8, 2018
Looks like in my case there was a real problem. One of the pods stuck in
Pendingstate with the error:0/6 nodes are available: 2 node(s) had taints that the pod didn't tolerate, 4 Insufficient cpu.I added one more node and now it works!
Why it looks like this bug but it isn't? Because previously, when I checked the CI result, K8s has already deployed the pod that was in
Pendingstate at the moment ofhelm upgrade.smileusd commentedon Dec 18, 2018
daemonset have the same problem
lm-xingxing commentedon Dec 21, 2018
use --debug only(no --wait), to see which resource is pending, maybe it different from chart defined ,that cause pending
Emixam23-FCMS commentedon Oct 1, 2020
Hey guys, still having the issue, any idea? Currently using helm image 3.2.0
piratf commentedon Nov 5, 2021
Same issue. All pods are running, but helm upgrade still waiting.
version.BuildInfo{Version:"v3.3.4", GitCommit:"a61ce5633af99708171414353ed49547cf05013d", GitTreeState:"clean", GoVersion:"go1.14.9"}
zhilyaev commentedon Nov 9, 2021
The same problem
castaneai commentedon Jan 14, 2022
Hi. I got the same problem with minikube.
The cause was that the type: LoadBalancer resource did not have an External IP ( kubernetes/minikube#4113 ).
I found the cause because the
--debugflag provided me with the following log.