[Kilo] service entity creation failed with ImportError: No module named memcache

asked 2015-09-29 09:43:33 -0500

importepeu gravatar image

Joining the community today, hi everybody !

I'm installing an openstack on Ubuntu 14.04 regarding the documentation which can be found here : http://docs.openstack.org/kilo/install-guide/install/apt/content/keystone-services.html (http://docs.openstack.org/kilo/instal...)

I'm arrived at step 1 of "To create the service entity and API endpoint". This command : openstack service create --name keystone --description "OpenStack Identity" identity failed with the output : "ERROR: openstack Internal Server Error (HTTP 500)"

In the keystone logs, i found :

2015-09-29 10:08:06.502260 mod_wsgi (pid=22233, process='keystone-admin', application=''): Loading WSGI script '/var/www/cgi-bin/keystone/admin'.
2015-09-29 10:08:07.112454 mod_wsgi (pid=22233): Target WSGI script '/var/www/cgi-bin/keystone/admin' cannot be loaded as Python module.
2015-09-29 10:08:07.112482 mod_wsgi (pid=22233): Exception occurred processing WSGI script '/var/www/cgi-bin/keystone/admin'.
2015-09-29 10:08:07.112554 Traceback (most recent call last):
2015-09-29 10:08:07.112582   File "/var/www/cgi-bin/keystone/admin", line 25, in <module>
2015-09-29 10:08:07.112626     application = wsgi_server.initialize_application(name)
2015-09-29 10:08:07.112644   File "/usr/lib/python2.7/dist-packages/keystone/server/wsgi.py", line 51, in initialize_application
2015-09-29 10:08:07.112665     startup_application_fn=loadapp)
2015-09-29 10:08:07.112674   File "/usr/lib/python2.7/dist-packages/keystone/server/common.py", line 41, in setup_backends
2015-09-29 10:08:07.112686     drivers = backends.load_backends()
2015-09-29 10:08:07.112693   File "/usr/lib/python2.7/dist-packages/keystone/backends.py", line 56, in load_backends
2015-09-29 10:08:07.112704     revoke_api=revoke.Manager(),
2015-09-29 10:08:07.112711   File "/usr/lib/python2.7/dist-packages/keystone/common/dependency.py", line 131, in __wrapped_init__
2015-09-29 10:08:07.112722     init(self, *args, **kwargs)
2015-09-29 10:08:07.112729   File "/usr/lib/python2.7/dist-packages/keystone/contrib/revoke/core.py", line 74, in __init__
2015-09-29 10:08:07.112821     super(Manager, self).__init__(CONF.revoke.driver)
2015-09-29 10:08:07.112832   File "/usr/lib/python2.7/dist-packages/keystone/common/manager.py", line 70, in __init__
2015-09-29 10:08:07.112889     self.driver = importutils.import_object(driver_name)
2015-09-29 10:08:07.112900   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 38, in import_object
2015-09-29 10:08:07.112945     return import_class(import_str)(*args, **kwargs)
2015-09-29 10:08:07.112956   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 27, in import_class
2015-09-29 10:08:07.112969     __import__(mod_str)
2015-09-29 10:08:07.112984 ImportError: No module named memcache

However, the memcache module is installed :

# dpkg -l | grep python-memcache
ii  python-memcache                     1.53-1build1                         all          pure python memcached client

The /var/www/cgi-bin/keystone/admin scripts was downloaded in step 5 of "To configure the Apache HTTP server" in the documentation : http://docs.openstack.org/kilo/install-guide/install/apt/content/keystone-install.html (http://docs.openstack.org/kilo/instal...)

I'm new to openstack and any help would be appreciated. I'm still looking on the net to investiagate this issue. Thanks a lot, Regards, Guillaume.

Update : After few hours of investigation, I found ... (more)

edit retag flag offensive close merge delete