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]: Error running "migrate-tables" - failed for getting token from AzureAD - UBER PRINCIPAL #1629

Closed
1 task done
gregorymiguel opened this issue May 4, 2024 · 5 comments · Fixed by #1635
Closed
1 task done
Assignees
Labels
bug Something isn't working needs-triage

Comments

@gregorymiguel
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I found an issue when trying to execute the migrate-tables workflow.
The uber principal has been created and the policy was updated correctly with the uber credentials info.
All the 4 tasks returns with the same error:

image
image

image

Both clusters (main and migrate_tables) are using the policy created by create-uber-principal task.

Policy:
image

image

Expected Behavior

The cluster should be able to get AAD token using the uber principal credentials.

Steps To Reproduce

No response

Cloud

Azure

Operating System

macOS

Version

latest via Databricks CLI

Relevant log output

No response

@gregorymiguel gregorymiguel added bug Something isn't working needs-triage labels May 4, 2024
@nkvuong
Copy link
Contributor

nkvuong commented May 5, 2024

@gregorymiguel this is similar to #1625 - could you also update the spn details for sql warehouse configuration in the meantime?

@gregorymiguel
Copy link
Author

Hi @nkvuong ,

I added the spn config to the sql warehouse before opening this issue. It didn't work for me.
I don't think the issue reported in #1625 is correct. The migrate-tables task doesn't use sql warehouse compute to execute the inner tasks. The clusters related to migrate-tables are Job Clusters and assigned to ucx compute policy.
I'm debugging the issue. I hope bringing you more information soon. Wish me luck! =)

@JCZuurmond
Copy link
Contributor

Hi @gregorymiguel , thank you for being elaborate in your Gihub issues :) it's much appreciated. How are you doing on this bug?

I was thinking: could it be something simple like the single curly brackets in the secret instead of double curly brackets:

{secrets/ucx/uber_principal_secret}

should be

{{secrets/ucx/uber_principal_secret}}

@JCZuurmond
Copy link
Contributor

@gregorymiguel : Could you confirm that the proposed solution solves your issue? Otherwise we need to investigate the issue further

@gregorymiguel
Copy link
Author

Hi @JCZuurmond ,
Thank you! The solution proposed worked!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants