Skip to content
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

Lock not released after non empty work space fails #22941

Closed
marczis opened this issue Sep 28, 2019 · 4 comments
Closed

Lock not released after non empty work space fails #22941

marczis opened this issue Sep 28, 2019 · 4 comments
Labels
bug cli v0.12 Issues (primarily bugs) reported against v0.12 releases

Comments

@marczis
Copy link

marczis commented Sep 28, 2019

Terraform Version

Terraform v0.12.8
+ provider.aws v2.29.0
+ provider.null v2.1.2

Terraform Configuration Files

AWS - S3 and DynamoDB for locking

Debug Output

Will provide on request

Crash Output

Standard lock is on

Expected Behavior

Shall not be lock in place after the non empty work space deletion fails

Actual Behavior

I tried to delete a non empty workspace, I got a nice warning that it is not empty and I will have resources here and there, if I delete the workspace, but I can do it with -force - which is what I want, but next call tells me there is a lock active. (I can't remove it with terraform error message:

Failed to unlock state: failed to retrieve lock info: unexpected end of JSON input

Steps to Reproduce

Create a workspace,
Do apply something into it, anything will do.
Create a new workspace
Try to delete the first workspace
Try to force delete the first workspace

Additional Context

References

@mildwonkey
Copy link
Contributor

Hi! Thank you for reporting this issue, and I am sorry that you've experienced it.

It will indeed help us to see the debug output, if possible from both commands: when you've force-deleted a workspace and the following command that reports the message you pasted.

Thanks again!

@marczis
Copy link
Author

marczis commented Sep 30, 2019 via email

@hashibot hashibot added the v0.12 Issues (primarily bugs) reported against v0.12 releases label Oct 2, 2019
@pselle
Copy link
Contributor

pselle commented Feb 13, 2020

Fixed by #24085 and will go out in the next 0.12 release.

@pselle pselle closed this as completed Feb 13, 2020
@ghost
Copy link

ghost commented Apr 1, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug cli v0.12 Issues (primarily bugs) reported against v0.12 releases
Projects
None yet
Development

No branches or pull requests

4 participants