yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #35873
[Bug 1441980] Re: When port group not found in ESXi , get TypeError: 'NoneType' object is not iterable
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => liberty-2
--
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/1441980
Title:
When port group not found in ESXi , get TypeError: 'NoneType' object
is not iterable
Status in OpenStack Compute (nova):
Fix Released
Bug description:
In my environment, nova version is 2014.1.3, use nova-network vlan
mode.
When creating an instance use VLAN manager, the instance get network info from VIF, like the bridge name.
If bridge name and vlan id not found in the cluster, in network_util.get_vlanid_and_vswitch_for_portgroup returns None,
but in function ensure_vlan_bridge, there are two variables accepting None value.
so it raise TypeError: 'NoneType' object is not iterable.
2015-04-09 03:34:20.399 9891 ERROR nova.compute.manager [req-5c2cef4b-e0b7-4adf-a48d-8fc19d53ed64 4fdbdb45ea224242b9c983a4d80ae639 188a8948c92d47099be6bddf09782e1f] [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] Instance failed to spawn
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] Traceback (most recent call last):
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1737, in _spawn
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] block_device_info)
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/driver.py", line 632, in spawn
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] admin_password, network_info, block_device_info)
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/vmops.py", line 301, in spawn
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] vif_infos = _get_vif_infos()
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/vmops.py", line 291, in _get_vif_infos
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] self._is_neutron)
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/vif.py", line 153, in get_network_ref
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] create_vlan=create_vlan)
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] File "/usr/lib/python2.6/site-packages/nova/virt/vmwareapi/vif.py", line 86, in ensure_vlan_bridge
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] pg_vlanid, pg_vswitch = _get_pg_info(session, bridge, cluster)
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a] TypeError: 'NoneType' object is not iterable
2015-04-09 03:34:20.399 9891 TRACE nova.compute.manager [instance: 37da5bc7-0a23-4a81-8cf6-cf5cefe5851a]
Should give a return value in network_util.get_vlanid_and_vswitch_for_portgroup when port group not found in ESXi host,
Or raise an exception ?
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1441980/+subscriptions
References