访问murano仪表板时,openstack newton keystone中的“没有名为memcache的模块”错误

时间:2016-12-05 04:49:09

标签: python django openstack fiware-murano

This image will help you to find the issue我在ubunu 16.04 LTS上配置了Openstack newton。它工作正常 现在我已经计划将穆拉诺融入其中。 所有进展都很好。当我使用“ tox -e venv -- python manage.py runserver <IP:PORT> ”命令运行仪表板时。我能够运行murano仪表板。

当我访问环境标签时,它显示错误

  

错误:与服务器通信时出错。

并且日志消息显示错误

  

没有名为memcache的模块

以下是您的参考错误消息:

Traceback (most recent call last):
File "/root/murano/murano/murano/api/middleware/fault.py", line 130, in
   process_request
return req.get_response(self.application)
File "/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/request.py",
   line 1299, in send
application, catch_exc_info=False)
File "/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/request.py",
   line 1263, in call_application
app_iter = application(self.environ,
   start_response)
File "/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/dec.py",
   line 130, in __call__
resp = self.call_func(req, *args,
   **self.kwargs)
File "/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/webob/dec.py",
   line 195, in call_func
return self.func(req, *args, **kwargs)
File "/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py",
   line 320, in __call__
response = self.process_request(req)
File "/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py",
   line 552, in process_request
resp = super(AuthProtocol,
   self).process_request(request)
File "/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py",
   line 348, in process_request
data, user_auth_ref =
   self._do_fetch_token(request.user_token)
File "/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py",
   line 388, in _do_fetch_token
data = self.fetch_token(token)
File "/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py",
   line 661, in fetch_token
cached =
   self._cache_get_hashes(token_hashes)
File "/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py",
   line 644, in _cache_get_hashes
cached =
   self._token_cache.get(token)
File "/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/_cache.py",
   line 214, in get
with self._cache_pool.reserve() as cache:
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
   return self.gen.next()
File "/root/murano/murano/.tox/venv/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/_cache.py",
   line 78, in reserve
import memcache

ImportError: No module named memcache

有人可以帮忙吗? 在此先感谢。

2 个答案:

答案 0 :(得分:2)

仅安装memcached是不够的。您还需要安装python memcache模块,该模块由python-memcachepython-pymemcache单独提供。我不确定在这里使用哪一个。

您可以尝试使用apt-get安装它们,看看哪个适合您。

答案 1 :(得分:1)

现在正在工作..我在不同的venv安装了murano api和murano仪表板。 我错过了在munano api venv中安装memcache。当我在murano api venv中安装memcache后试用。现在正常工作..

@tutuDajuju感谢您的帮助...