-
Notifications
You must be signed in to change notification settings - Fork 9.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
TFC local execution doesn't seem to respect the -lock-timeout option #27844
Comments
Thanks for reporting this! I'm able to reproduce it on Terraform 0.14 and the current main branch. Note for repro steps:
This doesn't seem to affect all locking backends (I tested Consul, which behaves as you'd expect). Trace logs on the subsequent plan operation show that a lock attempt is made and instantly fails:
For anyone picking this up: my best guess here is that the remote backend is either not receiving a |
My guess was wrong, the timeout value is making it to the appropriate places. The problem is that the remote backend is not populating the |
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. |
Terraform Version
Terraform v0.12.29
Terraform v0.14.7
Terraform Configuration Files
Debug Output
This is difficult to show as it is a result of multiple runs.
Crash Output
N/A
Expected Behavior
When specifying
-lock-timeout=120s
terraform plans should hang until the specified timeout has completed and then fail with a lock error.Actual Behavior
When specifying
-lock-timeout=120s
terraform plans immediately fail with a lock error.Steps to Reproduce
terraform login
terraform init
for i in {1..10}; do terraform plan -lock=true -lock-timeout=120s & done
I would expect that it would fail after 120s due to the lock timeout with ~ 1-2 plans succeeding. Instead 1 plan begins and all the other plans fail due to:Additional Context
References
@alisdair
The text was updated successfully, but these errors were encountered: