Delete image, vmdk and folder - wild VMS


(Carlos Cesario) #1

Hi team,
How can I enable option to delete image(from Sunstone GUI), VMDK disk and VM Folder from Wild (Imported VMs from vCenter) when terminate an instance? Currently when I terminate an instace I still see the VM folder name and VMDK disk inside VMware datastore and the image VM in Sunstone GUI.

I wold like when terminate an instace remove all objects in opennebula (Sunstone) and vCenter environment.

Best regards
Carlos


Versions of the related components and OS (frontend, hypervisors, VMs):
OpenNebula deb packages 5.5.90
Ubuntu 16.04.4
vCenter 6.5 build 8024368

Steps to reproduce:
1 - Import vCenter Cluster
2 - Import Datastores and Networks from vCenter Cluster
3 - Import running VMs from vCenter Cluster - Wild option in Sunstone GUI
4 - Terminate the instance

Current results:
The image is listed on Sunstone
The VMDK and VM Folder is present on vCenter Datastore

Expected results:
Remove all VM references - Opennebula/Sunstone and vCenter env


(Carlos Cesario) #2

Updating…
Even deleting the image

root@srvnebula:/etc/one# oneimage list
  ID USER       GROUP      NAME            DATASTORE     SIZE TYPE PER STAT RVMS
  33 oneadmin   oneadmin   BlueIT1VM - dat datastore1   1024M OS   Yes rdy     0
root@srvnebula:/etc/one# oneimage list
  ID USER       GROUP      NAME            DATASTORE     SIZE TYPE PER STAT RVMS
  33 oneadmin   oneadmin   BlueIT1VM - dat datastore1   1024M OS   Yes rdy     0
root@srvnebula:/etc/one# oneimage delete 33
root@srvnebula:/etc/one# oneimage list
  ID USER       GROUP      NAME            DATASTORE     SIZE TYPE PER STAT RVMS
 
root@srvnebula:/etc/one#

The image remain in Vmware Datastore

https://pasteboard.co/HtcBmkf.png

Regards
Carlos