[vpnaas] Unit test failure: cannot import name dvr_router

Bug #1467466 reported by Elena Ezhova
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Elena Ezhova

Bug Description

2015-06-22 10:14:26.271 | Traceback (most recent call last):
2015-06-22 10:14:26.272 | File "/home/jenkins/workspace/gate-neutron-vpnaas-python27/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 445, in _find_test_path
2015-06-22 10:14:26.272 | module = self._get_module_from_name(name)
2015-06-22 10:14:26.272 | File "/home/jenkins/workspace/gate-neutron-vpnaas-python27/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 384, in _get_module_from_name
2015-06-22 10:14:26.272 | __import__(name)
2015-06-22 10:14:26.272 | File "neutron_vpnaas/tests/unit/services/vpn/device_drivers/test_ipsec.py", line 19, in <module>
2015-06-22 10:14:26.272 | from neutron.agent.l3 import dvr_router
2015-06-22 10:14:26.272 | ImportError: cannot import name dvr_router

Tags: vpnaas
Elena Ezhova (eezhova)
tags: added: vpnaas
Elena Ezhova (eezhova)
Changed in neutron:
assignee: nobody → Elena Ezhova (eezhova)
Revision history for this message
Paul Michali (pcm) wrote :

Looks like Neutron change for commit https://review.openstack.org/#q,I581a097b9e7c49f20d0eb0e4ca66a25e90d9511b,n,z has broken the VPNaaS UTs. DvrRouter renamed to DvrLocalRouter, and no longer has create_snat_namespace() method.

Changed in neutron:
status: New → Confirmed
Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
Paul Michali (pcm) wrote :

Actually, I'm not sure if it was renamed to DvrLocalRouter or DvrEdgeRouter. Need to understand which one represents the router that is used for SNAT and VPN in an DVR situation. Need to make sure that the get_namespace() command in VPN driver is correct.

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: liberty-1 → 7.0.0
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.