Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade fails when first deployment fails #25

Open
tjcrone opened this issue Jul 25, 2019 · 2 comments
Open

Upgrade fails when first deployment fails #25

tjcrone opened this issue Jul 25, 2019 · 2 comments

Comments

@tjcrone
Copy link
Contributor

tjcrone commented Jul 25, 2019

When a helm deployment fails because of a timeout, which often happens for the first deployment on a new cluster because image pulls can take a long time, the first deployment will be listed as FAILED. When running hubploy again, Error: UPGRADE FAILED: "ooi-staging" has no deployed releases will always occur because there is no successful deployment. The only solution is do delete the deployment entirely, and try again. Do we see any way of identifying this situation and rather than trying an upgrade which will certainly fail, deploying again?

@tjcrone
Copy link
Contributor Author

tjcrone commented Jul 25, 2019

Just tried the delete-rerun-workflow sequence, and of course instead of the no deployed releases error, got the classic timed out waiting for the condition. So getting a deployment going on a new cluster involves a delete-try-again-cross-fingers-repeat program which I feel could somehow be better. Any ideas on how I might make this work better? Worth noting, once one deployment is in, that changes everything because an upgrade can theoretically work.

@tjcrone
Copy link
Contributor Author

tjcrone commented Jul 26, 2019

We can add the --force option to the upgrade, and in that case it will try to install over the top of the first failed release. are there downsides to adding this option to the helm upgrade command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant