← Back to team overview

openstack team mailing list archive

Bug launching instance in Essex packages on Precise - for nw, info in nw_info: too many values to unpack (network/manager.py)


Dear cloud folk,
I raised https://bugs.launchpad.net/nova/+bug/928819 last week that's
not getting any love so was wondering if it was user error rather than
a bug (as its a show stopper for my setup that I previously didn't

My setup is simple -
Fresh install of Precise A2
Installed OpenStack
nova.conf, etc all in the bug info

I go to launch an instance, and get the stack trace below

I've got --auto_assign_floating_ip flag in my confg and the above bug
triggers causing the following:

012-02-08 11:02:04,345 DEBUG nova.utils [-] Got semaphore "get_dhcp"
for method "_get_dhcp_ip"... from (pid=3270) inner
2012-02-08 11:02:04,436 DEBUG nova.network.manager [-] QUOTA: 1 from
(pid=3270) allocate_floating_ip
2012-02-08 11:02:04,521 ERROR nova.rpc [-] Exception during message handling
(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE: File
"/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 249, in
(nova.rpc): TRACE: rval = node_func(context=ctxt, **node_args)
(nova.rpc): TRACE: File
"/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 240,
in wrapped
(nova.rpc): TRACE: return func(self, context, *args, **kwargs)
(nova.rpc): TRACE: File
"/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 303,
in allocate_for_instance
(nova.rpc): TRACE: for nw, info in nw_info:
(nova.rpc): TRACE: ValueError: too many values to unpack
(nova.rpc): TRACE:
2012-02-08 11:02:04,522 ERROR nova.rpc [-] Returning exception too
many values to unpack to caller
2012-02-08 11:02:04,522 ERROR nova.rpc [-] ['Traceback (most recent
call last):\n', ' File
"/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 249, in
_process_data\n rval = node_func(context=ctxt, **node_args)\n', ' File
"/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 240,
in wrapped\n return func(self, context, *args, **kwargs)\n', ' File
"/usr/lib/python2.7/dist-packages/nova/network/manager.py", line 303,
in allocate_for_instance\n for nw, info in nw_info:\n', 'ValueError:
too many values to unpack\n']

I know very little of Python but adding in a debug message to log the
value of nw_info showed the following

[VIF({'network': Network({'bridge': 'br4025', 'subnets':
[Subnet({'ips': [FixedIP({'meta': {}, 'version': 4, 'type': 'fixed',
'floating_ips': [], 'address': ''})], 'version': 4, 'meta':
{'dhcp_server': ''}, 'dns': [], 'routes': [], 'cidr':
'', 'gateway': IP({'meta': {}, 'version': 4, 'type':
'gateway', 'address': ''})}), Subnet({'ips': [], 'version':
None, 'meta': {'dhcp_server': ''}, 'dns': [], 'routes': [],
'cidr': None, 'gateway': IP({'meta': {}, 'version': None, 'type':
'gateway', 'address': None})})], 'meta': {'multi_host': True,
'should_create_bridge': True, 'should_create_vlan': True,
'bridge_interface': 'eth0', 'tenant_id':
'15a82b3d665d4fd7883ad0d142c8603c', 'vlan': 4025L}, 'id':
'76828f39-8bef-4d80-8c68-f3b8b601580a', 'label': 'vmnet'}), 'meta':
{}, 'id': '2b55771b-e488-4b19-8f5a-255bf67d72f0', 'address':

Any assistance appreciated so I can test Essex on Precise.


Kevin Jackson

Follow ups