Cloned VM is not removed from vcenter datastore with Recover -> Delete if it hasn't been deployed sucessfully once
|Assignee:||Miguel Ángel Álvarez Cabrerizo||% Done:|
|Target version:||Release 5.4|
|Affected Versions:||OpenNebula 5.2|
When a VM is deployed, a clone of a template is created and stored in the datastore. If the clone, poweron and reconfigure actions are successful the VM UUID is returned and stored in the DEPLOY_ID. If the poweron and reconfigure actions fail, no UUID is returned and if you use Recover -> Delete the VM is not found and therefore is not removed from the vcenter datastore.
#1 Updated by Miguel Ángel Álvarez Cabrerizo almost 4 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Begin, rescue blocks are added to reconfigure and poweron actions in clone_vm (vcenter_driver.rb) so the VM is destroyed once the clone has been created.
Code has been uploaded to master: 57bc086cb89297a3295b549d3d1b19b0099c2fd0
Code has been uploaded to one-5.2 branch: f548cd12a969a055d39a01e5b77e2f78a5860880