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

[REGRESSION]: HelmDeploy@1 and HelmDeploy@0 stopped working with environment #20791

Open
4 of 7 tasks
PAKalucki opened this issue Jan 20, 2025 · 7 comments
Open
4 of 7 tasks
Labels
Area: Release bug regression This used to work, but a change in the service/tasks broke it. triage

Comments

@PAKalucki
Copy link

PAKalucki commented Jan 20, 2025

New issue checklist

Task name

HelmDeploy

Breaking task version

1.250.1
0.250.1

Last working task version

0.247.3

Regression Description

Both HelmDeploy@1 and HelmDeploy@0 started to ignore environment https://learn.microsoft.com/en-us/azure/devops/pipelines/process/environments?view=azure-devops#target-a-specific-environment-resource-from-a-deployment-job

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 22.04

Relevant log output

Starting: Helm upgrade
==============================================================================
Task         : Package and deploy Helm charts
Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running helm commands
Version      : 1.250.1
Author       : Microsoft Corporation
Help         : https://aka.ms/azpipes-helm-tsg
==============================================================================
##[error]Error: Input required: kubernetesCluster
Finishing: Helm upgrade

Full task logs with system.debug enabled

UNSUCCESSFUL RUN
 [REPLACE THIS WITH YOUR INFORMATION] 
SUCCESSFUL RUN
 Starting: Helm upgrade
==============================================================================
Task         : Package and deploy Helm charts
Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running helm commands
Version      : 0.247.3
Author       : Microsoft Corporation
Help         : https://aka.ms/azpipes-helm-tsg
==============================================================================
/usr/local/bin/helm upgrade --namespace test --install --wait test /home/vsts/work/1/s/test
Release "test" has been upgraded. Happy Helming!
NAME: test
LAST DEPLOYED: Mon Jan 20 11:07:46 2025
NAMESPACE: test
STATUS: deployed
REVISION: 6
TEST SUITE: None 

Repro steps

jobs:
  - deployment: Deploy
    displayName: Deploy to Kubernetes
    pool:
      vmImage: ubuntu-latest
    environment: 
      name: test
      resourceType: Kubernetes
      resourceName: test
    strategy:
      runOnce:
        deploy:
          steps:
          - checkout: self

          - task: HelmDeploy@1
            displayName: Helm upgrade
            inputs:
              namespace: default
              command: upgrade
              chartType: filepath
              chartPath: test
              releaseName: test
              install: true
              waitForExecution: true
@PAKalucki PAKalucki added bug regression This used to work, but a change in the service/tasks broke it. labels Jan 20, 2025
@PAKalucki PAKalucki changed the title [REGRESSION]: HelmDeploy@1 and HelmDeploy@0 ignore environment [REGRESSION]: HelmDeploy@1 and HelmDeploy@0 stopped working with environment Jan 20, 2025
@Deekshitha981
Copy link
Collaborator

Hi @PAKalucki could you please share the successful and unsuccessful logs with debug set to true

@murphy85
Copy link

murphy85 commented Jan 22, 2025

We faced the same issue with explicit connection configuration instead of environment configuration. Before we could just set the kubernetesServiceConnection attribute and it worked. Now the task asks for kubernetesCluster. Now it works like it is documented:

HelmDeploy@0 - Package and deploy Helm charts v0 task

#connectionType: 'Azure Resource Manager' # 'Azure Resource Manager' | 'Kubernetes Service Connection' | 'None'. Required when command != logout && command != package && command != save. Connection Type. Default: Azure Resource Manager.
#kubernetesCluster: # string. Required when connectionType = Azure Resource Manager && command != logout && command != package && command != save. Kubernetes cluster. 

If connectionType is not specified, 'Azure Resource Manager' is default. If connectionType is 'Azure Resource Manager', the attribute kubernetesCluster is required.

We just added connectionType: 'Kubernetes Service Connection' to our tasks.

@DRoppelt
Copy link

DRoppelt commented Jan 22, 2025

similar here, using HelmDeploy@0. Not affecting the environment but breaking behavior with requiring a new set of parameters to work like before.

when it worked, the underlying version was 0.247.3, now with 0.250.1 it complains with [error]Error: Input required: kubernetesCluster

Starting: Helm dependency update
==============================================================================
Task         : Package and deploy Helm charts
Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running helm commands
Version      : 0.250.1
Author       : Microsoft Corporation
Help         : https://aka.ms/azpipes-helm-tsg
==============================================================================
##[error]Error: Input required: kubernetesCluster
Finishing: Helm dependency update

The usage in our case. connectionType: 'Kubernetes Service Connection' was added to fix it.

- task: HelmDeploy@0
  displayName: Helm dependency update
  name: helm_dependency_update
  inputs:
    command: dependency
    #connectionType: 'Kubernetes Service Connection'
    kubernetesServiceConnection: ${{ parameters.kubernetesServiceConnection }}
    arguments: 'update $(Build.SourcesDirectory)/${{ parameters.helmChartPath }}'

@v-schhabra
Copy link
Contributor

Hi @DRoppelt
Could you please share the complete pipeline logs by setting the variable system.debug to true?

@DRoppelt
Copy link

DRoppelt commented Jan 22, 2025

@v-schhabra I am not able to publicly share the complete pipeline easily, but here is the failing stage's output with "Enable system diagnostics" enabled. Where things looked like credential-esque/sensitive details, they are replaced with xxx

- task: HelmDeploy@0
  displayName: Helm dependency update
  name: helm_dependency_update
  inputs:
    command: dependency
    kubernetesServiceConnection: ${{ parameters.kubernetesServiceConnection }}
    arguments: 'update $(Build.SourcesDirectory)/${{ parameters.helmChartPath }}'
2025-01-22T15:45:42.1931061Z ##[debug]Evaluating condition for step: 'Helm dependency update'
2025-01-22T15:45:42.1932272Z ##[debug]Evaluating: SucceededNode()
2025-01-22T15:45:42.1932643Z ##[debug]Evaluating SucceededNode:
2025-01-22T15:45:42.1933403Z ##[debug]=> True
2025-01-22T15:45:42.1933965Z ##[debug]Result: True
2025-01-22T15:45:42.1934323Z ##[section]Starting: Helm dependency update
2025-01-22T15:45:42.1944046Z ==============================================================================
2025-01-22T15:45:42.1944179Z Task         : Package and deploy Helm charts
2025-01-22T15:45:42.1944479Z Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running helm commands
2025-01-22T15:45:42.1944620Z Version      : 0.250.1
2025-01-22T15:45:42.1944894Z Author       : Microsoft Corporation
2025-01-22T15:45:42.1945001Z Help         : https://aka.ms/azpipes-helm-tsg
2025-01-22T15:45:42.1945110Z ==============================================================================
2025-01-22T15:45:42.2357470Z ##[debug]Agent environment resources - Disk: / Available 55891.21 MB out of 118902.42 MB, Memory: Used 1406.00 MB out of 6921.00 MB, CPU: Usage 47.85%
2025-01-22T15:45:42.3092374Z ##[debug]Using node path: /agent/externals/node20_1/bin/node
2025-01-22T15:45:42.4703164Z ##[debug]agent.TempDirectory=/agent/_work/_temp
2025-01-22T15:45:42.4723139Z ##[debug]loading inputs and endpoints
2025-01-22T15:45:42.4740696Z ##[debug]loading INPUT_CONNECTIONTYPE
2025-01-22T15:45:42.4767054Z ##[debug]loading INPUT_USECLUSTERADMIN
2025-01-22T15:45:42.4773212Z ##[debug]loading INPUT_KUBERNETESSERVICEENDPOINT
2025-01-22T15:45:42.4779176Z ##[debug]loading INPUT_COMMAND
2025-01-22T15:45:42.4784493Z ##[debug]loading INPUT_CHARTTYPE
2025-01-22T15:45:42.4789153Z ##[debug]loading INPUT_CHARTPATH
2025-01-22T15:45:42.4793827Z ##[debug]loading INPUT_VALUEFILE
2025-01-22T15:45:42.4799467Z ##[debug]loading INPUT_DESTINATION
2025-01-22T15:45:42.4804207Z ##[debug]loading INPUT_CANARYIMAGE
2025-01-22T15:45:42.4809686Z ##[debug]loading INPUT_UPGRADETILLER
2025-01-22T15:45:42.4816195Z ##[debug]loading INPUT_UPDATEDEPENDENCY
2025-01-22T15:45:42.4825229Z ##[debug]loading INPUT_SAVE
2025-01-22T15:45:42.4830351Z ##[debug]loading INPUT_INSTALL
2025-01-22T15:45:42.4838365Z ##[debug]loading INPUT_RECREATE
2025-01-22T15:45:42.4843624Z ##[debug]loading INPUT_RESETVALUES
2025-01-22T15:45:42.4850991Z ##[debug]loading INPUT_FORCE
2025-01-22T15:45:42.4857369Z ##[debug]loading INPUT_WAITFOREXECUTION
2025-01-22T15:45:42.4864423Z ##[debug]loading INPUT_ARGUMENTS
2025-01-22T15:45:42.4871947Z ##[debug]loading INPUT_ENABLETLS
2025-01-22T15:45:42.4877306Z ##[debug]loading INPUT_FAILONSTDERR
2025-01-22T15:45:42.4884074Z ##[debug]loading INPUT_PUBLISHPIPELINEMETADATA
2025-01-22T15:45:42.4891404Z ##[debug]loading INPUT_CHARTPATHFORACR
2025-01-22T15:45:42.4896490Z ##[debug]loading ENDPOINT_AUTH_xxx
2025-01-22T15:45:42.4901466Z ##[debug]loading ENDPOINT_AUTH_SCHEME_xxx
2025-01-22T15:45:42.4902919Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_xxx_CLUSTERCONTEXT
2025-01-22T15:45:42.4904360Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_xxx_KUBECONFIG
2025-01-22T15:45:42.4907277Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2025-01-22T15:45:42.4909273Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2025-01-22T15:45:42.4910852Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2025-01-22T15:45:42.4920407Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2025-01-22T15:45:42.4922614Z ##[debug]loaded 30
2025-01-22T15:45:42.4928697Z ##[debug]Agent.ProxyUrl=undefined
2025-01-22T15:45:42.4929483Z ##[debug]Agent.CAInfo=undefined
2025-01-22T15:45:42.4930086Z ##[debug]Agent.ClientCert=undefined
2025-01-22T15:45:42.4931056Z ##[debug]Agent.SkipCertValidation=undefined
2025-01-22T15:45:42.5292505Z ##[debug]namespace=undefined
2025-01-22T15:45:42.5628562Z ##[debug]agent.proxyurl=undefined
2025-01-22T15:45:42.5629610Z ##[debug]VSTS_ARM_REST_IGNORE_SSL_ERRORS=undefined
2025-01-22T15:45:42.5631182Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_xxx_build_1527_0
2025-01-22T15:45:42.5645346Z ##[debug]System.TeamFoundationCollectionUri=https://dev.azure.com/xxx/
2025-01-22T15:45:42.5646259Z ##[debug]System.HostType=build
2025-01-22T15:45:42.5646962Z ##[debug]System.DefaultWorkingDirectory=/agent/_work/2/s
2025-01-22T15:45:42.5647958Z ##[debug]Build.SourceBranchName=helmdeploy
2025-01-22T15:45:42.5649493Z ##[debug]Build.Repository.Provider=TfsGit
2025-01-22T15:45:42.5650254Z ##[debug]Build.Repository.Uri=https://xxx/pipelines
2025-01-22T15:45:42.6930621Z ##[debug]namespace=undefined
2025-01-22T15:45:42.6934567Z ##[debug]check path : /agent/_work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.250.1/task.json
2025-01-22T15:45:42.6941759Z ##[debug]adding resource file: /agent/_work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.250.1/task.json
2025-01-22T15:45:42.6944283Z ##[debug]system.culture=en-US
2025-01-22T15:45:42.6964901Z ##[debug]check path : /agent/_work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.250.1/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-01-22T15:45:42.6967356Z ##[debug]adding resource file: /agent/_work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.250.1/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-01-22T15:45:42.6969676Z ##[debug]system.culture=en-US
2025-01-22T15:45:42.6992178Z ##[debug]command=dependency
2025-01-22T15:45:42.6996233Z ##[debug]connectionType=Azure Resource Manager
2025-01-22T15:45:42.7000716Z ##[debug]connectionType=Azure Resource Manager
2025-01-22T15:45:42.7005715Z ##[debug]connectionType=Azure Resource Manager
2025-01-22T15:45:42.7087371Z ##[debug]task result: Failed
2025-01-22T15:45:42.7111400Z ##[error]Error: Input required: kubernetesCluster
2025-01-22T15:45:42.7118535Z ##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;correlationId=25d9ab95-d9a8-4d5f-a6b3-61c130d2e7d0;]Error: Input required: kubernetesCluster
2025-01-22T15:45:42.7120784Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Input required: kubernetesCluster
2025-01-22T15:45:42.7326636Z ##[section]Finishing: Helm dependency update

