allocate_fixed_ip causes unexpected keyword argument 'vpn'

Bug #809593 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Critical
Dan Prince

Bug Description

Using nova bzr1266. I get the following exception in nova-network.log when trying to boot an instance:

2011-07-12 21:58:38,872 ERROR nova [-] Exception during message handling
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/rpc.py", line 232, in _process_data
(nova): TRACE: rval = node_func(context=ctxt, **node_args)
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/network/manager.py", line 195, in allocate_for_instance
(nova): TRACE: ips = super(FloatingIP, self).allocate_for_instance(context, **kwargs)
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/network/manager.py", line 383, in allocate_for_instance
(nova): TRACE: self._allocate_fixed_ips(admin_context, instance_id, networks, vpn=vpn)
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/network/manager.py", line 147, in _allocate_fixed_ips
(nova): TRACE: vpn=kwargs.pop('vpn'))
(nova): TRACE: TypeError: allocate_fixed_ip() got an unexpected keyword argument 'vpn'
(nova): TRACE:
2011-07-12 21:58:38,873 ERROR nova.rpc [-] Returning exception allocate_fixed_ip() got an unexpected keyword argument 'vpn' to caller
2011-07-12 21:58:38,873 ERROR nova.rpc [-] ['Traceback (most recent call last):\n', ' File "/usr/lib/pymodules/python2.6/nova/rpc.py", line 232, in _process_data\n rval = node_func(context=ctxt, **node_args)\n', ' File "/usr/lib/pymodules/python2.6/nova/network/manager.py", line 195, in allocate_for_instance\n ips = super(FloatingIP, self).allocate_for_instance(context, **kwargs)\n', ' File "/usr/lib/pymodules/python2.6/nova/network/manager.py", line 383, in allocate_for_instance\n self._allocate_fixed_ips(admin_context, instance_id, networks, vpn=vpn)\n', ' File "/usr/lib/pymodules/python2.6/nova/network/manager.py", line 147, in _allocate_fixed_ips\n vpn=kwargs.pop(\'vpn\'))\n', "TypeError: allocate_fixed_ip() got an unexpected keyword argument 'vpn'\n"]

Related branches

Dan Prince (dan-prince)
Changed in nova:
status: New → In Progress
assignee: nobody → Dan Prince (dan-prince)
importance: Undecided → Critical
Revision history for this message
Mohammed Naser (mnaser) wrote :

This bug is introduced by the following bugfix:

https://bugs.launchpad.net/nova/+bug/809316

Looks like it needs some extra checks

Dan Prince (dan-prince)
Changed in nova:
assignee: Dan Prince (dan-prince) → Mohammed Naser (mnaser)
Revision history for this message
Mohammed Naser (mnaser) wrote :

Daniel,

Could you please test it out again and see if everything works for you with my branch? It works for me, but just to be on the safe side.

Thanks!

Revision history for this message
Dan Prince (dan-prince) wrote :

Hi Mohammed,

This patch resolves the issue for me. Going to comment on the merge prop in a second. Take which ever format you like.

Dan Prince (dan-prince)
Changed in nova:
assignee: Mohammed Naser (mnaser) → Dan Prince (dan-prince)
Revision history for this message
Mohammed Naser (mnaser) wrote :

I have puled my request and we'll go ahead with yours!

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-3
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-3 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.