Comment 2 for bug 1460833

Revision history for this message
Corey Bryant (corey.bryant) wrote : Re: admin token is not properly refreshed if it expires in v1.0.0

Ubuntu has python-keystonemiddleware 1.0.0 in Juno so we'd have to backport the fix to 1.0.0. From that perspective, unfortunately, the fix in 1.1.0 is a large rework of the code. However, in discussing with HT_Sergio it appears we can fix this with a one-line change by setting the following line to 'self._admin_token', which will reset the correct variable name such that _get_admin_token() will fetch a new token:
 https://github.com/openstack/keystonemiddleware/blob/1.0.0/keystonemiddleware/auth_token.py#L1122