-
-
Notifications
You must be signed in to change notification settings - Fork 967
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
run-all init
fails with parallelism
#3093
Comments
Hi @gnuletik, most likely you are using the Provider Plugin Cache. Make sure to read Provider Caching. |
Hi @levkohimins, thanks for the feedback ! I was using the Terraform's provider plugin cache but I disabled it since I migrated to Terragrunt's Provider Caching Server. I was able to reproduce this issue with:
Also, previous releases of Terragrunt didn't have this issue because the parallelism was disabled during init (because of the Terraform's provider plugin cache issue). |
Hi @gnuletik, |
I already tried to reproduce it without success as it only occurs on projects with multiple different modules / configuration and doesn't occurs 100% of the time (seems to be around 70%). |
To clarify, before the implementation of Terragrunt Provider Caching, with Provider Plugin Cache enabled and running Therefore, I asked you to check whether this feautre is enabled in the Terraform CLI config or in the environment variable
|
@levkohimins Yes I can confirm that this configuration is not enabled. |
Hi, I'm getting the same behavior while using Provider Plugin Cache with Atlantis. Atlantis has UPD: interesting that some of the errors happen while running |
Hi @GMartinez-Sisti, I would be happy to help you solve this issue, but I need a sample from you. |
This is a great starting point, I might be able to make it happen just by forking this repo and enabling the Provider Plugin Cache. Will let you know! |
Hi, I wanted to ask if there have been any updates regarding this issue. I'm experiencing the same problem when running terragrunt plan in parallel with the Terragrunt provider cache enabled. Any information or progress on this would be greatly appreciated. Thank you! |
To provide more context, I am working on implementing Terragrunt drift detection. As part of this process, I run multiple terragrunt plan commands in parallel, which seems to trigger the error described in this issue. |
I had the same issue with Atlantis. I saw the error I resolved it by adding execution order groups for modules in the Atlantis config. Now, plans for dependent modules do not run in parallel, and the issue has been resolved. In the last ~30 consecutive drift detection runs, this error has not occurred. Previously, each run contained 2-3 failed runs with this error. Hope it helps 🙃 @levkohimins Thanks a lot for the great feature for providers caching! It sped up our CI by more than 3 times 🔥 |
Hi @ajax-ryzhyi-r , Thank you very much for your response and suggestion. By implementing execution order groups, I was able to resolve the errors with parallel plans. I haven't encountered any errors related to required plugins not being installed since making this change. However, I am now facing a different issue. Specifically, I'm getting the following error related to the AWS TFLint plugin:
Thank you in advance for your help! |
Thank you @ajax-ryzhyi-r! Terragrunt's provider cache is safe when used in parallel with the same provider cache directory, but this is not true if multiple Terragrunt processes are running with the same working directory. |
We have the same issue with tflint plugins, but we use a cache for these plugins (enabled via the |
Thank you @ajax-ryzhyi-r |
Describe the bug
A clear and concise description of what the bug is.
When running the following command:
I get one of the following error on some projects:
The workaround was to set
TERRAGRUNT_PARALLELISM=1
.To Reproduce
I was not able to extract a small reproducible example.
Expected behavior
To not fail with parallelism enabled.
Versions
The text was updated successfully, but these errors were encountered: