-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[BUG]: KUBECTL Azure Devops TASK kubernetes@1, cannot fetch access token for Azure on version 1.241.5 #20080
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
Comments
We appreciate your report. It seems there's a compatibility issue between the updated MSAL dependency in 1.241.5 and Node 10. Migrating to the Node 16 or Node 20 runtime is likely to rectify this problem. We are actively seeking a permanent fix. |
Another thing... I tried to revert the version in Azure Release Pipeline (classic) to a prior version by setting versionSpec, but is not working, it always defaults to the latest version. Not sure if its another issue. Thanks |
@RSoares82 You can try using task [email protected] instead of Kubernetes@1 |
@Ajeit8055 yes I did that on the yaml pipelines, but on classic releases I don't have that option and versionSpec didn't work. |
Is there any update / progress on this? Release and build pipelines for us have been broken for almost 2-weeks now. We do regular releases and this has significantly hindered our ability to release updates. @Ajeit8055 we've found a workaround using regular command line tasks calling kubectl. It's not perfect though. |
Hi @RSoares82 @archertango |
We are facing the same issue on our privately hosted VMSS pools. Please note that these agents are configured to run behind a corporate proxy. Could it be that the task is not properly picking up proxy settings from the system environment? Analysis with tcpdump reveals that the request towards login.microsoftonline.com is not being sent (no trace of it on network level). |
Hi @RSoares82 |
Hi @archertango @jappenzesr |
@v-schhabra I've emailed the build and release logs |
For the permanent fix we are collaborating with msal owners team and will update here once we have the permanent fix. |
Hello, I got the same exact situation on AzureRmWebAppDeployment v4.242.0 too.
Agent version is |
@v-schhabra and @archertango would you kindly share generic workaround steps with the community? Thanks |
Hi @yolomaniac |
Hi @yolomaniac |
thx someone from the organization will contact you soon |
Hi All, |
Hi @KristofKuli, |
Hi @v-schhabra , Thank you for the answer. Do you have any ETA, for the fix to be released? |
With the recent escalation of this issue to the helm task, we have a major productive release pipeline blocked. Please provide us with an ETA for the push of this fix to ADO ring 5. This has the potential to quickly escalate into a major issue on our side now. |
Hi @jappenzesr |
Hi, the fixes are rolled out on all the rings as large no of cx impacted due to this issue. |
New issue checklist
Task name
kubernetes@1
Task version
1.241.5
Issue Description
Task started to fail on version 1.241.5 with the message:
Reason Could not fetch access token for Azure. Status code: network_error, status message: Network request failed.
It works on prior versions
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu 20.04
Relevant log output
2024-06-27T11:46:04.1785075Z ##[error]Cannot download access profile/kube config file for the cluster xpto. Reason Could not fetch access token for Azure. Status code: network_error, status message: Network request failed.
Full task logs with system.debug enabled
Repro steps
No response
The text was updated successfully, but these errors were encountered: