Bug #4648

Delete VMs in poweroff leaves disks in datastore

Added by OpenNebula Systems Support Team almost 5 years ago. Updated about 4 years ago.

Status:ClosedStart date:07/15/2016
Priority:NormalDue date:
Assignee:Jaime Melis% Done:

90%

Category:vCenter
Target version:Release 5.4
Resolution:fixed Pull request:
Affected Versions:Development

Description

Regardless of the Keep disks option in VM template.

Deleting running VMs works as expected.


Related issues

Duplicated by Bug #3590: Delete operation leaves a poweroff instance registered in... Closed 02/12/2015

Associated revisions

Revision 3d3d2c41
Added by Tino Vázquez almost 5 years ago

Bug #4648: Add hook to delete poweroff VMs

Revision 5cb9494a
Added by Tino Vázquez over 4 years ago

Bug #4648: Fix history bug in delete hook

Revision 342bc093
Added by Tino Vázquez over 4 years ago

Bug #4648: Fix history bug in delete hook

History

#1 Updated by OpenNebula Systems Support Team almost 5 years ago

  • Duplicated by Bug #3590: Delete operation leaves a poweroff instance registered in vCenter added

#2 Updated by OpenNebula Systems Support Team almost 5 years ago

  • Status changed from New to Closed
  • Resolution set to duplicate

#3 Updated by OpenNebula Systems Support Team almost 5 years ago

  • Status changed from Closed to New

#4 Updated by Tino Vázquez almost 5 years ago

  • Target version changed from Release 5.2 to Release 5.4
  • Resolution deleted (duplicate)

Added hook as a workaround. In order to install the hook,follow the next steps:

-----
1-

Add the following hook configuration to /etc/one/oned.conf
VM_HOOK = [
name = "delete_poweroff_vms",
on = "DONE",
command = "dv/delete_poweroff_vms.rb",
arguments = "$ID $PREV_STATE $PREV_LCM_STATE $TEMPLATE" ]

2- Restart OpenNebula
-----

Rescheduled for 5.4 for proper vCenter storage handling. Before closing this issue, remove it from known issues and remove the hook from repo.

#5 Updated by Jaime Melis about 4 years ago

  • Status changed from New to Assigned
  • Assignee set to Jaime Melis
  • % Done changed from 0 to 90

Remove hook from git

#6 Updated by Tino Vázquez about 4 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

Also available in: Atom PDF