Closed alexinthesky closed 2 years ago
adding this block doesnt seem to help:
timeouts { create = "60m" read = "60m" delete = "60m" }
I'm experiencing the same thing. It seemed to start some time on Thursday morning (US eastern time) as I had deploys working then suddenly start failing without changing the provider version. I was using AzureRM 2.60.0 at the time. Upgrading to 2.64.0 didn't help.
Despite the timeout error, the certificates are created and waiting, but they aren't tracked in state.
I'm experiencing the same issue as well. It seems that is not related to the azurerm provider version. I am currently using "2.58.0".
Seeing the same issue since last week, using providers, 2.49 up to 2.64. Seem this may be some api change on the Azure side?
This seems to be region based to an extent. We've found that this works fine in US East 2, but US East is slower and fails. Either way, it looks like the timeout should be adjusted.
This seems to be region based to an extent. We've found that this works fine in US East 2, but US East is slower and fails. Either way, it looks like the timeout should be adjusted.
We've the same issue in West Europe and Germany West Central
We're experiencing this in North Europe and raised a ticket. We've received confirmation that long running key vault operations in general are taking longer to complete, and that this is expected to last around a month.
agreed with what is said in #12347, the timeout happens 'somewhere else' so we may have something off in the code managing the create or read timeouts in this resource
^^that's my first MR to the provider. how could I get a maintainer to look at it / get the pipelines to run?
Hi all - Azure have been rolling out (or possibly back? I'm having trouble getting details...) a patch to KeyVaults that was linked to performance problems in some regions, is this still a problem for folks here? I'll review the linked PR just in case, but hold off on a merge until I know it's still an ongoing issue.
@jackofallops - Support told me that they had a hotfix rolling out that was expected to be done by 7/15. Things have been working better for me. That said, if the resource wasn't correctly honoring timeout values and this fixes it, why not merge it regardless?
I was able to create several certificates today without seeing the failures we were seeing earlier in US East
Hi @a-mcf - It's not that the provider / resource isn't honouring timeouts, it's attempting to deal with eventual consistency of that resource under normal circumstances. The failure is due to the underlying service not performing as intended. Whilst we could allow this, and indeed every resource, its maximum deadline to complete, this would quickly become a time expensive operation. We attempt to balance these resource availability checks against realistic values for success, and then we tend to err on the generous side to be sure. Rather than simply just keep extending tolerances, we need to be mindful of not simply papering over genuine issues in the service. Does that make sense?
Hi I get your point and in the other side, I feel that this nearly works out of luck ( we fall in the default values of 20 checks ), which renders the whole thing a bit fragile to me considering the fluctuation we observe regarding the time azure takes for the creation of some ressources.
👋
Since the issue in the upstream Azure API has since been fixed I believe this has been resolved - as such I'm going to close this issue for the moment, but if your still facing this on the latest version of the Provider then please open a new issue and we'll take another look.
Thanks!
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.
Community Note
Terraform (and AzureRM Provider) Version
Terraform v1.0.0 on linux_amd64
Affected Resource(s)
azurerm_key_vault_certificate
Terraform Configuration Files
Debug Output
│ Error: Error waiting for Certificate "legal-entity-214" in Vault "https://mykv.vault.azure.net/" to become available: couldn't find resource (21 retries) │ │ with azurerm_key_vault_certificate.le-cert["214"], │ on main.tf line 33, in resource "azurerm_key_vault_certificate" "le-cert": │ 33: resource "azurerm_key_vault_certificate" "le-cert" { │ ╵
Panic Output
Expected Behaviour
Actual Behaviour
Steps to Reproduce
terraform apply
Important Factoids
here is an extract of the diagnostic logs for one cert creation:
we can see that the CertificateEnroll arrives AFTER all the GET retries done by terraform
OperationName,"id_s","TimeGenerated [UTC]",ResultSignature CertificateEnroll,"https://mykv.vault.azure.net/certificates/legal-entity-214/9667ff50c261492382bf157d7397c934","6/18/2021, 9:26:54.240 AM", CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:26:04.056 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:25:54.004 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:25:43.945 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:25:33.834 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:25:23.742 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:25:13.675 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:25:03.577 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:24:53.468 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:24:43.325 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:24:33.179 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:24:23.019 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:24:12.856 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:24:02.760 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:23:52.632 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:23:42.537 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:23:32.437 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:23:22.358 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:23:12.247 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:23:02.151 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:22:52.054 AM",OK CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:22:37.020 AM",OK CertificateCreate,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:22:36.958 AM",Accepted CertificateGet,"https://mykv.vault.azure.net/certificates/legal-entity-214","6/18/2021, 9:22:36.161 AM","Not Found"
References
0000