Fix
=====
#sudo easy_install redis
or
#pip install redis
a)
Error From heat engine log
======================
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup _get_matchmaker().register(topic, CONF.rpc_zmq_host)
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup File "/opt/stack/heat/heat/openstack/common/rpc/impl_zmq.py", line 817, in _get_matchmaker
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup matchmaker = importutils.import_object(mm, *args, **kwargs)
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup File "/opt/stack/heat/heat/openstack/common/importutils.py", line 40, in import_object
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup return import_class(import_str)(*args, **kwargs)
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup File "/opt/stack/heat/heat/openstack/common/rpc/matchmaker_redis.py", line 96, in __init__
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup raise ImportError("Failed to import module redis.")
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup ImportError: Failed to import module redis.
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup
b)
https://github.com/openstack/heat/blob/master/heat/openstack/common/rpc/matchmaker_redis.py
=========================
redis = importutils.try_import('redis')
class MatchMakerRedis(mm_common.HeartbeatMatchMakerBase):
"""MatchMaker registering and looking-up hosts with a Redis server."""
def __init__(self):
super(MatchMakerRedis, self).__init__()
if not redis:
raise ImportError("Failed to import module redis.")
c)
./stack.sh output
=========================
2014-05-30 16:32:13.059 | libzmq1 is already the newest version.
2014-05-30 16:32:13.067 | python-zmq is already the newest version.
2014-05-30 16:32:13.071 | redis-server is already the newest version.
d)
saju@ubuntu:~/openstack/devstack$ sudo apt-get install redis-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
redis-server is already the newest version.
The following packages were automatically installed and are no longer required:
libboost-filesystem1.46.1 libboost-system1.46.1 libboost-program-options1.46.1 libpcrecpp0 libboost-thread1.46.1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 95 not upgraded.
saju@ubuntu:~/openstack/devstack$
e)
saju@ubuntu:~/openstack/devstack$ python
Python 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import redis
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named redis
>>>
=====
#sudo easy_install redis
or
#pip install redis
a)
Error From heat engine log
======================
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup _get_matchmaker().register(topic, CONF.rpc_zmq_host)
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup File "/opt/stack/heat/heat/openstack/common/rpc/impl_zmq.py", line 817, in _get_matchmaker
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup matchmaker = importutils.import_object(mm, *args, **kwargs)
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup File "/opt/stack/heat/heat/openstack/common/importutils.py", line 40, in import_object
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup return import_class(import_str)(*args, **kwargs)
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup File "/opt/stack/heat/heat/openstack/common/rpc/matchmaker_redis.py", line 96, in __init__
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup raise ImportError("Failed to import module redis.")
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup ImportError: Failed to import module redis.
2014-05-30 16:34:59.954 TRACE heat.openstack.common.threadgroup
b)
https://github.com/openstack/heat/blob/master/heat/openstack/common/rpc/matchmaker_redis.py
=========================
redis = importutils.try_import('redis')
class MatchMakerRedis(mm_common.HeartbeatMatchMakerBase):
"""MatchMaker registering and looking-up hosts with a Redis server."""
def __init__(self):
super(MatchMakerRedis, self).__init__()
if not redis:
raise ImportError("Failed to import module redis.")
c)
./stack.sh output
=========================
2014-05-30 16:32:13.059 | libzmq1 is already the newest version.
2014-05-30 16:32:13.067 | python-zmq is already the newest version.
2014-05-30 16:32:13.071 | redis-server is already the newest version.
d)
saju@ubuntu:~/openstack/devstack$ sudo apt-get install redis-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
redis-server is already the newest version.
The following packages were automatically installed and are no longer required:
libboost-filesystem1.46.1 libboost-system1.46.1 libboost-program-options1.46.1 libpcrecpp0 libboost-thread1.46.1
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 95 not upgraded.
saju@ubuntu:~/openstack/devstack$
e)
saju@ubuntu:~/openstack/devstack$ python
Python 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import redis
Traceback (most recent call last):
File "
ImportError: No module named redis
>>>
No comments:
Post a Comment