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

[BUG]: HelmDeploy@1 rollback doesn't work #20766

Open
4 of 7 tasks
AlexeyTarasov1 opened this issue Jan 3, 2025 · 0 comments
Open
4 of 7 tasks

[BUG]: HelmDeploy@1 rollback doesn't work #20766

AlexeyTarasov1 opened this issue Jan 3, 2025 · 0 comments

Comments

@AlexeyTarasov1
Copy link

New issue checklist

Task name

HelmDeploy@1

Task version

1.248.1

Issue Description

I am trying to rollback helm release using HelmDeploy@1 task, property release name is not passing as an argument to the helm command.

task:

- task: HelmDeploy@1
  name: Rollback
  displayName: Rollback $(ServiceName)
  inputs:
    azureSubscription: $(AzureSubscriptionEndPoint)
    azureResourceGroup: $(AzureRG)
    kubernetesCluster: $(K8sCluster)
    namespace: test
    command: rollback
    releaseName: $(ServiceName)

output:

/usr/local/bin/helm rollback --namespace test
Error: "helm rollback" requires at least 1 argument

Usage:  helm rollback <RELEASE> [REVISION] [flags]
##[error]Error: "helm rollback" requires at least 1 argument

Usage:  helm rollback <RELEASE> [REVISION] [flags]

as a workaround I've added release name to argument property and it worked for me

task:

        - task: HelmDeploy@1
          name: Rollback
          displayName: Rollback $(ServiceName)
          inputs:
            azureSubscription: $(AzureSubscriptionEndPoint)
            azureResourceGroup: $(AzureRG)
            kubernetesCluster: $(K8sCluster)
            namespace: test
            command: rollback
            arguments: '$(ServiceName)'

output:

/usr/local/bin/helm rollback --namespace test app-helloworld
Rollback was a success! Happy Helming!

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.5

Relevant log output

2025-01-02T15:48:11.0296442Z ##[section]Starting: Rollback app-helloworld
2025-01-02T15:48:11.0308382Z ==============================================================================
2025-01-02T15:48:11.0308599Z Task         : Package and deploy Helm charts
2025-01-02T15:48:11.0308693Z Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running helm commands
2025-01-02T15:48:11.0308903Z Version      : 1.248.1
2025-01-02T15:48:11.0309059Z Author       : Microsoft Corporation
2025-01-02T15:48:11.0309150Z Help         : https://aka.ms/azpipes-helm-tsg
2025-01-02T15:48:11.0309298Z ==============================================================================
2025-01-02T15:48:13.3107540Z [command]/home/vsts/work/_temp/bdeedbf3-d2fb-44ba-bcb4-f43cc584d00d/bin/linux_amd64/kubelogin convert-kubeconfig -l workloadidentity
2025-01-02T15:48:13.3393898Z 
2025-01-02T15:48:13.3883697Z [command]/usr/local/bin/helm rollback --namespace test
2025-01-02T15:48:13.4394408Z Error: "helm rollback" requires at least 1 argument
2025-01-02T15:48:13.4394895Z 
2025-01-02T15:48:13.4395264Z Usage:  helm rollback <RELEASE> [REVISION] [flags]
2025-01-02T15:48:13.4496190Z ##[error]Error: "helm rollback" requires at least 1 argument

Usage:  helm rollback <RELEASE> [REVISION] [flags]

2025-01-02T15:48:13.4551575Z ##[section]Finishing: Rollback app-helloworld

Full task logs with system.debug enabled

 2025-01-03T13:29:32.0396030Z ##[debug]Evaluating condition for step: 'Rollback app-helloworld'
2025-01-03T13:29:32.0397105Z ##[debug]Evaluating: eq(variables['webisbroken'], True)
2025-01-03T13:29:32.0397411Z ##[debug]Evaluating eq:
2025-01-03T13:29:32.0397655Z ##[debug]..Evaluating indexer:
2025-01-03T13:29:32.0397881Z ##[debug]....Evaluating variables:
2025-01-03T13:29:32.0398414Z ##[debug]....=> Object
2025-01-03T13:29:32.0398812Z ##[debug]....Evaluating String:
2025-01-03T13:29:32.0399078Z ##[debug]....=> 'webisbroken'
2025-01-03T13:29:32.0399575Z ##[debug]..=> 'true'
2025-01-03T13:29:32.0399812Z ##[debug]..Evaluating Boolean:
2025-01-03T13:29:32.0400001Z ##[debug]..=> True
2025-01-03T13:29:32.0401006Z ##[debug]..=> 'True'
2025-01-03T13:29:32.0401199Z ##[debug]=> True
2025-01-03T13:29:32.0401808Z ##[debug]Expanded: eq('true', True)
2025-01-03T13:29:32.0402370Z ##[debug]Result: True
2025-01-03T13:29:32.0402857Z ##[section]Starting: Rollback app-helloworld
2025-01-03T13:29:32.0412694Z ==============================================================================
2025-01-03T13:29:32.0412870Z Task         : Package and deploy Helm charts
2025-01-03T13:29:32.0412955Z Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running helm commands
2025-01-03T13:29:32.0413109Z Version      : 1.248.1
2025-01-03T13:29:32.0413179Z Author       : Microsoft Corporation
2025-01-03T13:29:32.0413296Z Help         : https://aka.ms/azpipes-helm-tsg
2025-01-03T13:29:32.0413376Z ==============================================================================
2025-01-03T13:29:32.1470290Z ##[debug]Using node path: /home/vsts/agents/3.248.0/externals/node20_1/bin/node
2025-01-03T13:29:32.2417729Z ##[debug]agent.TempDirectory=/home/vsts/work/_temp
2025-01-03T13:29:32.2432802Z ##[debug]loading inputs and endpoints
2025-01-03T13:29:32.2434933Z ##[debug]loading INPUT_CONNECTIONTYPE
2025-01-03T13:29:32.2456729Z ##[debug]loading INPUT_AZURESUBSCRIPTIONENDPOINT
2025-01-03T13:29:32.2457674Z ##[debug]loading INPUT_AZURERESOURCEGROUP
2025-01-03T13:29:32.2459329Z ##[debug]loading INPUT_KUBERNETESCLUSTER
2025-01-03T13:29:32.2460888Z ##[debug]loading INPUT_USECLUSTERADMIN
2025-01-03T13:29:32.2462658Z ##[debug]loading INPUT_NAMESPACE
2025-01-03T13:29:32.2464272Z ##[debug]loading INPUT_COMMAND
2025-01-03T13:29:32.2467217Z ##[debug]loading INPUT_CHARTTYPE
2025-01-03T13:29:32.2469369Z ##[debug]loading INPUT_CHARTPATH
2025-01-03T13:29:32.2471931Z ##[debug]loading INPUT_RELEASENAME
2025-01-03T13:29:32.2475279Z ##[debug]loading INPUT_VALUEFILE
2025-01-03T13:29:32.2478910Z ##[debug]loading INPUT_DESTINATION
2025-01-03T13:29:32.2480960Z ##[debug]loading INPUT_CANARYIMAGE
2025-01-03T13:29:32.2483245Z ##[debug]loading INPUT_UPGRADETILLER
2025-01-03T13:29:32.2486505Z ##[debug]loading INPUT_UPDATEDEPENDENCY
2025-01-03T13:29:32.2490456Z ##[debug]loading INPUT_SAVE
2025-01-03T13:29:32.2491016Z ##[debug]loading INPUT_INSTALL
2025-01-03T13:29:32.2496028Z ##[debug]loading INPUT_RECREATE
2025-01-03T13:29:32.2496389Z ##[debug]loading INPUT_RESETVALUES
2025-01-03T13:29:32.2497783Z ##[debug]loading INPUT_FORCE
2025-01-03T13:29:32.2501264Z ##[debug]loading INPUT_WAITFOREXECUTION
2025-01-03T13:29:32.2503423Z ##[debug]loading INPUT_ENABLETLS
2025-01-03T13:29:32.2507095Z ##[debug]loading INPUT_FAILONSTDERR
2025-01-03T13:29:32.2510905Z ##[debug]loading INPUT_PUBLISHPIPELINEMETADATA
2025-01-03T13:29:32.2511970Z ##[debug]loading INPUT_CHARTPATHFORACR
2025-01-03T13:29:32.2512350Z ##[debug]loading ENDPOINT_AUTH_*******
2025-01-03T13:29:32.2549139Z ##[debug]loading ENDPOINT_AUTH_SCHEME_*******
2025-01-03T13:29:32.2549575Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_*******_TENANTID
2025-01-03T13:29:32.2549983Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_*******_SCOPE
2025-01-03T13:29:32.2550407Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_*******_WORKLOADIDENTITYFEDERATIONSUBJECT
2025-01-03T13:29:32.2551018Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_*******_WORKLOADIDENTITYFEDERATIONISSUER
2025-01-03T13:29:32.2552603Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_*******_SERVICEPRINCIPALID
2025-01-03T13:29:32.2553020Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2025-01-03T13:29:32.2553403Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2025-01-03T13:29:32.2554039Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2025-01-03T13:29:32.2554804Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2025-01-03T13:29:32.2555176Z ##[debug]loaded 36
2025-01-03T13:29:32.2555537Z ##[debug]Agent.ProxyUrl=undefined
2025-01-03T13:29:32.2555923Z ##[debug]Agent.CAInfo=undefined
2025-01-03T13:29:32.2556275Z ##[debug]Agent.ClientCert=undefined
2025-01-03T13:29:32.2556654Z ##[debug]Agent.SkipCertValidation=undefined
2025-01-03T13:29:32.2835724Z ##[debug]namespace=test
2025-01-03T13:29:32.3116444Z ##[debug]agent.proxyurl=undefined
2025-01-03T13:29:32.3117303Z ##[debug]VSTS_ARM_REST_IGNORE_SSL_ERRORS=undefined
2025-01-03T13:29:32.3118828Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_9f6b043c-e12a-4370-9bf9-799775c49a18_build_501_0
2025-01-03T13:29:32.3130204Z ##[debug]System.TeamFoundationCollectionUri=https://dev.azure.com/*******/
2025-01-03T13:29:32.3136205Z ##[debug]System.HostType=build
2025-01-03T13:29:32.3137429Z ##[debug]System.DefaultWorkingDirectory=/home/vsts/work/1/s
2025-01-03T13:29:32.3138211Z ##[debug]Build.SourceBranchName=brake_the_app
2025-01-03T13:29:32.3139051Z ##[debug]Build.Repository.Provider=TfsGit
2025-01-03T13:29:32.3139524Z ##[debug]Build.Repository.Uri=https:/*******@dev.azure.com/*******/test/_git/test
2025-01-03T13:29:32.4402641Z ##[debug]namespace=test
2025-01-03T13:29:32.4406234Z ##[debug]check path : /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/1.248.1/task.json
2025-01-03T13:29:32.4409670Z ##[debug]adding resource file: /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/1.248.1/task.json
2025-01-03T13:29:32.4410325Z ##[debug]system.culture=en-US
2025-01-03T13:29:32.4425896Z ##[debug]check path : /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/1.248.1/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-01-03T13:29:32.4426673Z ##[debug]adding resource file: /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/1.248.1/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-01-03T13:29:32.4427390Z ##[debug]system.culture=en-US
2025-01-03T13:29:32.4441000Z ##[debug]command=rollback
2025-01-03T13:29:32.4442388Z ##[debug]connectionType=Azure Resource Manager
2025-01-03T13:29:32.4444293Z ##[debug]connectionType=Azure Resource Manager
2025-01-03T13:29:32.4454620Z ##[debug]connectionType=Azure Resource Manager
2025-01-03T13:29:32.4455291Z ##[debug]azureSubscriptionEndpoint=*******
2025-01-03T13:29:32.4479597Z ##[debug]agent.proxyurl=undefined
2025-01-03T13:29:32.4480293Z ##[debug]VSTS_ARM_REST_IGNORE_SSL_ERRORS=undefined
2025-01-03T13:29:32.4481234Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_9f6b043c-e12a-4370-9bf9-799775c49a18_build_501_0
2025-01-03T13:29:32.4498072Z ##[debug]Resource file has already set to: /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/1.248.1/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-01-03T13:29:32.4499262Z ##[debug]Resource file has already set to: /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/1.248.1/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-01-03T13:29:32.4500015Z ##[debug]Resource file has already set to: /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/1.248.1/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-01-03T13:29:32.5960667Z ##[debug]Using msalv2
2025-01-03T13:29:32.6289530Z ##[debug]Resource file has already set to: /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/1.248.1/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-01-03T13:29:32.6290979Z ##[debug]Agent.TempDirectory=/home/vsts/work/_temp
2025-01-03T13:29:32.6291771Z ##[debug]Resource file has already set to: /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/1.248.1/node_modules/azure-pipelines-tasks-azure-arm-rest/module.json
2025-01-03T13:29:32.6292521Z ##[debug]kubernetesCluster=*****
2025-01-03T13:29:32.6293205Z ##[debug]azureSubscriptionEndpoint=*******
2025-01-03T13:29:32.6376906Z ##[debug]azureResourceGroup=*******
2025-01-03T13:29:32.6377320Z ##[debug]useClusterAdmin=false
2025-01-03T13:29:32.6377671Z ##[debug]USE_MSAL=true
2025-01-03T13:29:32.6378204Z ##[debug]MSAL - USE_MSAL override is found: true
2025-01-03T13:29:32.6378601Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 auth scheme = WorkloadIdentityFederation
2025-01-03T13:29:32.6379012Z ##[debug]Overriding useMSAL to true as workloadidentityfederation supports only MSAL
2025-01-03T13:29:32.6379578Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 data subscriptionid = *******
2025-01-03T13:29:32.6380027Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 data subscriptionname = *******
2025-01-03T13:29:32.6380547Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 auth param serviceprincipalid = ***
2025-01-03T13:29:32.6380986Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 data activeDirectoryAuthority = https://login.microsoftonline.com/
2025-01-03T13:29:32.6381440Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 auth param tenantid = *******
2025-01-03T13:29:32.6381846Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21=https://management.azure.com/
2025-01-03T13:29:32.6382243Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 data environment = AzureCloud
2025-01-03T13:29:32.6382649Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 auth scheme = WorkloadIdentityFederation
2025-01-03T13:29:32.6383132Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 data msiclientId = undefined
2025-01-03T13:29:32.6383623Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 data activeDirectoryServiceEndpointResourceId = https://management.core.windows.net/
2025-01-03T13:29:32.6384348Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 data AzureKeyVaultServiceEndpointResourceId = https://vault.azure.net
2025-01-03T13:29:32.6384802Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 data AzureKeyVaultDnsSuffix = vault.azure.net
2025-01-03T13:29:32.6385391Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 data ScopeLevel = Subscription
2025-01-03T13:29:32.6385789Z ##[debug]MSAL - getEndpoint - useGraphActiveDirectoryResource=false
2025-01-03T13:29:32.6386141Z ##[debug]MSAL - getEndpoint - useMSAL=true
2025-01-03T13:29:32.6386913Z ##[debug]MSAL - getEndpoint - endpoint={"subscriptionID":"*******","subscriptionName":"*******","servicePrincipalClientID":"***","environmentAuthorityUrl":"https://login.microsoftonline.com/","tenantID":"*******","url":"https://management.azure.com/","environment":"AzureCloud","scheme":"WorkloadIdentityFederation","activeDirectoryResourceID":"https://management.core.windows.net/","azureKeyVaultServiceEndpointResourceId":"https://vault.azure.net","azureKeyVaultDnsSuffix":"vault.azure.net","scopeLevel":"Subscription"}
2025-01-03T13:29:32.6387678Z ##[debug]MSAL - getEndpoint - connectedServiceName=*******
2025-01-03T13:29:32.6388351Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 auth param authenticationType = undefined
2025-01-03T13:29:32.6388769Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 data EnableAdfsAuthentication = false
2025-01-03T13:29:32.6389177Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 auth param apitoken = undefined
2025-01-03T13:29:32.6390389Z ##[debug]{"subscriptionID":"*******","subscriptionName":"*******","servicePrincipalClientID":"***","environmentAuthorityUrl":"https://login.microsoftonline.com/","tenantID":"*****","url":"https://management.azure.com/","environment":"AzureCloud","scheme":"WorkloadIdentityFederation","activeDirectoryResourceID":"https://management.azure.com/","azureKeyVaultServiceEndpointResourceId":"https://vault.azure.net","azureKeyVaultDnsSuffix":"vault.azure.net","scopeLevel":"Subscription","isADFSEnabled":false,"applicationTokenCredentials":{"connectedServiceName":"*******","clientId":"***","tenantId":"*******","baseUrl":"https://management.azure.com/","authorityUrl":"https://login.microsoftonline.com/","activeDirectoryResourceId":"https://management.azure.com/","isAzureStackEnvironment":false,"scheme":2,"isADFSEnabled":false,"useMSAL":true,"tokenMutex":{"_semaphore":{"_value":1,"_cancelError":{},"_weightedQueues":[],"_weightedWaiters":[]}}}}
2025-01-03T13:29:32.6391627Z ##[debug]Kubernetes cluster*******, resource group *******.
2025-01-03T13:29:32.6392008Z ##[debug]MSAL - getMSALToken called. force=undefined
2025-01-03T13:29:32.6392413Z ##[debug]agent.proxyurl=undefined
2025-01-03T13:29:32.6392768Z ##[debug]agent.proxybypasslist=undefined
2025-01-03T13:29:32.6393130Z ##[debug]MSAL - FederatedAccess - OIDC is used.
2025-01-03T13:29:32.6393490Z ##[debug]System.TeamProjectId=*******
2025-01-03T13:29:32.6394022Z ##[debug]System.HostType=build
2025-01-03T13:29:32.6394402Z ##[debug]System.PlanId=88b12eb7-2b88-4037-9b77-dd1013e49a01
2025-01-03T13:29:32.6394855Z ##[debug]System.JobId=a0d05cf5-adad-588f-189a-de5afe29addd
2025-01-03T13:29:32.6395447Z ##[debug]System.CollectionUri=https://dev.azure.com/*******/
2025-01-03T13:29:32.6396019Z ##[debug]Getting credentials for local feeds
2025-01-03T13:29:32.6396382Z ##[debug]SYSTEMVSSCONNECTION exists true
2025-01-03T13:29:32.6396751Z ##[debug]Got auth token
2025-01-03T13:29:32.8892410Z ##[debug]Got OIDC token
2025-01-03T13:29:32.8906291Z ##[debug][Fri, 03 Jan 2025 13:29:32 GMT] : [] : @azure/[email protected] : Info - acquireTokenByClientCredential called
2025-01-03T13:29:32.8944709Z ##[debug][Fri, 03 Jan 2025 13:29:32 GMT] : [64ecbd0b-17a0-4e80-b29c-81928ab811db] : @azure/[email protected] : Info - Building oauth client configuration with the following authority: https://login.microsoftonline.com/*****/oauth2/v2.0/token.
2025-01-03T13:29:32.8998930Z ##[debug][Fri, 03 Jan 2025 13:29:32 GMT] : [64ecbd0b-17a0-4e80-b29c-81928ab811db] : @azure/[email protected] : Info - Sending token request to endpoint: https://login.microsoftonline.com/*****/oauth2/v2.0/token
2025-01-03T13:29:33.2672251Z ##[debug][Fri, 03 Jan 2025 13:29:33 GMT] : [64ecbd0b-17a0-4e80-b29c-81928ab811db] : @azure/[email protected] : Warning - No client info in response
2025-01-03T13:29:33.2686572Z ##[debug]MSAL - retrieved token - isFromCache?: false
2025-01-03T13:29:33.2689968Z ##[debug]CLIENT_RESETSTREAMONRETRY=undefined
2025-01-03T13:29:33.2691179Z ##[debug][GET]https://management.azure.com/subscriptions/*******/resourceGroups/*******/providers/Microsoft.ContainerService/managedClusters/*******/accessProfiles/clusterUser?api-version=2017-08-31
2025-01-03T13:29:33.8455995Z ##[debug]Agent environment resources - Disk: / Available 21754.67 MB out of 74244.74 MB, Memory: Used 1041.00 MB out of 6921.00 MB, CPU: Usage 22.07%
2025-01-03T13:29:34.0419329Z ##[debug]Correlation ID from ARM api call response : 105cedbe-4ea3-4fad-bba1-76b0a8fbf6b7
2025-01-03T13:29:34.0423185Z ##[debug]agent.tempDirectory=/home/vsts/work/_temp
2025-01-03T13:29:34.0426817Z ##[debug]Kubeconfig file path: /home/vsts/work/_temp/helmTask/1735910974042/config
2025-01-03T13:29:34.0431866Z ##[debug]which 'kubectl'
2025-01-03T13:29:34.0443019Z ##[debug]found: '/usr/bin/kubectl'
2025-01-03T13:29:34.0443552Z ##[debug]agent.tempDirectory=/home/vsts/work/_temp
2025-01-03T13:29:34.0444596Z ##[debug]which 'kubelogin'
2025-01-03T13:29:34.0446822Z ##[debug]found: '/home/vsts/work/_temp/207e7ee0-f54a-43da-8c0a-3627aa900996/bin/linux_amd64/kubelogin'
2025-01-03T13:29:34.0447227Z ##[debug]Kubelogin is installed. Converting kubeconfig.
2025-01-03T13:29:34.0448878Z ##[debug]azureSubscriptionEndpoint=*******
2025-01-03T13:29:34.0454430Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 auth scheme = WorkloadIdentityFederation
2025-01-03T13:29:34.0455168Z ##[debug]Kubelogin authentication scheme WorkloadIdentityFederation
2025-01-03T13:29:34.0455997Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 auth param serviceprincipalid = ***
2025-01-03T13:29:34.0457178Z ##[debug]4e4a93b1-34d6-4204-943b-2285a4fdaa21 auth param tenantid = *******
2025-01-03T13:29:34.0458871Z ##[debug]System.JobId=a0d05cf5-adad-588f-189a-de5afe29addd
2025-01-03T13:29:34.0459729Z ##[debug]System.PlanId=88b12eb7-2b88-4037-9b77-dd1013e49a01
2025-01-03T13:29:34.0460095Z ##[debug]System.TeamProjectId=*******
2025-01-03T13:29:34.0460452Z ##[debug]System.HostType=build
2025-01-03T13:29:34.0460806Z ##[debug]System.CollectionUri=https://dev.azure.com/*******/
2025-01-03T13:29:34.0461501Z ##[debug]Getting credentials for local feeds
2025-01-03T13:29:34.0461854Z ##[debug]SYSTEMVSSCONNECTION exists true
2025-01-03T13:29:34.0462195Z ##[debug]Got auth token
2025-01-03T13:29:34.2366997Z ##[debug]set AZURE_CLIENT_ID=***
2025-01-03T13:29:34.2370413Z ##[debug]Processed: ##vso[task.setvariable variable=AZURE_CLIENT_ID;isOutput=false;issecret=false;]***
2025-01-03T13:29:34.2372539Z ##[debug]set AZURE_TENANT_ID=*****
2025-01-03T13:29:34.2375238Z ##[debug]Processed: ##vso[task.setvariable variable=AZURE_TENANT_ID;isOutput=false;issecret=false;]*****
2025-01-03T13:29:34.2377378Z ##[debug]set AZURE_FEDERATED_TOKEN_FILE=/home/vsts/work/_temp/helmTask/1735910974044/id_token
2025-01-03T13:29:34.2380047Z ##[debug]Processed: ##vso[task.setvariable variable=AZURE_FEDERATED_TOKEN_FILE;isOutput=false;issecret=false;]/home/vsts/work/_temp/helmTask/1735910974044/id_token
2025-01-03T13:29:34.2380899Z ##[debug]set AZURE_AUTHORITY_HOST=https://login.microsoftonline.com/
2025-01-03T13:29:34.2381886Z ##[debug]Processed: ##vso[task.setvariable variable=AZURE_AUTHORITY_HOST;isOutput=false;issecret=false;]https://login.microsoftonline.com/
2025-01-03T13:29:34.2382767Z ##[debug]which '/home/vsts/work/_temp/207e7ee0-f54a-43da-8c0a-3627aa900996/bin/linux_amd64/kubelogin'
2025-01-03T13:29:34.2383596Z ##[debug]found: '/home/vsts/work/_temp/207e7ee0-f54a-43da-8c0a-3627aa900996/bin/linux_amd64/kubelogin'
2025-01-03T13:29:34.2395191Z ##[debug]/home/vsts/work/_temp/207e7ee0-f54a-43da-8c0a-3627aa900996/bin/linux_amd64/kubelogin arg: convert-kubeconfig
2025-01-03T13:29:34.2396179Z ##[debug]/home/vsts/work/_temp/207e7ee0-f54a-43da-8c0a-3627aa900996/bin/linux_amd64/kubelogin arg: ["-l","workloadidentity"]
2025-01-03T13:29:34.2396609Z ##[debug]System.Debug=True
2025-01-03T13:29:34.2397034Z ##[debug]/home/vsts/work/_temp/207e7ee0-f54a-43da-8c0a-3627aa900996/bin/linux_amd64/kubelogin arg: ["--v","20"]
2025-01-03T13:29:34.2400240Z ##[debug]exec tool: /home/vsts/work/_temp/207e7ee0-f54a-43da-8c0a-3627aa900996/bin/linux_amd64/kubelogin
2025-01-03T13:29:34.2400697Z ##[debug]arguments:
2025-01-03T13:29:34.2401243Z ##[debug]   convert-kubeconfig
2025-01-03T13:29:34.2401598Z ##[debug]   -l
2025-01-03T13:29:34.2401930Z ##[debug]   workloadidentity
2025-01-03T13:29:34.2402286Z ##[debug]   --v
2025-01-03T13:29:34.2402923Z ##[debug]   20
2025-01-03T13:29:34.2403431Z [command]/home/vsts/work/_temp/207e7ee0-f54a-43da-8c0a-3627aa900996/bin/linux_amd64/kubelogin convert-kubeconfig -l workloadidentity --v 20
2025-01-03T13:29:34.2553500Z I0103 13:29:34.254953    1762 convert.go:187] Context: , Login Method: workloadidentity, Environment: AzurePublicCloud, TenantID: *****, ServerID: , ClientID: ***, IsLegacy: false, msiResourceID: , Timeout: 30s, tokenCacheDir: /home/vsts/.kube/cache/kubelogin/, tokenCacheFile: /home/vsts/.kube/cache/kubelogin/AzurePublicCloud---.json, AZURE_CONFIG_DIR: 
2025-01-03T13:29:34.2554527Z I0103 13:29:34.255020    1762 convert.go:197] Loading kubeconfig from /home/vsts/work/_temp/helmTask/1735910974042/config
2025-01-03T13:29:34.2563963Z I0103 13:29:34.256236    1762 loader.go:395] Config loaded from file:  /home/vsts/work/_temp/helmTask/1735910974042/config
2025-01-03T13:29:34.2566396Z I0103 13:29:34.256504    1762 convert.go:219] context: "clusterUser_*******_*******"
2025-01-03T13:29:34.2567017Z I0103 13:29:34.256525    1762 convert.go:226] converting...
2025-01-03T13:29:34.2573173Z I0103 13:29:34.257120    1762 loader.go:395] Config loaded from file:  /home/vsts/work/_temp/helmTask/1735910974042/config
2025-01-03T13:29:34.2580874Z I0103 13:29:34.257913    1762 loader.go:395] Config loaded from file:  /home/vsts/work/_temp/helmTask/1735910974042/config
2025-01-03T13:29:34.2635347Z 
2025-01-03T13:29:34.2636240Z ##[debug]Exit code 0 received from tool '/home/vsts/work/_temp/207e7ee0-f54a-43da-8c0a-3627aa900996/bin/linux_amd64/kubelogin'
2025-01-03T13:29:34.2636994Z ##[debug]STDIO streams have closed for tool '/home/vsts/work/_temp/207e7ee0-f54a-43da-8c0a-3627aa900996/bin/linux_amd64/kubelogin'
2025-01-03T13:29:34.2640063Z ##[debug]which 'helm'
2025-01-03T13:29:34.2642592Z ##[debug]found: '/usr/local/bin/helm'
2025-01-03T13:29:34.2643331Z ##[debug]SYSTEM_JOBID=a0d05cf5-adad-588f-189a-de5afe29addd
2025-01-03T13:29:34.2645669Z ##[debug]failOnStderr=false
2025-01-03T13:29:34.3019352Z ##[debug]Processed: ##vso[telemetry.publish area=TaskEndpointId;feature=HelmDeployV1]{"connectionType":"Azure Resource Manager","command":"rollback","jobId":"a0d05cf5-adad-588f-189a-de5afe29addd"}
2025-01-03T13:29:34.3023784Z ##[debug]tillernamespace=undefined
2025-01-03T13:29:34.3024209Z ##[debug]system.debug=True
2025-01-03T13:29:34.3024528Z ##[debug]namespace=test
2025-01-03T13:29:34.3024821Z ##[debug]arguments=undefined
2025-01-03T13:29:34.3025217Z ##[debug]enableTls=false
2025-01-03T13:29:34.3025507Z ##[debug]which '/usr/local/bin/helm'
2025-01-03T13:29:34.3025813Z ##[debug]found: '/usr/local/bin/helm'
2025-01-03T13:29:34.3026118Z ##[debug]/usr/local/bin/helm arg: rollback
2025-01-03T13:29:34.3026449Z ##[debug]/usr/local/bin/helm arg: --namespace test
2025-01-03T13:29:34.3027122Z ##[debug]exec tool: /usr/local/bin/helm
2025-01-03T13:29:34.3027425Z ##[debug]arguments:
2025-01-03T13:29:34.3027703Z ##[debug]   rollback
2025-01-03T13:29:34.3027988Z ##[debug]   --namespace
2025-01-03T13:29:34.3028280Z ##[debug]   test
2025-01-03T13:29:34.3028493Z [command]/usr/local/bin/helm rollback --namespace test
2025-01-03T13:29:34.3526365Z Error: "helm rollback" requires at least 1 argument
2025-01-03T13:29:34.3526767Z 
2025-01-03T13:29:34.3527114Z Usage:  helm rollback  [REVISION] [flags]
2025-01-03T13:29:34.3529031Z ##[debug]set helmExitCode=1
2025-01-03T13:29:34.3530217Z ##[debug]Processed: ##vso[task.setvariable variable=helmExitCode;isOutput=false;issecret=false;]1
2025-01-03T13:29:34.3530881Z ##[debug]publishPipelineMetadata=true
2025-01-03T13:29:34.3531510Z ##[debug]execResult: {"code":1,"stdout":"","stderr":"Error: \"helm rollback\" requires at least 1 argument\n\nUsage:  helm rollback  [REVISION] [flags]\n"}
2025-01-03T13:29:34.3532247Z ##[debug]task result: Failed
2025-01-03T13:29:34.3559881Z ##[error]Error: "helm rollback" requires at least 1 argument

Usage: helm rollback [REVISION] [flags]

2025-01-03T13:29:34.3567312Z ##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;correlationId=c3fe83bb-ac7a-4c28-92ba-147eb90de74c;]Error: "helm rollback" requires at least 1 argument

Usage: helm rollback [REVISION] [flags]

2025-01-03T13:29:34.3568959Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: "helm rollback" requires at least 1 argument

Usage: helm rollback [REVISION] [flags]

2025-01-03T13:29:34.3569625Z ##[debug]connectionType=Azure Resource Manager
2025-01-03T13:29:34.3631434Z ##[section]Finishing: Rollback app-helloworld

Repro steps

trigger:
- main
pool:
  vmImage: 'ubuntu-latest'
steps:
- task: HelmDeploy@1
  name: Rollback
  displayName: Rollback $(ServiceName)
  inputs:
    azureSubscription: $(AzureSubscriptionEndPoint)
    azureResourceGroup: $(AzureRG)
    kubernetesCluster: $(K8sCluster)
    namespace: test
    command: rollback
    releaseName: $(ServiceName)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant