Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

my horizon dashboard not login

when I visit http://192.168.0.144/dashboard ,It is not login

The log is here: ==> keystone_access.log <== 192.168.0.144 - - [12/Dec/2016:10:48:17 +0800] "GET /v3/auth/tokens HTTP/1.1" 200 9723 "-" "python-keystoneclient"

==> error_log <==
[Mon Dec 12 02:49:30.728029 2016] [:error] [pid 4555] Load condition failed for panel: identity_providers
[Mon Dec 12 02:49:30.728544 2016] [:error] [pid 4555] Load condition failed for panel: mappings
[Mon Dec 12 02:49:30.728662 2016] [:error] [pid 4555] Could not process panel theme_preview: Dashboard with slug "developer" is not registered.
[Mon Dec 12 02:49:30.728760 2016] [:error] [pid 4555] Could not process panel resource_browser: Dashboard with slug "developer" is not registered.
[Mon Dec 12 02:49:31.599363 2016] [:error] [pid 4555] WARNING:py.warnings:RemovedInDjango19Warning: The use of the language code 'zh-cn' is deprecated. Please use the 'zh-hans' translation instead.

==> access_log <==
192.168.15.102 - - [12/Dec/2016:10:49:29 +0800] "GET /dashboard HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:31 +0800] "GET /dashboard/auth/login/?next=/dashboard/ HTTP/1.1" 200 8662 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:31 +0800] "GET /dashboard/static/dashboard/css/34f8a8f8d5e5.css HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:31 +0800] "GET /dashboard/static/dashboard/css/d2a8234ba899.css HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:31 +0800] "GET /dashboard/static/dashboard/js/c670971f389f.js HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/static/dashboard/img/logo-splash.png HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/static/dashboard/js/61f9b6ab011c.js HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/static/dashboard/js/b567e54e8366.js HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/static/horizon/lib/bootstrap_datepicker/locales/bootstrap-datepicker.zh-CN.js HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/i18n/js/horizon+openstack_dashboard/ HTTP/1.1" 200 96218 "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/static/horizon/lib/font_awesome/fonts/fontawesome-webfont.woff2?v=4.4.0 HTTP/1.1" 200 64464 "http://192.168.0.144/dashboard/static/dashboard/css/d2a8234ba899.css" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"

==> error_log <==
[Mon Dec 12 02:49:36.518403 2016] [:error] [pid 4555] Beginning user authentication
[Mon Dec 12 02:49:36.519833 2016] [:error] [pid 4555] Attempting to authenticate for admin

==> keystone_access.log <==
192.168.0.144 - - [12/Dec/2016:10:49:36 +0800] "POST /v3/auth/tokens HTTP/1.1" 201 283 "-" "keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.5"
192.168.0.144 - - [12/Dec/2016:10:49:36 +0800] "POST /v3/auth/tokens HTTP/1.1" 401 114 "-" "keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.5"

==> error_log <==
[Mon Dec 12 02:49:36.839969 2016] [:error] [pid 4555] Error getting domain scoped token.
[Mon Dec 12 02:49:36.839986 2016] [:error] [pid 4555] Traceback (most recent call last):
[Mon Dec 12 02:49:36.839990 2016] [:error] [pid 4555]   File "/usr/lib/python2.7/site-packages/openstack_auth/backend.py", line 149, in authenticate
[Mon Dec 12 02:49:36.839992 2016] [:error] [pid 4555]     domain_auth_ref = domain_auth.get_access(session)
[Mon Dec 12 02:49:36.839995 2016] [:error] [pid 4555]   File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 136, in get_access
[Mon Dec 12 02:49:36.839997 2016] [:error] [pid 4555]     self.auth_ref = self.get_auth_ref(session)
[Mon Dec 12 02:49:36.839999 2016] [:error] [pid 4555]   File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/v3/base.py", line 167, in get_auth_ref
[Mon Dec 12 02:49:36.840002 2016] [:error] [pid 4555]     authenticated=False, log=False, **rkwargs)
[Mon Dec 12 02:49:36.840004 2016] [:error] [pid 4555]   File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 675, in post
[Mon Dec 12 02:49:36.840006 2016] [:error] [pid 4555]     return self.request(url, 'POST', **kwargs)
[Mon Dec 12 02:49:36.840008 2016] [:error] [pid 4555]   File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
[Mon Dec 12 02:49:36.840010 2016] [:error] [pid 4555]     return wrapped(*args, **kwargs)
[Mon Dec 12 02:49:36.840012 2016] [:error] [pid 4555]   File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 570, in request
[Mon Dec 12 02:49:36.840033 2016] [:error] [pid 4555]     raise exceptions.from_response(resp, method, url)
[Mon Dec 12 02:49:36.840036 2016] [:error] [pid 4555] Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-477689cd-3b6b-433c-b03b-1264b0f3fe2e)

==> keystone_access.log <==
192.168.0.144 - - [12/Dec/2016:10:49:36 +0800] "GET /v3 HTTP/1.1" 200 252 "-" "keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.5"
192.168.0.144 - - [12/Dec/2016:10:49:36 +0800] "GET /v3/users/aa5691d01c684d0480f00de15dd3bf23/projects HTTP/1.1" 200 448 "-" "python-keystoneclient"
192.168.0.144 - - [12/Dec/2016:10:49:37 +0800] "POST /v3/auth/tokens HTTP/1.1" 201 9754 "-" "keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.5"

==> error_log <==
[Mon Dec 12 02:49:37.278237 2016] [:error] [pid 4555] Authentication completed.
[Mon Dec 12 02:49:37.278476 2016] [:error] [pid 4555] Login successful for user "admin".

==> access_log <==
192.168.15.102 - - [12/Dec/2016:10:49:36 +0800] "POST /dashboard/auth/login/ HTTP/1.1" 302 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:37 +0800] "GET /dashboard/ HTTP/1.1" 302 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:37 +0800] "GET /dashboard/auth/login/?next=/dashboard/ HTTP/1.1" 200 8662 "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:37 +0800] "GET /dashboard/i18n/js/horizon+openstack_dashboard/ HTTP/1.1" 200 96218 "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"

==> keystone_access.log <==
192.168.0.144 - - [12/Dec/2016:10:49:49 +0800] "GET /v3/auth/tokens HTTP/1.1" 200 9726 "-" "python-keystoneclient"

my horizon dashboard not login

when I visit http://192.168.0.144/dashboard ,It is not login

The log is here: here:

==> keystone_access.log <== <==

192.168.0.144 - - [12/Dec/2016:10:48:17 +0800] "GET /v3/auth/tokens HTTP/1.1" 200 9723 "-" "python-keystoneclient""python-keystoneclient"

==> error_log <==

==> error_log <==
[Mon Dec 12 02:49:30.728029 2016] [:error] [pid 4555] Load condition failed for panel: identity_providers
[Mon Dec 12 02:49:30.728544 2016] [:error] [pid 4555] Load condition failed for panel: mappings
[Mon Dec 12 02:49:30.728662 2016] [:error] [pid 4555] Could not process panel theme_preview: Dashboard with slug "developer" is not registered.
[Mon Dec 12 02:49:30.728760 2016] [:error] [pid 4555] Could not process panel resource_browser: Dashboard with slug "developer" is not registered.
[Mon Dec 12 02:49:31.599363 2016] [:error] [pid 4555] WARNING:py.warnings:RemovedInDjango19Warning: The use of the language code 'zh-cn' is deprecated. Please use the 'zh-hans' translation instead.

==> access_log <==
192.168.15.102 - - [12/Dec/2016:10:49:29 +0800] "GET /dashboard HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:31 +0800] "GET /dashboard/auth/login/?next=/dashboard/ HTTP/1.1" 200 8662 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:31 +0800] "GET /dashboard/static/dashboard/css/34f8a8f8d5e5.css HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:31 +0800] "GET /dashboard/static/dashboard/css/d2a8234ba899.css HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:31 +0800] "GET /dashboard/static/dashboard/js/c670971f389f.js HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/static/dashboard/img/logo-splash.png HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/static/dashboard/js/61f9b6ab011c.js HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/static/dashboard/js/b567e54e8366.js HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/static/horizon/lib/bootstrap_datepicker/locales/bootstrap-datepicker.zh-CN.js HTTP/1.1" 304 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/i18n/js/horizon+openstack_dashboard/ HTTP/1.1" 200 96218 "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:32 +0800] "GET /dashboard/static/horizon/lib/font_awesome/fonts/fontawesome-webfont.woff2?v=4.4.0 HTTP/1.1" 200 64464 "http://192.168.0.144/dashboard/static/dashboard/css/d2a8234ba899.css" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"

==> error_log <==
[Mon Dec 12 02:49:36.518403 2016] [:error] [pid 4555] Beginning user authentication
[Mon Dec 12 02:49:36.519833 2016] [:error] [pid 4555] Attempting to authenticate for admin

==> keystone_access.log <==
192.168.0.144 - - [12/Dec/2016:10:49:36 +0800] "POST /v3/auth/tokens HTTP/1.1" 201 283 "-" "keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.5"
192.168.0.144 - - [12/Dec/2016:10:49:36 +0800] "POST /v3/auth/tokens HTTP/1.1" 401 114 "-" "keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.5"

==> error_log <==
[Mon Dec 12 02:49:36.839969 2016] [:error] [pid 4555] Error getting domain scoped token.
[Mon Dec 12 02:49:36.839986 2016] [:error] [pid 4555] Traceback (most recent call last):
[Mon Dec 12 02:49:36.839990 2016] [:error] [pid 4555]   File "/usr/lib/python2.7/site-packages/openstack_auth/backend.py", line 149, in authenticate
[Mon Dec 12 02:49:36.839992 2016] [:error] [pid 4555]     domain_auth_ref = domain_auth.get_access(session)
[Mon Dec 12 02:49:36.839995 2016] [:error] [pid 4555]   File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 136, in get_access
[Mon Dec 12 02:49:36.839997 2016] [:error] [pid 4555]     self.auth_ref = self.get_auth_ref(session)
[Mon Dec 12 02:49:36.839999 2016] [:error] [pid 4555]   File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/v3/base.py", line 167, in get_auth_ref
[Mon Dec 12 02:49:36.840002 2016] [:error] [pid 4555]     authenticated=False, log=False, **rkwargs)
[Mon Dec 12 02:49:36.840004 2016] [:error] [pid 4555]   File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 675, in post
[Mon Dec 12 02:49:36.840006 2016] [:error] [pid 4555]     return self.request(url, 'POST', **kwargs)
[Mon Dec 12 02:49:36.840008 2016] [:error] [pid 4555]   File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner
[Mon Dec 12 02:49:36.840010 2016] [:error] [pid 4555]     return wrapped(*args, **kwargs)
[Mon Dec 12 02:49:36.840012 2016] [:error] [pid 4555]   File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 570, in request
[Mon Dec 12 02:49:36.840033 2016] [:error] [pid 4555]     raise exceptions.from_response(resp, method, url)
[Mon Dec 12 02:49:36.840036 2016] [:error] [pid 4555] Unauthorized: The request you have made requires authentication. (HTTP 401) (Request-ID: req-477689cd-3b6b-433c-b03b-1264b0f3fe2e)

==> keystone_access.log <==
192.168.0.144 - - [12/Dec/2016:10:49:36 +0800] "GET /v3 HTTP/1.1" 200 252 "-" "keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.5"
192.168.0.144 - - [12/Dec/2016:10:49:36 +0800] "GET /v3/users/aa5691d01c684d0480f00de15dd3bf23/projects HTTP/1.1" 200 448 "-" "python-keystoneclient"
192.168.0.144 - - [12/Dec/2016:10:49:37 +0800] "POST /v3/auth/tokens HTTP/1.1" 201 9754 "-" "keystoneauth1/2.12.1 python-requests/2.10.0 CPython/2.7.5"

==> error_log <==
[Mon Dec 12 02:49:37.278237 2016] [:error] [pid 4555] Authentication completed.
[Mon Dec 12 02:49:37.278476 2016] [:error] [pid 4555] Login successful for user "admin".

==> access_log <==
192.168.15.102 - - [12/Dec/2016:10:49:36 +0800] "POST /dashboard/auth/login/ HTTP/1.1" 302 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:37 +0800] "GET /dashboard/ HTTP/1.1" 302 - "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:37 +0800] "GET /dashboard/auth/login/?next=/dashboard/ HTTP/1.1" 200 8662 "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
192.168.15.102 - - [12/Dec/2016:10:49:37 +0800] "GET /dashboard/i18n/js/horizon+openstack_dashboard/ HTTP/1.1" 200 96218 "http://192.168.0.144/dashboard/auth/login/?next=/dashboard/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"

==> keystone_access.log <==
192.168.0.144 - - [12/Dec/2016:10:49:49 +0800] "GET /v3/auth/tokens HTTP/1.1" 200 9726 "-" "python-keystoneclient"