Open Pirognoe opened 1 month ago
Please remove no_wait
- it was created for a specific case. Libraries could be installed only on running or terminated cluster
P.S. Can you elaborate on what is the specific case for that? And maybe include it in docs? Anyway with or without no_wait the results seems to be the same - failure to install all the libraries and failure for TF apply
Configuration
We have a list of libraries defined like that
and later we define the library resource like that
and the cluster to use those libraries
Expected Behavior
The cluster should be created ( this happens ) and ALL libraries are assigned to it ( even if not installed immediately)
Actual Behavior
│ Error: cannot create library: Cluster is in unexpected state Pending.
│
│ with databricks_library.stream_hub_dh2_library["pyyaml==6.0.2"],
│ on main.tf line 140, in resource "databricks_library" "stream_hub_dh2_library":
│ 140: resource "databricks_library" "stream_hub_dh2_library" {
1) no_wait did not seem to work properly 2) To me it looks like if autotermination_minutes is not long enough for all libs to install ->
P.S. Another issue is when you bump up the lib version and run tf apply - you usually end up with installation error ( cluster is displayed with 2 versions of the same lib, newer being red)
Steps to Reproduce
Terraform and provider versions
Is it a regression?
Debug Output
Important Factoids
Would you like to implement a fix?