-
Notifications
You must be signed in to change notification settings - Fork 393
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] Resource databricks_permissions
doesn't handle error on cluster terminated 30+ days ago
#1227
Comments
@rafa-am This is more concrete description of the issue, thank you. Please attach debug logs with responses from permissions api (/api/2.0/permissions/clusters/...). This is essential to fixing this issue. Please also create ticket with Databricks Support and ask to involve IAM team. Will be able to pick this up in the second half of April. For now, please use terraform cli to remove affected resources from the state or just taint them. |
Apparently, HTTP 400 error returned by permissions API, not just clusters API. The fix for this should involve copying "wrapMissingError" from clusters Get api to getting list of permissions api. |
Thanks for bringing this up 👍 I also get hit by this for different environments. Thanks! |
You should create a support ticket. And good symptomatic fix is to rm permissions resource from state or taint it. See links in related threads. |
Similar to issue #1177 (involving
databricks_cluster
resource). Impact on terraform projects containing unpinned clusters that have been terminated 30+ days ago.When applying access control policy to the cluster using
resource "databricks_permissions" "cluster_usage"
, it will return the following error message:Configuration
Expected Behavior
As same as
databricks_cluster
resource when handling to clusters terminated 30+ days ago, e.g., the provider should probably treat that specific error message as a "valid action" when the command terraform plan is ran, and address just a warning about cluster state.Actual Behavior
An access cluster error raises and breaks the pipeline.
Steps to Reproduce
terraform apply
Terraform and provider versions
Important Factoids
Related to [ISSUE] Project with cluster terminated 30+ days ago made unusable. #1177
The text was updated successfully, but these errors were encountered: