简体   繁体   English

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

[英]“No module named memcache” error in openstack newton keystone when accessing murano dashboard

This image will help you to find the issue I have configured Openstack newton on ubunu 16.04 LTS. 这张图片将帮助您找到我在ubunu 16.04 LTS上配置Openstack newton 的问题 It works fine Now i have planned to integrate Murano in to this. 它运作正常现在我已经计划将Murano整合到这里。 All progressed fine..When i am running dashboard using " tox -e venv -- python manage.py runserver <IP:PORT> " command. 所有进展都很好。当我使用“ tox -e venv -- python manage.py runserver <IP:PORT> ”命令运行仪表板时。 I am able to run the murano dashboard. 我能够运行murano仪表板。

When i am accessing environment tab it displaying error 当我访问环境选项卡时,它显示错误

Error: There was an error communicating with server. 错误:与服务器通信时出错。

And log message displays an error 并且日志消息显示错误

No module named memcache 没有名为memcache的模块

For your reference error message below: 以下是您的参考错误消息:

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

Can someone help on this? 有人可以帮忙吗? Thanks in Advance. 提前致谢。

Just installing memcached is not enough. 仅仅安装memcached是不够的。 You will also need to install python memcache module which is provided separately by python-memcache and python-pymemcache . 您还需要安装python memcache模块,该模块由python-memcachepython-pymemcache单独提供。 I am not sure which one is used here. 我不确定在这里使用哪一个。

You can try installing them with apt-get and see which one works for you. 您可以尝试使用apt-get安装它们,看看哪个适合您。

Now working.. I have installed murano api and murano dashboard in different venv. 现在工作..我已经在不同的venv安装了murano api和murano仪表板。 I have missed to install memcache in munano api venv. 我错过了在munano api venv中安装memcache。 When i'm tried after install memcache in murano api venv..Now working fine.. 当我在murano api venv中安装memcache后试用。现在正常工作..

@tutuDajuju Thanks for the Help... @tutuDajuju感谢您的帮助......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 安装OpenStack:ImportError:无法导入设置&#39;openstack_dashboard.settings&#39;(***?):没有名为angular_fileupload的模块 - Install OpenStack: ImportError: Could not import settings 'openstack_dashboard.settings' (***?): No module named angular_fileupload 创建KeyStone的实例时,OpenStack KeyStone SSL异常 - OpenStack KeyStone SSL Exception When Creating an Instance of KeyStone 使用OpenStack API时发生未经授权的错误,无法从Keystone获取身份验证令牌 - Unauthorized error when using OpenStack API, can't get authentication token from keystone 导入中间件django.middleware.cache时出错:“没有名为memcache的模块” - Error importing middleware django.middleware.cache: “No module named memcache” openStack - Package:keyStone 错误需要不同的 python 版本 - openStack - Package : keyStone error requires a different python version Importerror:没有名为 memcache 的模块(Django 项目) - Importerror: No module named memcache (Django project) 升级到Django 1.7。 导入错误:没有名为仪表板的模块 - Upgrading to Django 1.7. Import Error: No module named dashboard openstack API python-没有名为版本的模块 - openstack API python - no module named version OpenStack-KeyStone需要身份验证401 - OpenStack - KeyStone Requires Authentication 401 Keystone中间件(OpenStack)中的依赖注入 - Dependency injection in a Keystone middleware (openstack)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM