auth_token causes services to fail to start if keystone is down
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Fix Released
|
Critical
|
Dan Prince |
Bug Description
Using python-
Services will now fail to startup correctly if the Keystone server is not running. The following example stack trace from glance shows the issue:
2013-03-13 15:09:01.020 23171 CRITICAL glance [-] Unable to communicate with keystone
2013-03-13 15:09:01.020 23171 TRACE glance Traceback (most recent call last):
2013-03-13 15:09:01.020 23171 TRACE glance File "/usr/bin/
2013-03-13 15:09:01.020 23171 TRACE glance server.
2013-03-13 15:09:01.020 23171 TRACE glance File "/usr/lib/
2013-03-13 15:09:01.020 23171 TRACE glance app = deploy.
2013-03-13 15:09:01.020 23171 TRACE glance File "/usr/lib/
2013-03-13 15:09:01.020 23171 TRACE glance return loadobj(APP, uri, name=name, **kw)
2013-03-13 15:09:01.020 23171 TRACE glance File "/usr/lib/
2013-03-13 15:09:01.020 23171 TRACE glance return context.create()
2013-03-13 15:09:01.020 23171 TRACE glance File "/usr/lib/
2013-03-13 15:09:01.020 23171 TRACE glance return self.object_
2013-03-13 15:09:01.020 23171 TRACE glance File "/usr/lib/
2013-03-13 15:09:01.020 23171 TRACE glance app = filter(app)
2013-03-13 15:09:01.020 23171 TRACE glance File "/usr/lib/
2013-03-13 15:09:01.020 23171 TRACE glance return AuthProtocol(app, conf)
2013-03-13 15:09:01.020 23171 TRACE glance File "/usr/lib/
2013-03-13 15:09:01.020 23171 TRACE glance self.auth_version = self._choose_
2013-03-13 15:09:01.020 23171 TRACE glance File "/usr/lib/
2013-03-13 15:09:01.020 23171 TRACE glance versions_
2013-03-13 15:09:01.020 23171 TRACE glance File "/usr/lib/
2013-03-13 15:09:01.020 23171 TRACE glance response, data = self._json_
2013-03-13 15:09:01.020 23171 TRACE glance File "/usr/lib/
2013-03-13 15:09:01.020 23171 TRACE glance raise ServiceError(
-----
To reproduce:
1) stop keystone
2) restart glance-api
Expected behaviour:
glance-api should startup regardless of of whether keystone is running.
Observed behaviour:
glance-api fails to startup.
-----
Fix: The easiest way to fix this is to adjust the latest middleware so that it using lazy loading to set the auth_version used.
Changed in python-keystoneclient: | |
assignee: | nobody → Dan Prince (dan-prince) |
status: | New → In Progress |
importance: | Undecided → Critical |
Changed in python-keystoneclient: | |
milestone: | none → 0.2.3 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/24370
Review: https:/