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
After upgrade to 2.13.0, both client and server, I instantly jumped to do an --atomic upgrade, but it fails due to timeout.
Our build agents (Azure DevOps Server agents) ran two parallell upgrades to two different clusters (from the same machine), they both tried creating tunnels using different ports, both failed.
Tried only doing one deploy to one cluster, same issue.
Tried removing --atomic, then the upgrade works as usual.
Error log:
helm upgrade --namespace XXXX --install --force --values path/values.yaml --debug --atomic release-name /path/package.tgz
Error: timed out waiting for the condition
[debug] Created tunnel using local port: '34551'
[debug] SERVER: "127.0.0.1:34551"
UPGRADE FAILED
ROLLING BACK
Error: timed out waiting for the condition
In what way is the tunnel opened, is it proxied via the kubectl client? Thinking about firewall policies which could be the case regarding the on-prem cluster. If that was the case, I would have assumed the AKS deploy to work though.
@tobylo do you have a publicly available chart which can be used to reproduce this issue?
It's possible that you're seeing a difference in behavior after adding --atomic because doing so also sets --wait to true. To test this, please see if you get the same behavior when removing the atomic flag and adding wait. If this errors in the same way, then setting --timeout to something higher than the default 300 should fix your issue.
I had a look at #5143 and have no idea why the wait flag had to be enabled in the first place. I'm going to PR a change to the atomic flag to remove that behaviour. Users can opt into the --wait flag with helm upgrade --atomic --wait if they so choose, but there's no reason why it's required for the --atomic flag to work.
I have only been able to test your version on my local dev machine, --atomic works, but so it is using the 2.13 version.
While trying to test ways of getting the test version running on the build agents, I upgraded kubectl to 1.13.4 and tried --atomic with a higher --timeout, and now atomic upgrades work with v2.13 as well. I would assume it's due to the kubectl upgrade and not the --timeout, because the helm deploy does work as fast as without.
I would assume it's due to the kubectl upgrade and not the --timeout,
I'm pretty sure it's more likely due to the increased timeout. Because helm upgrade --atomic also enables the --wait flag, Helm keeps the connection open until all of the replicas in your deployment have returned to a ready state or the specified timeout has been reached. By increasing the timeout, you're giving helm more time to wait for the pods to come alive. I don't believe there was any significant change made between 1.12.4 and 1.13.4 that would've changed the wait logic in a significant way, but I could be wrong.
Activity
tobylo commentedon Feb 28, 2019
In what way is the tunnel opened, is it proxied via the kubectl client? Thinking about firewall policies which could be the case regarding the on-prem cluster. If that was the case, I would have assumed the AKS deploy to work though.
jlegrone commentedon Mar 2, 2019
@tobylo do you have a publicly available chart which can be used to reproduce this issue?
It's possible that you're seeing a difference in behavior after adding
--atomicbecause doing so also sets--waitto true. To test this, please see if you get the same behavior when removing theatomicflag and addingwait. If this errors in the same way, then setting--timeoutto something higher than the default300should fix your issue.bacongobbler commentedon Mar 4, 2019
I had a look at #5143 and have no idea why the wait flag had to be enabled in the first place. I'm going to PR a change to the atomic flag to remove that behaviour. Users can opt into the
--waitflag withhelm upgrade --atomic --waitif they so choose, but there's no reason why it's required for the--atomicflag to work.bacongobbler commentedon Mar 5, 2019
@tobylo if you wouldn't mind testing #5395 and verify if that works for you, that'd be great. :)
tobylo commentedon Mar 5, 2019
@bacongobbler just compiled it, will try it out tomorrow and let you know!
tobylo commentedon Mar 14, 2019
I have only been able to test your version on my local dev machine, --atomic works, but so it is using the 2.13 version.
While trying to test ways of getting the test version running on the build agents, I upgraded kubectl to 1.13.4 and tried --atomic with a higher --timeout, and now atomic upgrades work with v2.13 as well. I would assume it's due to the kubectl upgrade and not the --timeout, because the helm deploy does work as fast as without.
bacongobbler commentedon Mar 14, 2019
I'm pretty sure it's more likely due to the increased timeout. Because
helm upgrade --atomicalso enables the--waitflag, Helm keeps the connection open until all of the replicas in your deployment have returned to a ready state or the specified timeout has been reached. By increasing the timeout, you're giving helm more time to wait for the pods to come alive. I don't believe there was any significant change made between 1.12.4 and 1.13.4 that would've changed the wait logic in a significant way, but I could be wrong.Either way, glad you have a workaround.
odoo-sh commentedon Aug 13, 2025
open /bin/openreplay
uncomment HELM_OPTONS so it looks like below.
HELM_OPTIONS="--timeout=30m"
and execute
openreplay -i your domain_name