test_container_synchronization fails with "AttributeError: 'NoneType' object has no attribute 'will_expire_soon'"

Bug #1492508 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Invalid
Undecided
Unassigned
keystonemiddleware
Expired
Undecided
Unassigned

Bug Description

Console from the test failure:

http://logs.openstack.org/46/220646/2/gate/gate-tempest-dsvm-full-ceph-src-glance_store/95988a0/console.html#_2015-09-04_23_58_05_197

2015-09-04 23:58:05.531 | Captured traceback:
2015-09-04 23:58:05.531 | ~~~~~~~~~~~~~~~~~~~
2015-09-04 23:58:05.531 | Traceback (most recent call last):
2015-09-04 23:58:05.531 | File "tempest/test.py", line 171, in wrapper
2015-09-04 23:58:05.531 | return func(*func_args, **func_kwargs)
2015-09-04 23:58:05.531 | File "tempest/api/object_storage/test_container_sync_middleware.py", line 52, in test_container_synchronization
2015-09-04 23:58:05.531 | self._test_container_synchronization(make_headers)
2015-09-04 23:58:05.531 | File "tempest/api/object_storage/test_container_sync.py", line 110, in _test_container_synchronization
2015-09-04 23:58:05.532 | cont, params=params)
2015-09-04 23:58:05.532 | File "tempest/services/object_storage/container_client.py", line 163, in list_container_contents
2015-09-04 23:58:05.532 | resp, body = self.get(url, headers={})
2015-09-04 23:58:05.532 | File "/opt/stack/new/tempest/.tox/all/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 271, in get
2015-09-04 23:58:05.532 | return self.request('GET', url, extra_headers, headers)
2015-09-04 23:58:05.532 | File "/opt/stack/new/tempest/.tox/all/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 643, in request
2015-09-04 23:58:05.532 | resp, resp_body)
2015-09-04 23:58:05.532 | File "/opt/stack/new/tempest/.tox/all/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 685, in _error_checker
2015-09-04 23:58:05.532 | raise exceptions.Unauthorized(resp_body)
2015-09-04 23:58:05.532 | tempest_lib.exceptions.Unauthorized: Unauthorized
2015-09-04 23:58:05.533 | Details: <html><h1>Unauthorized</h1><p>This server could not verify that you are authorized to access the document you requested.</p></html>

From the s-proxy logs:

http://logs.openstack.org/46/220646/2/gate/gate-tempest-dsvm-full-ceph-src-glance_store/95988a0/logs/screen-s-proxy.txt.gz

proxy-server: Authorization failed for token
proxy-server: Identity response: {"error": {"message": "Could not find token: 929fe97e3b4f415781d1c8f2c4fd941e", "code": 404, "title": "Not Found"}}
proxy-server: Token validation failure.#012Traceback (most recent call last):#012 File "/usr/local/lib/python2.7/dist-packages/keystonemiddleware/auth_token/__init__.py", line 717, in _validate_token#012 if auth_ref.will_expire_soon(stale_duration=0):#012AttributeError: 'NoneType' object has no attribute 'will_expire_soon'

Revision history for this message
Matt Riedemann (mriedem) wrote :

This job is not using the latest keystonemiddleware (2.0.2), it's using 2.1.0:

-e git+https://git.openstack.org/openstack/keystone@53623d0f42ca991649822866094c4aa13dd52c39#egg=keystone-fetch_master
keystonemiddleware==2.1.0

Revision history for this message
Matt Riedemann (mriedem) wrote :

This is probably only running 2.1.0 because of upper-constraints in the requirements repo:

https://github.com/openstack/requirements/blob/master/upper-constraints.txt#L150

Revision history for this message
Matt Riedemann (mriedem) wrote :

This raises upper-constraints on keystonemiddleware to 2.2.0:

https://review.openstack.org/#/c/220708/

Revision history for this message
Dolph Mathews (dolph) wrote :
Changed in keystonemiddleware:
status: New → Incomplete
Changed in swift:
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for keystonemiddleware because there has been no activity for 60 days.]

Changed in keystonemiddleware:
status: Incomplete → Expired
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.