As it comes from the stack trace
Traceback (most recent call last):
File "oslo_messaging/tests/drivers/zmq/test_zmq_transport_url.py", line 79, in test_redis_multiple_hosts_url
"zmq+redis://host1:60001,host2:60002,host3:60003/"
File "oslo_messaging/tests/drivers/zmq/test_zmq_transport_url.py", line 35, in setup_url
transport = oslo_messaging.get_transport(self.conf, url)
File "oslo_messaging/transport.py", line 192, in get_transport
invoke_kwds=kwargs)
File "/home/jenkins/workspace/gate-oslo.messaging-python27/.tox/py27/local/lib/python2.7/site-packages/stevedore/driver.py", line 46, in __init__
verify_requirements=verify_requirements,
File "/home/jenkins/workspace/gate-oslo.messaging-python27/.tox/py27/local/lib/python2.7/site-packages/stevedore/named.py", line 69, in __init__
verify_requirements)
File "/home/jenkins/workspace/gate-oslo.messaging-python27/.tox/py27/local/lib/python2.7/site-packages/stevedore/extension.py", line 171, in _load_plugins
self._on_load_failure_callback(self, ep, err)
File "/home/jenkins/workspace/gate-oslo.messaging-python27/.tox/py27/local/lib/python2.7/site-packages/stevedore/extension.py", line 163, in _load_plugins
verify_requirements,
File "/home/jenkins/workspace/gate-oslo.messaging-python27/.tox/py27/local/lib/python2.7/site-packages/stevedore/named.py", line 146, in _load_one_plugin
verify_requirements,
File "/home/jenkins/workspace/gate-oslo.messaging-python27/.tox/py27/local/lib/python2.7/site-packages/stevedore/extension.py", line 195, in _load_one_plugin
obj = plugin(*invoke_args, **invoke_kwds)
File "oslo_messaging/_drivers/impl_zmq.py", line 106, in __init__
).driver(self.conf, url=url)
File "oslo_messaging/_drivers/zmq_driver/matchmaker/zmq_matchmaker_redis.py", line 270, in __init__
is_available = self._check_availability(redis_instance)
File "oslo_messaging/_drivers/zmq_driver/matchmaker/zmq_matchmaker_redis.py", line 303, in _check_availability
redis_instance.ping()
File "/home/jenkins/workspace/gate-oslo.messaging-python27/.tox/py27/local/lib/python2.7/site-packages/redis/client.py", line 682, in ping
return self.execute_command('PING')
File "/home/jenkins/workspace/gate-oslo.messaging-python27/.tox/py27/local/lib/python2.7/site-packages/redis/client.py", line 572, in execute_command
connection.send_command(*args)
File "/home/jenkins/workspace/gate-oslo.messaging-python27/.tox/py27/local/lib/python2.7/site-packages/redis/connection.py", line 563, in send_command
self.send_packed_command(self.pack_command(*args))
File "/home/jenkins/workspace/gate-oslo.messaging-python27/.tox/py27/local/lib/python2.7/site-packages/redis/connection.py", line 538, in send_packed_command
self.connect()
File "/home/jenkins/workspace/gate-oslo.messaging-python27/.tox/py27/local/lib/python2.7/site-packages/redis/connection.py", line 439, in connect
sock = self._connect()
File "/home/jenkins/workspace/gate-oslo.messaging-python27/.tox/py27/local/lib/python2.7/site-packages/fixtures/_fixtures/timeout.py", line 52, in signal_handler
raise TimeoutException()
fixtures._fixtures.timeout.TimeoutException
Ran 1981 tests in 81.675s (+11.169s)
FAILED (id=6, failures=1, skips=35)
error: testr failed (1)
Real matchmaker redis is being created and trying to connect the real redis-server.
redis/connection.py", line 439, in connect
sock = self._connect()
In order to avoid the undefined behavior in environments where redis may not be present for unit tests we have to mock things like that and do not perform the real connection especially in test where url parsing is tested.
Fix proposed to branch: master /review. openstack. org/395091
Review: https:/