← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1835733] [NEW] VMware VMDK volume detach fails

 

Public bug reported:

Description
===========
Volume detaching incorrectly fails when shadow VM adapter type is IDE and instance VM adapter type is not IDE.

Steps to reproduce
==================
* Get a volume with shadow VM adapter type IDE
* Get a server with non-IDE adapter type
* Attach the volume to the server
* Attempt to detach the volume from the server (while server is powered-on)

Expected result
===============
Detach must be successful since adapter type on server instance VM is not IDE hence no need for the instance VM to be powered-off.

Actual result
=============
Detach failed complaining about IDE not supporting hotplug. The incorrect logic is here https://github.com/openstack/nova/blob/766d13218763f43ba91c2a15adff438a0dd84e37/nova/virt/vmwareapi/volumeops.py#L519-L528.

Environment
===========
1. Exact version of OpenStack you are running.
Queens

2. Which hypervisor did you use?
vSphere 6.5

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: vmware

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1835733

Title:
  VMware VMDK volume detach fails

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========
  Volume detaching incorrectly fails when shadow VM adapter type is IDE and instance VM adapter type is not IDE.

  Steps to reproduce
  ==================
  * Get a volume with shadow VM adapter type IDE
  * Get a server with non-IDE adapter type
  * Attach the volume to the server
  * Attempt to detach the volume from the server (while server is powered-on)

  Expected result
  ===============
  Detach must be successful since adapter type on server instance VM is not IDE hence no need for the instance VM to be powered-off.

  Actual result
  =============
  Detach failed complaining about IDE not supporting hotplug. The incorrect logic is here https://github.com/openstack/nova/blob/766d13218763f43ba91c2a15adff438a0dd84e37/nova/virt/vmwareapi/volumeops.py#L519-L528.

  Environment
  ===========
  1. Exact version of OpenStack you are running.
  Queens

  2. Which hypervisor did you use?
  vSphere 6.5

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1835733/+subscriptions


Follow ups