Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider produced inconsistent final plan #36405

Closed
pszypowicz opened this issue Jan 29, 2025 · 4 comments
Closed

Provider produced inconsistent final plan #36405

pszypowicz opened this issue Jan 29, 2025 · 4 comments
Labels
bug new new issue not yet triaged

Comments

@pszypowicz
Copy link

pszypowicz commented Jan 29, 2025

Terraform Version

Terraform v1.10.5
on darwin_arm64
+ provider registry.terraform.io/hashicorp/azurerm v4.16.0

Terraform Configuration Files

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "example" {
  name     = "pszypowicz"
  location = "West Europe"
}

resource "azurerm_virtual_network" "example" {
  name                = "pszypowicz"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  address_space       = ["10.0.0.0/16"]
  dns_servers         = ["10.0.0.4", "10.0.0.5"]

  subnet {
    name             = "subnet1"
    address_prefixes = ["10.0.1.0/24"]
  }

  subnet {
    name             = "subnet2"
    address_prefixes = ["10.0.2.0/24"]
  }

  tags = {
    environment = "Production"
  }
}

resource "terraform_data" "network" {
  input = {
    vnet = azurerm_virtual_network.example
  }
}

Debug Output

https://gist.github.com/pszypowicz/33094b0e53b358f49031cf23b6777806

Expected Behavior

Apply should work

Actual Behavior

╷
│ Error: Provider produced inconsistent final plan
│ 
│ When expanding the plan for terraform_data.network to include new values
│ learned so far during apply, provider "terraform.io/builtin/terraform"
│ produced an invalid new value for .input.vnet.bgp_community: was null, but
│ now cty.StringVal("").
│ 
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
╷
│ Error: Provider produced inconsistent final plan
│ 
│ When expanding the plan for terraform_data.network to include new values
│ learned so far during apply, provider "terraform.io/builtin/terraform"
│ produced an invalid new value for .input.vnet.edge_zone: was null, but now
│ cty.StringVal("").
│ 
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵
╷
│ Error: Provider produced inconsistent final plan
│ 
│ When expanding the plan for terraform_data.network to include new values
│ learned so far during apply, provider "terraform.io/builtin/terraform"
│ produced an invalid new value for .input.vnet.flow_timeout_in_minutes: was
│ null, but now cty.NumberIntVal(0).
│ 
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.
╵

Steps to Reproduce

  1. terraform init
  2. terraform apply

Additional Context

I am using azurerm_virtual_network resource

References

hashicorp/terraform-provider-azurerm#28628

Generative AI / LLM assisted development?

No response

@crw
Copy link
Contributor

crw commented Jan 30, 2025

Thanks for opening this issue! As you have taken the appropriate next step, filing the issue in the correct repository, I will close it here as it does not appear to be a core bug. Thanks again!

@crw crw closed this as not planned Won't fix, can't repro, duplicate, stale Jan 30, 2025
@pszypowicz
Copy link
Author

Sure, was not sure what really was the proper place. Thanks

@crw
Copy link
Contributor

crw commented Jan 30, 2025

No problem, we appreciate the effort.

Copy link
Contributor

github-actions bot commented Mar 2, 2025

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug new new issue not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants