Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1348728 - [RFE] 404 authentication errors should indicate the failed url
[RFE] 404 authentication errors should indicate the failed url
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-keystone (Show other bugs)
8.0 (Liberty)
Unspecified Unspecified
low Severity low
: Upstream M2
: 12.0 (Pike)
Assigned To: John Dennis
Prasanth Anbalagan
: FutureFeature, Triaged
Depends On:
Blocks: 1194008 1295530 1442136
  Show dependency treegraph
 
Reported: 2016-06-21 17:54 EDT by Chris Plock
Modified: 2018-02-05 14:02 EST (History)
14 users (show)

See Also:
Fixed In Version: openstack-keystone-11.0.1-0.20170403212501.1de8b9d.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-12-13 15:44:49 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1641231 None None None 2016-11-11 17:00 EST
OpenStack gerrit 446720 None None None 2017-03-16 16:27 EDT
Red Hat Product Errata RHEA-2017:3462 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-15 20:43:25 EST

  None (edit)
Description Chris Plock 2016-06-21 17:54:20 EDT
Description of problem:
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)

Additional info:
Comment 2 Adam Young 2016-07-08 13:46:43 EDT
We will investigate, but the request seems sound.
Comment 5 Rob Crittenden 2017-04-25 11:15:02 EDT
Moving to POST, merged upstream on March 22.
Comment 10 errata-xmlrpc 2017-12-13 15:44:49 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:3462

Note You need to log in before you can comment on or make changes to this bug.