← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1416961] [NEW] [vmware driver] VM deployment failed on non-vmware distributed virtual switch

 

You have been subscribed to a public bug:

We are using a Cisco Nexus 1000v DVS, which is not a normal VMWare
Distributed Virtual Switch

And we got following error when deploying a VM:

Error from last host: lnxau2106pfsp0012.infau.wbcau.westpac.com.au (node domain-c3459(WSDC00ENPR01)): ['Traceback (most recent call last):',
'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1340, in _build_instance
    set_access_ip=set_access_ip)',
'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 401, in decorated_function
    return function(self, context, *args, **kwargs)',
'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1779, in _spawn
    LOG.exception(_('Instance failed to spawn'), instance=instance)',
'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__
    six.reraise(self.type_, self.value, self.tb)',
'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1765, in _spawn
    block_device_info)',
'  File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/driver.py", line 854, in spawn
    admin_password, network_info, block_device_info)',
'  File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/vmops.py", line 268, in spawn
    power_on)',
'  File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/template.py", line 463, in spawn_from_template
    data_store_ref, res_pool_ref, template_ref, instance['uuid'])',
'  File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/template.py", line 372, in execute_clone_vm
    e, instance=instance)',
'  File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__
    six.reraise(self.type_, self.value, self.tb)',
'  File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/template.py", line 368, in execute_clone_vm
    res_pool_ref, template_ref, config_spec)',
'  File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/template.py", line 275, in _clonevm
    storageSpec=storage_spec)',
'  File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/driver.py", line 1160, in _call_method
    raise error_util.get_fault_class(fault)(str(excep))',
'VMwareDriverException:
Required property switchUuid is missing from data object of type DistributedVirtualSwitchPortConnection

Reason:
The reason is that Cisco Nexus 1000v DVS' type is(Managed Object:DistributedVirtualSwitch ) , which is not a normal VMWare Distributed Virtual Switch(Managed Object:VmwareDistributedVirtualSwitch ). 
But the vmware driver is try to fetch the uuid based on type (Managed Object:VmwareDistributedVirtualSwitch ).
dvs_props = session._call_method(vim_util,
                                "get_dynamic_property",
                                props.distributedVirtualSwitch,
                                "VmwareDistributedVirtualSwitch", "uuid")

This code only works on normal vmware dvs, but not works on other types.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
[vmware driver] VM deployment failed on non-vmware distributed virtual switch
https://bugs.launchpad.net/bugs/1416961
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova).