-
Notifications
You must be signed in to change notification settings - Fork 425
[ISSUE] Cannot add instance pool or cluster after workspace was already created #1045
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
as a workaround for now, please first apply the workspace creation, and then resources within it. I'm not even sure this issue can be fixed. |
We are getting error message Error: cannot read cluster: cannot configure azure-client-secret auth: cannot get workspace: somehow resource id is not set. Environment variables used: ARM_CLIENT_SECRET, ARM_CLIENT_ID, ARM_TENANT_ID. Please check https://registry.terraform.io/providers/databrickslabs/databricks/latest/docs#authentication for details This was working fine, now we are using azurerm provider hashicorp/azurerm v2.92.0 and databrickslabs/databricks v0.4.4 This could be related. |
@callppatel You need to set azure resource id provider configuration property, because you don't have it set now, according to error message. That's different issue. Probably need to change error message to be more clear. Can you create a separate issue, where you also confirm that setting https://registry.terraform.io/providers/databrickslabs/databricks/latest/docs#azure_workspace_resource_id solves it? I'll update documentation as well. Resource id is needed only on the first request of service principal to a Databricks workspace |
I had earlier
Which I changed to
Shall I revert and try |
@callppatel why did you remove resource id? Is there another misleading doc somewhere I need to fix?.. |
I was getting message that it will be deprecated soon, so thought of changing it. Shall I keep resource_id or both. Thanks for your help |
Both |
Got a similar error │ Error: cannot create instance pool: Worker environment overlay workerenv-8245452661638664 not found temporarily, please contact databricks support if the issue persist. |
Still same issue, after setting both
Error: cannot read cluster: cannot configure azure-client-secret auth: cannot get workspace: somehow resource id is not set. Environment variables used: ARM_CLIENT_SECRET, ARM_CLIENT_ID, ARM_TENANT_ID. Please check https://registry.terraform.io/providers/databrickslabs/databricks/latest/docs#authentication for details As suggested, I have logged another ticket.. thanks for checking for us. |
@callppatel This seems to be happening with azurerm 2.92, can you please use a different version of azurerm module (Ex: 2.78) as a workaround? |
Thank you ! My TF plan is crossed now with 2.78 version. |
I have tried doing this layered approach to no avail. I have also tried changing the authentication from MSI to "azure with service principal" and that also did not help. |
I also tried using azurerm 2.78 as mentioned above and that did not solve my problem. |
@plieberg What errors did you get? |
I will clarify. Using, azurerm 2.78, I was able to manually create these resources by just using live resource blocks and creating the workspace first and then an instance_pool on a second plan/apply. I have tried to do this same thing using my module code and it still fails. So confused. This is the latest error, which is the same thing I see when trying to do the apply to add the instance_pool.
|
What is the solution if using functionality in azurerm that requires module version >2.78? Can confirm that downgrading the module version to 2.78 does appear to remove the issue and yet I am having problems using azurerm module attributes elsewhere in my code (namely 'fqdns' attribute in azurerm_data_factory_managed_private_endpoint resource). |
I was able to get around the issue but putting an explicit depends_on block in each resource and data source using the databricks provider that references the azurerm databricks workspace. |
I think upgrade of azure-cli fixed it on my end. |
I’m writing an internal module for managing our Azure Databricks resources. The first iteration that simply created a workspace ran fine. However, I am now trying to add clusters and instance pools and running into an issue. To remove my module from the equation, I simply created some live code resources and am running into the same issue. As you can see, I've added the depends_on to the data resources as well as the cluster/instance_pool resources.
Configuration
Expected Behavior
What should have happened?
Instance pool is created
Actual Behavior
What actually happened?
Errors, see below
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan
orterraform apply
Terraform and provider versions
Please paste the output of
terraform version
. If version ofdatabricks
provider is not the latest (https://github.com/databrickslabs/terraform-provider-databricks/releases), please make sure to use the latest one.Debug Output
Please add turn on logging, e.g.
TF_LOG=DEBUG terraform apply
and run command again, paste it to gist & provide the link to gist. If you're still willing to paste in log output, make sure you provide only relevant log lines with requests.It would make it more readable, if you pipe the log through
| grep databricks | sed -E 's/^.* plugin[^:]+: (.*)$/\1/'
, e.g.:This is the error during the plan step, if I try to create a cluster resource:
This is the error from an apply if I try to add an instance_pool resource:
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the
crash.log
.Important Factoids
Are there anything atypical about your accounts that we should know?
The text was updated successfully, but these errors were encountered: