jdamata / terraform-provider-sonarqube

Terraform provider for managing Sonarqube configuration
GNU General Public License v3.0
62 stars 54 forks source link

Got "Provider produced inconsistent result after apply" error #152

Closed hanks closed 1 year ago

hanks commented 1 year ago

Hi there,

Thank you for opening an issue.

Terraform Version

terraform -v       
Terraform v1.4.4
on darwin_arm64
+ provider registry.terraform.io/jdamata/sonarqube v0.15.11

Affected Resource(s)

Please list the resources as a list, for example:

Terraform Configuration Files

the config is simple with a module, but with like around 700 groups to create

resource "sonarqube_group" "group" {
  count       = var.enable_group ? 1 : 0
  name        = var.group_name
  description = "Managed by terraform"
}

Expected Behavior

Should create these groups successfully

Actual Behavior

What actually happened?

│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ module.foo.sonarqube_group.group, provider
│ "provider[\"registry.terraform.io/jdamata/sonarqube\"]" produced an
│ unexpected new value: Root resource was present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.

Thank you for your time.

jdamata commented 1 year ago

I wonder if this is related to https://github.com/jdamata/terraform-provider-sonarqube/issues/42 . Does this happen with a fewer amount of groups?

jdamata commented 1 year ago

I just realized this was linked to the pr you created. Is this resolved? @hanks