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
Manually deleting resources using OpenNebula interfaces leads to resource state inconsistency not being handled. This is happening for different resources. This is a generic issue to handle them all.
Description
Manually deleting resources using OpenNebula interfaces leads to resource state inconsistency not being handled. This is happening for different resources. This is a generic issue to handle them all.
Terraform and Provider version
Terraform v1.9.7
on linux_amd64
Affected resources and data sources
Issue currently tested for resources:
More resources to be tested.
Terraform configuration
Expected behavior
The resource should be removed from the TF state. This is the current behavior for the opennebula_virtual_machine resource (handling code here)
Actual behavior
Unhandled error:
root@localhost:~/tf-test-template# terraform plan
opennebula_template.template: Refreshing state... [id=15]
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: OpenNebula error [NO_EXISTS]: [one.template.info] Error getting virtual machine template [15].
│
│ with opennebula_template.template,
│ on main.tf line 19, in resource "opennebula_template" "template":
│ 19: resource "opennebula_template" "template" {
│
╵
Steps to Reproduce
Create one of the resources specified above, manually delete it and force state update with
terraform plan
.Debug output
https://gist.github.com/dgarcia18/cdd4aa4d056b9e7c396220fa3f734145
Panic output
No response
Important factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: