← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1246308] Re: AttributeError in Redis Matchmaker ack_alive()

 

Not sure if this is still an issue but it needs to be fixed in
oslo.messaging first and the proposed patch was abandoned awhile ago.

** Changed in: oslo
       Status: In Progress => Triaged

** Changed in: oslo
     Assignee: Rohit Karajgi (rohitk) => (unassigned)

** Changed in: nova
     Assignee: Rohit Karajgi (rohitk) => (unassigned)

** Also affects: oslo.messaging
   Importance: Undecided
       Status: New

** No longer affects: oslo

** Tags added: oslo

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1246308

Title:
  AttributeError in Redis Matchmaker ack_alive()

Status in OpenStack Compute (Nova):
  Triaged
Status in Messaging API for OpenStack:
  New

Bug description:
  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'

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1246308/+subscriptions