Ask Your Question
0

Error while accessing Savanna Tab in Horizon/Openstack UI

asked 2013-09-20 14:48:02 -0500

sshimpi gravatar image

Hi team

I am using - Redhat 6.4 64-bit RDO -> rdo-release-grizzly-3.noarch

I installed RDO grizzly on my desktop and I am able to login to the dashboard. Also I am able to create Vm's and login into the VM's.

I tried to install Savanna following guidelines given on - https://savanna.readthedocs.org/en/latest/userdoc/installation.guide.html (https://savanna.readthedocs.org/en/la...)

I completed the steps given in - "To install into a virtual environment" I am able to see the "SAVANNA" tab in Openstack dashboard, but when I click the savanna tab I am getting error saying "Something went wrong!"

Following are my logs -

tail -f /var/log/keystone/keystone.log

2013-09-20 17:22:08 WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 172.26.35.81 2013-09-20 17:22:57 WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 172.26.35.81 2013-09-20 17:23:46 WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 172.26.35.81 2013-09-20 17:24:35 WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 172.26.35.81 2013-09-20 17:26:19 WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 172.26.35.81 2013-09-20 17:27:08 WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 172.26.35.81 2013-09-20 17:27:57 WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 172.26.35.81 2013-09-20 17:28:46 WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 172.26.35.81 2013-09-20 17:29:35 WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 172.26.35.81 2013-09-20 17:30:42 WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 127.0.0.1 2013-09-20 17:31:19 WARNING [keystone.common.wsgi] Authorization failed. The request you have made requires authentication. from 172.26.35.81


tail -f /var/log/savanna.log

2013-09-20 17:32:03.721 31415 DEBUG keystoneclient.middleware.auth_token [-] Authenticating user token __call__ /root/savanna-venv/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py:445 2013-09-20 17:32:03.721 31415 DEBUG keystoneclient.middleware.auth_token [-] Removing headers from request environment: X-Identity-Status,X-Domain-Id,X-Domain-Name,X-Project-Id,X-Project-Name,X-Project-Domain-Id,X-Project-Domain-Name,X-User-Id,X-User-Name,X-User-Domain-Id,X-User-Domain-Name,X-Roles,X-Service-Catalog,X-User,X-Tenant-Id,X-Tenant-Name,X-Tenant,X-Role _remove_auth_headers /root/savanna-venv/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py:503 2013-09-20 17:32:03.767 31415 WARNING keystoneclient.middleware.auth_token [-] Unexpected response from keystone service: {u'error': {u'message': u'The request you have made requires authentication.', u'code': 401, u'title': u'Not Authorized'}} 2013-09-20 17:32:03.767 31415 DEBUG keystoneclient.middleware.auth_token [-] Token validation failure. _validate_user_token /root/savanna-venv/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py:704 2013-09-20 17:32:03.767 31415 ...

(more)
edit retag flag offensive close merge delete

11 answers

Sort by ยป oldest newest most voted
0

answered 2013-09-22 04:42:15 -0500

sshimpi gravatar image

Just to add 1 more this to 2 point -

I wish to create "centos-hadoop-image" for hadoop.

edit flag offensive delete link more
0

answered 2013-09-22 10:23:55 -0500

ruhe gravatar image

You can use https://github.com/stackforge/savanna-image-elements (https://github.com/stackforge/savanna...) to build custom images.

At this moment it supports Ubuntu and Fedora images. You can add CentOS support yourself or wait until we do it. I hope CentOS images will be supported in release 0.3.

edit flag offensive delete link more
0

answered 2013-09-20 15:04:57 -0500

alazarev gravatar image

Savanna currently doesn't support PKI as token format. Could you check token_format property in /etc/keystone/keystone.conf file? It should be UUID.

edit flag offensive delete link more
0

answered 2013-09-20 16:51:23 -0500

sshimpi gravatar image

Hi Andrew,

I tried changing value in - /etc/keystone/keystone.conf from -

token_format = PKI to token_format = UUID

But no luck. Problem still exist.

Following are the logs -

2013-09-20 22:13:27.696 31415 DEBUG keystoneclient.middleware.auth_token [-] Authenticating user token __call__ /root/savanna-venv/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py:445 2013-09-20 22:13:27.696 31415 DEBUG keystoneclient.middleware.auth_token [-] Removing headers from request environment: X-Identity-Status,X-Domain-Id,X-Domain-Name,X-Project-Id,X-Project-Name,X-Project-Domain-Id,X-Project-Domain-Name,X-User-Id,X-User-Name,X-User-Domain-Id,X-User-Domain-Name,X-Roles,X-Service-Catalog,X-User,X-Tenant-Id,X-Tenant-Name,X-Tenant,X-Role _remove_auth_headers /root/savanna-venv/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py:503 2013-09-20 22:13:27.743 31415 WARNING keystoneclient.middleware.auth_token [-] Unexpected response from keystone service: {u'error': {u'message': u'The request you have made requires authentication.', u'code': 401, u'title': u'Not Authorized'}} 2013-09-20 22:13:27.743 31415 DEBUG keystoneclient.middleware.auth_token [-] Token validation failure. _validate_user_token /root/savanna-venv/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py:704 2013-09-20 22:13:27.743 31415 TRACE keystoneclient.middleware.auth_token Traceback (most recent call last): 2013-09-20 22:13:27.743 31415 TRACE keystoneclient.middleware.auth_token File "/root/savanna-venv/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 699, in _validate_user_token 2013-09-20 22:13:27.743 31415 TRACE keystoneclient.middleware.auth_token data = self.verify_uuid_token(user_token, retry) 2013-09-20 22:13:27.743 31415 TRACE keystoneclient.middleware.auth_token File "/root/savanna-venv/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 995, in verify_uuid_token 2013-09-20 22:13:27.743 31415 TRACE keystoneclient.middleware.auth_token headers = {'X-Auth-Token': self.get_admin_token()} 2013-09-20 22:13:27.743 31415 TRACE keystoneclient.middleware.auth_token File "/root/savanna-venv/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 554, in get_admin_token 2013-09-20 22:13:27.743 31415 TRACE keystoneclient.middleware.auth_token self.admin_token_expiry) = self._request_admin_token() 2013-09-20 22:13:27.743 31415 TRACE keystoneclient.middleware.auth_token File "/root/savanna-venv/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 674, in _request_admin_token 2013-09-20 22:13:27.743 31415 TRACE keystoneclient.middleware.auth_token raise ServiceError('invalid json response') 2013-09-20 22:13:27.743 31415 TRACE keystoneclient.middleware.auth_token ServiceError: invalid json response 2013-09-20 22:13:27.743 31415 TRACE keystoneclient.middleware.auth_token 2013-09-20 22:13:27.744 31415 DEBUG keystoneclient.middleware.auth_token [-] Marking token 9025cf18244835d398aeddd85e8990c8 as unauthorized in memcache _cache_store_invalid /root/savanna-venv/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py:965 2013-09-20 22:13:27.744 31415 WARNING keystoneclient.middleware.auth_token [-] Authorization failed for token 9025cf18244835d398aeddd85e8990c8 2013-09-20 22:13:27.744 31415 INFO keystoneclient.middleware.auth_token [-] Invalid user token - rejecting request

edit flag offensive delete link more
0

answered 2013-09-20 21:05:14 -0500

mattf gravatar image

Sagar,

Try using these RPMs,

http://repos.fedorapeople.org/repos/openstack/openstack-havana/epel-6/openstack-savanna-0.3-0.1.a274.gabf778f.el6.noarch.rpm (http://repos.fedorapeople.org/repos/o...)

http://repos.fedorapeople.org/repos/openstack/openstack-havana/epel-6/python-django-savanna-0.3-0.1.a10.g87e1e22.el6.noarch.rpm (http://repos.fedorapeople.org/repos/o...)

And the new RDO instructions,

https://savanna.readthedocs.org/en/latest/userdoc/installation.guide.html (https://savanna.readthedocs.org/en/la...)

instead.

I typically,

. yum install <those rpms="" above="">

. sed -i -e "s/#os_admin_password=nova/os_admin_password=$OS_PASSWORD/" /etc/savanna/savanna.conf

. sed -i -e "s/'settings',/'settings', 'savanna',/" -e "s/'openstack_dashboard',/'openstack_dashboard', 'savannadashboard',/" /usr/share/openstack-dashboard/openstack_dashboard/settings.py

edit flag offensive delete link more
0

answered 2013-09-22 04:39:43 -0500

sshimpi gravatar image

Hi Matthew,

Thanks for the reply. It worked. I have two further question -

  1. Will the Auth_Token will change every time i reboot the machine ?

  2. As off now i am using "savanna-0.2-vanilla-1.1.2-ubuntu-12.10.qcow2" for hadoop template. Can you let me know the procedure of creating new customize hadoop template from strach?

edit flag offensive delete link more
0

answered 2013-09-22 11:01:15 -0500

mattf gravatar image

sagar, just so you know, it'll help the savanna community if you open a new question for followup questions -- who's going to look at "error while accessing savanna tab" for an answer about image building or centos.

if by auth_token you mean the os_admin_password, no it will not.

edit flag offensive delete link more
0

answered 2013-09-22 17:14:29 -0500

sshimpi gravatar image

Thanks Matthew Farrellee, that solved my question.

edit flag offensive delete link more
0

answered 2013-10-09 05:51:11 -0500

gzsgwsgwl gravatar image

for provisioning hadoop cluster ,we export auth_token= "xxxxx", but some times later,it will expire.how i should do to fix the problem other than repeatly getting new token?

edit flag offensive delete link more
0

answered 2013-10-09 08:28:47 -0500

dmitrymex gravatar image

This is controlled by the keystone configuration, specifically by 'expiration' in keystone.conf: http://docs.openstack.org/trunk/openstack-compute/install/yum/content/keystone-conf-file.html (http://docs.openstack.org/trunk/opens...)

edit flag offensive delete link more

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: 2013-09-20 14:48:02 -0500

Seen: 255 times

Last updated: Oct 10 '13