PKI tokens are broken after 24 hours
Bug #1074172 reported by
Vish Ishaya
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
High
|
Vish Ishaya | ||
Folsom |
Fix Released
|
High
|
Vish Ishaya |
Bug Description
After 24 hours of being up the auth_token_
Changed in keystone: | |
assignee: | nobody → Adam Young (ayoung) |
Changed in keystone: | |
milestone: | none → grizzly-1 |
Changed in keystone: | |
assignee: | Joseph Heck (heckj) → Vish Ishaya (vishvananda) |
Changed in keystone: | |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | grizzly-1 → 2013.1 |
To post a comment you must log in.
Quick untested fix
diff --git a/keystone/ middleware/ auth_token. py b/keystone/ middleware/ auth_token. py middleware/ auth_token. py middleware/ auth_token. py object) : revoked_ file_name, 'w') as f:
f. write(value)
index 5c198e8..8032b12 100644
--- a/keystone/
+++ b/keystone/
@@ -771,10 +771,16 @@ class AuthProtocol(
with open(self.
- def fetch_revocatio n_list( self): n_list( self, retry=True): admin_token( )} request( 'GET', '/v2.0/ tokens/ revoked' ,
additional_ headers= headers) revocation_ list(False) 'Unable to fetch token revocation list.')
+ def fetch_revocatio
headers = {'X-Auth-Token': self.get_
response, data = self._json_
+ if response.status == 401:
+ if retry:
+ LOG.info('Keystone rejected admin token %s, resetting',
+ headers)
+ self.admin_token = None
+ return self.fetch_
if response.status != 200:
raise ServiceError(
if (not 'signed' in data):