Bug #4912

DISK is not removed from vCenter when detach is done in POWEROFF state

Added by Miguel Ángel Álvarez Cabrerizo almost 4 years ago. Updated over 3 years ago.

Status:ClosedStart date:11/10/2016
Priority:NormalDue date:
Assignee:Miguel Ángel Álvarez Cabrerizo% Done:

0%

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

Description

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

Associated revisions

Revision 39b6ca8e
Added by Miguel Ángel Álvarez Cabrerizo over 3 years ago

B #4912: Disks detached when VM in POWEROFF state are now detached from vCenter

Revision 2b612291
Added by Miguel Ángel Álvarez Cabrerizo over 3 years ago

B #4912: Add backing.fileName existence check

Revision 600a9e3e
Added by Miguel Ángel Álvarez Cabrerizo over 3 years ago

B #4912: Ignore CDROM when removing in POWEROFF state

History

#1 Updated by Ruben S. Montero almost 4 years ago

  • Target version set to Release 5.4

#2 Updated by Ruben S. Montero almost 4 years ago

  • Category set to vCenter

#3 Updated by Miguel Ángel Álvarez Cabrerizo almost 4 years ago

  • Status changed from Pending to New

#4 Updated by Miguel Ángel Álvarez Cabrerizo over 3 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.

Also available in: Atom PDF