Closed nsenno-dbr closed 2 months ago
@nsenno-dbr with the 1.40.0
version of the provider, can you do multiple deploys or is that flow broken for you? Does the deploy complete or does the Terraform deploy keep running but the resource has already been created?
@arpitjasa-db yes Terraform hangs with waiting to deploy while the resource itself is queryable in the workspace. I attribute that to the API itself because I had the same issue when using the Databricks SDK create_and_wait
https://databricks-sdk-py.readthedocs.io/en/latest/workspace/serving/serving_endpoints.html#databricks.sdk.service.serving.ServingEndpointsAPI.create_and_wait.
It might be worth checking in with that API team to see if there is an issue with the signal that is generated when the model is created
@nsenno-dbr got it, working with them to fix this. Can you try using an earlier version of the SDK and see if that fixes the issue?
@arpitjasa-db I think for this issue, the fix should be that we don't add MinProvisionedThroughput
to forceSendFields
on this line, if external model is given. Can you help make this change?
@arpitjasa-db I'm using Databricks Asset Bundles so the Terraform version is bundled with the CLI version. It'll take some time for me to validate
@edwardfeng-db I already added that in the PR and tested with/without it, but that doesn't seem to be related to the issue since MinProvisionedThroughput
is not a field used by ExternalModels
.
because I had the same issue when using the Databricks SDK create_and_wait
@nsenno-dbr I was referring to the Databricks SDK, rather than Terraform/CLI, that way we know we need to fix this issue one level deeper
@nsenno-dbr can you try testing now?
Configuration
Expected Behavior
The external model should be provisioned in the Databricks workspace and be successfully queried
Actual Behavior
Received an error that provisioned throughput is not supported for endpoints with external models
Steps to Reproduce
Setup secrets and deployment for external model (in my example I have Azure OpenAI)
terraform apply
Terraform and provider versions
Latest databricks terraform provider
terraform version v1.8.5 on darwin_arm64
Is it a regression?
Yes this is a regression. I was able to deploy a model and query it using the 1.40.0 version of the terraform provider
Important Factoids
No
Would you like to implement a fix?
No