On RabbitMQ failures, Mistral seems to hang on to the stale connections and becomes irresponsive:
ERROR (app) RemoteError: Remote error: MessageDeliveryFailure Unable to connect to AMQP server on 127.0.0.1:5672 after None tries: 'NoneType' object has no attribute '__getitem__'
[u'Traceback (most recent call last):
', u' File "/home/akovi/openstack/mistral/.tox/venv/local/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
res = self.dispatcher.dispatch(message)
', u' File "/home/akovi/openstack/mistral/.tox/venv/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 222, in dispatch
return self._do_dispatch(endpoint, method, ctxt, args)
', u' File "/home/akovi/openstack/mistral/.tox/venv/local/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 192, in _do_dispatch
result = func(ctxt, **new_args)
', u' File "/home/akovi/openstack/mistral/mistral/engine/engine_server.py", line 135, in start_action
**params
', u' File "/home/akovi/openstack/mistral/mistral/engine/action_queue.py", line 74, in decorate
res = func(*args, **kw)
', u' File "/home/akovi/openstack/mistral/mistral/engine/default_engine.py", line 78, in start_action
output = action.run(action_input, target, save=False)
', u' File "/home/akovi/openstack/mistral/.tox/venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 157, in wrapper
result = f(*args, **kwargs)
', u' File "/home/akovi/openstack/mistral/mistral/engine/actions.py", line 286, in run
async_=False
', u' File "/home/akovi/openstack/mistral/.tox/venv/local/lib/python2.7/site-packages/osprofiler/profiler.py", line 157, in wrapper
result = f(*args, **kwargs)
', u' File "/home/akovi/openstack/mistral/mistral/rpc/clients.py", line 331, in run_action
return rpc_client_method(auth_ctx.ctx(), \'run_action\', **rpc_kwargs)
', u' File "/home/akovi/openstack/mistral/mistral/rpc/oslo/oslo_client.py", line 38, in sync_call
**kwargs
', u' File "/home/akovi/openstack/mistral/.tox/venv/local/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 174, in call
retry=self.retry)
', u' File "/home/akovi/openstack/mistral/.tox/venv/local/lib/python2.7/site-packages/oslo_messaging/transport.py", line 123, in _send
timeout=timeout, retry=retry)
', u' File "/home/akovi/openstack/mistral/.tox/venv/local/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 578, in send
retry=retry)
', u' File "/home/akovi/openstack/mistral/.tox/venv/local/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 564, in _send
msg=msg, timeout=timeout, retry=retry)
', u' File "/home/akovi/openstack/mistral/.tox/venv/local/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1271, in topic_send
retry=retry)
', u' File "/home/akovi/openstack/mistral/.tox/venv/local/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 1154, in _ensure_publishing
self.ensure(method, retry=retry, error_callback=_error_callback)
', u' File "/home/akovi/openstack/mistral/.tox/venv/local/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py", line 825, in ensure
raise exceptions.MessageDeliveryFailure(msg)
', u"MessageDeliveryFailure: Unable to connect to AMQP server on 127.0.0.1:5672 after None tries: 'NoneType' object has no attribute '__getitem__'
"].
Fix proposed to branch: master /review. openstack. org/508733
Review: https:/