question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

helm3 - setting system.debug causes "helm upgrade" pipeline to be marked as fail even though it succeeded

See original GitHub issue

Required 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:closed
  • Created 4 years ago
  • Comments:22 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
pkleimanncommented, Dec 13, 2019

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.

2reactions
vcorrcommented, Jun 30, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found