microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.49k stars 2.61k forks source link

Helm Deploy Task. Error: Endpoint auth data not present when running helm init #8308

Closed stuartleeks closed 5 years ago

stuartleeks commented 6 years ago

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Environment

- If using VSTS, provide the account name, team project name, build definition name/build number: VSTS. Account: stuartle-ms, projectname: custom-vison-playground, release definition: New Release Pipeline, release-4

Issue Description

When running helm init using the Helm Deploy task I get Error: Endpoint auth data not present

I have just created the task and the service endpoints haven't been modified.

Task logs

2018-09-13T18:25:22.2073544Z ##[debug]Evaluating condition for step: 'Helm init'
2018-09-13T18:25:22.2102903Z ##[debug]Evaluating: succeeded()
2018-09-13T18:25:22.2130907Z ##[debug]Evaluating succeeded:
2018-09-13T18:25:22.2164268Z ##[debug]=> True
2018-09-13T18:25:22.2190805Z ##[debug]Result: True
2018-09-13T18:25:22.2210490Z ##[section]Starting: Helm init
2018-09-13T18:25:22.2324264Z ==============================================================================
2018-09-13T18:25:22.2337839Z Task         : Package and deploy Helm charts
2018-09-13T18:25:22.2351942Z Description  : Deploy, configure, update your Kubernetes cluster in Azure Container Service by running helm commands.
2018-09-13T18:25:22.2365082Z Version      : 0.138.2
2018-09-13T18:25:22.2377768Z Author       : Microsoft Corporation
2018-09-13T18:25:22.2391178Z Help         : [More Information](https://go.microsoft.com/fwlink/?linkid=851275)
2018-09-13T18:25:22.2405516Z ==============================================================================
2018-09-13T18:25:22.5743313Z ##[debug]agent.TempDirectory=/home/vsts/work/_temp
2018-09-13T18:25:23.2817237Z ##[debug]loading inputs and endpoints
2018-09-13T18:25:23.2845260Z ##[debug]loading INPUT_CONNECTIONTYPE
2018-09-13T18:25:23.2881139Z ##[debug]loading INPUT_AZURESUBSCRIPTIONENDPOINT
2018-09-13T18:25:23.2909182Z ##[debug]loading INPUT_AZURERESOURCEGROUP
2018-09-13T18:25:23.2942065Z ##[debug]loading INPUT_KUBERNETESCLUSTER
2018-09-13T18:25:23.2965820Z ##[debug]loading INPUT_COMMAND
2018-09-13T18:25:23.2993243Z ##[debug]loading INPUT_CHARTTYPE
2018-09-13T18:25:23.3013843Z ##[debug]loading INPUT_CHARTPATH
2018-09-13T18:25:23.3035423Z ##[debug]loading INPUT_VALUEFILE
2018-09-13T18:25:23.3058374Z ##[debug]loading INPUT_DESTINATION
2018-09-13T18:25:23.3079833Z ##[debug]loading INPUT_CANARYIMAGE
2018-09-13T18:25:23.3105439Z ##[debug]loading INPUT_UPGRADETILLER
2018-09-13T18:25:23.3125134Z ##[debug]loading INPUT_UPDATEDEPENDENCY
2018-09-13T18:25:23.3145429Z ##[debug]loading INPUT_SAVE
2018-09-13T18:25:23.3164899Z ##[debug]loading INPUT_INSTALL
2018-09-13T18:25:23.3185524Z ##[debug]loading INPUT_RECREATE
2018-09-13T18:25:23.3206126Z ##[debug]loading INPUT_RESETVALUES
2018-09-13T18:25:23.3225942Z ##[debug]loading INPUT_FORCE
2018-09-13T18:25:23.3251692Z ##[debug]loading INPUT_WAITFOREXECUTION
2018-09-13T18:25:23.3275767Z ##[debug]loading INPUT_ENABLETLS
2018-09-13T18:25:23.3296041Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2018-09-13T18:25:23.3318284Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2018-09-13T18:25:23.3344333Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2018-09-13T18:25:23.3363763Z ##[debug]loaded 22
2018-09-13T18:25:23.3385118Z ##[debug]Agent.ProxyUrl=undefined
2018-09-13T18:25:23.3404675Z ##[debug]Agent.CAInfo=undefined
2018-09-13T18:25:23.3435038Z ##[debug]Agent.ClientCert=undefined
2018-09-13T18:25:23.3457116Z ##[debug]Agent.SkipCertValidation=undefined
2018-09-13T18:25:23.3476387Z ##[debug]check path : /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.138.2/task.json
2018-09-13T18:25:23.3501186Z ##[debug]adding resource file: /home/vsts/work/_tasks/HelmDeploy_afa7d54d-537b-4dc8-b60a-e0eeea2c9a87/0.138.2/task.json
2018-09-13T18:25:23.3520312Z ##[debug]system.culture=en-US
2018-09-13T18:25:23.3540808Z ##[debug]command=init
2018-09-13T18:25:23.3560824Z ##[debug]connectionType=Azure Resource Manager
2018-09-13T18:25:23.3582669Z ##[debug]agent.proxyurl=undefined
2018-09-13T18:25:23.3601772Z ##[debug]VSTS_ARM_REST_IGNORE_SSL_ERRORS=undefined
2018-09-13T18:25:23.3626274Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_0d1011e0-7974-41d7-a7fa-11f201fb5732_release_1_4_4_1
2018-09-13T18:25:23.3920369Z ##[debug]Agent.TempDirectory=/home/vsts/work/_temp
2018-09-13T18:25:23.3946666Z ##[debug]kubernetesCluster=custom-vision
2018-09-13T18:25:23.3990731Z ##[debug]azureSubscriptionEndpoint=053490a8-73af-43eb-9ac9-61beb7fc7ec5
2018-09-13T18:25:23.4010774Z ##[debug]azureResourceGroup=custom-vision
2018-09-13T18:25:23.4031647Z ##[debug]053490a8-73af-43eb-9ac9-61beb7fc7ec5 data subscriptionid = undefined
2018-09-13T18:25:23.4052918Z ##[debug]053490a8-73af-43eb-9ac9-61beb7fc7ec5 data subscriptionname = undefined
2018-09-13T18:25:23.4073412Z ##[debug]053490a8-73af-43eb-9ac9-61beb7fc7ec5 auth param serviceprincipalid = null
2018-09-13T18:25:23.4093312Z ##[debug]053490a8-73af-43eb-9ac9-61beb7fc7ec5 data environmentAuthorityUrl = undefined
2018-09-13T18:25:23.4113235Z ##[debug]task result: Failed
2018-09-13T18:25:23.4199724Z ##[error]Error: Endpoint auth data not present: 053490a8-73af-43eb-9ac9-61beb7fc7ec5
2018-09-13T18:25:23.4232641Z ##[debug]Processed: ##vso[task.issue type=error;]Error: Endpoint auth data not present: 053490a8-73af-43eb-9ac9-61beb7fc7ec5
2018-09-13T18:25:23.4262025Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Endpoint auth data not present: 053490a8-73af-43eb-9ac9-61beb7fc7ec5
2018-09-13T18:25:23.4288435Z ##[section]Finishing: Helm init

Error logs

[Insert error from the logs here for a quick overview]

Anumita commented 6 years ago

Are you using the helm template which consists of helm installer , helm init and helm upgrade tasks? This is an known issue if you use the template.

stuartleeks commented 6 years ago

Yes - that was where I started. Is the issue on GitHub? I had a look but didn't see anything, so apologies if I missed it.

Anumita commented 6 years ago

A customer raised this issue on developer community(https://developercommunity.visualstudio.com/content/problem/324154/error-endpoint-auth-data-not-present.html). We are still looking into the issue. Could you manually add the helm task for the time being? Sorry for the inconvenience.

bansalaseem commented 6 years ago

Assigned it to Sriram as his team is looking into the issue in endpoint.

GitHubSriramB commented 6 years ago

@stuartleeks - We will get this issue fixed & provide an update.

stuartleeks commented 6 years ago

Thanks!

GitHubSriramB commented 6 years ago

@stuartleeks - Issue is fixed & fix should get deployed in a week or two.

filoe commented 5 years ago

Still running into this issue. Should it be fixed? Having a azure k8s cluster configured using kubeconfig (according to https://loekd.wordpress.com/2017/09/13/talking-to-kubernetes-from-vsts/). Btw. there is a second issue. Can't add the azure resource through azure subscription, resource group and cluster. There are no values for resource group or cluster. But most important, I need a possiblity to connect to the cluster. Kubeconfig setup is also not working!

Anumita commented 5 years ago

@filoe , can you please share your the link to your release which is failing with the above error so that we can understand this issue better?

filoe commented 5 years ago

Yes I am using the template. That is a good hint. I will try that. Thanks a lot!

Anumita commented 5 years ago

@filoe , can you please share your the link to your release which is failing with the above error so that we can understand this issue better?

filoe commented 5 years ago

Let me try it out first. I will come back to you. Your hint solves the issue. But please condiser to remove the broken template or fix it. This is really confusing and time consuming.

bansalaseem commented 5 years ago

I tried the helm template in release and observed that it indeed works. So I am closing it.