-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Missing provider failure case leaves s3 lock in place #23318
Comments
Thanks for filing this! I was able to confirm this behaviour with 0.12.20. My reproduction steps:
This last step fails and leaves a dangling lock. |
If an error occurs on creating the context for console or import, we would fail to unlock the state. Fix this by unlocking slightly earlier. Affects console, graph, and import commands. Fixes #23318
If an error occurs on creating the context for console or import, we would fail to unlock the state. Fix this by unlocking slightly earlier. Affects console and import commands. Fixes #23318
If an error occurs on creating the context for console or import, we would fail to unlock the state. Fix this by unlocking slightly earlier. Affects console and import commands. Fixes #23318
Thanks for reporting this issue! A fix has been merged and will be part of the next 0.12 release. |
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 Configuration Files
Attempt to use a Google Cloud resource without a relevant provider being declared
Expected Behavior
Lock should be removed in event of failure case.
Actual Behavior
Error on
terraform import
(correct)And next operation:
Lock never gets releases after the import failure.
Steps to Reproduce
terraform import
on the google resource.The text was updated successfully, but these errors were encountered: