Open jamielinux opened 3 months ago
Thanks for report. I can reproduce the issue., we will look into improving error handling.
We plan to migrate this resource to the new terraform framework and fix this at the same time. It's not a priority at the moment but it is planned.
Current Behavior
Let's say your config looks something like this:
When I run
tofu apply
I get:Running
tofu state list
, it lists the block storage but not the compute instance. But the compute instance actually exists and is running. This compute instance cannot be destroyed by Terraform, because Terraform doesn't know it exists (unless you manually import it, but I didn't try that).Expected Behavior
If the VM is created, Terraform should have it in its state. Alternatively, I guess VM creation could be halted and the VM destroyed as part of the failure. In either case, Terraform state should match what actually happened.
Thank you!
Steps To Reproduce
No response
Provider Version
0.59.1
Terraform Version
OpenTofu v1.7.3
Relevant log output
No response