-
Notifications
You must be signed in to change notification settings - Fork 384
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
[ISSUE] Error when omitting cluster_id when creating a databricks_azure_adls_gen2_mount resource #294
Comments
Hi @fedragon , First of all, thanks for report. This issue came as a surprise, because we have TestAzureAccAdlsGen2Mount_correctly_mounts to cover "not specified cluster" case as part of our release procedure. AWS attributes are added for client not configured with azure auth, which checks for "azure_workspace_resource_id" presence, which may be constructed from subscription, resource group and workspace name. Seems to be a bug with resource id reconstruction, which may touch other things as well. Can you check if works with azure_workspace_resource_id option, instead of combination of If someone wants to make a PR for this, there needs to be a test case added to TestProviderConfigurationOptions. |
I would think it would fetch and set the resource ID at one point so that we can still use that check. |
@sdebruyn willing to pick this one up? it's |
Hi @nfx, Thanks for the quick reaction! I tried to verify if |
@fedragon i've told few people, someone will pick it up. I'm gathering more contributors to this :) |
I've been able to repro it, on it |
@sdebruyn this issue is unrelated to #304 (az cli), because this one is about client/secret service principal (see env vars). this one is really about things described in #294 (comment) |
@sdebruyn the Databricks workspace already exists, it's not going to be created on the spot |
* DatabricksClient.IsAzure is checking for both resource id and workspace hostname * Added more unit test coverage for ClustersAPI * FIxed version linking
awesome! |
Hi Databricks team,
I'm facing an issue when trying to create a
databricks_azure_adls_gen2_mount
resource without providing a cluster myself (thus asking the provider to create one on its own, as stated here). When I runterraform apply
I get a valid plan but trying to apply the changes returns an error saying that AWS attributes can only be provided when using AWS, although I don't set any such attributes in my configuration.Terraform Version
0.12.26 (I cannot upgrade to the latest at the moment; I have looked through all open/closed issues in this repository but haven't seen my own mentioned there)
Databricks Provider Version
0.2.4
Affected Resource(s)
databricks_azure_adls_gen2_mount
Environment variable names
Terraform Configuration Files
Debug Output
N/A: the error only shows after confirming that I want to apply the changes
Panic Output
N/A
Expected Behavior
A small-sized Databricks cluster should have been created and used to mount the filesystem.
Actual Behavior
Terraform returns the following error
Steps to Reproduce
terraform apply
Important Factoids
None
The text was updated successfully, but these errors were encountered: