You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the operation runs extremely long (and prob won't complete) I've hit ^C that prints out "Please wait for Terraform to exit or data loss may occur." - then after waiting some more I'm hitting ^C again. I don't think that the state file should not be empty after this.
Actual Behavior
State file is empty. Needs to restore from the backup.
Thanks for the reproduction case. Unfortunately I'm not able to reproduce this locally, and I'm not able to get your example to run correctly yet (though that is probably just inexperience with this provider on my part). The Google provider shouldn't be able to do anything specific on its own to cause the state to be empty, but my initial attempts at recreating this with a test provider never truncate the state to 0 bytes.
While I wrangle with my test account credentials, could you let me know what you mean by an "empty" state file? Does the state file contain a basic JSON structure but with no resource data, or is it completely empty file containing 0 bytes?
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
locked and limited conversation to collaborators
Apr 4, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
Debug Output
I've made a repository that can be used to repro, it also contains trace: https://github.com/matti/terraform-repro-abort-empties-state
Expected Behavior
When the operation runs extremely long (and prob won't complete) I've hit
^C
that prints out "Please wait for Terraform to exit or data loss may occur." - then after waiting some more I'm hitting^C
again. I don't think that the state file should not be empty after this.Actual Behavior
State file is empty. Needs to restore from the backup.
Steps to Reproduce
I've made a repository that can be used to repro: https://github.com/matti/terraform-repro-abort-empties-state
This happens after the
google_container_cluster
andgoogle_container_node_pool
has been created. To repro this (100% success rate in my ~7 tests):Faster alternative:
References
The text was updated successfully, but these errors were encountered: