-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
- Fix intermittent 404 errors
#7122
Conversation
nickmhankins
commented
May 28, 2020
•
edited
Loading
edited
- Add retry for Event Hub Authorization Rule create to prevent 404 error, since adding Locks didn't seem to do the trick (Fixes Intermittent issues when creating azurerm_eventhub_authorization_rule #6983 Terraform apply errors with 404 when creating multiple auth rules for event hubs #4893)
- Fix 404 error when deleting rules
- Update case for Namespace Authorization Rules API path to account for Azure Go SDK update (provider: upgrade azure-sdk-for-go to v42.1.0 & azuread to v0.9.0 #6725) (Fixes Error making Read request on Azure EventHub Authorization Rule #7132)
Looks like this failed for other reasons:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @nickmhankins, this looks good! I just think we can be a little more specific on the RetryableError piece
} | ||
read, err := client.GetAuthorizationRule(ctx, resourceGroup, namespaceName, eventHubName, name) | ||
if err != nil { | ||
return resource.RetryableError(fmt.Errorf("Expected instance of the authorization rule %q (event Hub %q / Namespace %q / Resource Group %q) to be created but was in non existent state, retrying", name, eventHubName, namespaceName, resourceGroup)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What're your thoughts on retrying only when we error on a 404? Make it a little more specific to the error we are trying to solve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a great idea, i'll work on that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mbfrahry Requested change has been made
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
azurerm_eventhub_authorization_rule
- Fix intermittent 404 errors
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! |