Closed uLan08 closed 1 year ago
encountered a similar issue during creation. doesn't happen all the time tho.
│ Error: Error enabling log export
│
│ with module.cockroachdb_dedicated.cockroach_log_export_config.export[0],
│ on ../../metric_log_export.tf line 85, in resource "cockroach_log_export_config" "export":
│ 85: resource "cockroach_log_export_config" "export" {
│
│ Could not enable log export: failed to acquire cluster lock
Is it possible that cockroach_log_export_config
and cockroach_metric_export_datadog_config
are competing for the lock?
@jenngeorge would you mind taking a look at this? Looks like log and metric export both lock the cluster, so we should add similar checks to the those in the cluster resource.
@erademacher Yes, thanks for tagging me! I'm on vacation next week, but can take a look & add the checks when I return the week of 6/5.
Just following up: I'm back from vacation & plan to start on this tomorrow.
Fixed in v0.6.0.
I get errors when I delete the
cockroach_metric_export_datadog_config
resource. At first, I thought it was an ordering thing, so I added adepends_on
to guarantee the order but it didn't help.After running the
terraform destroy
command again, I get another error which blocks me from proceeding unless I doterraform state rm
. This error tells me that the resource on CockroachDB side has actually been deleted.Terraform code
Terraform versions