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

Terraform 0.14 plans are broken for dedicated eventhub clusters with capacity > 1 #9650

Closed
alex-goncharov opened this issue Dec 3, 2020 · 2 comments · Fixed by #9649
Closed
Labels
bug upstream/terraform This issue is blocked on an upstream issue within Terraform (Terraform Core/CLI, The Plugin SDK etc) v/2.x (legacy)
Milestone

Comments

@alex-goncharov
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

Terraform v0.14.0

  • provider registry.terraform.io/hashicorp/azurerm v2.38.0

Affected Resource(s)

  • azurerm_eventhub_cluster

Terraform Configuration Files

resource "azurerm_eventhub_cluster" "this" {
  location            = "eastus2"
  name                = "cluster"
  resource_group_name = "my"
  sku_name            = "Dedicated_1"

  lifecycle {
    ignore_changes = [
      sku_name
    ]
  }
}

Debug Output

azurerm_eventhub_cluster.this: Refreshing state... [id=...]
...
2020-12-03T11:45:33.113+0100 [DEBUG] plugin.terraform-provider-azurerm_v2.38.0_x5: [DEBUG] AzureRM Request:
...
2020-12-03T11:45:33.978+0100 [DEBUG] plugin.terraform-provider-azurerm_v2.38.0_x5: {"sku":{"name":"Dedicated","capacity":8},"id":"...","name":"cluster","type":"Microsoft.EventHub/clusters","location":"eastus2","tags":{},"properties":{"createdAt":"2020-08-30T07:59:42.233Z","updatedAt":"2020-09-25T22:10:44.027Z","metricId":"PROD-BN3-570"}}

2020/12/03 11:45:33 [TRACE] EvalWriteState: using RefreshState for azurerm_eventhub_cluster.this
2020/12/03 11:45:33 [TRACE] EvalWriteState: recording 0 dependencies for azurerm_eventhub_cluster.this
2020/12/03 11:45:33 [TRACE] EvalWriteState: writing current state object for azurerm_eventhub_cluster.this
2020/12/03 11:45:33 [TRACE] Re-validating config for "azurerm_eventhub_cluster.this"
2020/12/03 11:45:33 [TRACE] GRPCProvider: ValidateResourceTypeConfig
2020/12/03 11:45:33 [TRACE] vertex "azurerm_eventhub_cluster.this": visit complete
2020/12/03 11:45:33 [TRACE] vertex "azurerm_eventhub_cluster.this": dynamic subgraph encountered errors
2020/12/03 11:45:33 [TRACE] vertex "azurerm_eventhub_cluster.this": visit complete
2020/12/03 11:45:33 [TRACE] vertex "azurerm_eventhub_cluster.this (expand)": dynamic subgraph encountered errors
2020/12/03 11:45:33 [TRACE] vertex "azurerm_eventhub_cluster.this (expand)": visit complete
2020/12/03 11:45:33 [TRACE] dag/walk: upstream of "meta.count-boundary (EachMode fixup)" errored, so skipping
2020/12/03 11:45:33 [TRACE] dag/walk: upstream of "provider["registry.terraform.io/hashicorp/azurerm"] (close)" errored, so skipping

Error: expected sku_name to be one of [Dedicated_1], got Dedicated_8

on ec.tf line 1, in resource "azurerm_eventhub_cluster" "this":
1: resource "azurerm_eventhub_cluster" "this" {

Expected Behaviour

Plan produces no changes

Actual Behaviour

Plan errors

Steps to Reproduce

Run the plan above.

Important Factoids

  • The same configuration works on 0.13
  • terraform 0.14 import works
@tombuildsstuff tombuildsstuff added bug upstream/terraform This issue is blocked on an upstream issue within Terraform (Terraform Core/CLI, The Plugin SDK etc) labels Dec 3, 2020
@tombuildsstuff tombuildsstuff added this to the v2.39.0 milestone Dec 3, 2020
@ghost
Copy link

ghost commented Dec 4, 2020

This has been released in version 2.39.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.39.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Jan 3, 2021

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Jan 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug upstream/terraform This issue is blocked on an upstream issue within Terraform (Terraform Core/CLI, The Plugin SDK etc) v/2.x (legacy)
Projects
None yet
3 participants