@PAKalucki
Copy link
Author

PAKalucki commented Jan 23, 2025

Having to manually define kubernetesServiceConnection created by the environment in my pipelines kind of defies the point of using environments for me.

Debug logs for working run with 0.247.3 version:

2025-01-23T19:25:54.9972829Z ##[debug]Evaluating condition for step: 'Helm upgrade'
2025-01-23T19:25:54.9973745Z ##[debug]Evaluating: SucceededNode()
2025-01-23T19:25:54.9974347Z ##[debug]Evaluating SucceededNode:
2025-01-23T19:25:54.9974987Z ##[debug]=> True
2025-01-23T19:25:54.9975366Z ##[debug]Result: True
2025-01-23T19:25:54.9975701Z ##[section]Starting: Helm upgrade
2025-01-23T19:25:54.9989139Z ==============================================================================
2025-01-23T19:25:54.9989355Z Task         : Package and deploy Helm charts
2025-01-23T19:25:54.9989478Z Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running helm commands
2025-01-23T19:25:54.9989675Z Version      : 0.247.3
2025-01-23T19:25:54.9989768Z Author       : Microsoft Corporation
2025-01-23T19:25:54.9989887Z Help         : https://aka.ms/azpipes-helm-tsg
2025-01-23T19:25:54.9989995Z ==============================================================================
2025-01-23T19:25:55.2221640Z ##[debug]Using node path: /home/vsts/agents/4.248.0/externals/node20_1/bin/node
2025-01-23T19:25:55.3110233Z ##[debug]agent.TempDirectory=/home/vsts/work/_temp
2025-01-23T19:25:55.3125560Z ##[debug]loading inputs and endpoints
2025-01-23T19:25:55.3134869Z ##[debug]loading INPUT_CONNECTIONTYPE
2025-01-23T19:25:55.3157230Z ##[debug]loading INPUT_USECLUSTERADMIN
2025-01-23T19:25:55.3162349Z ##[debug]loading INPUT_KUBERNETESSERVICEENDPOINT
2025-01-23T19:25:55.3167157Z ##[debug]loading INPUT_NAMESPACE
2025-01-23T19:25:55.3171857Z ##[debug]loading INPUT_COMMAND
2025-01-23T19:25:55.3176717Z ##[debug]loading INPUT_CHARTTYPE
2025-01-23T19:25:55.3181437Z ##[debug]loading INPUT_CHARTPATH
2025-01-23T19:25:55.3187522Z ##[debug]loading INPUT_RELEASENAME
2025-01-23T19:25:55.3192476Z ##[debug]loading INPUT_OVERRIDEVALUES
2025-01-23T19:25:55.3198174Z ##[debug]loading INPUT_VALUEFILE
2025-01-23T19:25:55.3204190Z ##[debug]loading INPUT_DESTINATION
2025-01-23T19:25:55.3210633Z ##[debug]loading INPUT_CANARYIMAGE
2025-01-23T19:25:55.3221166Z ##[debug]loading INPUT_UPGRADETILLER
2025-01-23T19:25:55.3222281Z ##[debug]loading INPUT_UPDATEDEPENDENCY
2025-01-23T19:25:55.3223634Z ##[debug]loading INPUT_SAVE
2025-01-23T19:25:55.3227423Z ##[debug]loading INPUT_INSTALL
2025-01-23T19:25:55.3232183Z ##[debug]loading INPUT_RECREATE
2025-01-23T19:25:55.3239095Z ##[debug]loading INPUT_RESETVALUES
2025-01-23T19:25:55.3244078Z ##[debug]loading INPUT_FORCE
2025-01-23T19:25:55.3248338Z ##[debug]loading INPUT_WAITFOREXECUTION
2025-01-23T19:25:55.3254021Z ##[debug]loading INPUT_ENABLETLS
2025-01-23T19:25:55.3259387Z ##[debug]loading INPUT_FAILONSTDERR
2025-01-23T19:25:55.3263640Z ##[debug]loading INPUT_PUBLISHPIPELINEMETADATA
2025-01-23T19:25:55.3267785Z ##[debug]loading INPUT_CHARTPATHFORACR
2025-01-23T19:25:55.3272010Z ##[debug]loading ENDPOINT_AUTH_xyz
2025-01-23T19:25:55.3276368Z ##[debug]loading ENDPOINT_AUTH_SCHEME_xyz
2025-01-23T19:25:55.3281877Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_xyz_AZUREENVIRONMENT
2025-01-23T19:25:55.3285269Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_xyz_AZURETENANTID
2025-01-23T19:25:55.3289548Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_xyz_SERVICEACCOUNTNAME
2025-01-23T19:25:55.3294022Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_xyz_ROLEBINDINGNAME
2025-01-23T19:25:55.3298162Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_xyz_SECRETNAME
2025-01-23T19:25:55.3302232Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_xyz_APITOKEN
2025-01-23T19:25:55.3306475Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_xyz_SERVICEACCOUNTCERTIFICATE
2025-01-23T19:25:55.3310894Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2025-01-23T19:25:55.3315150Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2025-01-23T19:25:55.3320186Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2025-01-23T19:25:55.3331946Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2025-01-23T19:25:55.3336629Z ##[debug]loaded 37
2025-01-23T19:25:55.3345524Z ##[debug]Agent.ProxyUrl=undefined
2025-01-23T19:25:55.3349390Z ##[debug]Agent.CAInfo=undefined
2025-01-23T19:25:55.3352110Z ##[debug]Agent.ClientCert=undefined
2025-01-23T19:25:55.3354772Z ##[debug]Agent.SkipCertValidation=undefined
2025-01-23T19:25:55.3680609Z ##[debug]namespace=xyz
2025-01-23T19:25:55.4021895Z ##[debug]agent.proxyurl=undefined
2025-01-23T19:25:55.4023459Z ##[debug]VSTS_ARM_REST_IGNORE_SSL_ERRORS=undefined
2025-01-23T19:25:55.4024922Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_a82a4ede-92e3-4bf7-b2e8-d2981427554b_build_114_0
2025-01-23T19:25:55.4029489Z ##[debug]System.TeamFoundationCollectionUri=https://dev.azure.com/xyz/
2025-01-23T19:25:55.4030360Z ##[debug]System.HostType=build
2025-01-23T19:25:55.4031620Z ##[debug]System.DefaultWorkingDirectory=/home/vsts/work/1/s
2025-01-23T19:25:55.4032403Z ##[debug]Build.SourceBranchName=development
2025-01-23T19:25:55.4033644Z ##[debug]Build.Repository.Provider=TfsGit
2025-01-23T19:25:55.4034457Z ##[debug]Build.Repository.Uri=https://[email protected]/xyz/xyz/_git/xyz
2025-01-23T19:25:55.5184465Z ##[debug]namespace=xyz
2025-01-23T19:25:55.5216341Z ##[debug]check path : /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.247.3/task.json
2025-01-23T19:25:55.5217113Z ##[debug]adding resource file: /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.247.3/task.json
2025-01-23T19:25:55.5217710Z ##[debug]system.culture=en-US
2025-01-23T19:25:55.5218435Z ##[debug]check path : /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.247.3/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-01-23T19:25:55.5219197Z ##[debug]adding resource file: /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.247.3/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-01-23T19:25:55.5219848Z ##[debug]system.culture=en-US
2025-01-23T19:25:55.5234344Z ##[debug]command=upgrade
2025-01-23T19:25:55.5235399Z ##[debug]connectionType=Azure Resource Manager
2025-01-23T19:25:55.5236208Z ##[debug]connectionType=Azure Resource Manager
2025-01-23T19:25:55.5236939Z ##[debug]connectionType=Azure Resource Manager
2025-01-23T19:25:55.5238179Z ##[debug]azureSubscriptionEndpoint=undefined
2025-01-23T19:25:55.5306875Z ##[debug]Agent.ProxyUrl=undefined
2025-01-23T19:25:55.5307450Z ##[debug]Agent.CAInfo=undefined
2025-01-23T19:25:55.5307985Z ##[debug]Agent.ClientCert=undefined
2025-01-23T19:25:55.5308596Z ##[debug]check path : /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.247.3/node_modules/azure-pipelines-tool-lib/lib.json
2025-01-23T19:25:55.5309884Z ##[debug]adding resource file: /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.247.3/node_modules/azure-pipelines-tool-lib/lib.json
2025-01-23T19:25:55.5310504Z ##[debug]system.culture=en-US
2025-01-23T19:25:55.5317941Z ##[debug]check path : /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.247.3/node_modules/azure-pipelines-tasks-kubernetes-common/module.json
2025-01-23T19:25:55.5318711Z ##[debug]adding resource file: /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.247.3/node_modules/azure-pipelines-tasks-kubernetes-common/module.json
2025-01-23T19:25:55.5319363Z ##[debug]system.culture=en-US
2025-01-23T19:25:55.5325482Z ##[debug]kubernetesServiceEndpoint=xyz
2025-01-23T19:25:55.5326474Z ##[debug]xyz data authorizationType = AzureSubscription
2025-01-23T19:25:55.5327644Z ##[debug]xyz=https://dev-xyz-48035228.hcp.eastus.azmk8s.io/
2025-01-23T19:25:55.5332582Z ##[debug]xyz auth param serviceAccountCertificate = ***
2025-01-23T19:25:55.5335506Z ##[debug]xyz auth param apiToken = ***
2025-01-23T19:25:55.5345489Z ##[debug]agent.tempDirectory=/home/vsts/work/_temp
2025-01-23T19:25:55.5359909Z ##[debug]Kubeconfig file path: /home/vsts/work/_temp/helmTask/1737660355534/config
2025-01-23T19:25:55.5368625Z ##[debug]which 'kubectl'
2025-01-23T19:25:55.5377097Z ##[debug]found: '/usr/bin/kubectl'
2025-01-23T19:25:55.5377650Z ##[debug]agent.tempDirectory=/home/vsts/work/_temp
2025-01-23T19:25:55.5378179Z ##[debug]which 'kubelogin'
2025-01-23T19:25:55.5382753Z ##[debug]not found
2025-01-23T19:25:55.5384730Z ##[debug]which 'helm'
2025-01-23T19:25:55.5390821Z ##[debug]found: '/usr/local/bin/helm'
2025-01-23T19:25:55.5391373Z ##[debug]SYSTEM_JOBID=845195f5-6388-51b2-d3f0-92c8cacc2296
2025-01-23T19:25:55.5391886Z ##[debug]failOnStderr=false
2025-01-23T19:25:55.6271207Z ##[debug]Processed: ##vso[telemetry.publish area=TaskEndpointId;feature=HelmDeployV0]{"connectionType":"Azure Resource Manager","command":"upgrade","jobId":"845195f5-6388-51b2-d3f0-92c8cacc2296"}
2025-01-23T19:25:55.6272883Z ##[debug]tillernamespace=undefined
2025-01-23T19:25:55.6273435Z ##[debug]system.debug=True
2025-01-23T19:25:55.6273999Z ##[debug]chartType=filepath
2025-01-23T19:25:55.6274516Z ##[debug]releaseName=xyz
2025-01-23T19:25:55.6275257Z ##[debug]overrideValues=image.repository=devxyzacr.azurecr.io/xyz
image.tag=4c28849c8ecb02486aa3216d48a1ff7cff41d4d2
env=dev
2025-01-23T19:25:55.6275948Z ##[debug]namespace=xyz
2025-01-23T19:25:55.6276436Z ##[debug]waitForExecution=true
2025-01-23T19:25:55.6276944Z ##[debug]arguments=undefined
2025-01-23T19:25:55.6277463Z ##[debug]valueFile=/home/vsts/work/1/s/charts/xyz/values.yaml
2025-01-23T19:25:55.6277998Z ##[debug]install=true
2025-01-23T19:25:55.6278473Z ##[debug]recreate=false
2025-01-23T19:25:55.6278966Z ##[debug]resetValues=false
2025-01-23T19:25:55.6279440Z ##[debug]force=false
2025-01-23T19:25:55.6279909Z ##[debug]enableTls=false
2025-01-23T19:25:55.6280428Z ##[debug]System.DefaultWorkingDirectory=/home/vsts/work/1/s
2025-01-23T19:25:55.6280941Z ##[debug]version=undefined
2025-01-23T19:25:55.6281496Z ##[debug]Pattern not found in file path /home/vsts/work/1/s/charts/xyz/values.yaml.
2025-01-23T19:25:55.6282053Z ##[debug]chartPath=/home/vsts/work/1/s/charts/xyz
2025-01-23T19:25:55.6282628Z ##[debug]Pattern not found in file path /home/vsts/work/1/s/charts/xyz.
2025-01-23T19:25:55.6283552Z ##[debug]which '/usr/local/bin/helm'
2025-01-23T19:25:55.6284060Z ##[debug]found: '/usr/local/bin/helm'
2025-01-23T19:25:55.6284549Z ##[debug]/usr/local/bin/helm arg: upgrade
2025-01-23T19:25:55.6285066Z ##[debug]/usr/local/bin/helm arg: --namespace xyz
2025-01-23T19:25:55.6285573Z ##[debug]/usr/local/bin/helm arg: --install
2025-01-23T19:25:55.6286068Z ##[debug]/usr/local/bin/helm arg: --values
2025-01-23T19:25:55.6286617Z ##[debug]/usr/local/bin/helm arg: "/home/vsts/work/1/s/charts/xyz/values.yaml"
2025-01-23T19:25:55.6287430Z ##[debug]/usr/local/bin/helm arg: --set image.repository=devxyzacr.azurecr.io/xyz,image.tag=4c28849c8ecb02486aa3216d48a1ff7cff41d4d2,env=dev
2025-01-23T19:25:55.6288053Z ##[debug]/usr/local/bin/helm arg: --wait
2025-01-23T19:25:55.6288561Z ##[debug]/usr/local/bin/helm arg: xyz
2025-01-23T19:25:55.6289088Z ##[debug]/usr/local/bin/helm arg: "/home/vsts/work/1/s/charts/xyz"
2025-01-23T19:25:55.6289616Z ##[debug]exec tool: /usr/local/bin/helm
2025-01-23T19:25:55.6290110Z ##[debug]arguments:
2025-01-23T19:25:55.6291119Z ##[debug]   upgrade
2025-01-23T19:25:55.6291608Z ##[debug]   --namespace
2025-01-23T19:25:55.6292076Z ##[debug]   xyz
2025-01-23T19:25:55.6292612Z ##[debug]   --install
2025-01-23T19:25:55.6293152Z ##[debug]   --values
2025-01-23T19:25:55.6293650Z ##[debug]   /home/vsts/work/1/s/charts/xyz/values.yaml
2025-01-23T19:25:55.6295493Z ##[debug]   --set
2025-01-23T19:25:55.6296086Z ##[debug]   image.repository=devxyzacr.azurecr.io/xyz,image.tag=4c28849c8ecb02486aa3216d48a1ff7cff41d4d2,env=dev
2025-01-23T19:25:55.6296728Z ##[debug]   --wait
2025-01-23T19:25:55.6297424Z ##[debug]   xyz
2025-01-23T19:25:55.6297935Z ##[debug]   /home/vsts/work/1/s/charts/xyz
2025-01-23T19:25:55.6298559Z [command]/usr/local/bin/helm upgrade --namespace xyz --install --values /home/vsts/work/1/s/charts/xyz/values.yaml --set image.repository=devxyzacr.azurecr.io/xyz,image.tag=4c28849c8ecb02486aa3216d48a1ff7cff41d4d2,env=dev --wait xyz /home/vsts/work/1/s/charts/xyz
2025-01-23T19:25:59.7453042Z Release "xyz" has been upgraded. Happy Helming!
2025-01-23T19:25:59.7455451Z NAME: xyz
2025-01-23T19:25:59.7456261Z LAST DEPLOYED: Thu Jan 23 19:25:57 2025
2025-01-23T19:25:59.7469634Z NAMESPACE: xyz
2025-01-23T19:25:59.7470535Z STATUS: deployed
2025-01-23T19:25:59.7471148Z REVISION: 17
2025-01-23T19:25:59.7471906Z TEST SUITE: None
2025-01-23T19:25:59.7474265Z ##[debug]set helmExitCode=0
2025-01-23T19:25:59.7489600Z ##[debug]Processed: ##vso[task.setvariable variable=helmExitCode;isOutput=false;issecret=false;]0
2025-01-23T19:25:59.7491917Z ##[debug]set helmOutput=Release "xyz" has been upgraded. Happy Helming!
NAME: xyz
LAST DEPLOYED: Thu Jan 23 19:25:57 2025
NAMESPACE: xyz
STATUS: deployed
REVISION: 17
TEST SUITE: None

2025-01-23T19:25:59.7494503Z ##[debug]Processed: ##vso[task.setvariable variable=helmOutput;isOutput=false;issecret=false;]Release "xyz" has been upgraded. Happy Helming!
NAME: xyz
LAST DEPLOYED: Thu Jan 23 19:25:57 2025
NAMESPACE: xyz
STATUS: deployed
REVISION: 17
TEST SUITE: None

2025-01-23T19:25:59.7495374Z ##[debug]publishPipelineMetadata=true
2025-01-23T19:25:59.7495875Z ##[debug]which '/usr/local/bin/helm'
2025-01-23T19:25:59.7496360Z ##[debug]found: '/usr/local/bin/helm'
2025-01-23T19:25:59.7496863Z ##[debug]/usr/local/bin/helm arg: get
2025-01-23T19:25:59.7497357Z ##[debug]/usr/local/bin/helm arg: manifest
2025-01-23T19:25:59.7497881Z ##[debug]/usr/local/bin/helm arg:  xyz
2025-01-23T19:25:59.7498383Z ##[debug]/usr/local/bin/helm arg: --namespace xyz
2025-01-23T19:25:59.7498905Z ##[debug]exec tool: /usr/local/bin/helm
2025-01-23T19:25:59.7499385Z ##[debug]arguments:
2025-01-23T19:25:59.7499887Z ##[debug]   get
2025-01-23T19:25:59.7500359Z ##[debug]   manifest
2025-01-23T19:25:59.7500887Z ##[debug]   xyz
2025-01-23T19:25:59.7526793Z ##[debug]   --namespace
2025-01-23T19:25:59.7528726Z ##[debug]   xyz
2025-01-23T19:26:00.2831678Z ##[debug]chartType=filepath
2025-01-23T19:26:00.2833397Z ##[debug]which '/usr/bin/kubectl'
2025-01-23T19:26:00.2834163Z ##[debug]found: '/usr/bin/kubectl'
2025-01-23T19:26:00.2834780Z ##[debug]/usr/bin/kubectl arg: get
2025-01-23T19:26:00.2835538Z ##[debug]/usr/bin/kubectl arg: pods
2025-01-23T19:26:00.2836243Z ##[debug]/usr/bin/kubectl arg: ["-o","json"]
2025-01-23T19:26:00.2837126Z ##[debug]/usr/bin/kubectl arg: ["--namespace","xyz"]
2025-01-23T19:26:00.2838034Z ##[debug]exec tool: /usr/bin/kubectl
2025-01-23T19:26:00.2839433Z ##[debug]arguments:
2025-01-23T19:26:00.2840139Z ##[debug]   get
2025-01-23T19:26:00.2840625Z ##[debug]   pods
2025-01-23T19:26:00.2841231Z ##[debug]   -o
2025-01-23T19:26:00.2841713Z ##[debug]   json
2025-01-23T19:26:00.2842191Z ##[debug]   --namespace
2025-01-23T19:26:00.2842668Z ##[debug]   xyz
2025-01-23T19:26:00.3123529Z ##[debug]Agent environment resources - Disk: / Available 21406.62 MB out of 74244.74 MB, Memory: Used 1017.00 MB out of 6921.00 MB, CPU: Usage 76.75%
2025-01-23T19:26:00.8983599Z ##[debug]which '/usr/bin/kubectl'
2025-01-23T19:26:00.8985319Z ##[debug]found: '/usr/bin/kubectl'
2025-01-23T19:26:00.8985989Z ##[debug]/usr/bin/kubectl arg: cluster-info
2025-01-23T19:26:00.8986747Z ##[debug]exec tool: /usr/bin/kubectl
2025-01-23T19:26:00.8987315Z ##[debug]arguments:
2025-01-23T19:26:00.8987928Z ##[debug]   cluster-info
2025-01-23T19:26:00.8988462Z [command]/usr/bin/kubectl cluster-info
2025-01-23T19:26:01.2969973Z 
2025-01-23T19:26:01.2971874Z To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
2025-01-23T19:26:01.2980443Z Error from server (Forbidden): services is forbidden: User "system:serviceaccount:xyz:***" cannot list resource "services" in API group "" in the namespace "kube-system": Azure does not have opinion for this user.
2025-01-23T19:26:01.2987603Z ##[debug]System.DefinitionId=114
2025-01-23T19:26:01.2994056Z ##[debug]System.Texyzroject=xyz
2025-01-23T19:26:01.3005184Z ##[debug]System.HostType=build
2025-01-23T19:26:01.3013268Z ##[debug]System.HostType=build
2025-01-23T19:26:01.3019724Z ##[debug]Build.Reason=Manual
2025-01-23T19:26:01.3027215Z ##[debug][email protected]
2025-01-23T19:26:01.3032485Z ##[debug]Environment.Name=development
2025-01-23T19:26:01.3036365Z ##[debug]Environment.ResourceName=xyz
2025-01-23T19:26:01.3044093Z ##[debug]connectionType=Azure Resource Manager
2025-01-23T19:26:01.3049043Z ##[debug]Environment.DeploymentPhaseIdentifier=undefined
2025-01-23T19:26:01.3054497Z ##[debug]System.Texyzroject=xyz
2025-01-23T19:26:01.3062476Z ##[debug]SYSTEMVSSCONNECTION auth param ACCESSTOKEN = ***
2025-01-23T19:26:01.3064289Z ##[debug]requestUrl: https://dev.azure.com/xyz/xyz/_apis/deployment/deploymentdetails?api-version=5.2-preview.1
2025-01-23T19:26:01.3065814Z ##[debug]requestBody: {"Name":"xyz","Description":"","RelatedUrl":[{"url":"https://dev.azure.com/xyz/xyz/_build?definitionId=114","label":"Pipeline_Url"}],"ResourceUri":["https://devxyzacr.azurecr.io/xyz@sha256:239bdd851b987a6b88a2efb916c53bb7257a4e8649dbeb9fd0266b6b1703f936"],"UserEmail":"[email protected]","Config":"None","Address":"development/xyz","Platform":"AKS","PipelineRunInfo":null}
2025-01-23T19:26:01.3068722Z ##[debug]Sending request for pushing deployment data to Image meta data store
2025-01-23T19:26:01.3073807Z ##[debug][POST]https://dev.azure.com/xyz/xyz/_apis/deployment/deploymentdetails?api-version=5.2-preview.1
2025-01-23T19:26:01.3688208Z ##[debug]connectionType=Azure Resource Manager
2025-01-23T19:26:01.4663250Z ##[debug]DeploymentDetailsApiResponse: {"statusCode":204,"statusMessage":"No Content","headers":xyz
2025-01-23T19:26:01.4770322Z ##[section]Finishing: Helm upgrade

@v-schhabra
Copy link
Contributor

Hi Everyone,
We created the fix for this issue. Will post here once we deploy the fix to all the Rings.
#20805

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Release bug regression This used to work, but a change in the service/tasks broke it. triage
Projects
None yet
Development

No branches or pull requests

5 participants