Ask Your Question
0

Newton on Ubuntu 16.04 - Horizon login failed - keystone.log Authorization failed. The request you have made requires authentication.

asked 2017-02-07 20:16:09 -0500

Hugstack gravatar image

updated 2017-02-08 06:00:35 -0500

Openstack Distro: Newton Operating System Ubuntu 16.04 New Build following Venu Murthy video series and adapting for Newton along the way.

So far build has been working well. I installed the Horizon module on my control node and am trying to login to the portal control/horizon. I confirmed that I am able to authenticate from two sources: 1. Error is different vs when I intentionally enter in a bad pwd. 2. /var/log/apache2/error.log shows my account logged in successfully.

After authenticating the page shows a generic error "Something went wrong!". The environment has been rebooted any google searches have not found any relevant fixes. So far I have validated the credentials for all accounts including service based accounts. Checked the config files to ensure the username and password entered in are accurate.

The error that I believe points to the issue is in the keystone.log file (copied below). It reports the error: * Authorization failed. The request you have made requires authentication. from 127.0.0.1

Here is a output of the logs I new to check:

/var/log/apache2/error.log

[Tue Feb 07 18:00:58.344631 2017] [wsgi:error] [pid 1639:tid 140055415990016] Login successful for user "khuggins1".
[Tue Feb 07 18:01:00.163017 2017] [wsgi:error] [pid 1639:tid 140055415990016] Internal Server Error: /horizon/auth/login/
[Tue Feb 07 18:01:00.163048 2017] [wsgi:error] [pid 1639:tid 140055415990016] Traceback (most recent call last):
[Tue Feb 07 18:01:00.163053 2017] [wsgi:error] [pid 1639:tid 140055415990016]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
[Tue Feb 07 18:01:00.163057 2017] [wsgi:error] [pid 1639:tid 140055415990016]     response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Tue Feb 07 18:01:00.163060 2017] [wsgi:error] [pid 1639:tid 140055415990016]   File "/usr/lib/python2.7/dist-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
[Tue Feb 07 18:01:00.163069 2017] [wsgi:error] [pid 1639:tid 140055415990016]     return view(request, *args, **kwargs)
[Tue Feb 07 18:01:00.163072 2017] [wsgi:error] [pid 1639:tid 140055415990016]   File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py", line 110, in _wrapped_view
[Tue Feb 07 18:01:00.163076 2017] [wsgi:error] [pid 1639:tid 140055415990016]     response = view_func(request, *args, **kwargs)
[Tue Feb 07 18:01:00.163078 2017] [wsgi:error] [pid 1639:tid 140055415990016]   File "/usr/lib/python2.7/dist-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
[Tue Feb 07 18:01:00.163080 2017] [wsgi:error] [pid 1639:tid 140055415990016]     response = view_func(request, *args, **kwargs)
[Tue Feb 07 18:01:00.163082 2017] [wsgi:error] [pid 1639:tid 140055415990016]   File "/usr/lib/python2.7/dist-packages/openstack_auth/views.py", line 103, in login
[Tue Feb 07 18:01:00.163083 2017] [wsgi:error] [pid 1639:tid 140055415990016]     **kwargs)
[Tue Feb 07 18:01:00.163085 2017] [wsgi:error] [pid 1639:tid 140055415990016]   File "/usr/lib/python2.7/dist-packages/django ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-02-08 13:18:37 -0500

Hugstack gravatar image

I found the resolution to my issue after some more digging. For anyone else who had this issue my steps were:

  1. Edit /etc/memcached.conf - Change the line "-l 127.0.0.1" to "-l 10.10.10.2"
  2. Edit /etc/openstack-dashboard/local_settings.py

Original Value: CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': 'controller:11211', } }

Updated Value: CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '10.10.10.2:11211', } }

  1. Restarted all services

Credit for the change to local_settings.py in step 2 should go to this post: https://ask.openstack.org/en/question/91657/runtimeerror-unable-to-create-a-new-session-key-it-is-likely-that-the-cache-is-unavailable-authorization-failed-the-request-you-have-made-requires/ (https://ask.openstack.org/en/question...)

edit flag offensive delete link more
0

answered 2017-02-08 08:22:11 -0500

sidIrisLogic gravatar image

Hi , Is this a devstack installation or openstack, the reason I am asking this I am getting this same error when I try fetching some data out of devstack using pkgcloud api.

Thanks

edit flag offensive delete link more

Comments

Also, my devstack installation was smooth and I was able to login as well, did you try using the password you supplied in local.conf while you were logging in.

sidIrisLogic gravatar imagesidIrisLogic ( 2017-02-08 08:23:04 -0500 )edit

Hey sidlrisLogic,

I didn't use devstack for my build. I wanted to learn each module a bit deeper so I built my lab module by module following a online resource this way I create all the DB, modify all config files etc manually.

Hugstack gravatar imageHugstack ( 2017-02-12 11:21:57 -0500 )edit

This error for me want credential based. when I looked at the /var/log/apache2/error.log file it showed that my account logged in successfully. "Login successful for user "xxxxx" "

I'm pretty new to Linux so unfortunately I don't know how to help with the pkgcloud api issue your seeing, sorry.

Hugstack gravatar imageHugstack ( 2017-02-12 11:24:12 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-02-07 20:15:10 -0500

Seen: 676 times

Last updated: Feb 08 '17