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

Eventhub partition count currently cannot be one when namespace has kafka enabled #3433

Closed
BBeauchemin opened this issue May 14, 2019 · 2 comments · Fixed by #3439
Closed

Comments

@BBeauchemin
Copy link

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.11.13

Affected Resource(s)

  • azurerm_eventhub

see also: https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/azurerm/resource_arm_eventhub.go#L269

Terraform Configuration Files

resource "azurerm_eventhub_namespace" "namespace" {
  name                = "the-namespace"
  location            = "East US"
  resource_group_name = "<YOUR_RESOURCE_GROUP_NAME>"
  sku                 = "Standard"
  capacity            = "1"
  kafka_enabled       = "true"
}

resource "azurerm_eventhub" "eventhub_topic" {
  name                = "named-for-one-partition"
  namespace_name      = "${azurerm_eventhub_namespace.namespace.name}"
  resource_group_name = "<YOUR_RESOURCE_GROUP_NAME>"
  partition_count     = "1"
  message_retention   = "7"
}

Debug Output

Error: azurerm_eventhub.eventhub_topic: EventHub Partition Count has to be between 2 and 32

Panic Output

Expected Behavior

In Azure portal, when the eventhub namespace is kafka enabled, eventhub created in it can have the partition_count set to one (which is the default value in the UI)

Actual Behavior

The limitation of an eventhub namespace that is not kafka enabled is applyed, which is a minium partition count value to 2

Steps to Reproduce

  1. Get the azurem config defined previously and set your ressource_group_name
  2. terraform plan

Important Factoids

References

@BBeauchemin BBeauchemin changed the title Eventhub partition count can be one when namespace has kafka enabled Eventhub partition count currently cannot be one when namespace has kafka enabled May 14, 2019
@prasadker
Copy link

@jeffreyCline Please look into this issue.

@ghost
Copy link

ghost commented Jun 14, 2019

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 and limited conversation to collaborators Jun 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants