Diablo fails to run a VPN

Bug #871877 reported by Alvaro Lopez
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Alvaro Lopez
Diablo
Fix Released
Undecided
Unassigned

Bug Description

Whenever I try to spawn a VPN, nova-manage vpn run fails. I am using VLAN networking.

The trace I am getting is the following:

    (nova.rpc): TRACE: Traceback (most recent call last):
    (nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/rpc/impl_kombu.py", line 620, in _process_data
    (nova.rpc): TRACE: rval = node_func(context=ctxt, **node_args)
    (nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/network/manager.py", line 218, in allocate_for_instance
    (nova.rpc): TRACE: ips = super(FloatingIP, self).allocate_for_instance(context, **kwargs)
    (nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/network/manager.py", line 441, in allocate_for_instance
    (nova.rpc): TRACE: requested_networks=requested_networks)
    (nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/network/manager.py", line 168, in _allocate_fixed_ips
    (nova.rpc): TRACE: vpn=vpn, address=address)
    (nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/network/manager.py", line 1017, in allocate_fixed_ip
    (nova.rpc): TRACE: reserved=True)
    (nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/db/api.py", line 337, in fixed_ip_associate
    (nova.rpc): TRACE: reserved)
    (nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/db/sqlalchemy/api.py", line 101, in wrapper
    (nova.rpc): TRACE: return f(*args, **kwargs)
    (nova.rpc): TRACE: File "/usr/lib/python2.6/dist-packages/nova/db/sqlalchemy/api.py", line 697, in fixed_ip_associate
    (nova.rpc): TRACE: network_id=network_id)
    (nova.rpc): TRACE: FixedIpNotFoundForNetwork: Fixed IP address (%(address)s) does not exist in network (%(network_uuid)s).
    (nova.rpc): TRACE:

The attached patch against Diablo source code solves the problem for me.

Revision history for this message
Alvaro Lopez (aloga) wrote :
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → High
status: New → Triaged
Alvaro Lopez (aloga)
Changed in nova:
assignee: nobody → Alvaro (aloga)
status: Triaged → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/1453
Committed: http://github.com/openstack/nova/commit/6e7b0387e417e4ef36b8ce1e0b7a7db32732838d
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 6e7b0387e417e4ef36b8ce1e0b7a7db32732838d
Author: Alvaro Lopez <email address hidden>
Date: Wed Nov 9 16:18:39 2011 +0100

    Fixes bug 871877

    Added an aditional testunit to the VlanNetworkTestCase to check
    if the FixedIpNotFoundForNetwork exception is raised properly.

    Change-Id: I92a0ca22aadcfa9a7fd434375e239be8ccf4f387

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → essex-2
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/diablo)

Reviewed: https://review.openstack.org/2175
Committed: http://github.com/openstack/nova/commit/60cb0496c25f71d748bc8634cc13c8614d970df1
Submitter: Jenkins
Branch: stable/diablo

commit 60cb0496c25f71d748bc8634cc13c8614d970df1
Author: Alvaro Lopez <email address hidden>
Date: Wed Nov 9 16:18:39 2011 +0100

    Fixes bug 871877

    Added an aditional testunit to the VlanNetworkTestCase to check
    if the FixedIpNotFoundForNetwork exception is raised properly.

    (cherry picked from commit 6e7b0387e417e4ef36b8ce1e0b7a7db32732838d)

    Change-Id: I92a0ca22aadcfa9a7fd434375e239be8ccf4f387

tags: added: in-stable-diablo
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-2 → 2012.1
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.