[英]“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-memcache
和python-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.