-
Notifications
You must be signed in to change notification settings - Fork 53
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
Manually Deleted VMs are not recreated #562
Comments
"General" issue around state management: #492 |
I think the two issues tackle two different use cases: This issue relate to the existence of the VM altogether. To compare to AWS as on the other ticket, an AWS EC2 instance that's deleted has the The difference here is in the way that While the detection of the vm existence is done by checking if the |
This issue is stale because it has been open for 30 days with no activity and it has not the 'status: confirmed' label or it is not in a milestone. Remove the 'status: stale' label or comment, or this will be closed in 5 days. |
Not stale |
This issue is stale because it has been open for 30 days with no activity and it has not the 'status: confirmed' label or it is not in a milestone. Remove the 'status: stale' label or comment, or this will be closed in 5 days. |
Description
Terraform does not detect any drift for VMs created using
opennebula_virtual_machine
andopennebula_virtual_router_instance
that are terminated from the UI (therefor inDONE
state).I assume this is because the VM state is ignored from the terraform state lifecycle. I am also afraid that running the DB cleaning tool (actually deleting VMs in
DONE
state) will trigger the recreation of the VM (as the ID will be not found), leading to more inconsistency when managing VMs instances via terraform.Terraform and Provider version
Terraform v1.7.3
on darwin_arm64
Affected resources and data sources
opennebula_virtual_machine
andopennebula_virtual_router_instance
Terraform configuration
Expected behavior
When terminating the VM from the UI, subsequent runs of
terraform plan
should pick up the VM is now inDONE
state and recreate it.Actual behavior
No drift are detected.
Steps to Reproduce
Create a VM with terraform, terminate it from the UI, run
terraform plan
.Debug output
No response
Panic output
No response
Important factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: