Glance does not error gracefully on token validation error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Martin Tsvetanov | ||
Kilo |
New
|
Undecided
|
Unassigned | ||
Liberty |
Fix Committed
|
High
|
Flavio Percoco |
Bug Description
When the registry has an error validating the token that the api has sent it a 500 is returned, rather than 401. This is with the latest master.
{code}
2015-10-08 15:03:16.939 ERROR glance.
2015-10-08 15:03:16.939 TRACE glance.
2015-10-08 15:03:16.939 TRACE glance.
2015-10-08 15:03:16.939 TRACE glance.
2015-10-08 15:03:16.939 TRACE glance.
2015-10-08 15:03:16.939 TRACE glance.
2015-10-08 15:03:16.939 TRACE glance.
2015-10-08 15:03:16.939 TRACE glance.
2015-10-08 15:03:16.939 TRACE glance.
2015-10-08 15:03:16.939 TRACE glance.
2015-10-08 15:03:16.939 TRACE glance.
2015-10-08 15:03:16.939 TRACE glance.
2015-10-08 15:03:16.939 TRACE glance.
2015-10-08 15:03:16.939 TRACE glance.
2015-10-08 15:03:16.940 ERROR glance.common.wsgi [req-b561060e-
2015-10-08 15:03:16.940 TRACE glance.common.wsgi Traceback (most recent call last):
2015-10-08 15:03:16.940 TRACE glance.common.wsgi File "/opt/stack/
2015-10-08 15:03:16.940 TRACE glance.common.wsgi request, **action_args)
2015-10-08 15:03:16.940 TRACE glance.common.wsgi File "/opt/stack/
2015-10-08 15:03:16.940 TRACE glance.common.wsgi return method(*args, **kwargs)
2015-10-08 15:03:16.940 TRACE glance.common.wsgi File "/opt/stack/
2015-10-08 15:03:16.940 TRACE glance.common.wsgi images = registry.
2015-10-08 15:03:16.940 TRACE glance.common.wsgi File "/opt/stack/
2015-10-08 15:03:16.940 TRACE glance.common.wsgi return c.get_images_
2015-10-08 15:03:16.940 TRACE glance.common.wsgi File "/opt/stack/
2015-10-08 15:03:16.940 TRACE glance.common.wsgi res = self.do_
2015-10-08 15:03:16.940 TRACE glance.common.wsgi File "/opt/stack/
2015-10-08 15:03:16.940 TRACE glance.common.wsgi 'exc_name': exc_name})
2015-10-08 15:03:16.940 TRACE glance.common.wsgi File "/usr/local/
2015-10-08 15:03:16.940 TRACE glance.common.wsgi six.reraise(
2015-10-08 15:03:16.940 TRACE glance.common.wsgi File "/opt/stack/
2015-10-08 15:03:16.940 TRACE glance.common.wsgi **kwargs)
2015-10-08 15:03:16.940 TRACE glance.common.wsgi File "/opt/stack/
2015-10-08 15:03:16.940 TRACE glance.common.wsgi return func(self, *args, **kwargs)
2015-10-08 15:03:16.940 TRACE glance.common.wsgi File "/opt/stack/
2015-10-08 15:03:16.940 TRACE glance.common.wsgi headers=
2015-10-08 15:03:16.940 TRACE glance.common.wsgi File "/opt/stack/
2015-10-08 15:03:16.940 TRACE glance.common.wsgi return func(self, method, url, body, headers)
2015-10-08 15:03:16.940 TRACE glance.common.wsgi File "/opt/stack/
2015-10-08 15:03:16.940 TRACE glance.common.wsgi raise exception.
2015-10-08 15:03:16.940 TRACE glance.common.wsgi NotAuthenticated: Authentication required
2015-10-08 15:03:16.940 TRACE glance.common.wsgi
2015-10-08 15:03:16.993 INFO eventlet.
{code}
Changed in glance: | |
assignee: | nobody → Martin Tsvetanov (martin-iva-tsvetanov) |
Changed in glance: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in glance: | |
milestone: | none → mitaka-1 |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/235841
Review: https:/