DISK is not removed from vCenter when detach is done in POWEROFF state
|Assignee:||Miguel Ángel Álvarez Cabrerizo||% Done:|
|Target version:||Release 5.4|
|Affected Versions:||OpenNebula 5.2|
A DISK is hotplugged to the VM. The VM is sent to the POWEROFF state and the DISK is detached. It gets removed from OpenNebula but not from vCenter
#4 Updated by Miguel Ángel Álvarez Cabrerizo about 4 years ago
- Status changed from New to Closed
- Resolution set to fixed
A fix has been submitted to one-5.2 branch (commit 39b6ca8ebff3424b27917cd19fd78bd76130c63e).
Disk images in the form [datastore name] image name e.g [nfs] empty_datastore.vmdk are added to the extra config section of the vCenter VM (Advanced options) inside the opennebula.hotplugged_disks so it can be tracked what disks are attached/detached either the VM is in RUNNING state or in POWEROFF state. That way if a DISK is removed when in POWEROFF, the opennebula.hotplugged_disks is used to determine what disk must be removed from vCenter's VM comparing those values with the elements in the OpenNebula VM template.