The attribute name while re-registering a topic should be "self.host_topic" instead of "self.topic_host"
in https://github.com/openstack/nova/blob/master/nova/openstack/common/rpc/matchmaker_redis.py#L113
Otherwise, the following error is seen while starting the conductor service:
2013-10-30 18:02:32.849 ERROR nova.openstack.common.threadgroup [-] 'MatchMakerRedis' object has no attribute 'topic_host'
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup Traceback (most recent call last):
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 117, in wait
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup x.wait()
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/threadgroup.py", line 49, in wait
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup return self.thread.wait()
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 168, in
wait
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup return self._exit_event.wait()
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 116, in wait
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup return hubs.get_hub().switch()
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 187, in swi
tch
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup return self.greenlet.switch()
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 194, in
main
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup result = function(*args, **kwargs)
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/service.py", line 448, in run_service
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup service.start()
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/service.py", line 176, in start
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup self.conn.create_consumer(self.topic, rpc_dispatcher, fanout=False)
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/rpc/impl_zmq.py", line 578, in create_consumer
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup _get_matchmaker().register(topic, CONF.rpc_zmq_host)
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/rpc/matchmaker.py", line 207, in register
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup self.ack_alive(key, host)
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup File "/opt/stack/nova/nova/openstack/common/rpc/matchmaker_redis.py", line 113, in ack_alive
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup self.register(self.topic_host[host], host)
2013-10-30 18:02:32.849 TRACE nova.openstack.common.threadgroup AttributeError: 'MatchMakerRedis' object has no attribute 'topic_host'
Rohit,
Needs to be fixed in Oslo first: /github. com/openstack/ oslo-incubator/ blob/master/ openstack/ common/ rpc/matchmaker_ redis.py# L113 /github. com/openstack/ oslo.messaging/ blob/master/ oslo/messaging/ _drivers/ matchmaker_ redis.py# L114
https:/
https:/
-- dims