Open praseedmc-oracle opened 2 months ago
Just in case it help, I notice this problem on Feb 13, 2024. I check my change log on my terraform create VM cluster resource block. I added the delete time out on Jan 24, 2024 and remove it on Feb 13, 2024. This means that it is likely something changes between Jan 24 and Feb 13.
File: internal/service/database/database_vm_cluster_resource.go Commit: cc9d5b0 Support was added for declaring a custom Timeout for Create at 30m. This did not include Delete or Update.
This is not consistent with the documented Timeout behavior: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/database_vm_cluster
The timeouts block allows you to specify timeouts for certain operations: create - (Defaults to 20 minutes), when creating the Vm Cluster update - (Defaults to 20 minutes), when updating the Vm Cluster * delete - (Defaults to 20 minutes), when destroying the Vm Cluster
Custom Timeouts appear to be included for: internal/service/database/database_cloud_vm_cluster_resource.go
Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.
Any ETA for fix?
Hi Team,
Can you provide an ETA on this?
Thanks Praseed M C
Hi Team,
Can you provide an ETA on this?
Thanks Praseed M C
Community Note
Terraform Version and Provider Version
Terraform version: 1.5.5 Provider: 6.9.0
Affected Resource(s)
oci_database_vm_cluster https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/database_vm_cluster
Terraform Configuration Files
############################
Resource Block - Database
Create ExaVMClusters
############################
resource "oci_database_vm_cluster" "test_vm_cluster" {
Required
} time_zone = var.time_zone
}
Debug Output
Terraform plan/Error:
│ Error: Unsupported argument │ │ on .terraform/modules/exa-vmclusters-exacc/Modules/modules/database/ExaCC/exa-vmcluster/main.tf line 44, in resource "oci_database_vm_cluster" "test_vm_cluster": │ 44: update = "2h" │ │ An argument named "update" is not expected here. ╵ ╷ │ Error: Unsupported argument │ │ on .terraform/modules/exa-vmclusters-exacc/Modules/modules/database/ExaCC/exa-vmcluster/main.tf line 45, in resource "oci_database_vm_cluster" "test_vm_cluster": │ 45: delete = "3h" │ │ An argument named "delete" is not expected here.
Panic Output
Expected Behavior
We are trying destroy ExaCC vmcluster using terraform . Though destruction was successful from console, terraform was throwing timeout error (Attached screenshot) To fix it we have introduced timeouts parameter as below.
}
But terraform plan is throwing an error stating "Unsupported argument .An argument named "delete" is not expected here". "Unsupported argument .An argument named "update" is not expected here".
Attached error screenshots
Expected behavior was updated and delete timeout should be supported by "oci_database_vm_cluster" resource.