Ask Your Question

Shimon Zadok's profile - activity

2017-07-13 06:38:38 -0500 received badge  Famous Question (source)
2016-11-15 08:18:15 -0500 received badge  Popular Question (source)
2016-11-15 08:18:15 -0500 received badge  Notable Question (source)
2016-07-19 17:01:36 -0500 received badge  Notable Question (source)
2016-07-19 17:01:36 -0500 received badge  Famous Question (source)
2016-05-23 16:35:35 -0500 received badge  Popular Question (source)
2016-05-09 10:51:42 -0500 answered a question horizon logs "Login success" but doesn't redirect to project

It seems that if you go directly to the URL: http://example.com/horizon/auth/login then there will be no redirection to the dashboard after login.

But, If you go to: http://example.com/horizon then it would redirect the browser to login page, while after login, a new redirect would talk you to the dashboard controls (and that is because of the "?next=/horizon/" GET param)

2016-05-09 10:51:42 -0500 asked a question horizon logs "Login success" but doesn't redirect to project

Openstack Mitaka on Ubuntu.

[Mon May 09 05:55:45.735820 2016] [:error] [pid 2750:tid 139661312501504] Login successful for user "admin".
[Mon May 09 05:56:00.448046 2016] [:error] [pid 2749:tid 139661236901632] Login successful for user "admin".
[Mon May 09 05:59:41.472894 2016] [:error] [pid 2750:tid 139661236901632] Login successful for user "admin".
[Mon May 09 05:59:52.045091 2016] [:error] [pid 2748:tid 139661245302528] Login successful for user "admin".
[Mon May 09 06:02:00.130820 2016] [:error] [pid 2749:tid 139661236901632] Login successful for user "shimonz".
2016-05-09 10:51:42 -0500 answered a question horizon login failed with "resource not available"

thanks to sticker on #openstack freenode

the error comes from a wrong URI, which is an "unknown resource" for keystone. using v3 and not v3.0 in the URI fixed it.

/v3/auth/tokens and not /v3.0/auth/tokens

OPENSTACK_KEYSTONE_URL= .../v3 %...

2016-05-09 10:51:42 -0500 asked a question horizon login failed with "resource not available"

Horizon sends:

POST /v3.0/auth/tokens HTTP/1.1
Host: ctl.m.org:35357
Content-Length: 168
Accept-Encoding: gzip, deflate
Accept: application/json
User-Agent: keystoneauth1/2.4.0 python-requests/2.9.1 CPython/2.7.6
Connection: keep-alive
Content-Type: application/json

{"auth": {"scope": {"unscoped": {}}, "identity": {"password": {"user": {"domain": {"name": "default"}, "password": "root", "name": "admin"}}, "methods": ["password"]}}

Horizon receives:

HTTP/1.1 404 Not Found
Date: Mon, 09 May 2016 05:07:57 GMT
Server: Apache/2.4.7 (Ubuntu)
Vary: X-Auth-Token
X-Distribution: Ubuntu
Content-Length: 93
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/json

{"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}

I couldn't find any other interesting logs from keystone to find the error.