Bug 1450744 - Fail to execute neutron functional pecan_wsgi controllers tests
Summary: Fail to execute neutron functional pecan_wsgi controllers tests
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: Upstream M2
: 12.0 (Pike)
Assignee: Ihar Hrachyshka
QA Contact: Toni Freger
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-15 06:20 UTC by Arie Bregman
Modified: 2018-02-05 19:07 UTC (History)
8 users (show)

Fixed In Version: openstack-neutron-11.0.0-0.20170616110047.243c742.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-13 21:27:05 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1691805 0 None None None 2017-05-18 18:12:10 UTC
OpenStack gerrit 466055 0 None None None 2017-05-18 18:12:27 UTC
RDO 6696 0 None None None 2017-05-18 18:12:41 UTC
Red Hat Product Errata RHEA-2017:3462 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-16 01:43:25 UTC

Description Arie Bregman 2017-05-15 06:20:33 UTC
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

Comment 2 Red Hat Bugzilla Rules Engine 2017-05-15 06:26:03 UTC
This bugzilla has been removed from the release and needs to be reviewed and Triaged for another Target Release.

Comment 3 Ihar Hrachyshka 2017-05-18 17:06:20 UTC
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.

Comment 4 Alan Pevec 2017-05-18 22:02:09 UTC
Candidate python-routes-2.4.1 build https://cbs.centos.org/koji/buildinfo?buildID=17180

Comment 12 errata-xmlrpc 2017-12-13 21:27:05 UTC
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


Note You need to log in before you can comment on or make changes to this bug.