AttributeError while logging use of a token already cached as invalid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keystonemiddleware |
Fix Released
|
Critical
|
Brian Cline |
Bug Description
Starting with keystonemiddleware v4.5.0 (specifically, commit f54ff06c1f5e274
To reproduce (in my case, with Swift using keystonemiddleware in the pipeline):
1. As expected, this fails with a 401:
(py27) root@saio:
GET /v1/AUTH_test/ HTTP/1.1
Accept: */*
Accept-
Connection: keep-alive
Host: localhost
User-Agent: HTTPie/0.9.3
x-auth-token: wat
HTTP/1.1 401 Unauthorized
Connection: keep-alive
Content-Length: 131
Content-Type: text/html; charset=UTF-8
Date: Sat, 21 May 2016 05:53:13 GMT
WWW-
Www-
X-Trans-Id: tx7ee1359f7e4e4
<html>
2. This should return a 401 as well, just slightly quicker than the first.
(py27) root@saio:
GET /v1/AUTH_test/ HTTP/1.1
Accept: */*
Accept-
Connection: keep-alive
Host: localhost
User-Agent: HTTPie/0.9.3
x-auth-token: wat
HTTP/1.1 500 Internal Error
Connection: keep-alive
Content-Length: 17
Content-Type: text/plain
Date: Sat, 21 May 2016 05:53:17 GMT
X-Trans-Id: txaa05ce4bdf9a4
An error occurred
The Swift proxy logs showing the precise reason for the 500:
May 21 05:46:55 saio proxy-server: Error: An error occurred:
Traceback (most recent call last):
File "/usr/local/
resp = self._app_call(env)
File "/usr/local/
resp = self.app(env, self._start_
File "/usr/local/
return self.app(env, gatekeeper_
File "/usr/local/
return self.app(env, start_response)
File "/usr/local/
File "/usr/local/
iterable = self.app(env, my_start_response)
File "/usr/local/
return self.app(env, start_response)
File "/usr/local/
return func(self, Request(env))(env, start_response)
File "/usr/local/
return self.app(env, start_response)
File "/usr/local/
return self.app(env, start_response)
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/usr/local/
response = self.process_
File "/usr/local/
resp = super(AuthProtocol, self).process_
File "/usr/local/
data, user_auth_ref = self._do_
File "/usr/local/
data = self.fetch_
File "/usr/local/
Changed in keystonemiddleware: | |
importance: | Undecided → Critical |
Fix proposed to branch: master /review. openstack. org/319527
Review: https:/