Add fixed IP fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Tushar Patil |
Bug Description
I try to add a fixed IP to instance with this command: 'nova add-fixed-ip 4 2' but I get this error in nova-network logs:
2011-08-30 16:00:27,111 DEBUG nova.rpc [-] {u'_context_roles': [u'Admin'], u'_context_
2011-08-30 16:00:27,111 DEBUG nova.rpc [-] Contexte décompacté : {'user_id': u'admin', 'roles': [u'Admin'], 'timestamp': u'2011-
2011-08-30 16:00:27,117 DEBUG nova.network.
2011-08-30 16:00:27,117 ERROR nova [-] Exception during message handling
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/lib/
(nova): TRACE: rval = node_func(
(nova): TRACE: File "/usr/lib/
(nova): TRACE: self._allocate_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: vpn = kwargs.pop('vpn')
(nova): TRACE: KeyError: 'vpn'
(nova): TRACE:
I use nova bzr 1508 in VLAN network.
Related branches
- Brian Waldon (community): Approve
- Devin Carlen (community): Approve
-
Diff: 112 lines (+59/-5)2 files modifiednova/network/manager.py (+3/-3)
nova/tests/test_network.py (+56/-2)
Changed in nova: | |
assignee: | nobody → Tushar Patil (tpatil) |
status: | Triaged → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-rbp |
Changed in nova: | |
milestone: | diablo-rbp → 2011.3 |
status: | Fix Committed → Fix Released |
In nova/network/ manager. py:
NetworkManager's add_fixed_ ip_to_instance calls _allocate_fixed_ips without vpn or requested_networks parameters.
FlatManager's _allocate_fixed_ips will fail if throw an exception if requested_networks is not provided
RPCAllocateFixe dIP's _allocate_fixed_ips will throw an exception if vpn or requested_networks is not provided (this bug report)
Either add_fixed_ ip_to_instance needs to be fixed to pass the required parameters, or (more likely) _allocate_fixed_ips needs to be a little more flexible in what they accept.