404 authentication errors does not indicate the failed url

Bug #1641231 reported by Adam Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
keystoneauth
Expired
Medium
Unassigned

Bug Description

There is a catchall handler that doesn't provide helpful output when there is a configuration problem, catching HttpError specifically and providing the url would clarify many problems quickly.

Version-Release number of selected component (if applicable):
Any since icehouse

How reproducible:
Always

Steps to Reproduce:
from keystoneclient.v2_0 import client as client_v2
auth_url='http://127.0.0.1:5000/v2.0'
client = client_v2.Client(username='admin', password='secrete', tenant_name='admin', auth_url=auth_url)
token = client.tokens.authenticate(username='admin', password='secrete', tenant_name='admin').token['id']
user_id = next(u.id for u in client.users.list() if u.username=='admin')
client = client_v2.Client(user_id=user_id, token=token, auth_url=auth_url)
print(client.tenants.list())
auth_url='http://127.0.0.1:5000/WHATTHA'
client = client_v2.Client(user_id=user_id, token=token, auth_url=auth_url)

Actual results:
keystoneauth1.exceptions.auth.AuthorizationFailure: Authorization Failed: The resource could not be found. (HTTP 404)

Expected results:
keystoneauth1.exceptions.auth.AuthorizationFailure: Authorization Failed (http://127.0.0.1:5000/WHATTHA/tokens): The resource could not be found. (HTTP 404)

Adam Young (ayoung)
Changed in keystoneauth:
assignee: nobody → Adam Young (ayoung)
Changed in keystoneauth:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/keystone 12.0.0.0b1

This issue was fixed in the openstack/keystone 12.0.0.0b1 development milestone.

Revision history for this message
Lance Bragstad (lbragstad) wrote :

Automatically unassigning due to inactivity.

Changed in keystoneauth:
assignee: Adam Young (ayoung) → nobody
Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

IS this still an issue for KeystoneaAuth? marking as incomplete.

Changed in keystoneauth:
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for keystoneauth because there has been no activity for 60 days.]

Changed in keystoneauth:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.