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

HTTP 401 when logging into horizon #164

Description

@iMilnb

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions