Ask Your Question
0

openstack An unexpected error prevented the server from fulfilling your request. (HTTP 500)

asked 2016-01-09 20:43:54 -0500

Luci gravatar image
e
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi Traceback (most recent call last):
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/common/wsgi.py", line 239, in __call__
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi     result = method(context, **params)
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/token/controllers.py", line 145, in authenticate
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi     auth_token_data, roles_ref=roles_ref, catalog_ref=catalog_ref)
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/token/provider.py", line 333, in issue_v2_token
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi     self._create_token(token_id, data)
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/token/provider.py", line 190, in _create_token
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi     self._persistence.get_token(token_id)
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/token/provider.py", line 164, in _persistence
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi     self._persistence_manager = persistence.PersistenceManager()
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/common/dependency.py", line 193, in wrapper
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi     self.__wrapped_init__(*args, **kwargs)
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/token/persistence/core.py", line 50, in __init__
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi     super(PersistenceManager, self).__init__(CONF.token.driver)
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/keystone/common/manager.py", line 70, in __init__
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi     self.driver = importutils.import_object(driver_name)
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_utils/importutils.py", line 38, in import_object
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi     return import_class(import_str)(*args, **kwargs)
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_utils/importutils.py", line 27, in import_class
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi     __import__(mod_str)
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi ImportError: No module named memchache
2016-01-10 08:09:24.562 18048 TRACE keystone.common.wsgi

I am getting this error while executing this command

openstack --os-auth-url http://controller:35357 \ --os-project-name admin --os-username admin --os-auth-type password \ token issue

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-01-10 06:25:19 -0500

First make sure that the module memchache is installed through the command dpkg -l | grep python-memcache, then also check what driver have been mentioned in the keystone.conf file.


The error

ImportError: No module named memchache

indicates that you have mispelled the driver name in the conf file

The correct is driver = keystone.contrib.revoke.backends.memcache.Revoke. May be there is a typing mistake in your keystone conf file.

edit flag offensive delete link more

Comments

I am following the guide from http://openstack.org In the revoke section its says [revoke] driver = keystone.contrib.revoke.backends.sql.Revoke and in token section its says [token] provider = keystone.token.providers.uuid.Provider driver = keystone.token.persistence.backends.memcache.Token P.S Redhat OS

Luci gravatar imageLuci ( 2016-01-10 10:49:20 -0500 )edit

In Revoke section, I replaced driver with your statement, I am getting this error

WARNING: keystoneclient.auth.identity.generic.base Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL.
WARNING: keystoneclient.aut
Luci gravatar imageLuci ( 2016-01-10 10:57:03 -0500 )edit
0

answered 2016-01-11 14:14:11 -0500

Sandeep gravatar image

updated 2016-01-11 14:16:08 -0500

Try this seems ur auth port is wrong. export OS_USERNAME=username export OS_TENANT_NAME=tenant name export OS_PASSWORD=password export OS_AUTH_URL=http://controlller_IP:5000/v2.0/

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: 2016-01-09 20:43:54 -0500

Seen: 2,538 times

Last updated: Jan 11 '16