1

This image will help you to find the issue I have configured Openstack newton on ubunu 16.04 LTS. It works fine Now i have planned to integrate Murano in to this. All progressed fine..When i am running dashboard using "tox -e venv -- python manage.py runserver <IP:PORT>" command. I am able to run the murano dashboard.

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

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.

G.Krish
  • 21
  • 7
  • Well, have you installed memcache? – Withnail Dec 05 '16 at 10:14
  • If your configuration includes `memcached_servers`, make sure you install python_memcached in your tox venv (e.g do `tox -e venv -- pip install python_memcached>=1.58`) – tutuDajuju Dec 07 '16 at 09:21
  • Yes i have installed memcache in machine using apt-get – G.Krish Dec 08 '16 at 05:46
  • @tutuDajuju yes i haven't tried yet..when i tried to install python_memcached(tox -e venv -- pip install python_memcached>=1.58)on venv it returns nothing... – G.Krish Dec 08 '16 at 05:53
  • @tutuDajuju when i was try with out version name (tox -e venv -- pip install python_memcached) it installed successfully. But issue still persist – G.Krish Dec 08 '16 at 06:26
  • Are you sure the same exception occurs? Review & add the traceback to answer, or paste it into a gist. – tutuDajuju Dec 08 '16 at 06:28
  • @tutuDajuju Yes that was the same issue.. – G.Krish Dec 08 '16 at 07:17
  • @tutuDajuju Please find the gist: https://gist.github.com/gokul2993/542e1ab9fa05c1f0e77cd4f3e68359a7 this was the full error message when i was run **tox -e venv -- python manage.py runserver ** – G.Krish Dec 08 '16 at 07:23
  • Seems `memcache` is still missing `source /root/murano/horizon/.tox/venv/local/bin/activate && python -c "import memcache"` should raise the same exception – tutuDajuju Dec 08 '16 at 07:52
  • Is there any possible way to import memcache in venv? – G.Krish Dec 09 '16 at 03:38
  • @tutuDajuju Please find the image i have attached with it..It may help you to find – G.Krish Dec 09 '16 at 09:25
  • I just noticed that your tracebacks contain at least 2 different venvs. I guess you have to make sure to install memcache in each of them. OpenStack is weird. – tutuDajuju Dec 09 '16 at 10:07
  • Great tutuDajuju. Its working..I missed to install memcache in another venv... – G.Krish Dec 09 '16 at 11:05

2 Answers2

2

Just installing memcached is not enough. You will also need to install python memcache module which is provided separately by python-memcache and 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.

sid-m
  • 1,504
  • 11
  • 19
1

Now working.. I have installed murano api and murano dashboard in different venv. I have missed to install memcache in munano api venv. When i'm tried after install memcache in murano api venv..Now working fine..

@tutuDajuju Thanks for the Help...

G.Krish
  • 21
  • 7