← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1248463] Re: Cannot resize VM to a different compute node when using hyperv_utils_v2

 

** Also affects: nova/havana
   Importance: Undecided
       Status: New

-- 
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/1248463

Title:
  Cannot resize VM to a different compute node when using
  hyperv_utils_v2

Status in OpenStack Compute (Nova):
  Fix Released
Status in OpenStack Compute (nova) havana series:
  New

Bug description:
  The bug is when you resize a VM to another compute node using Hyper-V VMUtilsV2, there will be an exception in the compute node which the VM  located before resizing.
  The exception is "Cannot find boot VHD file for instance: instance-0000000e".

  After debuged, the issue maybe in funtion get_vm_storage_paths of
  vmutils.py.

  If using Hyper-V v1, the get_vm_storage_paths function in vmutils.py can find the Virtual Hard Disk, all the ResourceSubType of Msvm_ResourceAllocationSettingData are
  [u'Microsoft Virtual Keyboard',
  u'Microsoft Virtual PS2 Mouse',
  u'Microsoft S3 Display Controller',
  u'Microsoft Synthetic Diskette Drive',
  None,
  u'Microsoft Serial Controller',
  u'Microsoft Serial Port',
  u'Microsoft Serial Port',
  u'Microsoft Synthetic Disk Drive',
  u'Microsoft Virtual Hard Disk',
  u'Microsoft Synthetic DVD Drive',
  u'Microsoft Virtual CD/DVD Disk',
  u'Microsoft Emulated IDE Controller',
  u'Microsoft Emulated IDE Controller',
  u'Microsoft Synthetic Mouse',
  u'Microsoft Synthetic Display Controller',
  u'Microsoft Synthetic SCSI Controller']

  If using Hyper-V v2, the get_vm_storage_paths function in vmutils.py can not find the Virtual Hard Disk, all the ResourceSubType of Msvm_ResourceAllocationSettingData are
  Microsoft:Hyper-V:Virtual Keyboard
  Microsoft:Hyper-V:Virtual PS2 Mouse
  Microsoft:Hyper-V:S3 Display Controller
  Microsoft:Hyper-V:Synthetic Diskette Drive
  None
  Microsoft:Hyper-V:Serial Controller
  Microsoft:Hyper-V:Serial Port
  Microsoft:Hyper-V:Serial Port
  Microsoft:Hyper-V:Synthetic Disk Drive
  Microsoft:Hyper-V:Synthetic DVD Drive
  Microsoft:Hyper-V:Emulated IDE Controller
  Microsoft:Hyper-V:Emulated IDE Controller
  Microsoft:Hyper-V:Synthetic Mouse
  Microsoft:Hyper-V:Synthetic Display Controller
  Microsoft:Hyper-V:Synthetic SCSI Controller

  I also find in Hyper-V v2 I can find Microsoft Virtual Hard Disk from
  class Msvm_StorageAllocationSettingData.

  Maybe the Hyper-V v2 api changed, but the codes in nova didn't change.

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