← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1314034] [NEW] VMware driver can not retrieve vm_ref according to instance['name']

 

Public bug reported:

VMware driver always uses a method "_get_vm_ref_from_name(session,
instance['name']" in nova.virt.vmwareapi.vm_util to retrieve the vm_ref
from vCenter (SDK). Actually the instance['name'] is the name assigned
by openstack instead of the name assigned by VMware. The instance name
is such as "instance-00000002". It will return 'Instance
xxxxxxxxxxxxxxxxxxxxx could not be found' when _get_vm_ref_from_name use
instance['name'] as its parameter.

It should use instance['display_name'] which is the name VMware used.

** Affects: nova
     Importance: Undecided
     Assignee: Kai Tong (tongkai)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Kai Tong (tongkai)

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

Title:
  VMware driver can not retrieve vm_ref according to instance['name']

Status in OpenStack Compute (Nova):
  New

Bug description:
  VMware driver always uses a method "_get_vm_ref_from_name(session,
  instance['name']" in nova.virt.vmwareapi.vm_util to retrieve the
  vm_ref from vCenter (SDK). Actually the instance['name'] is the name
  assigned by openstack instead of the name assigned by VMware. The
  instance name is such as "instance-00000002". It will return 'Instance
  xxxxxxxxxxxxxxxxxxxxx could not be found' when _get_vm_ref_from_name
  use instance['name'] as its parameter.

  It should use instance['display_name'] which is the name VMware used.

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


Follow ups

References