-
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
Provider produced inconsistent result after apply #10084
Comments
The debug log is:
|
Also, the issue persists in the version 2.40 and 2.43 of the provider. |
Our workaround that seems to work is:
|
I hit this issue too with latest 2.44 version of the provider. Don't think timeout will work in my case. KeyVault is created well before I try add a secret. |
hi @Hoobie Thanks for opening this issue - apologies for the delayed response. Taking a look through here this sounds like an issue in Terraform 0.12.x where module dependencies weren't inferred correctly - which has been fixed in a newer version of Terraform Core, I believe 0.14.x - would you be able to upgrade and see if that works for you? Since this should be fixed by updating the version of Terraform Core in use, I'm going to close this issue for the moment - but if that doesn't work then please let us know, although it's worth noting that unfortunately we'll need a Terraform Configuration to diagnose this further. Thanks! |
I am hitting this problem on terraform 0.14.5. Going to try the timeout workaround. |
@bbreckenridge I bumped the sleep to 60 seconds and we still hit this issue from time to time 😞 It just seems to be less frequent. @tombuildsstuff we won't be able to upgrade anytime soon but it looks like it happens regardless of the Terraform version. I'm not allowed to send the configuration. What about other similar issues like: #10227 ? |
@Hoobie #10227 is a related issue due to recent caching changes - however in your case this appears to be the module dependency/ordering issue which whilst gives a similar error message for this resource is a slightly different issue (which has been fixed in TF Core, I believe 0.14 and won't be backported to 0.12). It's worth noting that Terraform Core 0.15 is coming out in the near future, so whilst Terraform 0.12 may continue to work for the moment, I'd strongly suggest staying up to date if possible. |
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! |
Community Note
Terraform (and AzureRM Provider) Version
We're not able to update the versions, atm.
Terraform v0.12.24
Providers:
...
Affected Resource(s)
azurerm
?Terraform Configuration Files
We're forbidden to share it.
Debug Output
Panic Output
Expected Behaviour
Successful keyvault & Kubernetes cluster creation.
Actual Behaviour
It happens to 10-20% of our deployments, so we have to restart.
Steps to Reproduce
terraform apply
to create a Kubernetes clusterImportant Factoids
My initial suspicion was that we're using the time provider to build the keyvault_name:
May it be somehow related? In accordance with the docs: the timestamp is "stored in the Terraform state" and "This prevents perpetual differences", so it shouldn't cause the issue.
What is more, the key creation uses the vault id instead of its name:
References
https://registry.terraform.io/providers/hashicorp/time/latest/docs/resources/static
The text was updated successfully, but these errors were encountered: