-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
frontdoor - read context deadline exceeded #7925
Comments
I have been using Front Door with custom domains and found that I needed to increase the read timeout of the resource to get it to complete being created successfully. It looks like Azure or Terraform goes through the frontends serially when they are defined as part of the Front Door resource. Domain validation was taking 5-10 minutes each for me. Have you tried using the new resource |
@darrenk13 we wrote that resource and were updating to the latest provider version before changing over to using that and hit this. Will give it a try doing it in one go as that might fix it But this is definitely a regression as this worked on the old provider versions |
To workaround this regression, we have explicitly set the azurerm_frontdoor resouce read timeout to '6h' like the create, update, and delete timeouts. In our case, the Front Door resource is being updated and the modification takes almost 2 hours to complete. Without the timeout set, the apply operation fails after ~10 minutes. |
@timja I believe this has been fixed in 2.24/2.25 - can you take a look? |
Read timeout hasn't been changed https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/azurerm/internal/services/frontdoor/frontdoor_resource.go#L58 but was there a bug fix around here @tombuildsstuff ? I can't see a specific fix but there are changes to the resource in 2.24 |
@timja enjoy your holiday :) |
Thanks for the quick response. Initially, I was using version 2.23 of the provider. I upgraded to version 2.25 and my long running update has made it to the 1 hour mark (and still going) with the default timeouts. This is closed from my perspective. Thanks again for the help. |
Closing since as per @ignatz42's comment this is confirmed resolved. |
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 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_frontdoor
Terraform Configuration Files
https://github.com/hmcts/azure-platform-terraform/blob/master/modules/azure-landing-zone/frontdoor.tf#L5
https://github.com/hmcts/azure-platform-terraform/blob/master/environments/ithc/ithc.tfvars#L26
Debug Output
Expected Behavior
It shouldn't timeout
Actual Behavior
It timed out
Steps to Reproduce
terraform apply
Important Factoids
We have quite a few frontend endpoints
Seems to be caused by:
#7485
@WodansSon @tombuildsstuff
References
The text was updated successfully, but these errors were encountered: