Revision history [back]

click to hide/show revision 1
initial version

Mitaka: Authorization failed. The request you have made requires authentication.

Hi,

I am experiencing this error while trying to login via horizon: Authorization failed. The request you have made requires authentication.

/var/log/keystone/keystone.log

2017-03-15 15:43:58.695 2787 INFO keystone.common.wsgi [req-767cdacc-4229-465a-9291-6cfdc420d3c9 - - - - -] POST http://controller:5000/v2.0/tokens
2017-03-15 15:43:58.704 2787 WARNING keystone.common.wsgi [req-767cdacc-4229-465a-9291-6cfdc420d3c9 - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.15.100

If I source admin.sh file from controller I get results normally:

[root@controller ~]# . demo-openrc.sh
[root@controller ~]# openstack image list
+--------------------------------------+---------------------+--------+
| ID                                   | Name                | Status |
+--------------------------------------+---------------------+--------+
| 7d799658-3ef2-465f-84ce-ef002070d81d | cirros-0.3.4-x86_64 | active |
+--------------------------------------+---------------------+--------+
[root@controller ~]# cat demo-openrc.sh
export OS_PROJECT_DOMAIN_NAME=default
export OS_USER_DOMAIN_NAME=default
export OS_PROJECT_NAME=demo
export OS_USERNAME=demo
export OS_PASSWORD=demo
export OS_AUTH_URL=http://192.168.15.100:5000/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

Can someone help, please?

Mitaka: Authorization failed. The request you have made requires authentication.

Hi,

I am experiencing this error while trying to login via horizon: horizon (browser): Authorization failed. The request you have made requires authentication.

/var/log/keystone/keystone.log

2017-03-15 15:43:58.695 2787 INFO keystone.common.wsgi [req-767cdacc-4229-465a-9291-6cfdc420d3c9 - - - - -] POST http://controller:5000/v2.0/tokens
2017-03-15 15:43:58.704 2787 WARNING keystone.common.wsgi [req-767cdacc-4229-465a-9291-6cfdc420d3c9 - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.15.100

If I source admin.sh demo-openrc.sh file from controller I get results normally:

[root@controller ~]# . demo-openrc.sh
[root@controller ~]# openstack image list
+--------------------------------------+---------------------+--------+
| ID                                   | Name                | Status |
+--------------------------------------+---------------------+--------+
| 7d799658-3ef2-465f-84ce-ef002070d81d | cirros-0.3.4-x86_64 | active |
+--------------------------------------+---------------------+--------+
[root@controller ~]# cat demo-openrc.sh
export OS_PROJECT_DOMAIN_NAME=default
export OS_USER_DOMAIN_NAME=default
export OS_PROJECT_NAME=demo
export OS_USERNAME=demo
export OS_PASSWORD=demo
export OS_AUTH_URL=http://192.168.15.100:5000/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

Can someone help, please?

Mitaka: Authorization failed. The request you have made requires authentication.

Hi,

I am experiencing this error while trying to login via horizon (browser): Authorization failed. The request you have made requires authentication.

/var/log/keystone/keystone.log

2017-03-15 15:43:58.695 2787 2017-03-16 17:54:47.326 8593 INFO keystone.common.wsgi [req-767cdacc-4229-465a-9291-6cfdc420d3c9 [req-0cb23dab-90cc-469e-8494-cbc4c1fba319 - - - - -] POST http://controller:5000/v2.0/tokens
2017-03-15 15:43:58.704 2787 2017-03-16 17:54:47.338 8593 WARNING keystone.common.wsgi [req-767cdacc-4229-465a-9291-6cfdc420d3c9 [req-0cb23dab-90cc-469e-8494-cbc4c1fba319 - - - - -] Authorization failed. The request you have made requires authentication. from 192.168.15.100

/etc/httpd/logs/error_log

[Thu Mar 16 20:52:38.217365 2017] [:error] [pid 8590] Login successful for user "demo".
[Thu Mar 16 20:52:42.132879 2017] [:error] [pid 8590] Internal Server Error: /dashboard/auth/login/
[Thu Mar 16 20:52:42.133091 2017] [:error] [pid 8590] Traceback (most recent call last):
[Thu Mar 16 20:52:42.133101 2017] [:error] [pid 8590]   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
[Thu Mar 16 20:52:42.133105 2017] [:error] [pid 8590]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Thu Mar 16 20:52:42.133108 2017] [:error] [pid 8590]   File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
[Thu Mar 16 20:52:42.133111 2017] [:error] [pid 8590]     return view(request, *args, **kwargs)
[Thu Mar 16 20:52:42.133114 2017] [:error] [pid 8590]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
[Thu Mar 16 20:52:42.133117 2017] [:error] [pid 8590]     response = view_func(request, *args, **kwargs)
[Thu Mar 16 20:52:42.133120 2017] [:error] [pid 8590]   File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
[Thu Mar 16 20:52:42.133122 2017] [:error] [pid 8590]     response = view_func(request, *args, **kwargs)
[Thu Mar 16 20:52:42.133125 2017] [:error] [pid 8590]   File "/usr/lib/python2.7/site-packages/openstack_auth/views.py", line 103, in login
[Thu Mar 16 20:52:42.133128 2017] [:error] [pid 8590]     **kwargs)
[Thu Mar 16 20:52:42.133131 2017] [:error] [pid 8590]   File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
[Thu Mar 16 20:52:42.133134 2017] [:error] [pid 8590]     return view(request, *args, **kwargs)
[Thu Mar 16 20:52:42.133136 2017] [:error] [pid 8590]   File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
[Thu Mar 16 20:52:42.133139 2017] [:error] [pid 8590]     response = view_func(request, *args, **kwargs)
[Thu Mar 16 20:52:42.133152 2017] [:error] [pid 8590]   File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
[Thu Mar 16 20:52:42.133155 2017] [:error] [pid 8590]     response = view_func(request, *args, **kwargs)
[Thu Mar 16 20:52:42.133158 2017] [:error] [pid 8590]   File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 51, in login
[Thu Mar 16 20:52:42.133161 2017] [:error] [pid 8590]     auth_login(request, form.get_user())
[Thu Mar 16 20:52:42.133163 2017] [:error] [pid 8590]   File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 110, in login
[Thu Mar 16 20:52:42.133166 2017] [:error] [pid 8590]     request.session.cycle_key()
[Thu Mar 16 20:52:42.133169 2017] [:error] [pid 8590]   File "/usr/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py", line 285, in cycle_key
[Thu Mar 16 20:52:42.133171 2017] [:error] [pid 8590]     self.create()
[Thu Mar 16 20:52:42.133174 2017] [:error] [pid 8590]   File "/usr/lib/python2.7/site-packages/django/contrib/sessions/backends/cache.py", line 48, in create
[Thu Mar 16 20:52:42.133177 2017] [:error] [pid 8590]     "Unable to create a new session key. "
[Thu Mar 16 20:52:42.133179 2017] [:error] [pid 8590] RuntimeError: Unable to create a new session key. It is likely that the cache is unavailable.

If I source demo-openrc.sh file from controller I get results normally:

[root@controller ~]# . demo-openrc.sh
[root@controller ~]# openstack image list
+--------------------------------------+---------------------+--------+
| ID                                   | Name                | Status |
+--------------------------------------+---------------------+--------+
| 7d799658-3ef2-465f-84ce-ef002070d81d | cirros-0.3.4-x86_64 | active |
+--------------------------------------+---------------------+--------+
[root@controller ~]# cat demo-openrc.sh
export OS_PROJECT_DOMAIN_NAME=default
export OS_USER_DOMAIN_NAME=default
export OS_PROJECT_NAME=demo
export OS_USERNAME=demo
export OS_PASSWORD=demo
export OS_AUTH_URL=http://192.168.15.100:5000/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

Can someone help, please?