-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Terragrunt run-all init --upgrade is inconsistent regarding use of the shared-cache. #1875
Comments
Suffering from very similar problem |
I believe this is a Terraform bug: it has race condition between two |
As per this comment - this is expected behavior, so maybe |
If a change is made to run init serially, it would be nice to put that behind a cli-arg instead of making it the default. We pre-populate the plugin_cache_dir when we run terragrunt, using a provider mirror, so the plugins are already present and parallel init calls do not step on each other. |
This issue should already be solved. Can someone who has encountered this issue check this? |
@levkohimins i'm still seeing this, as soon as I put back
|
@davidgwps,
We are working on the better solution #2920 |
Resolved in v0.56.4 release. Make sure to read Provider Caching. |
We have two use cases where we run the
terragrunt init --upgrade
terragrunt run-all init --ugprade
For both use cases, we preload the shared cache with the set of providers we've tested and are now deploying.
Use case 1 is rock solid, finds every module in the shared cache and completes successfully. (only one layer is ever in flight)
Use case 2 is flaky. Snippets from the logs are blow
The AWS provider was downloaded VS used from the cache.
This is just an example of the failure, the error is random with respect to which provider(s) are re-used vs downloaded.
Version info.
Terragrunt v0.35.3
Terraform v1.0.9
The text was updated successfully, but these errors were encountered: