Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1450744 - Fail to execute neutron functional pecan_wsgi controllers tests
Fail to execute neutron functional pecan_wsgi controllers tests
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron (Show other bugs)
12.0 (Pike)
Unspecified Unspecified
urgent Severity urgent
: Upstream M2
: 12.0 (Pike)
Assigned To: Ihar Hrachyshka
Toni Freger
: AutomationBlocker, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-15 02:20 EDT by Arie Bregman
Modified: 2018-02-05 14:07 EST (History)
8 users (show)

See Also:
Fixed In Version: openstack-neutron-11.0.0-0.20170616110047.243c742.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-12-13 16:27:05 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1691805 None None None 2017-05-18 14:12 EDT
OpenStack gerrit 466055 None None None 2017-05-18 14:12 EDT
RDO 6696 None None None 2017-05-18 14:12 EDT
Red Hat Product Errata RHEA-2017:3462 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-15 20:43:25 EST

  None (edit)
Description Arie Bregman 2017-05-15 02:20:33 EDT
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 02:26:03 EDT
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 13:06:20 EDT
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 18:02:09 EDT
Candidate python-routes-2.4.1 build https://cbs.centos.org/koji/buildinfo?buildID=17180
Comment 12 errata-xmlrpc 2017-12-13 16:27:05 EST
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.