UnboundLocalError on failded reconnect to RabbitMQ server

Bug #1272271 reported by Ala Rezmerita
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.messaging
Fix Released
Critical
Ala Rezmerita

Bug Description

During the reconnect to RabbitMQ if something bad happens I get this traceback.

2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging Traceback (most recent call last):
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging File "/opt/stack/oslo.messaging/oslo/messaging/notify/_impl_messaging.py", line 47, in notify
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging version=self.version)
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging File "/opt/stack/oslo.messaging/oslo/messaging/transport.py", line 93, in _send_notification
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging self._driver.send_notification(target, ctxt, message, version)
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging File "/opt/stack/oslo.messaging/oslo/messaging/_drivers/amqpdriver.py", line 393, in send_notification
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging return self._send(target, ctxt, message, envelope=(version == 2.0))
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging File "/opt/stack/oslo.messaging/oslo/messaging/_drivers/amqpdriver.py", line 371, in _send
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging with self._get_connection() as conn:
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging File "/opt/stack/oslo.messaging/oslo/messaging/_drivers/amqpdriver.py", line 322, in _get_connection
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging server_params=server_params)
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging File "/opt/stack/oslo.messaging/oslo/messaging/_drivers/amqp.py", line 117, in __init__
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging self.connection = connection_pool.get()
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging File "/opt/stack/oslo.messaging/oslo/messaging/_drivers/pool.py", line 71, in get
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging return self.create()
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging File "/opt/stack/oslo.messaging/oslo/messaging/_drivers/amqp.py", line 71, in create
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging return self.connection_cls(self.conf)
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging File "/opt/stack/oslo.messaging/oslo/messaging/_drivers/impl_rabbit.py", line 460, in __init__
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging self.reconnect()
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging File "/opt/stack/oslo.messaging/oslo/messaging/_drivers/impl_rabbit.py", line 548, in reconnect
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging log_info['err_str'] = str(e)
2014-01-24 11:07:36.300 20196 TRACE oslo.messaging.notify._impl_messaging UnboundLocalError: local variable 'e' referenced before assignment

Changed in oslo.messaging:
assignee: nobody → Ala Rezmerita (arezmerita)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.messaging (master)

Fix proposed to branch: master
Review: https://review.openstack.org/68888

Changed in oslo.messaging:
status: New → In Progress
Mark McLoughlin (markmc)
Changed in oslo.messaging:
importance: Undecided → Critical
Changed in oslo.messaging:
milestone: none → icehouse-3
Mark McLoughlin (markmc)
Changed in oslo.messaging:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in oslo.messaging:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in oslo.messaging:
milestone: icehouse-3 → 1.3.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.