[keystone][5.1.2] Periodic job fails, packaged env

Bug #1466843 reported by Dmitry Teselkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Won't Fix
Medium
MOS Keystone

Bug Description

Periodic job for openstack/keystone, 5.1.2 branch, fails on env built from packages:

-----
07:16:12 Traceback (most recent call last):
07:16:12 File "keystone/tests/test_v3_oauth1.py", line 273, in test_oauth_flow
07:16:12 resp = self.put(url, body=body, expected_status=200)
07:16:12 File "keystone/tests/test_v3.py", line 369, in put
07:16:12 r = self.v3_request(method='PUT', path=path, **kwargs)
07:16:12 File "keystone/tests/test_v3.py", line 347, in v3_request
07:16:12 return self.admin_request(path=path, token=token, **kwargs)
07:16:12 File "keystone/tests/test_v3.py", line 293, in admin_request
07:16:12 r = super(RestfulTestCase, self).admin_request(*args, **kwargs)
07:16:12 File "keystone/tests/rest.py", line 214, in admin_request
07:16:12 return self._request(app=self.admin_app, **kwargs)
07:16:12 File "keystone/tests/rest.py", line 203, in _request
07:16:12 response = self.restful_request(**kwargs)
07:16:12 File "keystone/tests/rest.py", line 190, in restful_request
07:16:12 **kwargs)
07:16:12 File "keystone/tests/rest.py", line 94, in request
07:16:12 status=expected_status, **kwargs)
07:16:12 File "/usr/lib/python2.7/dist-packages/webtest/app.py", line 1011, in request
07:16:12 return self.do_request(req, status=status, expect_errors=expect_errors)
07:16:12 File "/usr/lib/python2.7/dist-packages/webtest/app.py", line 1043, in do_request
07:16:12 res = req.get_response(app, catch_exc_info=True)
07:16:12 File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1292, in send
07:16:12 application, catch_exc_info=True)
07:16:12 File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1260, in call_application
07:16:12 app_iter = application(self.environ, start_response)
07:16:12 File "/usr/lib/python2.7/dist-packages/webtest/lint.py", line 146, in lint_app
07:16:12 check_environ(environ)
07:16:12 File "/usr/lib/python2.7/dist-packages/webtest/lint.py", line 330, in check_environ
07:16:12 % (key, type(environ[key]), environ[key]))
07:16:12 AssertionError: Environmental variable PATH_INFO is not a string: <type 'unicode'> (value: u'/v3/OS-OAUTH1/authorize/dc095ace22ec4a0e835368114c24f925')
07:16:12 Ran 3350 tests in 2336.867s
07:16:12 FAILED (id=0, failures=240, skips=854)
-----

Link to the logs: http://logs.mosi.mirantis.net/periodic-pkg/periodic-keystone-python27-pkg-mos512/27639da
Jenkins job: https://jenkins.mosi.mirantis.net/job/periodic-keystone-python27-pkg-mos512/

Tags: keystone mosi
Changed in mos:
milestone: none → 5.1.2
assignee: nobody → MOS Keystone (mos-keystone)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Alexander Makarov (amakarov) wrote :

Try setting LC_ALL=C (or appropriate)

Revision history for this message
Alexander Makarov (amakarov) wrote :

The problem is in old version of webtest - it doesn't handle webob created app environment correctly:
on WebTest==2.0.18 tests pass.

Changed in mos:
status: Confirmed → Triaged
Revision history for this message
Vitaly Sedelnik (vsedelnik) wrote :

Won't Fix - packaged envs are not supported anymore

Changed in mos:
status: Triaged → Won't Fix
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.