Comment 17 for bug 1586840

Revision history for this message
Cristian Tomoiaga (ctomoiaga) wrote :

And here is stack trace to help in dealing with errors:

NOTE that I am running amqp 2.0 and Kombu 4.0.2 with oslo_messaging.
This seems to be a small issue in oslo_messaging not dealing with this type of error.
It's the only issue I've encountered so far after running this for some time.

ERROR 2017-03-02 02:00:36,652 excutils:262 wrapper Unexpected exception occurred 60 time(s)... retrying.
Traceback (most recent call last):
  File "[..]/virtualenv/lib/python2.7/site-packages/oslo_utils/excutils.py", line 250, in wrapper
    return infunc(*args, **kwargs)
  File "[..]/virtualenv/lib/python2.7/site-packages/oslo_messaging/_drivers/base.py", line 302, in _runner
    batch_size=self.batch_size, batch_timeout=self.batch_timeout)
  File "[..]/virtualenv/lib/python2.7/site-packages/oslo_messaging/_drivers/base.py", line 52, in wrapper
    msg = func(in_self, timeout=timeout_watch.leftover(True))
  File "[..]/virtualenv/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 211, in poll
    self.conn.consume(timeout=timeout)
  File "[..]/virtualenv/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1098, in consume
    error_callback=_error_callback)
  File "[..]/virtualenv/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 817, in ensure
    ret, channel = autoretry_method()
  File "[..]/virtualenv/lib/python2.7/site-packages/kombu/connection.py", line 507, in _ensured
    errback and errback(exc, 0)
  File "[..]/virtualenv/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 750, in on_error
    info.update(self._get_connection_info())
  File "[..]/virtualenv/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1176, in _get_connection_info
    client_port = self.channel.connection.sock.getsockname()[1]
AttributeError: 'NoneType' object has no attribute 'getsockname'
ERROR 2017-03-02 02:00:37,658 impl_rabbit:1063 _error_callback Failed to consume message from queue: 'NoneType' object has no attribute 'getsockname'