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

azurerm_eventhub_authorization_rule Error: empty non-retryable error received. #12474

Closed
DiceUA opened this issue Jul 5, 2021 · 8 comments
Closed

Comments

@DiceUA
Copy link

DiceUA commented Jul 5, 2021

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 v1.0.1
on windows_amd64
+ provider registry.terraform.io/hashicorp/azurerm v2.66.0

Affected Resource(s)

  • azurerm_eventhub_authorization_rule

Terraform Configuration Files

locals {
  hubs = [
      {
        name = "hub01"
        partition_count = 2
        message_retention = 1
      },
      {
        name = "hub02"
        partition_count = 2
        message_retention = 1
      }
    ]
}

data "azurerm_resource_group" "eventhub" {
  name = "myPurrrfecRG"
}

resource "azurerm_eventhub_namespace" "eventhub" {
  name                = "my-eventhub"
  location            = data.azurerm_resource_group.eventhub.location
  resource_group_name = data.azurerm_resource_group.eventhub.name
  sku                 = "Standard"
  capacity            = 1

}

resource "azurerm_eventhub" "eventhub" {
  count = length(local.hubs)
  name                = lower(local.hubs[count.index].name)
  namespace_name      = azurerm_eventhub_namespace.eventhub.name
  resource_group_name = data.azurerm_resource_group.eventhub.name
  partition_count     = lower(local.hubs[count.index].partition_count)
  message_retention   = lower(local.hubs[count.index].message_retention)
}

resource "azurerm_eventhub_consumer_group" "eventhub" {
  count = length(local.hubs)
  name                = "consumer-int"
  namespace_name      = azurerm_eventhub_namespace.eventhub.name
  eventhub_name       = azurerm_eventhub.eventhub[count.index].name
  resource_group_name = data.azurerm_resource_group.eventhub.name
  # user_metadata       = "some-meta-data"
}

resource "azurerm_eventhub_authorization_rule" "eventhubfull" {
  count = length(local.hubs)
  name                = "full_access"
  namespace_name      = azurerm_eventhub_namespace.eventhub.name
  eventhub_name       = azurerm_eventhub.eventhub[count.index].name
  resource_group_name = data.azurerm_resource_group.eventhub.name
  listen              = true
  send                = true
  manage              = true
}

Debug Output

Panic Output

Expected Behaviour

Shared Access Policy Created without error

Actual Behaviour

Terraform crashes with error:

Error: empty non-retryable error received. This is a bug with the Terraform provider and should be reported as a GitHub issue in the provider repository.
│
│   with module.eventhub.azurerm_eventhub_authorization_rule.eventhubfull[0],
│   on ..\modules\eventhub\main.tf line 39, in resource "azurerm_eventhub_authorization_rule" "eventhubfull":
│   39: resource "azurerm_eventhub_authorization_rule" "eventhubfull" {
│
╵
╷
│ Error: empty non-retryable error received. This is a bug with the Terraform provider and should be reported as a GitHub issue in the provider repository.
│
│   with module.eventhub.azurerm_eventhub_authorization_rule.eventhubfull[1],
│   on ..\modules\eventhub\main.tf line 39, in resource "azurerm_eventhub_authorization_rule" "eventhubfull":
│   39: resource "azurerm_eventhub_authorization_rule" "eventhubfull" {
│

but Shared Access Policy created

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@ramondeklein
Copy link
Contributor

ramondeklein commented Jul 5, 2021

It worked fine with v2.64, but it breaks from v2.65 and later. The only related commits are:

Commit 9b5e6f4 solves warnings about retryable errors. That's what the error is mentioning too, but I don't think that a lint disable could cause this. So I guess it's commit d81429c that introduces this issue.

@nairraghunathgopinath
Copy link
Contributor

Facing the issue its a highest priority issue.
PFA.
image

@nairraghunathgopinath
Copy link
Contributor

Downgrading is not at all feasible.

@mayaz009
Copy link

mayaz009 commented Jul 7, 2021

facing the same.
image

@bmovva1991
Copy link

any workaround or fix for this issue ? im using azure rm 2.67 and terraform 1.0.2

@sebader
Copy link
Contributor

sebader commented Jul 13, 2021

duplicate of #12387

@tombuildsstuff
Copy link
Contributor

Duplicate of #12387, thanks @sebader

@github-actions
Copy link

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 Aug 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants