helm3 - setting system.debug causes "helm upgrade" pipeline to be marked as fail even though it succeeded
See original GitHub issueRequired Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug/Feature
Enter Task Name: helm
Environment
- Server - Azure Pipelines or TFS on-premises? Azure DevOps / Pipelines
Issue Description
The debug output of helm3 is being treated as an error message. This causes the stage to be marked as failed
To reproduce, set the pipeline variable system.debug
to true.
2019-09-19T17:42:18.7081006Z ##[debug]execResult: {"code":0,"stdout":"NAME: project-dev\nLAST DEPLOYED: 2019-09-19 17:42:15.684362147 +0000 UTC m=+0.537851092\nNAMESPACE: project-dev\nSTATUS: deployed\nRelease \"project-dev\" has been upgraded. Happy Helming!\nNAME: project-dev\nLAST DEPLOYED: 2019-09-19 17:42:15.684362147 +0000 UTC\nNAMESPACE: project-dev\nSTATUS: deployed\n","stderr":"history.go:52: [debug] getting history for release project-dev\nupgrade.go:79: [debug] preparing upgrade for project-dev\nupgrade.go:88: [debug] creating upgraded release for project-dev\nupgrade.go:94: [debug] performing update for project-dev\nclient.go:140: [debug] checking 4 resources for changes\nwait.go:50: [debug] beginning wait for 4 resources with timeout of 5m0s\nupgrade.go:101: [debug] updating status for upgraded release for project-dev\n"}
2019-09-19T17:42:18.7082076Z ##[debug]task result: Failed
2019-09-19T17:42:18.7138882Z ##[error]history.go:52: [debug] getting history for release project-dev
posted at https://developercommunity.visualstudio.com/content/problem/740540/helm3-setting-systemdebug-causes-helm-upgrade-pipe.html and they suggest updating the task to handle this situation.
Issue Analytics
- State:
- Created 4 years ago
- Comments:22 (8 by maintainers)
Top Results From Across the Web
helm3 - setting system.debug causes "helm upgrade" pipeline ...
The debug output of helm3 is being treated as an error message. This causes the stage to be marked as failed. To reproduce,...
Read more >How to debug helm upgrade failed with message: spec - JFrog
yaml change is usually the first steps. You maybe passing a new value with upgrade or didn't pass a value that was previous...
Read more >How to fix “Helm Upgrade Error: has no deployed releases ...
Helm upgrade --install is an idempotent way of deploying a Helm Chart depends on if the release exists, which is very useful in...
Read more >How to Fix helm "has no deployed releases" Error - phoenixNAP
Learn how to fix the 'helm has no deployed releases' error in Helm when upgrading from a failed deployment.
Read more >Deprecated Kubernetes APIs - Helm
Helm Users · Error: UPGRADE FAILED: current release manifest contains removed kubernetes api(s) · for this kubernetes version and it is therefore unable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There are some issues in the helm project, which are related to this issue. https://github.com/helm/helm/issues/6009 https://github.com/helm/helm/issues/6461
I think this should either be fixed in the Azure DevOps task or, as a compromise, you can add an option to ignore STDERR as it is done in the Azure CLI task (see option “Fail on Standard Error”). Nevertheless i will create another issue in the helmet project. Somewhere it should be solved.
Still happening it seems, Azure DevOps…
Found tool in cache: helm 3.2.4 x64
##[error]history.go:52: [debug] getting history for release xyz