python - 访问 murano 仪表板时 openstack newton keystone 出现 "No module named memcache"错误

标签 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 仪表板。

当我访问环境选项卡时,它显示错误

Error: There was an error communicating with server.

日志消息显示错误

No module named 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

有人可以帮忙吗? 提前致谢。

最佳答案

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

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

关于python - 访问 murano 仪表板时 openstack newton keystone 出现 "No module named memcache"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40967275/

相关文章:

python - Python 3.5.1 Shell 中的简单 http 服务器

python - PyDict_SetItemString 段错误

循环迭代两个项目的 Django 模板

django - Linux 上的 UI 测试工具

networking - 如何在使用 openstack 创建的 centos VM 实例中禁用互联网?

python - 使用 python-boto 启动 Openstack 实例

python - PlanetLab 上的 Scapy

python - 如何从具有周期性边界条件的 numpy 数组中选择一个窗口?

django - 使用 Django session 存储登录用户

openstack - 将 Orion 与 TROVE (Openstack) 等 DBaaS 集成