Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

HTTP 401 when logging into horizon #164

Open
iMilnb opened this issue Dec 10, 2014 · 0 comments
Open

HTTP 401 when logging into horizon #164

iMilnb opened this issue Dec 10, 2014 · 0 comments

Comments

@iMilnb
Copy link

iMilnb commented Dec 10, 2014

Hi,

I followed the fabulous documentation written here and successfully setup a Jumpgate server which works perfectly with openstack client command lines. Pushing a bit further, I am facing HTTP 401 errors when trying to login to horizon, setup as the previous link highlights. Here are the traces:

From horizon:

[10/Dec/2014 16:44:02] "POST /auth/login/ HTTP/1.1" 302 0
[10/Dec/2014 16:44:02] "GET / HTTP/1.1" 302 0
REQ: curl -i 'http://10.0.0.1:5000/compute/v2/<tenant_id>/extensions' -X GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: <tenant_id>" -H "X-Auth-Token: {SHA1}99d25edb52aba4e3870e5b53af054c54fc79e80d"
RESP: [401] {'content-length': '123', 'x-compute-request-id': 'req-bf2712c5-808b-11e4-bf72-c98749437233', 'server': 'gunicorn/19.1.0', 'connection': 'close', 'date': 'Wed, 10 Dec 2014 16:44:02 GMT', 'content-type': 'application/json'}
RESP BODY: {"error": {"message": "The token is either malformed, expired or not valid for the given user/tenant pair", "code": "401"}}

from Jumpgate:

10.0.0.1 - - [10/Dec/2014:16:44:02 +0000] "POST /v2.0/tokens HTTP/1.1" 200 1953 "-" "python-keystoneclient"
10.0.0.1 - - [10/Dec/2014:16:44:02 +0000] "GET /compute/v2/<tenant_id>/extensions HTTP/1.1" 401 123 "-" "python-novaclient"
10.0.0.1 - - [10/Dec/2014:16:44:02 +0000] "GET /compute/v2/<tenant_id> HTTP/1.1" 401 70 "-" "python-novaclient"
10.0.0.1 - - [10/Dec/2014:16:44:02 +0000] "GET /compute/v2/<tenant_id> HTTP/1.1" 401 70 "-" "python-novaclient"
10.0.0.1 - - [10/Dec/2014:16:44:02 +0000] "POST /v2.0/tokens HTTP/1.1" 401 123 "-" "python-keystoneclient"
10.0.0.1 - - [10/Dec/2014:16:44:03 +0000] "GET /compute/v2/<tenant_id> HTTP/1.1" 401 70 "-" "python-novaclient"

I assume the 1st login phase is correct as it retrieves the correct tenant_id whereas I login with a specific API user.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant