Hide Forgot
Description of problem: Several neutron functional tests are failing. Specifically the pecan_wsgi.test_controllers. Tests: neutron.tests.functional.pecan_wsgi.test_controllers.TestRouterController.test_methods neutron.tests.functional.pecan_wsgi.test_controllers.TestV2Controller.test_get_no_trailing_slash neutron.tests.functional.pecan_wsgi.test_controllers.TestResourceController.test_methods Failure: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/oslo_middleware/catch_errors.py", line 40, in __call__ response = req.get_response(self.application) File "/usr/lib/python2.7/site-packages/webob/request.py", line 1316, in send application, catch_exc_info=False) File "/usr/lib/python2.7/site-packages/webob/request.py", line 1280, in call_application app_iter = application(self.environ, start_response) File "/usr/lib/python2.7/site-packages/webob/dec.py", line 145, in __call__ return resp(environ, start_response) File "/usr/lib/python2.7/site-packages/routes/middleware.py", line 80, in __call__ config.environ = environ File "/usr/lib/python2.7/site-packages/routes/__init__.py", line 22, in __setattr__ self.load_wsgi_environ(value) File "/usr/lib/python2.7/site-packages/routes/__init__.py", line 51, in load_wsgi_environ result = mapper.routematch(path) File "/usr/lib/python2.7/site-packages/routes/mapper.py", line 688, in routematch raise RoutesException('URL or environ must be provided') RoutesException: URL or environ must be provided }}} Traceback (most recent call last): File "neutron/tests/base.py", line 115, in func return f(self, *args, **kwargs) File "neutron/tests/functional/pecan_wsgi/test_controllers.py", line 110, in test_get_no_trailing_slash self.assertEqual(response.status_int, 404) File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual self.assertThat(observed, matcher, message) File "/usr/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat raise mismatch_error testtools.matchers._impl.MismatchError: 500 != 404 --- Version-Release number of selected component (if applicable): openstack-neutron-11.0.0-0.20170503012423.617fc60.el7ost.noarch How reproducible: 100% Steps to Reproduce: 1. Clone neutron and checkout OSP 12 branch 2. Prepare host for functional tests (tools/configure_for_func_testing.sh) 3. Run functional tests Actual results: pecan_wsgi.test_controllers tests are failing Expected results: All tests passed successfully
This bugzilla has been removed from the release and needs to be reviewed and Triaged for another Target Release.
This is because of old Routes. If I install Routes==1.13 in venv, I can reproduce the problem. The version from pypi is 2.4.1.
Candidate python-routes-2.4.1 build https://cbs.centos.org/koji/buildinfo?buildID=17180
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:3462