Test Results

Designed for use with JUnit and Ant.

Properties


Summary

TestsFailuresErrorsSkippedSuccess rateTime
29210319.23%365.402
Note: failures are anticipated and checked for with assertions while errors are unanticipated.

Packages

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.
NameTestsErrorsFailuresSkippedTime(s)
290213365.402

Package

NameTestsErrorsFailuresSkippedTime(s)
7033231.485
220180133.917
Back to top


TestCase

NameStatusTypeTime(s)LogFile
test_perms2_global_share[ci_sanity,sanity]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:37:32 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<serial_scripts.rbac.test_rbac.TestRbac.test_per...global_share[ci_sanity,sanity] id=0x7f5b98cf7040>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestRbac.test_perms2_global_share>
self = <serial_scripts.rbac.test_rbac.TestRbac.test_per...global_share[ci_sanity,sanity] id=0x7f5b98cf7040>
args = ()
kwargs = {}

/contrail-test/serial_scripts/rbac/test_rbac.py in test_perms2_global_share(self=<serial_scripts.rbac.test_rbac.TestRbac.test_per...global_share[ci_sanity,sanity] id=0x7f5b98cf7040>)
48 }]
49 domain_rbac = self.create_rbac_acl(rules=rules, parent_type='domain')
50 vn = self.create_vn(connections=u1_p1_conn, shared=True, verify=False)
51 assert vn, 'VN creation failed'
52 obj = self.read_vn(connections=u1_p1_conn, uuid=vn.uuid)
vn undefined
self = <serial_scripts.rbac.test_rbac.TestRbac.test_per...global_share[ci_sanity,sanity] id=0x7f5b98cf7040>
self.create_vn = <bound method BaseRbac.create_vn of <serial_scri...lobal_share[ci_sanity,sanity] id=0x7f5b98cf7040>>
connections undefined
u1_p1_conn = <common.connections.ContrailConnections object>
shared undefined
verify undefined

/contrail-test/serial_scripts/rbac/base.py in create_vn(self=<serial_scripts.rbac.test_rbac.TestRbac.test_per...global_share[ci_sanity,sanity] id=0x7f5b98cf7040>, connections=<common.connections.ContrailConnections object>, verify=False, option='contrail', **kwargs={'shared': True})
214 def create_vn(self, connections=None, verify=True, option='contrail', **kwargs):
215 connections = connections or self.connections
216 vn_fixture = self.create_fixture(VNFixture, connections=connections,
217 option=option, **kwargs)
218 if vn_fixture and verify:
vn_fixture undefined
self = <serial_scripts.rbac.test_rbac.TestRbac.test_per...global_share[ci_sanity,sanity] id=0x7f5b98cf7040>
self.create_fixture = <bound method BaseRbac.create_fixture of <serial...lobal_share[ci_sanity,sanity] id=0x7f5b98cf7040>>
global VNFixture = <class 'vn_test.VNFixture'>
connections = <common.connections.ContrailConnections object>
option = 'contrail'
kwargs = {'shared': True}

/contrail-test/serial_scripts/rbac/base.py in create_fixture(self=<serial_scripts.rbac.test_rbac.TestRbac.test_per...global_share[ci_sanity,sanity] id=0x7f5b98cf7040>, fixturecls=<class 'vn_test.VNFixture'>, **kwargs={'connections': <common.connections.ContrailConnections object>, 'option': 'contrail', 'shared': True})
352 def create_fixture(self, fixturecls, **kwargs):
353 try:
354 return self.useFixture(fixturecls(**kwargs))
355 except (PermissionDenied, neutron_forbidden):
356 return None
self = <serial_scripts.rbac.test_rbac.TestRbac.test_per...global_share[ci_sanity,sanity] id=0x7f5b98cf7040>
self.useFixture = <bound method TestCase.useFixture of <serial_scr...lobal_share[ci_sanity,sanity] id=0x7f5b98cf7040>>
fixturecls = <class 'vn_test.VNFixture'>
kwargs = {'connections': <common.connections.ContrailConnections object>, 'option': 'contrail', 'shared': True}

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<serial_scripts.rbac.test_rbac.TestRbac.test_per...global_share[ci_sanity,sanity] id=0x7f5b98cf7040>, fixture=<vn_test.VNFixture object>)
754 # Gather_details worked, so raise the exception setUp
755 # encountered.
756 reraise(*exc_info)
757 else:
758 self.addCleanup(fixture.cleanUp)
global reraise = <function reraise>
exc_info = (<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), <traceback object>)

/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py in reraise(exc_class=<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, exc_obj=ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), exc_tb=<traceback object>, _marker=<object object>)
13
14 def reraise(exc_class, exc_obj, exc_tb, _marker=object()):
15 """Re-raise an exception received from sys.exc_info() or similar."""
16 raise exc_obj.with_traceback(exc_tb)
17
exc_obj = ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))")
exc_obj.with_traceback = <built-in method with_traceback of ConnectFailure object>
exc_tb = <traceback object>

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<serial_scripts.rbac.test_rbac.TestRbac.test_per...global_share[ci_sanity,sanity] id=0x7f5b98cf7040>, fixture=<vn_test.VNFixture object>)
729 """
730 try:
731 fixture.setUp()
732 except MultipleExceptions as e:
733 if (fixtures is not None and
fixture = <vn_test.VNFixture object>
fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
448 self.webui.create_vn(self)
449 elif (self.option == 'contrail'):
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
self = <vn_test.VNFixture object>
self._create_vn_api = <bound method VNFixture._create_vn_api of <vn_test.VNFixture object>>
self.vn_name = 'ctest-TestRbac-23236227-00132399'
self.project_obj = <vnc_api.gen.resource_client.Project object>

/contrail-test/fixtures/vn_test.py in _create_vn_api(self=<vn_test.VNFixture object>, vn_name='ctest-TestRbac-23236227-00132399', project_obj=<vnc_api.gen.resource_client.Project object>)
425 self.logger.info('Permission denied to create/update VirtualNetwork')
426 raise
427 self.obj = self._orch_call('get_vn_obj_from_id', self.uuid)
428 if self.obj is None:
429 raise ValueError('could not find %s in orchestrator' % (self.vn_name))
self = <vn_test.VNFixture object>
self.obj = None
self._orch_call = <bound method VNFixture._orch_call of <vn_test.VNFixture object>>
self.uuid = '5a05ade7-10d2-45f9-8a5b-e2be66036605'

/contrail-test/fixtures/vn_test.py in _orch_call(self=<vn_test.VNFixture object>, method='get_vn_obj_from_id', *args=('5a05ade7-10d2-45f9-8a5b-e2be66036605',), **kwargs={})
155 def _orch_call(self, method, *args, **kwargs):
156 if self.orchestrator:
157 return getattr(self.orchestrator, method)(*args, **kwargs)
158 else:
159 return getattr(self.vnc_lib_fixture, method)(*args, **kwargs)
builtingetattr = <built-in function getattr>
self = <vn_test.VNFixture object>
self.orchestrator = <openstack.OpenstackOrchestrator object>
method = 'get_vn_obj_from_id'
args = ('5a05ade7-10d2-45f9-8a5b-e2be66036605',)
kwargs = {}

/contrail-test/fixtures/openstack.py in get_vn_obj_from_id(self=<openstack.OpenstackOrchestrator object>, vn_id='5a05ade7-10d2-45f9-8a5b-e2be66036605')
185
186 def get_vn_obj_from_id(self, vn_id):
187 return self.quantum_h.get_vn_obj_from_id(vn_id)
188
189 def get_vn_list(self, **kwargs):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_from_id = <bound method QuantumHelper.get_vn_obj_from_id of <quantum_test.QuantumHelper object>>
vn_id = '5a05ade7-10d2-45f9-8a5b-e2be66036605'

/contrail-test/fixtures/quantum_test.py in get_vn_obj_from_id(self=<quantum_test.QuantumHelper object>, uuid='5a05ade7-10d2-45f9-8a5b-e2be66036605')
286 def get_vn_obj_from_id(self, uuid):
287 try:
288 return self.obj.show_network(network=uuid)
289 except CommonNetworkClientException as e:
290 self.logger.exception(
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.show_network = <bound method Client.show_network of <neutronclient.v2_0.client.Client object>>
network undefined
uuid = '5a05ade7-10d2-45f9-8a5b-e2be66036605'

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in show_network(self=<neutronclient.v2_0.client.Client object>, network='5a05ade7-10d2-45f9-8a5b-e2be66036605', **_params={})
820 def show_network(self, network, **_params):
821 """Fetches information of a certain network."""
822 return self.get(self.network_path % (network), params=_params)
823
824 def create_network(self, body=None):
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
self.network_path = '/networks/%s'
network = '5a05ade7-10d2-45f9-8a5b-e2be66036605'
params undefined
_params = {}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605', body=None, headers=None, params={})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605'
body = None
headers = None
params = {}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605', body=None, headers=None, params={})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605'
body = None
headers = None
params = {}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605', body=None, headers=None, params={})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmMJuDmaXz_mPIsUJLA9F4AESaQ5avc38KdH61w4...CLd0Htal63zHQkSt6k1F5gR_aHsA157ci47HbENu7g9bAwjPk'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmMJuDmaXz_mPIsUJLA9F4AESaQ5avc38KdH61w4...CLd0Htal63zHQkSt6k1F5gR_aHsA157ci47HbENu7g9bAwjPk'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmMJuDmaXz_mPIsUJLA9F4AESaQ5avc38KdH61w4...CLd0Htal63zHQkSt6k1F5gR_aHsA157ci47HbENu7g9bAwjPk'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmMJuDmaXz_mPIsUJLA9F4AESaQ5avc38KdH61w4...CLd0Htal63zHQkSt6k1F5gR_aHsA157ci47HbENu7g9bAwjPk'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmMJuDmaXz_mPIsUJLA9F4AESaQ5avc38KdH61w4...CLd0Htal63zHQkSt6k1F5gR_aHsA157ci47HbENu7g9bAwjPk'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7f5b93b38ac0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmMJuDmaXz_mPIsUJLA9F4AESaQ5avc38KdH61w4...CLd0Htal63zHQkSt6k1F5gR_aHsA157ci47HbENu7g9bAwjPk'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmMJuDmaXz_mPIsUJLA9F4AESaQ5avc38KdH61w4...CLd0Htal63zHQkSt6k1F5gR_aHsA157ci47HbENu7g9bAwjPk'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b93b383d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f5b93b383d0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b93b383d0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b93b383d0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/serial_scripts/rbac/test_rbac.py", line 50, in test_perms2_global_share
vn = self.create_vn(connections=u1_p1_conn, shared=True, verify=False)
File "/contrail-test/serial_scripts/rbac/base.py", line 216, in create_vn
vn_fixture = self.create_fixture(VNFixture, connections=connections,
File "/contrail-test/serial_scripts/rbac/base.py", line 354, in create_fixture
return self.useFixture(fixturecls(**kwargs))
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 450, in create
self._create_vn_api(self.vn_name, self.project_obj)
File "/contrail-test/fixtures/vn_test.py", line 427, in _create_vn_api
self.obj = self._orch_call('get_vn_obj_from_id', self.uuid)
File "/contrail-test/fixtures/vn_test.py", line 157, in _orch_call
return getattr(self.orchestrator, method)(*args, **kwargs)
File "/contrail-test/fixtures/openstack.py", line 187, in get_vn_obj_from_id
return self.quantum_h.get_vn_obj_from_id(vn_id)
File "/contrail-test/fixtures/quantum_test.py", line 288, in get_vn_obj_from_id
return self.obj.show_network(network=uuid)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 822, in show_network
return self.get(self.network_path % (network), params=_params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks/5a05ade7-10d2-45f9-8a5b-e2be66036605 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b93b383d0>: Failed to establish a new connection: [Errno 111] Connection refused'))

71.275 Log File
test_perms2_owner[ci_sanity,sanity,suite1]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:38:49 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<serial_scripts.rbac.test_rbac_basic.TestRbacBas...owner[ci_sanity,sanity,suite1] id=0x7f5b98cf7940>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestRbacBasic.test_perms2_owner>
self = <serial_scripts.rbac.test_rbac_basic.TestRbacBas...owner[ci_sanity,sanity,suite1] id=0x7f5b98cf7940>
args = ()
kwargs = {}

/contrail-test/serial_scripts/rbac/test_rbac_basic.py in test_perms2_owner(self=<serial_scripts.rbac.test_rbac_basic.TestRbacBas...owner[ci_sanity,sanity,suite1] id=0x7f5b98cf7940>)
223 ]
224 domain_rbac = self.create_rbac_acl(rules=vn_rules, parent_type='domain')
225 vn = self.create_vn(connections=u1_p1_conn, verify=False)
226 assert vn, 'VN creation failed'
227 vn2 = self.create_vn(connections=u1_p2_conn, verify=False)
vn undefined
self = <serial_scripts.rbac.test_rbac_basic.TestRbacBas...owner[ci_sanity,sanity,suite1] id=0x7f5b98cf7940>
self.create_vn = <bound method BaseRbac.create_vn of <serial_scri...wner[ci_sanity,sanity,suite1] id=0x7f5b98cf7940>>
connections undefined
u1_p1_conn = <common.connections.ContrailConnections object>
verify undefined

/contrail-test/serial_scripts/rbac/base.py in create_vn(self=<serial_scripts.rbac.test_rbac_basic.TestRbacBas...owner[ci_sanity,sanity,suite1] id=0x7f5b98cf7940>, connections=<common.connections.ContrailConnections object>, verify=False, option='contrail', **kwargs={})
214 def create_vn(self, connections=None, verify=True, option='contrail', **kwargs):
215 connections = connections or self.connections
216 vn_fixture = self.create_fixture(VNFixture, connections=connections,
217 option=option, **kwargs)
218 if vn_fixture and verify:
vn_fixture undefined
self = <serial_scripts.rbac.test_rbac_basic.TestRbacBas...owner[ci_sanity,sanity,suite1] id=0x7f5b98cf7940>
self.create_fixture = <bound method BaseRbac.create_fixture of <serial...wner[ci_sanity,sanity,suite1] id=0x7f5b98cf7940>>
global VNFixture = <class 'vn_test.VNFixture'>
connections = <common.connections.ContrailConnections object>
option = 'contrail'
kwargs = {}

/contrail-test/serial_scripts/rbac/base.py in create_fixture(self=<serial_scripts.rbac.test_rbac_basic.TestRbacBas...owner[ci_sanity,sanity,suite1] id=0x7f5b98cf7940>, fixturecls=<class 'vn_test.VNFixture'>, **kwargs={'connections': <common.connections.ContrailConnections object>, 'option': 'contrail'})
352 def create_fixture(self, fixturecls, **kwargs):
353 try:
354 return self.useFixture(fixturecls(**kwargs))
355 except (PermissionDenied, neutron_forbidden):
356 return None
self = <serial_scripts.rbac.test_rbac_basic.TestRbacBas...owner[ci_sanity,sanity,suite1] id=0x7f5b98cf7940>
self.useFixture = <bound method TestCase.useFixture of <serial_scr...wner[ci_sanity,sanity,suite1] id=0x7f5b98cf7940>>
fixturecls = <class 'vn_test.VNFixture'>
kwargs = {'connections': <common.connections.ContrailConnections object>, 'option': 'contrail'}

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<serial_scripts.rbac.test_rbac_basic.TestRbacBas...owner[ci_sanity,sanity,suite1] id=0x7f5b98cf7940>, fixture=<vn_test.VNFixture object>)
754 # Gather_details worked, so raise the exception setUp
755 # encountered.
756 reraise(*exc_info)
757 else:
758 self.addCleanup(fixture.cleanUp)
global reraise = <function reraise>
exc_info = (<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), <traceback object>)

/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py in reraise(exc_class=<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, exc_obj=ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), exc_tb=<traceback object>, _marker=<object object>)
13
14 def reraise(exc_class, exc_obj, exc_tb, _marker=object()):
15 """Re-raise an exception received from sys.exc_info() or similar."""
16 raise exc_obj.with_traceback(exc_tb)
17
exc_obj = ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))")
exc_obj.with_traceback = <built-in method with_traceback of ConnectFailure object>
exc_tb = <traceback object>

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<serial_scripts.rbac.test_rbac_basic.TestRbacBas...owner[ci_sanity,sanity,suite1] id=0x7f5b98cf7940>, fixture=<vn_test.VNFixture object>)
729 """
730 try:
731 fixture.setUp()
732 except MultipleExceptions as e:
733 if (fixtures is not None and
fixture = <vn_test.VNFixture object>
fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
448 self.webui.create_vn(self)
449 elif (self.option == 'contrail'):
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
self = <vn_test.VNFixture object>
self._create_vn_api = <bound method VNFixture._create_vn_api of <vn_test.VNFixture object>>
self.vn_name = 'ctest-TestRbacBasic-22729727-69603137'
self.project_obj = <vnc_api.gen.resource_client.Project object>

/contrail-test/fixtures/vn_test.py in _create_vn_api(self=<vn_test.VNFixture object>, vn_name='ctest-TestRbacBasic-22729727-69603137', project_obj=<vnc_api.gen.resource_client.Project object>)
425 self.logger.info('Permission denied to create/update VirtualNetwork')
426 raise
427 self.obj = self._orch_call('get_vn_obj_from_id', self.uuid)
428 if self.obj is None:
429 raise ValueError('could not find %s in orchestrator' % (self.vn_name))
self = <vn_test.VNFixture object>
self.obj = None
self._orch_call = <bound method VNFixture._orch_call of <vn_test.VNFixture object>>
self.uuid = '827aac82-c89e-4284-9159-65481b96fc69'

/contrail-test/fixtures/vn_test.py in _orch_call(self=<vn_test.VNFixture object>, method='get_vn_obj_from_id', *args=('827aac82-c89e-4284-9159-65481b96fc69',), **kwargs={})
155 def _orch_call(self, method, *args, **kwargs):
156 if self.orchestrator:
157 return getattr(self.orchestrator, method)(*args, **kwargs)
158 else:
159 return getattr(self.vnc_lib_fixture, method)(*args, **kwargs)
builtingetattr = <built-in function getattr>
self = <vn_test.VNFixture object>
self.orchestrator = <openstack.OpenstackOrchestrator object>
method = 'get_vn_obj_from_id'
args = ('827aac82-c89e-4284-9159-65481b96fc69',)
kwargs = {}

/contrail-test/fixtures/openstack.py in get_vn_obj_from_id(self=<openstack.OpenstackOrchestrator object>, vn_id='827aac82-c89e-4284-9159-65481b96fc69')
185
186 def get_vn_obj_from_id(self, vn_id):
187 return self.quantum_h.get_vn_obj_from_id(vn_id)
188
189 def get_vn_list(self, **kwargs):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_from_id = <bound method QuantumHelper.get_vn_obj_from_id of <quantum_test.QuantumHelper object>>
vn_id = '827aac82-c89e-4284-9159-65481b96fc69'

/contrail-test/fixtures/quantum_test.py in get_vn_obj_from_id(self=<quantum_test.QuantumHelper object>, uuid='827aac82-c89e-4284-9159-65481b96fc69')
286 def get_vn_obj_from_id(self, uuid):
287 try:
288 return self.obj.show_network(network=uuid)
289 except CommonNetworkClientException as e:
290 self.logger.exception(
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.show_network = <bound method Client.show_network of <neutronclient.v2_0.client.Client object>>
network undefined
uuid = '827aac82-c89e-4284-9159-65481b96fc69'

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in show_network(self=<neutronclient.v2_0.client.Client object>, network='827aac82-c89e-4284-9159-65481b96fc69', **_params={})
820 def show_network(self, network, **_params):
821 """Fetches information of a certain network."""
822 return self.get(self.network_path % (network), params=_params)
823
824 def create_network(self, body=None):
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
self.network_path = '/networks/%s'
network = '827aac82-c89e-4284-9159-65481b96fc69'
params undefined
_params = {}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks/827aac82-c89e-4284-9159-65481b96fc69', body=None, headers=None, params={})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks/827aac82-c89e-4284-9159-65481b96fc69'
body = None
headers = None
params = {}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks/827aac82-c89e-4284-9159-65481b96fc69', body=None, headers=None, params={})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks/827aac82-c89e-4284-9159-65481b96fc69'
body = None
headers = None
params = {}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69', body=None, headers=None, params={})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmNWnEEGPXvcjTqtE2gdIsrULPRoY-OWAdAOrOGd...p_vTssTs75_4B0a2OjBNtxVxQd3zc5YyG6SZP_FgI1bqaY0a4'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmNWnEEGPXvcjTqtE2gdIsrULPRoY-OWAdAOrOGd...p_vTssTs75_4B0a2OjBNtxVxQd3zc5YyG6SZP_FgI1bqaY0a4'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmNWnEEGPXvcjTqtE2gdIsrULPRoY-OWAdAOrOGd...p_vTssTs75_4B0a2OjBNtxVxQd3zc5YyG6SZP_FgI1bqaY0a4'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmNWnEEGPXvcjTqtE2gdIsrULPRoY-OWAdAOrOGd...p_vTssTs75_4B0a2OjBNtxVxQd3zc5YyG6SZP_FgI1bqaY0a4'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmNWnEEGPXvcjTqtE2gdIsrULPRoY-OWAdAOrOGd...p_vTssTs75_4B0a2OjBNtxVxQd3zc5YyG6SZP_FgI1bqaY0a4'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7f5b937f3a00>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmNWnEEGPXvcjTqtE2gdIsrULPRoY-OWAdAOrOGd...p_vTssTs75_4B0a2OjBNtxVxQd3zc5YyG6SZP_FgI1bqaY0a4'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmNWnEEGPXvcjTqtE2gdIsrULPRoY-OWAdAOrOGd...p_vTssTs75_4B0a2OjBNtxVxQd3zc5YyG6SZP_FgI1bqaY0a4'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b9377f070>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f5b9377f070>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b9377f070>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b9377f070>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/serial_scripts/rbac/test_rbac_basic.py", line 225, in test_perms2_owner
vn = self.create_vn(connections=u1_p1_conn, verify=False)
File "/contrail-test/serial_scripts/rbac/base.py", line 216, in create_vn
vn_fixture = self.create_fixture(VNFixture, connections=connections,
File "/contrail-test/serial_scripts/rbac/base.py", line 354, in create_fixture
return self.useFixture(fixturecls(**kwargs))
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 450, in create
self._create_vn_api(self.vn_name, self.project_obj)
File "/contrail-test/fixtures/vn_test.py", line 427, in _create_vn_api
self.obj = self._orch_call('get_vn_obj_from_id', self.uuid)
File "/contrail-test/fixtures/vn_test.py", line 157, in _orch_call
return getattr(self.orchestrator, method)(*args, **kwargs)
File "/contrail-test/fixtures/openstack.py", line 187, in get_vn_obj_from_id
return self.quantum_h.get_vn_obj_from_id(vn_id)
File "/contrail-test/fixtures/quantum_test.py", line 288, in get_vn_obj_from_id
return self.obj.show_network(network=uuid)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 822, in show_network
return self.get(self.network_path % (network), params=_params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks/827aac82-c89e-4284-9159-65481b96fc69 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b9377f070>: Failed to establish a new connection: [Errno 111] Connection refused'))

70.396 Log File
test_rbac_acl_different_roles[ci_sanity,sanity,suite1]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:39:58 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<serial_scripts.rbac.test_rbac_basic.TestRbacBas...roles[ci_sanity,sanity,suite1] id=0x7f5b98cf7a90>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestRbacBasic.test_rbac_acl_different_roles>
self = <serial_scripts.rbac.test_rbac_basic.TestRbacBas...roles[ci_sanity,sanity,suite1] id=0x7f5b98cf7a90>
args = ()
kwargs = {}

/contrail-test/serial_scripts/rbac/test_rbac_basic.py in test_rbac_acl_different_roles(self=<serial_scripts.rbac.test_rbac_basic.TestRbacBas...roles[ci_sanity,sanity,suite1] id=0x7f5b98cf7a90>)
45 ]
46 proj_rbac = self.create_rbac_acl(rules=vn_rules)
47 vn = self.create_vn(connections=user1_conn)
48 assert vn, 'VN creation failed'
49 assert not self.create_st(connections=user1_conn), 'ST creation should have failed'
vn undefined
self = <serial_scripts.rbac.test_rbac_basic.TestRbacBas...roles[ci_sanity,sanity,suite1] id=0x7f5b98cf7a90>
self.create_vn = <bound method BaseRbac.create_vn of <serial_scri...oles[ci_sanity,sanity,suite1] id=0x7f5b98cf7a90>>
connections undefined
user1_conn = <common.connections.ContrailConnections object>

/contrail-test/serial_scripts/rbac/base.py in create_vn(self=<serial_scripts.rbac.test_rbac_basic.TestRbacBas...roles[ci_sanity,sanity,suite1] id=0x7f5b98cf7a90>, connections=<common.connections.ContrailConnections object>, verify=True, option='contrail', **kwargs={})
214 def create_vn(self, connections=None, verify=True, option='contrail', **kwargs):
215 connections = connections or self.connections
216 vn_fixture = self.create_fixture(VNFixture, connections=connections,
217 option=option, **kwargs)
218 if vn_fixture and verify:
vn_fixture undefined
self = <serial_scripts.rbac.test_rbac_basic.TestRbacBas...roles[ci_sanity,sanity,suite1] id=0x7f5b98cf7a90>
self.create_fixture = <bound method BaseRbac.create_fixture of <serial...oles[ci_sanity,sanity,suite1] id=0x7f5b98cf7a90>>
global VNFixture = <class 'vn_test.VNFixture'>
connections = <common.connections.ContrailConnections object>
option = 'contrail'
kwargs = {}

/contrail-test/serial_scripts/rbac/base.py in create_fixture(self=<serial_scripts.rbac.test_rbac_basic.TestRbacBas...roles[ci_sanity,sanity,suite1] id=0x7f5b98cf7a90>, fixturecls=<class 'vn_test.VNFixture'>, **kwargs={'connections': <common.connections.ContrailConnections object>, 'option': 'contrail'})
352 def create_fixture(self, fixturecls, **kwargs):
353 try:
354 return self.useFixture(fixturecls(**kwargs))
355 except (PermissionDenied, neutron_forbidden):
356 return None
self = <serial_scripts.rbac.test_rbac_basic.TestRbacBas...roles[ci_sanity,sanity,suite1] id=0x7f5b98cf7a90>
self.useFixture = <bound method TestCase.useFixture of <serial_scr...oles[ci_sanity,sanity,suite1] id=0x7f5b98cf7a90>>
fixturecls = <class 'vn_test.VNFixture'>
kwargs = {'connections': <common.connections.ContrailConnections object>, 'option': 'contrail'}

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<serial_scripts.rbac.test_rbac_basic.TestRbacBas...roles[ci_sanity,sanity,suite1] id=0x7f5b98cf7a90>, fixture=<vn_test.VNFixture object>)
754 # Gather_details worked, so raise the exception setUp
755 # encountered.
756 reraise(*exc_info)
757 else:
758 self.addCleanup(fixture.cleanUp)
global reraise = <function reraise>
exc_info = (<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), <traceback object>)

/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py in reraise(exc_class=<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, exc_obj=ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), exc_tb=<traceback object>, _marker=<object object>)
13
14 def reraise(exc_class, exc_obj, exc_tb, _marker=object()):
15 """Re-raise an exception received from sys.exc_info() or similar."""
16 raise exc_obj.with_traceback(exc_tb)
17
exc_obj = ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))")
exc_obj.with_traceback = <built-in method with_traceback of ConnectFailure object>
exc_tb = <traceback object>

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<serial_scripts.rbac.test_rbac_basic.TestRbacBas...roles[ci_sanity,sanity,suite1] id=0x7f5b98cf7a90>, fixture=<vn_test.VNFixture object>)
729 """
730 try:
731 fixture.setUp()
732 except MultipleExceptions as e:
733 if (fixtures is not None and
fixture = <vn_test.VNFixture object>
fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
448 self.webui.create_vn(self)
449 elif (self.option == 'contrail'):
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
self = <vn_test.VNFixture object>
self._create_vn_api = <bound method VNFixture._create_vn_api of <vn_test.VNFixture object>>
self.vn_name = 'ctest-TestRbacBasic-20198336-66630427'
self.project_obj = <vnc_api.gen.resource_client.Project object>

/contrail-test/fixtures/vn_test.py in _create_vn_api(self=<vn_test.VNFixture object>, vn_name='ctest-TestRbacBasic-20198336-66630427', project_obj=<vnc_api.gen.resource_client.Project object>)
425 self.logger.info('Permission denied to create/update VirtualNetwork')
426 raise
427 self.obj = self._orch_call('get_vn_obj_from_id', self.uuid)
428 if self.obj is None:
429 raise ValueError('could not find %s in orchestrator' % (self.vn_name))
self = <vn_test.VNFixture object>
self.obj = None
self._orch_call = <bound method VNFixture._orch_call of <vn_test.VNFixture object>>
self.uuid = '6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5'

/contrail-test/fixtures/vn_test.py in _orch_call(self=<vn_test.VNFixture object>, method='get_vn_obj_from_id', *args=('6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5',), **kwargs={})
155 def _orch_call(self, method, *args, **kwargs):
156 if self.orchestrator:
157 return getattr(self.orchestrator, method)(*args, **kwargs)
158 else:
159 return getattr(self.vnc_lib_fixture, method)(*args, **kwargs)
builtingetattr = <built-in function getattr>
self = <vn_test.VNFixture object>
self.orchestrator = <openstack.OpenstackOrchestrator object>
method = 'get_vn_obj_from_id'
args = ('6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5',)
kwargs = {}

/contrail-test/fixtures/openstack.py in get_vn_obj_from_id(self=<openstack.OpenstackOrchestrator object>, vn_id='6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5')
185
186 def get_vn_obj_from_id(self, vn_id):
187 return self.quantum_h.get_vn_obj_from_id(vn_id)
188
189 def get_vn_list(self, **kwargs):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_from_id = <bound method QuantumHelper.get_vn_obj_from_id of <quantum_test.QuantumHelper object>>
vn_id = '6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5'

/contrail-test/fixtures/quantum_test.py in get_vn_obj_from_id(self=<quantum_test.QuantumHelper object>, uuid='6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5')
286 def get_vn_obj_from_id(self, uuid):
287 try:
288 return self.obj.show_network(network=uuid)
289 except CommonNetworkClientException as e:
290 self.logger.exception(
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.show_network = <bound method Client.show_network of <neutronclient.v2_0.client.Client object>>
network undefined
uuid = '6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5'

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in show_network(self=<neutronclient.v2_0.client.Client object>, network='6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5', **_params={})
820 def show_network(self, network, **_params):
821 """Fetches information of a certain network."""
822 return self.get(self.network_path % (network), params=_params)
823
824 def create_network(self, body=None):
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
self.network_path = '/networks/%s'
network = '6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5'
params undefined
_params = {}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5', body=None, headers=None, params={})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5'
body = None
headers = None
params = {}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5', body=None, headers=None, params={})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5'
body = None
headers = None
params = {}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5', body=None, headers=None, params={})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmObdb5jGE2R0kPICaJsiPNQQWf4SNNbbYLCn39h...-K3dwxHLvgIBG_7i3B_-7C0jyKKKN-DuRK-RLcvoYJr0BpQm4'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmObdb5jGE2R0kPICaJsiPNQQWf4SNNbbYLCn39h...-K3dwxHLvgIBG_7i3B_-7C0jyKKKN-DuRK-RLcvoYJr0BpQm4'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmObdb5jGE2R0kPICaJsiPNQQWf4SNNbbYLCn39h...-K3dwxHLvgIBG_7i3B_-7C0jyKKKN-DuRK-RLcvoYJr0BpQm4'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmObdb5jGE2R0kPICaJsiPNQQWf4SNNbbYLCn39h...-K3dwxHLvgIBG_7i3B_-7C0jyKKKN-DuRK-RLcvoYJr0BpQm4'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmObdb5jGE2R0kPICaJsiPNQQWf4SNNbbYLCn39h...-K3dwxHLvgIBG_7i3B_-7C0jyKKKN-DuRK-RLcvoYJr0BpQm4'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7f5b936ad340>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmObdb5jGE2R0kPICaJsiPNQQWf4SNNbbYLCn39h...-K3dwxHLvgIBG_7i3B_-7C0jyKKKN-DuRK-RLcvoYJr0BpQm4'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmObdb5jGE2R0kPICaJsiPNQQWf4SNNbbYLCn39h...-K3dwxHLvgIBG_7i3B_-7C0jyKKKN-DuRK-RLcvoYJr0BpQm4'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b93636400>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f5b93636400>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b93636400>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b93636400>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/serial_scripts/rbac/test_rbac_basic.py", line 47, in test_rbac_acl_different_roles
vn = self.create_vn(connections=user1_conn)
File "/contrail-test/serial_scripts/rbac/base.py", line 216, in create_vn
vn_fixture = self.create_fixture(VNFixture, connections=connections,
File "/contrail-test/serial_scripts/rbac/base.py", line 354, in create_fixture
return self.useFixture(fixturecls(**kwargs))
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 450, in create
self._create_vn_api(self.vn_name, self.project_obj)
File "/contrail-test/fixtures/vn_test.py", line 427, in _create_vn_api
self.obj = self._orch_call('get_vn_obj_from_id', self.uuid)
File "/contrail-test/fixtures/vn_test.py", line 157, in _orch_call
return getattr(self.orchestrator, method)(*args, **kwargs)
File "/contrail-test/fixtures/openstack.py", line 187, in get_vn_obj_from_id
return self.quantum_h.get_vn_obj_from_id(vn_id)
File "/contrail-test/fixtures/quantum_test.py", line 288, in get_vn_obj_from_id
return self.obj.show_network(network=uuid)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 822, in show_network
return self.get(self.network_path % (network), params=_params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks/6c612d0a-2c8d-49b1-bf03-2d0cd7028ba5 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5b93636400>: Failed to establish a new connection: [Errno 111] Connection refused'))

3.687 Log File
test_contrail_status[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity]Success0.444
test_communication_between_two_sriov_vm[ci_sanity]SkippedSkipped as test is not supported if sriov_cluster=False 0.003
test_communication_between_two_sriov_vm_with_large_mtu[ci_sanity]SkippedSkipped as test is not supported if sriov_cluster=False 0.002
test_virtual_function_exhaustion_and_resue[ci_sanity]SkippedSkipped as test is not supported if sriov_cluster=False 0.002
Properties »

Back to top

TestCase

NameStatusTypeTime(s)LogFile
test_contrail_status[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity]Success0.556
test_verify_object_logs[ci_sanity,dev_sanity_dpdk,sanity,suite1]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:35:09 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.analytics.test_analytics_basic.Analytic...dev_sanity_dpdk,sanity,suite1] id=0x7fc32c1fa310>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function AnalyticsBasicTestSanity.test_verify_object_logs>
self = <scripts.analytics.test_analytics_basic.Analytic...dev_sanity_dpdk,sanity,suite1] id=0x7fc32c1fa310>
args = ()
kwargs = {}

/contrail-test/scripts/analytics/test_analytics_basic.py in test_verify_object_logs(self=<scripts.analytics.test_analytics_basic.Analytic...dev_sanity_dpdk,sanity,suite1] id=0x7fc32c1fa310>)
28 vn_subnets=[get_random_cidr()]
29 start_time=str(OpServerUtils.utc_timestamp_usec())
30 vn_fixture= self.useFixture(VNFixture(connections=self.connections,
31 vn_name=vn_name, subnets=vn_subnets))
32 vn_fixture.verify_on_setup()
vn_fixture undefined
self = <scripts.analytics.test_analytics_basic.Analytic...dev_sanity_dpdk,sanity,suite1] id=0x7fc32c1fa310>
self.useFixture = <bound method TestCase.useFixture of <scripts.an...ev_sanity_dpdk,sanity,suite1] id=0x7fc32c1fa310>>
global VNFixture = <class 'vn_test.VNFixture'>
connections undefined
self.connections = <common.connections.ContrailConnections object>
vn_name = 'ctest-vn22-52393407'
subnets undefined
vn_subnets = ['88.48.217.64/26']

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<scripts.analytics.test_analytics_basic.Analytic...dev_sanity_dpdk,sanity,suite1] id=0x7fc32c1fa310>, fixture=<vn_test.VNFixture object>)
754 # Gather_details worked, so raise the exception setUp
755 # encountered.
756 reraise(*exc_info)
757 else:
758 self.addCleanup(fixture.cleanUp)
global reraise = <function reraise>
exc_info = (<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), <traceback object>)

/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py in reraise(exc_class=<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, exc_obj=ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), exc_tb=<traceback object>, _marker=<object object>)
13
14 def reraise(exc_class, exc_obj, exc_tb, _marker=object()):
15 """Re-raise an exception received from sys.exc_info() or similar."""
16 raise exc_obj.with_traceback(exc_tb)
17
exc_obj = ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))")
exc_obj.with_traceback = <built-in method with_traceback of ConnectFailure object>
exc_tb = <traceback object>

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<scripts.analytics.test_analytics_basic.Analytic...dev_sanity_dpdk,sanity,suite1] id=0x7fc32c1fa310>, fixture=<vn_test.VNFixture object>)
729 """
730 try:
731 fixture.setUp()
732 except MultipleExceptions as e:
733 if (fixtures is not None and
fixture = <vn_test.VNFixture object>
fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn22-52393407'
project_id undefined
self.project_id = 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn22-52393407', option='orch', **kwargs={'project_id': 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn22-52393407'
kwargs = {'project_id': 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn22-52393407', project_id='de193033-47cf-4ffc-b2ae-cfd4f94f2434', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn22-52393407', 'router:external': True, 'tenant_id': 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn22-52393407', 'router:external': True, 'tenant_id': 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn22-52393407', 'router:external': True, 'tenant_id': 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn22-52393407', 'router:external': True, 'tenant_id': 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn22-52393407', 'router:external': True, 'tenant_id': 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn22-52393407', 'router:external': True, 'tenant_id': 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn22-52393407', 'router:external': True, 'tenant_id': 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn22-52393407', 'router:external': True, 'tenant_id': 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn22-52393407', 'router:external': True, 'tenant_id': 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn22-52393407', 'router:external': True, 'tenant_id': 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn22-52393407', 'router:external': True, 'tenant_id': 'de193033-47cf-4ffc-b2ae-cfd4f94f2434'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae...4&router%3Aexternal=True&name=ctest-vn22-52393407', body=None, headers=None, params={'name': b'ctest-vn22-52393407', 'router:external': True, 'tenant_id': b'de193033-47cf-4ffc-b2ae-cfd4f94f2434'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae...4&router%3Aexternal=True&name=ctest-vn22-52393407'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae...4&router%3Aexternal=True&name=ctest-vn22-52393407', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae...4&router%3Aexternal=True&name=ctest-vn22-52393407'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae...4&router%3Aexternal=True&name=ctest-vn22-52393407', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmJ8Jmgkav0s7Tqi4zrS52GmRKxOAE9RSyC9tkKU...Rq1S1nNrXYcVcaCelpQsWz4ub0iWrARPWgo7nqchFILeDyS_c'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae...4&router%3Aexternal=True&name=ctest-vn22-52393407', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmJ8Jmgkav0s7Tqi4zrS52GmRKxOAE9RSyC9tkKU...Rq1S1nNrXYcVcaCelpQsWz4ub0iWrARPWgo7nqchFILeDyS_c'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae...4&router%3Aexternal=True&name=ctest-vn22-52393407', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmJ8Jmgkav0s7Tqi4zrS52GmRKxOAE9RSyC9tkKU...Rq1S1nNrXYcVcaCelpQsWz4ub0iWrARPWgo7nqchFILeDyS_c'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae...4&router%3Aexternal=True&name=ctest-vn22-52393407'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmJ8Jmgkav0s7Tqi4zrS52GmRKxOAE9RSyC9tkKU...Rq1S1nNrXYcVcaCelpQsWz4ub0iWrARPWgo7nqchFILeDyS_c'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=d...4&router%3Aexternal=True&name=ctest-vn22-52393407', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmJ8Jmgkav0s7Tqi4zrS52GmRKxOAE9RSyC9tkKU...Rq1S1nNrXYcVcaCelpQsWz4ub0iWrARPWgo7nqchFILeDyS_c'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc32b7f02b0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmJ8Jmgkav0s7Tqi4zrS52GmRKxOAE9RSyC9tkKU...Rq1S1nNrXYcVcaCelpQsWz4ub0iWrARPWgo7nqchFILeDyS_c'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=d...4&router%3Aexternal=True&name=ctest-vn22-52393407', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmJ8Jmgkav0s7Tqi4zrS52GmRKxOAE9RSyC9tkKU...Rq1S1nNrXYcVcaCelpQsWz4ub0iWrARPWgo7nqchFILeDyS_c'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae-cfd4f94f2434&router%3Aexternal=True&name=ctest-vn22-52393407: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae-cfd4f94f2434&router%3Aexternal=True&name=ctest-vn22-52393407 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32b851520>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc32b851520>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae-cfd4f94f2434&router%3Aexternal=True&name=ctest-vn22-52393407 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32b851520>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae-cfd4f94f2434&router%3Aexternal=True&name=ctest-vn22-52393407 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32b851520>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/analytics/test_analytics_basic.py", line 30, in test_verify_object_logs
vn_fixture= self.useFixture(VNFixture(connections=self.connections,
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae-cfd4f94f2434&router%3Aexternal=True&name=ctest-vn22-52393407: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=de193033-47cf-4ffc-b2ae-cfd4f94f2434&router%3Aexternal=True&name=ctest-vn22-52393407 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32b851520>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.782 Log File
test_db_manage[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity]Success3.688
test_analytics_docs[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity]Success0.289
test_config_docs[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity]Success0.335
test_floating_ip[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity,quick_sanity,sanity,suite1,vrouter_gw]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:35:19 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.floatingip.test_floatingip_basic.Floati...nity,sanity,suite1,vrouter_gw] id=0x7fc32c02dc40>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function FloatingipBasicTestSanity.test_floating_ip>
self = <scripts.floatingip.test_floatingip_basic.Floati...nity,sanity,suite1,vrouter_gw] id=0x7fc32c02dc40>
args = ()
kwargs = {}

/contrail-test/scripts/floatingip/test_floatingip_basic.py in test_floating_ip(self=<scripts.floatingip.test_floatingip_basic.Floati...nity,sanity,suite1,vrouter_gw] id=0x7fc32c02dc40>)
48 self.get_two_different_compute_hosts()
49
50 fvn_fixture = self.useFixture(
51 VNFixture(
52 project_name=self.inputs.project_name,
fvn_fixture undefined
self = <scripts.floatingip.test_floatingip_basic.Floati...nity,sanity,suite1,vrouter_gw] id=0x7fc32c02dc40>
self.useFixture = <bound method TestCase.useFixture of <scripts.fl...ity,sanity,suite1,vrouter_gw] id=0x7fc32c02dc40>>
global VNFixture = <class 'vn_test.VNFixture'>
project_name undefined
self.inputs = <common.contrail_test_init.ContrailTestInit object>
self.inputs.project_name = 'ctest-FloatingipBasicTestSanity-85990900'
connections undefined
self.connections = <common.connections.ContrailConnections object>
inputs undefined
vn_name undefined
fvn_name = 'ctest-fvn-58508128'
subnets undefined
fvn_subnets = ['47.246.194.192/26']

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<scripts.floatingip.test_floatingip_basic.Floati...nity,sanity,suite1,vrouter_gw] id=0x7fc32c02dc40>, fixture=<vn_test.VNFixture object>)
754 # Gather_details worked, so raise the exception setUp
755 # encountered.
756 reraise(*exc_info)
757 else:
758 self.addCleanup(fixture.cleanUp)
global reraise = <function reraise>
exc_info = (<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), <traceback object>)

/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py in reraise(exc_class=<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, exc_obj=ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), exc_tb=<traceback object>, _marker=<object object>)
13
14 def reraise(exc_class, exc_obj, exc_tb, _marker=object()):
15 """Re-raise an exception received from sys.exc_info() or similar."""
16 raise exc_obj.with_traceback(exc_tb)
17
exc_obj = ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))")
exc_obj.with_traceback = <built-in method with_traceback of ConnectFailure object>
exc_tb = <traceback object>

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<scripts.floatingip.test_floatingip_basic.Floati...nity,sanity,suite1,vrouter_gw] id=0x7fc32c02dc40>, fixture=<vn_test.VNFixture object>)
729 """
730 try:
731 fixture.setUp()
732 except MultipleExceptions as e:
733 if (fixtures is not None and
fixture = <vn_test.VNFixture object>
fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-fvn-58508128'
project_id undefined
self.project_id = 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-fvn-58508128', option='orch', **kwargs={'project_id': 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-fvn-58508128'
kwargs = {'project_id': 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-fvn-58508128', project_id='a33dfdf1-cff6-4b6e-a5c0-04bd874641f5', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-fvn-58508128', 'router:external': True, 'tenant_id': 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-fvn-58508128', 'router:external': True, 'tenant_id': 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-fvn-58508128', 'router:external': True, 'tenant_id': 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-fvn-58508128', 'router:external': True, 'tenant_id': 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-fvn-58508128', 'router:external': True, 'tenant_id': 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-fvn-58508128', 'router:external': True, 'tenant_id': 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-fvn-58508128', 'router:external': True, 'tenant_id': 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-fvn-58508128', 'router:external': True, 'tenant_id': 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-fvn-58508128', 'router:external': True, 'tenant_id': 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-fvn-58508128', 'router:external': True, 'tenant_id': 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-fvn-58508128', 'router:external': True, 'tenant_id': 'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0...f5&router%3Aexternal=True&name=ctest-fvn-58508128', body=None, headers=None, params={'name': b'ctest-fvn-58508128', 'router:external': True, 'tenant_id': b'a33dfdf1-cff6-4b6e-a5c0-04bd874641f5'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0...f5&router%3Aexternal=True&name=ctest-fvn-58508128'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0...f5&router%3Aexternal=True&name=ctest-fvn-58508128', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0...f5&router%3Aexternal=True&name=ctest-fvn-58508128'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0...f5&router%3Aexternal=True&name=ctest-fvn-58508128', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmKE0FTfRPDwNoV1iPuU--U6twsUC2nf0YEdhPCE...DlsMAsx8fLJKzDa6JQLCarRamYANtPpCrc5GKLyr7RRTQdTnw'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0...f5&router%3Aexternal=True&name=ctest-fvn-58508128', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmKE0FTfRPDwNoV1iPuU--U6twsUC2nf0YEdhPCE...DlsMAsx8fLJKzDa6JQLCarRamYANtPpCrc5GKLyr7RRTQdTnw'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0...f5&router%3Aexternal=True&name=ctest-fvn-58508128', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmKE0FTfRPDwNoV1iPuU--U6twsUC2nf0YEdhPCE...DlsMAsx8fLJKzDa6JQLCarRamYANtPpCrc5GKLyr7RRTQdTnw'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0...f5&router%3Aexternal=True&name=ctest-fvn-58508128'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmKE0FTfRPDwNoV1iPuU--U6twsUC2nf0YEdhPCE...DlsMAsx8fLJKzDa6JQLCarRamYANtPpCrc5GKLyr7RRTQdTnw'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=a...f5&router%3Aexternal=True&name=ctest-fvn-58508128', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmKE0FTfRPDwNoV1iPuU--U6twsUC2nf0YEdhPCE...DlsMAsx8fLJKzDa6JQLCarRamYANtPpCrc5GKLyr7RRTQdTnw'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc32a589a00>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmKE0FTfRPDwNoV1iPuU--U6twsUC2nf0YEdhPCE...DlsMAsx8fLJKzDa6JQLCarRamYANtPpCrc5GKLyr7RRTQdTnw'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=a...f5&router%3Aexternal=True&name=ctest-fvn-58508128', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmKE0FTfRPDwNoV1iPuU--U6twsUC2nf0YEdhPCE...DlsMAsx8fLJKzDa6JQLCarRamYANtPpCrc5GKLyr7RRTQdTnw'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0-04bd874641f5&router%3Aexternal=True&name=ctest-fvn-58508128: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0-04bd874641f5&router%3Aexternal=True&name=ctest-fvn-58508128 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a589460>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc32a589460>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0-04bd874641f5&router%3Aexternal=True&name=ctest-fvn-58508128 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a589460>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0-04bd874641f5&router%3Aexternal=True&name=ctest-fvn-58508128 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a589460>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/floatingip/test_floatingip_basic.py", line 50, in test_floating_ip
fvn_fixture = self.useFixture(
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0-04bd874641f5&router%3Aexternal=True&name=ctest-fvn-58508128: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a33dfdf1-cff6-4b6e-a5c0-04bd874641f5&router%3Aexternal=True&name=ctest-fvn-58508128 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a589460>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.782 Log File
test_heat_stacks_list[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: HTTPException
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:36:22 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.heat.test_heat.TestHeat.test_heat_stack..._kolla_ocata_sanity,ci_sanity] id=0x7fc32e0b3d30>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestHeat.test_heat_stacks_list>
self = <scripts.heat.test_heat.TestHeat.test_heat_stack..._kolla_ocata_sanity,ci_sanity] id=0x7fc32e0b3d30>
args = ()
kwargs = {}

/contrail-test/scripts/heat/test_heat.py in test_heat_stacks_list(self=<scripts.heat.test_heat.TestHeat.test_heat_stack..._kolla_ocata_sanity,ci_sanity] id=0x7fc32e0b3d30>)
39 self.stacks = self.useFixture(
40 HeatFixture(connections=self.connections))
41 stacks_list = self.stacks.list_stacks()
42 self.logger.info(
43 'The following are the stacks currently : %s' % stacks_list)
stacks_list = []
self = <scripts.heat.test_heat.TestHeat.test_heat_stack..._kolla_ocata_sanity,ci_sanity] id=0x7fc32e0b3d30>
self.stacks = <heat_test.HeatFixture object>
self.stacks.list_stacks = <bound method HeatFixture.list_stacks of <heat_test.HeatFixture object>>

/contrail-test/fixtures/heat_test.py in list_stacks(self=<heat_test.HeatFixture object>)
69 def list_stacks(self):
70 stack_list = []
71 for i in self.obj.stacks.list():
72 stack_list.append(i)
73 return stack_list
i undefined
self = <heat_test.HeatFixture object>
self.obj = <heatclient.v1.client.Client object>
self.obj.stacks = <heatclient.v1.stacks.StackManager object>
self.obj.stacks.list = <bound method StackManager.list of <heatclient.v1.stacks.StackManager object>>

/usr/local/lib/python3.9/site-packages/heatclient/v1/stacks.py in paginate(params={})
134 current_limit = int(params.get('limit') or 0)
135 url = '/stacks?%s' % parse.urlencode(params, True)
136 stacks = self._list(url, 'stacks')
137 for stack in stacks:
138 yield stack
stacks undefined
self = <heatclient.v1.stacks.StackManager object>
self._list = <bound method BaseManager._list of <heatclient.v1.stacks.StackManager object>>
url = '/stacks?'

/usr/local/lib/python3.9/site-packages/heatclient/common/base.py in _list(self=<heatclient.v1.stacks.StackManager object>, url='/stacks?', response_key='stacks', obj_class=None, json=None)
112 body = self.client.post(url, json=json).json()
113 else:
114 body = self.client.get(url).json()
115
116 if obj_class is None:
body undefined
self = <heatclient.v1.stacks.StackManager object>
self.client = <heatclient.common.http.HTTPClient object>
self.client.get = <bound method HTTPClient.get of <heatclient.common.http.HTTPClient object>>
url = '/stacks?'
).json undefined

/usr/local/lib/python3.9/site-packages/heatclient/common/http.py in get(self=<heatclient.common.http.HTTPClient object>, url='/stacks?', **kwargs={})
287
288 def get(self, url, **kwargs):
289 return self.client_request("GET", url, **kwargs)
290
291 def post(self, url, **kwargs):
self = <heatclient.common.http.HTTPClient object>
self.client_request = <bound method HTTPClient.client_request of <heatclient.common.http.HTTPClient object>>
url = '/stacks?'
kwargs = {}

/usr/local/lib/python3.9/site-packages/heatclient/common/http.py in client_request(self=<heatclient.common.http.HTTPClient object>, method='GET', url='/stacks?', **kwargs={})
280
281 def client_request(self, method, url, **kwargs):
282 resp, body = self.json_request(method, url, **kwargs)
283 return resp
284
resp undefined
body undefined
self = <heatclient.common.http.HTTPClient object>
self.json_request = <bound method HTTPClient.json_request of <heatclient.common.http.HTTPClient object>>
method = 'GET'
url = '/stacks?'
kwargs = {}

/usr/local/lib/python3.9/site-packages/heatclient/common/http.py in json_request(self=<heatclient.common.http.HTTPClient object>, method='GET', url='/stacks?', **kwargs={'headers': {'Accept': 'application/json', 'Content-Type': 'application/json'}})
269 kwargs['data'] = jsonutils.dumps(kwargs['data'])
270
271 resp = self._http_request(url, method, **kwargs)
272 body = utils.get_response_body(resp)
273 return resp, body
resp undefined
self = <heatclient.common.http.HTTPClient object>
self._http_request = <bound method HTTPClient._http_request of <heatclient.common.http.HTTPClient object>>
url = '/stacks?'
method = 'GET'
kwargs = {'headers': {'Accept': 'application/json', 'Content-Type': 'application/json'}}

/usr/local/lib/python3.9/site-packages/heatclient/common/http.py in _http_request(self=<heatclient.common.http.HTTPClient object>, url='http://10.0.0.141:8004/v1/b764a4982183416a9f5c96d791cab223/stacks?', method='GET', **kwargs={'headers': {'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'python-heatclient', 'X-Auth-Token': 'gAAAAABpzmKJtTNjxqscD9pSHSGUmAf_NEB3kI1t7EChdOnI...zFwE4Fw30BfK6_wVYV-DmduaIuhPxBSn0P5ap5v8Vsfh0VSKI'}})
232 % resp.content)
233 elif 400 <= resp.status_code < 600:
234 raise exc.from_response(resp)
235 elif resp.status_code in (301, 302, 305):
236 # Redirected. Reissue the request to the new location,
global exc = <module 'heatclient.exc' from '/usr/local/lib/python3.9/site-packages/heatclient/exc.py'>
exc.from_response = <function from_response>
resp = <Response [504]>
HTTPException: ERROR: b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>504 Gateway Timeout</title>\n</head><body>\n<h1>Gateway Timeout</h1>\n<p>The gateway did not receive a timely response\nfrom the upstream server or application.</p>\n</body></html>\n'
__cause__ = None
__class__ = <class 'heatclient.exc.HTTPException'>
__context__ = None
__delattr__ = <method-wrapper '__delattr__' of HTTPException object>
__dict__ = {'code': 504, 'error': {'error': {'message': b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//...eam server or application.</p>\n</body></html>\n'}}, 'message': b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//...eam server or application.</p>\n</body></html>\n'}
__dir__ = <built-in method __dir__ of HTTPException object>
__doc__ = 'Base exception for all HTTP-derived exceptions.'
__eq__ = <method-wrapper '__eq__' of HTTPException object>
__format__ = <built-in method __format__ of HTTPException object>
__ge__ = <method-wrapper '__ge__' of HTTPException object>
__getattribute__ = <method-wrapper '__getattribute__' of HTTPException object>
__gt__ = <method-wrapper '__gt__' of HTTPException object>
__hash__ = <method-wrapper '__hash__' of HTTPException object>
__init__ = <bound method HTTPException.__init__ of HTTPExce...ver or application.</p>\n</body></html>\n', 504)>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of HTTPException object>
__lt__ = <method-wrapper '__lt__' of HTTPException object>
__module__ = 'heatclient.exc'
__ne__ = <method-wrapper '__ne__' of HTTPException object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of HTTPException object>
__reduce_ex__ = <built-in method __reduce_ex__ of HTTPException object>
__repr__ = <method-wrapper '__repr__' of HTTPException object>
__setattr__ = <method-wrapper '__setattr__' of HTTPException object>
__setstate__ = <built-in method __setstate__ of HTTPException object>
__sizeof__ = <built-in method __sizeof__ of HTTPException object>
__str__ = <bound method HTTPException.__str__ of HTTPExcep...ver or application.</p>\n</body></html>\n', 504)>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = (b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//...eam server or application.</p>\n</body></html>\n', 504)
code = 504
error = {'error': {'message': b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//...eam server or application.</p>\n</body></html>\n'}}
message = b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//...eam server or application.</p>\n</body></html>\n'
with_traceback = <built-in method with_traceback of HTTPException object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/heat/test_heat.py", line 41, in test_heat_stacks_list
stacks_list = self.stacks.list_stacks()
File "/contrail-test/fixtures/heat_test.py", line 71, in list_stacks
for i in self.obj.stacks.list():
File "/usr/local/lib/python3.9/site-packages/heatclient/v1/stacks.py", line 136, in paginate
stacks = self._list(url, 'stacks')
File "/usr/local/lib/python3.9/site-packages/heatclient/common/base.py", line 114, in _list
body = self.client.get(url).json()
File "/usr/local/lib/python3.9/site-packages/heatclient/common/http.py", line 289, in get
return self.client_request("GET", url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/heatclient/common/http.py", line 282, in client_request
resp, body = self.json_request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/heatclient/common/http.py", line 271, in json_request
resp = self._http_request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/heatclient/common/http.py", line 234, in _http_request
raise exc.from_response(resp)
heatclient.exc.HTTPException: ERROR: b'<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>504 Gateway Timeout</title>\n</head><body>\n<h1>Gateway Timeout</h1>\n<p>The gateway did not receive a timely response\nfrom the upstream server or application.</p>\n</body></html>\n'

60.352 Log File
test_router_crud[ci_sanity,dev_sanity_dpdk,sanity]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc32a3378b0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/security-groups (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a3378b0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/security-groups (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a3378b0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/scripts/neutron/test_crud.py", line 24, in setUp
self.create_security_group(get_random_name('admin-sg1'),
File "/contrail-test/common/base.py", line 667, in create_security_group
secgrp_fixture = self.useFixture(SecurityGroupFixture(
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/security_group.py", line 49, in setUp
self.create()
File "/contrail-test/fixtures/security_group.py", line 62, in create
self.secgrp_id = self.orch.create_security_group(
File "/contrail-test/fixtures/openstack.py", line 259, in create_security_group
sg = self.quantum_h.create_security_group(sg_name)
File "/contrail-test/fixtures/quantum_test.py", line 197, in create_security_group
sg_resp = self.obj.create_security_group(
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 983, in create_security_group
return self.post(self.security_groups_path, body=body)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 358, in post
return self.do_request("POST", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/security-groups: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/security-groups (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a3378b0>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.015 Log File
test_ports_bindings[ci_sanity,dev_sanity_dpdk,sanity]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:36:29 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7fc32bab10a0>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestPorts.test_ports_bindings>
self = <scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7fc32bab10a0>
args = ()
kwargs = {}

/contrail-test/scripts/neutron/test_ports.py in test_ports_bindings(self=<scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7fc32bab10a0>)
1201 '''
1202 bind_dict = {'foo': 'bar'}
1203 vn = self.create_vn()
1204 port = self.useFixture(PortFixture(vn.uuid, connections=self.connections,
1205 binding_profile=bind_dict))
vn undefined
self = <scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7fc32bab10a0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...anity,dev_sanity_dpdk,sanity] id=0x7fc32bab10a0>>

/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7fc32bab10a0>, vn_name=None, vn_subnets=None, cleanup=True, **kwargs={})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7fc32bab10a0>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of <class 'scripts.neutron.test_ports.TestPorts'>>
vn_name = None
vn_subnets = None
kwargs = {}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.neutron.test_ports.TestPorts'>, vn_name='ctest-vn-87811608', vn_subnets=None, **kwargs={})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn-87811608'
project_id undefined
self.project_id = '44494e67-ab19-44ab-8252-fb5b72fb140d'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-87811608', option='orch', **kwargs={'project_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn-87811608'
kwargs = {'project_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-87811608', project_id='44494e67-ab19-44ab-8252-fb5b72fb140d', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn-87811608', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn-87811608', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn-87811608', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn-87811608', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn-87811608', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn-87811608', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn-87811608', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn-87811608', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-87811608', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn-87811608', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-87811608', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...40d&router%3Aexternal=True&name=ctest-vn-87811608', body=None, headers=None, params={'name': b'ctest-vn-87811608', 'router:external': True, 'tenant_id': b'44494e67-ab19-44ab-8252-fb5b72fb140d'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...40d&router%3Aexternal=True&name=ctest-vn-87811608'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...40d&router%3Aexternal=True&name=ctest-vn-87811608', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...40d&router%3Aexternal=True&name=ctest-vn-87811608'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...40d&router%3Aexternal=True&name=ctest-vn-87811608', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...40d&router%3Aexternal=True&name=ctest-vn-87811608', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...40d&router%3Aexternal=True&name=ctest-vn-87811608', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...40d&router%3Aexternal=True&name=ctest-vn-87811608'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=4...40d&router%3Aexternal=True&name=ctest-vn-87811608', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc32a103be0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=4...40d&router%3Aexternal=True&name=ctest-vn-87811608', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252-fb5b72fb140d&router%3Aexternal=True&name=ctest-vn-87811608: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=44494e67-ab19-44ab-8252-fb5b72fb140d&router%3Aexternal=True&name=ctest-vn-87811608 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a109640>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc32a109640>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=44494e67-ab19-44ab-8252-fb5b72fb140d&router%3Aexternal=True&name=ctest-vn-87811608 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a109640>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=44494e67-ab19-44ab-8252-fb5b72fb140d&router%3Aexternal=True&name=ctest-vn-87811608 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a109640>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/neutron/test_ports.py", line 1203, in test_ports_bindings
vn = self.create_vn()
File "/contrail-test/common/base.py", line 191, in create_vn
vn_fixture = self.create_only_vn(vn_name=vn_name,
File "/contrail-test/common/base.py", line 186, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252-fb5b72fb140d&router%3Aexternal=True&name=ctest-vn-87811608: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=44494e67-ab19-44ab-8252-fb5b72fb140d&router%3Aexternal=True&name=ctest-vn-87811608 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a109640>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.747 Log File
test_ports_specific_subnet_ip[ci_sanity,dev_sanity_dpdk,sanity]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:36:29 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7fc32bac3fd0>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestPorts.test_ports_specific_subnet_ip>
self = <scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7fc32bac3fd0>
args = ()
kwargs = {}

/contrail-test/scripts/neutron/test_ports.py in test_ports_specific_subnet_ip(self=<scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7fc32bac3fd0>)
156 vn1_vm1_name = get_random_name('vn1-vm1')
157 vn1_vm2_name = get_random_name('vn1-vm2')
158 vn1_fixture = self.create_vn(vn1_name, [vn1_subnet_1, vn1_subnet_2])
159 vn1_subnet1_id = vn1_fixture.vn_subnet_objs[0]['id']
160 vn1_subnet2_id = vn1_fixture.vn_subnet_objs[1]['id']
vn1_fixture undefined
self = <scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7fc32bac3fd0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...anity,dev_sanity_dpdk,sanity] id=0x7fc32bac3fd0>>
vn1_name = 'ctest-vn1-17113766'
vn1_subnet_1 = '188.192.90.128/26'
vn1_subnet_2 = '216.198.64.64/26'

/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7fc32bac3fd0>, vn_name='ctest-vn1-17113766', vn_subnets=['188.192.90.128/26', '216.198.64.64/26'], cleanup=True, **kwargs={})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7fc32bac3fd0>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of <class 'scripts.neutron.test_ports.TestPorts'>>
vn_name = 'ctest-vn1-17113766'
vn_subnets = ['188.192.90.128/26', '216.198.64.64/26']
kwargs = {}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.neutron.test_ports.TestPorts'>, vn_name='ctest-vn1-17113766', vn_subnets=['188.192.90.128/26', '216.198.64.64/26'], **kwargs={})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn1-17113766'
project_id undefined
self.project_id = '44494e67-ab19-44ab-8252-fb5b72fb140d'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn1-17113766', option='orch', **kwargs={'project_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn1-17113766'
kwargs = {'project_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn1-17113766', project_id='44494e67-ab19-44ab-8252-fb5b72fb140d', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn1-17113766', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn1-17113766', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn1-17113766', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn1-17113766', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn1-17113766', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn1-17113766', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn1-17113766', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn1-17113766', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn1-17113766', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn1-17113766', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn1-17113766', 'router:external': True, 'tenant_id': '44494e67-ab19-44ab-8252-fb5b72fb140d'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...0d&router%3Aexternal=True&name=ctest-vn1-17113766', body=None, headers=None, params={'name': b'ctest-vn1-17113766', 'router:external': True, 'tenant_id': b'44494e67-ab19-44ab-8252-fb5b72fb140d'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...0d&router%3Aexternal=True&name=ctest-vn1-17113766'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...0d&router%3Aexternal=True&name=ctest-vn1-17113766', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...0d&router%3Aexternal=True&name=ctest-vn1-17113766'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...0d&router%3Aexternal=True&name=ctest-vn1-17113766', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...0d&router%3Aexternal=True&name=ctest-vn1-17113766', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...0d&router%3Aexternal=True&name=ctest-vn1-17113766', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252...0d&router%3Aexternal=True&name=ctest-vn1-17113766'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=4...0d&router%3Aexternal=True&name=ctest-vn1-17113766', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc32a109550>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=4...0d&router%3Aexternal=True&name=ctest-vn1-17113766', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLMqBsERo3poQJhxT681z2BvZHRQnSNUrBuRJ5a...Gpp8Z1Yzpg_2JPkjT-cYVgCoyYIL2Twsh8aETkFv34q8kpatQ'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252-fb5b72fb140d&router%3Aexternal=True&name=ctest-vn1-17113766: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=44494e67-ab19-44ab-8252-fb5b72fb140d&router%3Aexternal=True&name=ctest-vn1-17113766 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a1098b0>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc32a1098b0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=44494e67-ab19-44ab-8252-fb5b72fb140d&router%3Aexternal=True&name=ctest-vn1-17113766 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a1098b0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=44494e67-ab19-44ab-8252-fb5b72fb140d&router%3Aexternal=True&name=ctest-vn1-17113766 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a1098b0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/neutron/test_ports.py", line 158, in test_ports_specific_subnet_ip
vn1_fixture = self.create_vn(vn1_name, [vn1_subnet_1, vn1_subnet_2])
File "/contrail-test/common/base.py", line 191, in create_vn
vn_fixture = self.create_only_vn(vn_name=vn_name,
File "/contrail-test/common/base.py", line 186, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=44494e67-ab19-44ab-8252-fb5b72fb140d&router%3Aexternal=True&name=ctest-vn1-17113766: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=44494e67-ab19-44ab-8252-fb5b72fb140d&router%3Aexternal=True&name=ctest-vn1-17113766 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a1098b0>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.386 Log File
test_basic_router_behavior[ci_sanity,dev_sanity_dpdk,sanity]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:36:33 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.neutron.test_routers.TestRouters.test_b...sanity,dev_sanity_dpdk,sanity] id=0x7fc32badaf40>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestRouters.test_basic_router_behavior>
self = <scripts.neutron.test_routers.TestRouters.test_b...sanity,dev_sanity_dpdk,sanity] id=0x7fc32badaf40>
args = ()
kwargs = {}

/contrail-test/scripts/neutron/test_routers.py in test_basic_router_behavior(self=<scripts.neutron.test_routers.TestRouters.test_b...sanity,dev_sanity_dpdk,sanity] id=0x7fc32badaf40>)
47 vn2_vm1_name = get_random_name('vn2-vm1')
48 router_name = get_random_name('router1')
49 vn1_fixture = self.create_vn(vn1_name, vn1_subnets)
50 vn2_fixture = self.create_vn(vn2_name, vn2_subnets)
51 vn1_vm1_fixture = self.create_vm(vn1_fixture, vn1_vm1_name,
vn1_fixture undefined
self = <scripts.neutron.test_routers.TestRouters.test_b...sanity,dev_sanity_dpdk,sanity] id=0x7fc32badaf40>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...anity,dev_sanity_dpdk,sanity] id=0x7fc32badaf40>>
vn1_name = 'ctest-vn1-47476520'
vn1_subnets = ['40.82.56.64/26']

/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_routers.TestRouters.test_b...sanity,dev_sanity_dpdk,sanity] id=0x7fc32badaf40>, vn_name='ctest-vn1-47476520', vn_subnets=['40.82.56.64/26'], cleanup=True, **kwargs={})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.neutron.test_routers.TestRouters.test_b...sanity,dev_sanity_dpdk,sanity] id=0x7fc32badaf40>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of <class 'scripts.neutron.test_routers.TestRouters'>>
vn_name = 'ctest-vn1-47476520'
vn_subnets = ['40.82.56.64/26']
kwargs = {}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.neutron.test_routers.TestRouters'>, vn_name='ctest-vn1-47476520', vn_subnets=['40.82.56.64/26'], **kwargs={})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn1-47476520'
project_id undefined
self.project_id = 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn1-47476520', option='orch', **kwargs={'project_id': 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn1-47476520'
kwargs = {'project_id': 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn1-47476520', project_id='e8bf116d-4b9c-41d7-b8a8-6bff831cae44', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn1-47476520', 'router:external': True, 'tenant_id': 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn1-47476520', 'router:external': True, 'tenant_id': 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn1-47476520', 'router:external': True, 'tenant_id': 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn1-47476520', 'router:external': True, 'tenant_id': 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn1-47476520', 'router:external': True, 'tenant_id': 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn1-47476520', 'router:external': True, 'tenant_id': 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn1-47476520', 'router:external': True, 'tenant_id': 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn1-47476520', 'router:external': True, 'tenant_id': 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn1-47476520', 'router:external': True, 'tenant_id': 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn1-47476520', 'router:external': True, 'tenant_id': 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn1-47476520', 'router:external': True, 'tenant_id': 'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8...44&router%3Aexternal=True&name=ctest-vn1-47476520', body=None, headers=None, params={'name': b'ctest-vn1-47476520', 'router:external': True, 'tenant_id': b'e8bf116d-4b9c-41d7-b8a8-6bff831cae44'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8...44&router%3Aexternal=True&name=ctest-vn1-47476520'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8...44&router%3Aexternal=True&name=ctest-vn1-47476520', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8...44&router%3Aexternal=True&name=ctest-vn1-47476520'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8...44&router%3Aexternal=True&name=ctest-vn1-47476520', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLQhoODBQldRMT_kqe-jmUPgWpji4zRT1Db8i08...cueYQQApDDBM1NYbfjpvs5NMVDMske7q6bNL9AED4i63T9aaI'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8...44&router%3Aexternal=True&name=ctest-vn1-47476520', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLQhoODBQldRMT_kqe-jmUPgWpji4zRT1Db8i08...cueYQQApDDBM1NYbfjpvs5NMVDMske7q6bNL9AED4i63T9aaI'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8...44&router%3Aexternal=True&name=ctest-vn1-47476520', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLQhoODBQldRMT_kqe-jmUPgWpji4zRT1Db8i08...cueYQQApDDBM1NYbfjpvs5NMVDMske7q6bNL9AED4i63T9aaI'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8...44&router%3Aexternal=True&name=ctest-vn1-47476520'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLQhoODBQldRMT_kqe-jmUPgWpji4zRT1Db8i08...cueYQQApDDBM1NYbfjpvs5NMVDMske7q6bNL9AED4i63T9aaI'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=e...44&router%3Aexternal=True&name=ctest-vn1-47476520', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLQhoODBQldRMT_kqe-jmUPgWpji4zRT1Db8i08...cueYQQApDDBM1NYbfjpvs5NMVDMske7q6bNL9AED4i63T9aaI'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc32a00eee0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLQhoODBQldRMT_kqe-jmUPgWpji4zRT1Db8i08...cueYQQApDDBM1NYbfjpvs5NMVDMske7q6bNL9AED4i63T9aaI'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=e...44&router%3Aexternal=True&name=ctest-vn1-47476520', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLQhoODBQldRMT_kqe-jmUPgWpji4zRT1Db8i08...cueYQQApDDBM1NYbfjpvs5NMVDMske7q6bNL9AED4i63T9aaI'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8-6bff831cae44&router%3Aexternal=True&name=ctest-vn1-47476520: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8-6bff831cae44&router%3Aexternal=True&name=ctest-vn1-47476520 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a012040>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc32a012040>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8-6bff831cae44&router%3Aexternal=True&name=ctest-vn1-47476520 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a012040>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8-6bff831cae44&router%3Aexternal=True&name=ctest-vn1-47476520 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a012040>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/neutron/test_routers.py", line 49, in test_basic_router_behavior
vn1_fixture = self.create_vn(vn1_name, vn1_subnets)
File "/contrail-test/common/base.py", line 191, in create_vn
vn_fixture = self.create_only_vn(vn_name=vn_name,
File "/contrail-test/common/base.py", line 186, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8-6bff831cae44&router%3Aexternal=True&name=ctest-vn1-47476520: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e8bf116d-4b9c-41d7-b8a8-6bff831cae44&router%3Aexternal=True&name=ctest-vn1-47476520 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a012040>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.738 Log File
test_basic_snat_behavior_without_external_connectivity[ci_sanity,dev_sanity_dpdk,sanity,suite1]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:36:38 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.neutron.test_routers_basic.TestRoutersB...dev_sanity_dpdk,sanity,suite1] id=0x7fc32ba62670>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestRoutersBasic.test_basic_snat_behavior_without_external_connectivity>
self = <scripts.neutron.test_routers_basic.TestRoutersB...dev_sanity_dpdk,sanity,suite1] id=0x7fc32ba62670>
args = ()
kwargs = {}

/contrail-test/scripts/neutron/test_routers_basic.py in test_basic_snat_behavior_without_external_connectivity(self=<scripts.neutron.test_routers_basic.TestRoutersB...dev_sanity_dpdk,sanity,suite1] id=0x7fc32ba62670>)
33 self.allow_default_sg_to_allow_all_on_project(self.inputs.project_name)
34 self.allow_all_on_default_fwaas_policy()
35 vn1_fixture = self.create_vn()
36 ext_vn_name = get_random_name('ext_vn')
37 ext_vn_fixture = self.create_vn(vn_name=ext_vn_name,
vn1_fixture undefined
self = <scripts.neutron.test_routers_basic.TestRoutersB...dev_sanity_dpdk,sanity,suite1] id=0x7fc32ba62670>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...ev_sanity_dpdk,sanity,suite1] id=0x7fc32ba62670>>

/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_routers_basic.TestRoutersB...dev_sanity_dpdk,sanity,suite1] id=0x7fc32ba62670>, vn_name=None, vn_subnets=None, cleanup=True, **kwargs={})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.neutron.test_routers_basic.TestRoutersB...dev_sanity_dpdk,sanity,suite1] id=0x7fc32ba62670>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...ts.neutron.test_routers_basic.TestRoutersBasic'>>
vn_name = None
vn_subnets = None
kwargs = {}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.neutron.test_routers_basic.TestRoutersBasic'>, vn_name='ctest-vn-48921079', vn_subnets=None, **kwargs={})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn-48921079'
project_id undefined
self.project_id = '576c3fb3-0146-4a88-b06a-3016eda18601'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-48921079', option='orch', **kwargs={'project_id': '576c3fb3-0146-4a88-b06a-3016eda18601'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn-48921079'
kwargs = {'project_id': '576c3fb3-0146-4a88-b06a-3016eda18601'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-48921079', project_id='576c3fb3-0146-4a88-b06a-3016eda18601', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn-48921079', 'router:external': True, 'tenant_id': '576c3fb3-0146-4a88-b06a-3016eda18601'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn-48921079', 'router:external': True, 'tenant_id': '576c3fb3-0146-4a88-b06a-3016eda18601'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn-48921079', 'router:external': True, 'tenant_id': '576c3fb3-0146-4a88-b06a-3016eda18601'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn-48921079', 'router:external': True, 'tenant_id': '576c3fb3-0146-4a88-b06a-3016eda18601'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn-48921079', 'router:external': True, 'tenant_id': '576c3fb3-0146-4a88-b06a-3016eda18601'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn-48921079', 'router:external': True, 'tenant_id': '576c3fb3-0146-4a88-b06a-3016eda18601'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn-48921079', 'router:external': True, 'tenant_id': '576c3fb3-0146-4a88-b06a-3016eda18601'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn-48921079', 'router:external': True, 'tenant_id': '576c3fb3-0146-4a88-b06a-3016eda18601'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-48921079', 'router:external': True, 'tenant_id': '576c3fb3-0146-4a88-b06a-3016eda18601'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn-48921079', 'router:external': True, 'tenant_id': '576c3fb3-0146-4a88-b06a-3016eda18601'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-48921079', 'router:external': True, 'tenant_id': '576c3fb3-0146-4a88-b06a-3016eda18601'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a...601&router%3Aexternal=True&name=ctest-vn-48921079', body=None, headers=None, params={'name': b'ctest-vn-48921079', 'router:external': True, 'tenant_id': b'576c3fb3-0146-4a88-b06a-3016eda18601'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a...601&router%3Aexternal=True&name=ctest-vn-48921079'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a...601&router%3Aexternal=True&name=ctest-vn-48921079', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a...601&router%3Aexternal=True&name=ctest-vn-48921079'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a...601&router%3Aexternal=True&name=ctest-vn-48921079', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLU3Z18onNz8nohetdGVUytkm6Gw2ih5vbFj-i_...0_YSsoSLlAyWqTX3_7EocOtmOcX4Dp6vTwfkZJBEPnaZR2cg8'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a...601&router%3Aexternal=True&name=ctest-vn-48921079', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLU3Z18onNz8nohetdGVUytkm6Gw2ih5vbFj-i_...0_YSsoSLlAyWqTX3_7EocOtmOcX4Dp6vTwfkZJBEPnaZR2cg8'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a...601&router%3Aexternal=True&name=ctest-vn-48921079', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLU3Z18onNz8nohetdGVUytkm6Gw2ih5vbFj-i_...0_YSsoSLlAyWqTX3_7EocOtmOcX4Dp6vTwfkZJBEPnaZR2cg8'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a...601&router%3Aexternal=True&name=ctest-vn-48921079'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLU3Z18onNz8nohetdGVUytkm6Gw2ih5vbFj-i_...0_YSsoSLlAyWqTX3_7EocOtmOcX4Dp6vTwfkZJBEPnaZR2cg8'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=5...601&router%3Aexternal=True&name=ctest-vn-48921079', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLU3Z18onNz8nohetdGVUytkm6Gw2ih5vbFj-i_...0_YSsoSLlAyWqTX3_7EocOtmOcX4Dp6vTwfkZJBEPnaZR2cg8'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc32a007e50>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLU3Z18onNz8nohetdGVUytkm6Gw2ih5vbFj-i_...0_YSsoSLlAyWqTX3_7EocOtmOcX4Dp6vTwfkZJBEPnaZR2cg8'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=5...601&router%3Aexternal=True&name=ctest-vn-48921079', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLU3Z18onNz8nohetdGVUytkm6Gw2ih5vbFj-i_...0_YSsoSLlAyWqTX3_7EocOtmOcX4Dp6vTwfkZJBEPnaZR2cg8'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a-3016eda18601&router%3Aexternal=True&name=ctest-vn-48921079: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a-3016eda18601&router%3Aexternal=True&name=ctest-vn-48921079 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a068a60>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc32a068a60>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a-3016eda18601&router%3Aexternal=True&name=ctest-vn-48921079 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a068a60>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a-3016eda18601&router%3Aexternal=True&name=ctest-vn-48921079 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a068a60>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/neutron/test_routers_basic.py", line 35, in test_basic_snat_behavior_without_external_connectivity
vn1_fixture = self.create_vn()
File "/contrail-test/common/base.py", line 191, in create_vn
vn_fixture = self.create_only_vn(vn_name=vn_name,
File "/contrail-test/common/base.py", line 186, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a-3016eda18601&router%3Aexternal=True&name=ctest-vn-48921079: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=576c3fb3-0146-4a88-b06a-3016eda18601&router%3Aexternal=True&name=ctest-vn-48921079 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32a068a60>: Failed to establish a new connection: [Errno 111] Connection refused'))

1.910 Log File
test_basic_policy_allow_deny[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity,quick_sanity,sanity,suite1]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:36:42 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.policy.test_policy.TestBasicPolicyIpv4v...ty,quick_sanity,sanity,suite1] id=0x7fc32b9ac430>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestBasicPolicy.test_basic_policy_allow_deny>
self = <scripts.policy.test_policy.TestBasicPolicyIpv4v...ty,quick_sanity,sanity,suite1] id=0x7fc32b9ac430>
args = ()
kwargs = {}

/contrail-test/scripts/policy/test_policy_basic.py in test_basic_policy_allow_deny(self=<scripts.policy.test_policy.TestBasicPolicyIpv4v...ty,quick_sanity,sanity,suite1] id=0x7fc32b9ac430>)
93 Check that pings fail
94 '''
95 vn1_fixture = self.create_vn()
96 vn2_fixture = self.create_vn()
97 # vn1_name = get_random_name('vn1')
vn1_fixture undefined
self = <scripts.policy.test_policy.TestBasicPolicyIpv4v...ty,quick_sanity,sanity,suite1] id=0x7fc32b9ac430>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...y,quick_sanity,sanity,suite1] id=0x7fc32b9ac430>>

/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy.TestBasicPolicyIpv4v...ty,quick_sanity,sanity,suite1] id=0x7fc32b9ac430>, vn_name=None, vn_subnets=None, cleanup=True, **kwargs={})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.policy.test_policy.TestBasicPolicyIpv4v...ty,quick_sanity,sanity,suite1] id=0x7fc32b9ac430>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...ripts.policy.test_policy.TestBasicPolicyIpv4v6'>>
vn_name = None
vn_subnets = None
kwargs = {}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.policy.test_policy.TestBasicPolicyIpv4v6'>, vn_name='ctest-vn-01060544', vn_subnets=None, **kwargs={})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn-01060544'
project_id undefined
self.project_id = 'b52f9d91-89e3-4027-b598-819cad64f783'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-01060544', option='orch', **kwargs={'project_id': 'b52f9d91-89e3-4027-b598-819cad64f783'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn-01060544'
kwargs = {'project_id': 'b52f9d91-89e3-4027-b598-819cad64f783'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-01060544', project_id='b52f9d91-89e3-4027-b598-819cad64f783', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn-01060544', 'router:external': True, 'tenant_id': 'b52f9d91-89e3-4027-b598-819cad64f783'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn-01060544', 'router:external': True, 'tenant_id': 'b52f9d91-89e3-4027-b598-819cad64f783'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn-01060544', 'router:external': True, 'tenant_id': 'b52f9d91-89e3-4027-b598-819cad64f783'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn-01060544', 'router:external': True, 'tenant_id': 'b52f9d91-89e3-4027-b598-819cad64f783'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn-01060544', 'router:external': True, 'tenant_id': 'b52f9d91-89e3-4027-b598-819cad64f783'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn-01060544', 'router:external': True, 'tenant_id': 'b52f9d91-89e3-4027-b598-819cad64f783'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn-01060544', 'router:external': True, 'tenant_id': 'b52f9d91-89e3-4027-b598-819cad64f783'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn-01060544', 'router:external': True, 'tenant_id': 'b52f9d91-89e3-4027-b598-819cad64f783'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-01060544', 'router:external': True, 'tenant_id': 'b52f9d91-89e3-4027-b598-819cad64f783'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn-01060544', 'router:external': True, 'tenant_id': 'b52f9d91-89e3-4027-b598-819cad64f783'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-01060544', 'router:external': True, 'tenant_id': 'b52f9d91-89e3-4027-b598-819cad64f783'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598...783&router%3Aexternal=True&name=ctest-vn-01060544', body=None, headers=None, params={'name': b'ctest-vn-01060544', 'router:external': True, 'tenant_id': b'b52f9d91-89e3-4027-b598-819cad64f783'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598...783&router%3Aexternal=True&name=ctest-vn-01060544'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598...783&router%3Aexternal=True&name=ctest-vn-01060544', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598...783&router%3Aexternal=True&name=ctest-vn-01060544'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598...783&router%3Aexternal=True&name=ctest-vn-01060544', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLZBwAytLJHTIrh0Ni3j2XQ-Bby3uQU8djf30eU...2OvVKHkrrvi7Kaudgj4XvyOWBN_3wnNV0P8CQwMzWJk0L1dmA'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598...783&router%3Aexternal=True&name=ctest-vn-01060544', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLZBwAytLJHTIrh0Ni3j2XQ-Bby3uQU8djf30eU...2OvVKHkrrvi7Kaudgj4XvyOWBN_3wnNV0P8CQwMzWJk0L1dmA'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598...783&router%3Aexternal=True&name=ctest-vn-01060544', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLZBwAytLJHTIrh0Ni3j2XQ-Bby3uQU8djf30eU...2OvVKHkrrvi7Kaudgj4XvyOWBN_3wnNV0P8CQwMzWJk0L1dmA'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598...783&router%3Aexternal=True&name=ctest-vn-01060544'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLZBwAytLJHTIrh0Ni3j2XQ-Bby3uQU8djf30eU...2OvVKHkrrvi7Kaudgj4XvyOWBN_3wnNV0P8CQwMzWJk0L1dmA'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=b...783&router%3Aexternal=True&name=ctest-vn-01060544', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLZBwAytLJHTIrh0Ni3j2XQ-Bby3uQU8djf30eU...2OvVKHkrrvi7Kaudgj4XvyOWBN_3wnNV0P8CQwMzWJk0L1dmA'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc329e06d90>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLZBwAytLJHTIrh0Ni3j2XQ-Bby3uQU8djf30eU...2OvVKHkrrvi7Kaudgj4XvyOWBN_3wnNV0P8CQwMzWJk0L1dmA'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=b...783&router%3Aexternal=True&name=ctest-vn-01060544', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLZBwAytLJHTIrh0Ni3j2XQ-Bby3uQU8djf30eU...2OvVKHkrrvi7Kaudgj4XvyOWBN_3wnNV0P8CQwMzWJk0L1dmA'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598-819cad64f783&router%3Aexternal=True&name=ctest-vn-01060544: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598-819cad64f783&router%3Aexternal=True&name=ctest-vn-01060544 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329e06070>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc329e06070>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598-819cad64f783&router%3Aexternal=True&name=ctest-vn-01060544 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329e06070>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598-819cad64f783&router%3Aexternal=True&name=ctest-vn-01060544 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329e06070>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/policy/test_policy_basic.py", line 95, in test_basic_policy_allow_deny
vn1_fixture = self.create_vn()
File "/contrail-test/common/base.py", line 191, in create_vn
vn_fixture = self.create_only_vn(vn_name=vn_name,
File "/contrail-test/common/base.py", line 186, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598-819cad64f783&router%3Aexternal=True&name=ctest-vn-01060544: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b52f9d91-89e3-4027-b598-819cad64f783&router%3Aexternal=True&name=ctest-vn-01060544 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329e06070>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.704 Log File
test_remove_policy_with_ref[ci_sanity,sanity]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: TestFailed
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:36:47 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestBasicPolicyNegativeIpv4v6.test_remove_policy_with_ref>
self = <scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>
args = ()
kwargs = {}

/contrail-test/scripts/policy/test_policy.py in test_remove_policy_with_ref(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>)
623 @preposttest_wrapper
624 def test_remove_policy_with_ref(self):
625 super(TestBasicPolicyNegativeIpv4v6, self).test_remove_policy_with_ref()
626
627 class TestBasicPolicyModifyIpv4v6(test_policy_basic.TestBasicPolicyModify):
builtinsuper = <class 'super'>
global TestBasicPolicyNegativeIpv4v6 = <class 'scripts.policy.test_policy.TestBasicPolicyNegativeIpv4v6'>
self = <scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>
).test_remove_policy_with_ref = <bound method TestBasicPolicyNegativeIpv4v6.test...cy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>>

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>, *args=(), **kwargs={})
174 if 'ci_image' in list(os.environ.keys()):
175 os.environ['stop_execution_flag'] = 'set'
176 raise TestFailed("\n ".join(errmsg))
177 elif testskip:
178 log.info('')
global TestFailed = <class 'tcutils.cores.TestFailed'>
"\n ".join undefined
errmsg = ["Test failed: ConnectFailure\nPython 3.9.25: /usr/... connection: [Errno 111] Connection refused'))\n\n\n"]
TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:36:46 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestBasicPolicyNegative.test_remove_policy_with_ref>
self = <scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>
args = ()
kwargs = {}

/contrail-test/scripts/policy/test_policy_basic.py in test_remove_policy_with_ref(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>)
221 inputs=self.inputs,
222 connections=self.connections))
223 vn1_fixture = self.create_vn(vn1_name, vn1_subnets)
224 vn1_fixture.bind_policies(
225 [policy_fixture.policy_fq_name], vn1_fixture.vn_id)
vn1_fixture undefined
self = <scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...cy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>>
vn1_name = 'ctest-vn4-80896313'
vn1_subnets = ['181.89.133.64/26', '3240:9888:7b51:3e68:9101:6f1e::/96']

/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>, vn_name='ctest-vn4-80896313', vn_subnets=['181.89.133.64/26', '3240:9888:7b51:3e68:9101:6f1e::/96'], cleanup=True, **kwargs={})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...licy.test_policy.TestBasicPolicyNegativeIpv4v6'>>
vn_name = 'ctest-vn4-80896313'
vn_subnets = ['181.89.133.64/26', '3240:9888:7b51:3e68:9101:6f1e::/96']
kwargs = {}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.policy.test_policy.TestBasicPolicyNegativeIpv4v6'>, vn_name='ctest-vn4-80896313', vn_subnets=['181.89.133.64/26', '3240:9888:7b51:3e68:9101:6f1e::/96'], **kwargs={})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn4-80896313'
project_id undefined
self.project_id = '293ef140-8836-4042-a559-db6724d9b386'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn4-80896313', option='orch', **kwargs={'project_id': '293ef140-8836-4042-a559-db6724d9b386'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn4-80896313'
kwargs = {'project_id': '293ef140-8836-4042-a559-db6724d9b386'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn4-80896313', project_id='293ef140-8836-4042-a559-db6724d9b386', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313', body=None, headers=None, params={'name': b'ctest-vn4-80896313', 'router:external': True, 'tenant_id': b'293ef140-8836-4042-a559-db6724d9b386'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=2...86&router%3Aexternal=True&name=ctest-vn4-80896313', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc329d12e50>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=2...86&router%3Aexternal=True&name=ctest-vn4-80896313', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=293ef140-8836-4042-a559-db6724d9b386&router%3Aexternal=True&name=ctest-vn4-80896313: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=293ef140-8836-4042-a559-db6724d9b386&router%3Aexternal=True&name=ctest-vn4-80896313 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329d134f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc329d134f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=293ef140-8836-4042-a559-db6724d9b386&router%3Aexternal=True&name=ctest-vn4-80896313 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329d134f0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=293ef140-8836-4042-a559-db6724d9b386&router%3Aexternal=True&name=ctest-vn4-80896313 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329d134f0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/policy/test_policy_basic.py", line 223, in test_remove_policy_with_ref
vn1_fixture = self.create_vn(vn1_name, vn1_subnets)
File "/contrail-test/common/base.py", line 191, in create_vn
vn_fixture = self.create_only_vn(vn_name=vn_name,
File "/contrail-test/common/base.py", line 186, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=293ef140-8836-4042-a559-db6724d9b386&router%3Aexternal=True&name=ctest-vn4-80896313: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=293ef140-8836-4042-a559-db6724d9b386&router%3Aexternal=True&name=ctest-vn4-80896313 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329d134f0>: Failed to establish a new connection: [Errno 111] Connection refused'))



__cause__ = None
__class__ = <class 'tcutils.cores.TestFailed'>
__context__ = None
__delattr__ = <method-wrapper '__delattr__' of TestFailed object>
__dict__ = {}
__dir__ = <built-in method __dir__ of TestFailed object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of TestFailed object>
__format__ = <built-in method __format__ of TestFailed object>
__ge__ = <method-wrapper '__ge__' of TestFailed object>
__getattribute__ = <method-wrapper '__getattribute__' of TestFailed object>
__gt__ = <method-wrapper '__gt__' of TestFailed object>
__hash__ = <method-wrapper '__hash__' of TestFailed object>
__init__ = <method-wrapper '__init__' of TestFailed object>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of TestFailed object>
__lt__ = <method-wrapper '__lt__' of TestFailed object>
__module__ = 'tcutils.cores'
__ne__ = <method-wrapper '__ne__' of TestFailed object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of TestFailed object>
__reduce_ex__ = <built-in method __reduce_ex__ of TestFailed object>
__repr__ = <method-wrapper '__repr__' of TestFailed object>
__setattr__ = <method-wrapper '__setattr__' of TestFailed object>
__setstate__ = <built-in method __setstate__ of TestFailed object>
__sizeof__ = <built-in method __sizeof__ of TestFailed object>
__str__ = <method-wrapper '__str__' of TestFailed object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Test failed: ConnectFailure\nPython 3.9.25: /usr/... connection: [Errno 111] Connection refused'))\n\n\n",)
with_traceback = <built-in method with_traceback of TestFailed object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/policy/test_policy.py", line 625, in test_remove_policy_with_ref
super(TestBasicPolicyNegativeIpv4v6, self).test_remove_policy_with_ref()
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:36:46 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestBasicPolicyNegative.test_remove_policy_with_ref>
self = <scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>
args = ()
kwargs = {}

/contrail-test/scripts/policy/test_policy_basic.py in test_remove_policy_with_ref(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>)
221 inputs=self.inputs,
222 connections=self.connections))
223 vn1_fixture = self.create_vn(vn1_name, vn1_subnets)
224 vn1_fixture.bind_policies(
225 [policy_fixture.policy_fq_name], vn1_fixture.vn_id)
vn1_fixture undefined
self = <scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...cy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>>
vn1_name = 'ctest-vn4-80896313'
vn1_subnets = ['181.89.133.64/26', '3240:9888:7b51:3e68:9101:6f1e::/96']

/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>, vn_name='ctest-vn4-80896313', vn_subnets=['181.89.133.64/26', '3240:9888:7b51:3e68:9101:6f1e::/96'], cleanup=True, **kwargs={})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7fc32b9acfa0>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...licy.test_policy.TestBasicPolicyNegativeIpv4v6'>>
vn_name = 'ctest-vn4-80896313'
vn_subnets = ['181.89.133.64/26', '3240:9888:7b51:3e68:9101:6f1e::/96']
kwargs = {}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.policy.test_policy.TestBasicPolicyNegativeIpv4v6'>, vn_name='ctest-vn4-80896313', vn_subnets=['181.89.133.64/26', '3240:9888:7b51:3e68:9101:6f1e::/96'], **kwargs={})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn4-80896313'
project_id undefined
self.project_id = '293ef140-8836-4042-a559-db6724d9b386'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn4-80896313', option='orch', **kwargs={'project_id': '293ef140-8836-4042-a559-db6724d9b386'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn4-80896313'
kwargs = {'project_id': '293ef140-8836-4042-a559-db6724d9b386'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn4-80896313', project_id='293ef140-8836-4042-a559-db6724d9b386', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn4-80896313', 'router:external': True, 'tenant_id': '293ef140-8836-4042-a559-db6724d9b386'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313', body=None, headers=None, params={'name': b'ctest-vn4-80896313', 'router:external': True, 'tenant_id': b'293ef140-8836-4042-a559-db6724d9b386'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=293ef140-8836-4042-a559...86&router%3Aexternal=True&name=ctest-vn4-80896313'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=2...86&router%3Aexternal=True&name=ctest-vn4-80896313', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc329d12e50>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=2...86&router%3Aexternal=True&name=ctest-vn4-80896313', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLdlmwbhBHaPIaCDhD4UjeFlVlShODtdCzAlGlI...VsQpMK3Yera1Vm9-lPBVxPFWWtTPU239ZWs3bR0afDUvzQ5YQ'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=293ef140-8836-4042-a559-db6724d9b386&router%3Aexternal=True&name=ctest-vn4-80896313: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=293ef140-8836-4042-a559-db6724d9b386&router%3Aexternal=True&name=ctest-vn4-80896313 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329d134f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc329d134f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=293ef140-8836-4042-a559-db6724d9b386&router%3Aexternal=True&name=ctest-vn4-80896313 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329d134f0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=293ef140-8836-4042-a559-db6724d9b386&router%3Aexternal=True&name=ctest-vn4-80896313 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329d134f0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/policy/test_policy_basic.py", line 223, in test_remove_policy_with_ref
vn1_fixture = self.create_vn(vn1_name, vn1_subnets)
File "/contrail-test/common/base.py", line 191, in create_vn
vn_fixture = self.create_only_vn(vn_name=vn_name,
File "/contrail-test/common/base.py", line 186, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=293ef140-8836-4042-a559-db6724d9b386&router%3Aexternal=True&name=ctest-vn4-80896313: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=293ef140-8836-4042-a559-db6724d9b386&router%3Aexternal=True&name=ctest-vn4-80896313 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329d134f0>: Failed to establish a new connection: [Errno 111] Connection refused'))

1.529 Log File
test_basic_policy_allow_deny[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity,quick_sanity,sanity,suite1]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:36:50 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.policy.test_policy_basic.TestBasicPolic...ty,quick_sanity,sanity,suite1] id=0x7fc32b9e7130>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestBasicPolicy.test_basic_policy_allow_deny>
self = <scripts.policy.test_policy_basic.TestBasicPolic...ty,quick_sanity,sanity,suite1] id=0x7fc32b9e7130>
args = ()
kwargs = {}

/contrail-test/scripts/policy/test_policy_basic.py in test_basic_policy_allow_deny(self=<scripts.policy.test_policy_basic.TestBasicPolic...ty,quick_sanity,sanity,suite1] id=0x7fc32b9e7130>)
93 Check that pings fail
94 '''
95 vn1_fixture = self.create_vn()
96 vn2_fixture = self.create_vn()
97 # vn1_name = get_random_name('vn1')
vn1_fixture undefined
self = <scripts.policy.test_policy_basic.TestBasicPolic...ty,quick_sanity,sanity,suite1] id=0x7fc32b9e7130>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...y,quick_sanity,sanity,suite1] id=0x7fc32b9e7130>>

/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy_basic.TestBasicPolic...ty,quick_sanity,sanity,suite1] id=0x7fc32b9e7130>, vn_name=None, vn_subnets=None, cleanup=True, **kwargs={})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.policy.test_policy_basic.TestBasicPolic...ty,quick_sanity,sanity,suite1] id=0x7fc32b9e7130>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...ripts.policy.test_policy_basic.TestBasicPolicy'>>
vn_name = None
vn_subnets = None
kwargs = {}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.policy.test_policy_basic.TestBasicPolicy'>, vn_name='ctest-vn-74077421', vn_subnets=None, **kwargs={})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn-74077421'
project_id undefined
self.project_id = '5d519d75-bf71-47bc-8bde-dc1e69864151'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-74077421', option='orch', **kwargs={'project_id': '5d519d75-bf71-47bc-8bde-dc1e69864151'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn-74077421'
kwargs = {'project_id': '5d519d75-bf71-47bc-8bde-dc1e69864151'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-74077421', project_id='5d519d75-bf71-47bc-8bde-dc1e69864151', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn-74077421', 'router:external': True, 'tenant_id': '5d519d75-bf71-47bc-8bde-dc1e69864151'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn-74077421', 'router:external': True, 'tenant_id': '5d519d75-bf71-47bc-8bde-dc1e69864151'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn-74077421', 'router:external': True, 'tenant_id': '5d519d75-bf71-47bc-8bde-dc1e69864151'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn-74077421', 'router:external': True, 'tenant_id': '5d519d75-bf71-47bc-8bde-dc1e69864151'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn-74077421', 'router:external': True, 'tenant_id': '5d519d75-bf71-47bc-8bde-dc1e69864151'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn-74077421', 'router:external': True, 'tenant_id': '5d519d75-bf71-47bc-8bde-dc1e69864151'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn-74077421', 'router:external': True, 'tenant_id': '5d519d75-bf71-47bc-8bde-dc1e69864151'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn-74077421', 'router:external': True, 'tenant_id': '5d519d75-bf71-47bc-8bde-dc1e69864151'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-74077421', 'router:external': True, 'tenant_id': '5d519d75-bf71-47bc-8bde-dc1e69864151'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn-74077421', 'router:external': True, 'tenant_id': '5d519d75-bf71-47bc-8bde-dc1e69864151'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-74077421', 'router:external': True, 'tenant_id': '5d519d75-bf71-47bc-8bde-dc1e69864151'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde...151&router%3Aexternal=True&name=ctest-vn-74077421', body=None, headers=None, params={'name': b'ctest-vn-74077421', 'router:external': True, 'tenant_id': b'5d519d75-bf71-47bc-8bde-dc1e69864151'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde...151&router%3Aexternal=True&name=ctest-vn-74077421'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde...151&router%3Aexternal=True&name=ctest-vn-74077421', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde...151&router%3Aexternal=True&name=ctest-vn-74077421'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde...151&router%3Aexternal=True&name=ctest-vn-74077421', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLhktGqyyz6eDCy9Pctj__Hktwln29RC06oifu-...dTZ8QHULixJYVzsTJE_7-HFn3g74kVgiqvUUvAXoQecq_5R08'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde...151&router%3Aexternal=True&name=ctest-vn-74077421', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLhktGqyyz6eDCy9Pctj__Hktwln29RC06oifu-...dTZ8QHULixJYVzsTJE_7-HFn3g74kVgiqvUUvAXoQecq_5R08'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde...151&router%3Aexternal=True&name=ctest-vn-74077421', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLhktGqyyz6eDCy9Pctj__Hktwln29RC06oifu-...dTZ8QHULixJYVzsTJE_7-HFn3g74kVgiqvUUvAXoQecq_5R08'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde...151&router%3Aexternal=True&name=ctest-vn-74077421'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLhktGqyyz6eDCy9Pctj__Hktwln29RC06oifu-...dTZ8QHULixJYVzsTJE_7-HFn3g74kVgiqvUUvAXoQecq_5R08'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=5...151&router%3Aexternal=True&name=ctest-vn-74077421', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLhktGqyyz6eDCy9Pctj__Hktwln29RC06oifu-...dTZ8QHULixJYVzsTJE_7-HFn3g74kVgiqvUUvAXoQecq_5R08'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc329c0a8e0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLhktGqyyz6eDCy9Pctj__Hktwln29RC06oifu-...dTZ8QHULixJYVzsTJE_7-HFn3g74kVgiqvUUvAXoQecq_5R08'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=5...151&router%3Aexternal=True&name=ctest-vn-74077421', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLhktGqyyz6eDCy9Pctj__Hktwln29RC06oifu-...dTZ8QHULixJYVzsTJE_7-HFn3g74kVgiqvUUvAXoQecq_5R08'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde-dc1e69864151&router%3Aexternal=True&name=ctest-vn-74077421: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde-dc1e69864151&router%3Aexternal=True&name=ctest-vn-74077421 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329c11220>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc329c11220>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde-dc1e69864151&router%3Aexternal=True&name=ctest-vn-74077421 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329c11220>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde-dc1e69864151&router%3Aexternal=True&name=ctest-vn-74077421 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329c11220>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/policy/test_policy_basic.py", line 95, in test_basic_policy_allow_deny
vn1_fixture = self.create_vn()
File "/contrail-test/common/base.py", line 191, in create_vn
vn_fixture = self.create_only_vn(vn_name=vn_name,
File "/contrail-test/common/base.py", line 186, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde-dc1e69864151&router%3Aexternal=True&name=ctest-vn-74077421: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=5d519d75-bf71-47bc-8bde-dc1e69864151&router%3Aexternal=True&name=ctest-vn-74077421 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329c11220>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.721 Log File
test_rp_interface[ci_sanity,sanity]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:36:54 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7fc32b7e9880>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestRP.test_rp_interface>
self = <scripts.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7fc32b7e9880>
args = ()
kwargs = {}

/contrail-test/scripts/routing_policy/test_routing_policy.py in test_rp_interface(self=<scripts.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7fc32b7e9880>)
38 3. Attach policy to VN and confirm if policy takes hold.
39 '''
40 ret_dict = self.config_basic()
41 vn_fixture = ret_dict['vn_fixture']
42 test_vm = ret_dict['test_vm']
ret_dict undefined
self = <scripts.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7fc32b7e9880>
self.config_basic = <bound method RPBase.config_basic of <scripts.ro...p_interface[ci_sanity,sanity] id=0x7fc32b7e9880>>

/contrail-test/scripts/routing_policy/base.py in config_basic(self=<scripts.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7fc32b7e9880>)
35 vn_subnets = [get_random_cidr()]
36 vn2_subnets = [get_random_cidr()]
37 vn_fixture = self.create_vn(vn_name, vn_subnets)
38 rt_value = randint(50000, 60000)
39 vn_fixture.add_route_target(vn_fixture.ri_name, self.inputs.router_asn, rt_value)
vn_fixture undefined
self = <scripts.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7fc32b7e9880>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...p_interface[ci_sanity,sanity] id=0x7fc32b7e9880>>
vn_name = 'ctest-bgpaas_vn-26313007'
vn_subnets = ['196.175.14.128/26']

/contrail-test/common/base.py in create_vn(self=<scripts.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7fc32b7e9880>, vn_name='ctest-bgpaas_vn-26313007', vn_subnets=['196.175.14.128/26'], cleanup=True, **kwargs={})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7fc32b7e9880>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...ipts.routing_policy.test_routing_policy.TestRP'>>
vn_name = 'ctest-bgpaas_vn-26313007'
vn_subnets = ['196.175.14.128/26']
kwargs = {}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.routing_policy.test_routing_policy.TestRP'>, vn_name='ctest-bgpaas_vn-26313007', vn_subnets=['196.175.14.128/26'], **kwargs={})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-bgpaas_vn-26313007'
project_id undefined
self.project_id = '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-bgpaas_vn-26313007', option='orch', **kwargs={'project_id': '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-bgpaas_vn-26313007'
kwargs = {'project_id': '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-bgpaas_vn-26313007', project_id='1a457a64-cc9f-4459-99f1-9ae7ea99bf7f', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-bgpaas_vn-26313007', 'router:external': True, 'tenant_id': '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-bgpaas_vn-26313007', 'router:external': True, 'tenant_id': '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-bgpaas_vn-26313007', 'router:external': True, 'tenant_id': '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-bgpaas_vn-26313007', 'router:external': True, 'tenant_id': '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-bgpaas_vn-26313007', 'router:external': True, 'tenant_id': '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-bgpaas_vn-26313007', 'router:external': True, 'tenant_id': '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-bgpaas_vn-26313007', 'router:external': True, 'tenant_id': '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-bgpaas_vn-26313007', 'router:external': True, 'tenant_id': '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-bgpaas_vn-26313007', 'router:external': True, 'tenant_id': '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-bgpaas_vn-26313007', 'router:external': True, 'tenant_id': '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-bgpaas_vn-26313007', 'router:external': True, 'tenant_id': '1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1...ter%3Aexternal=True&name=ctest-bgpaas_vn-26313007', body=None, headers=None, params={'name': b'ctest-bgpaas_vn-26313007', 'router:external': True, 'tenant_id': b'1a457a64-cc9f-4459-99f1-9ae7ea99bf7f'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1...ter%3Aexternal=True&name=ctest-bgpaas_vn-26313007'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1...ter%3Aexternal=True&name=ctest-bgpaas_vn-26313007', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1...ter%3Aexternal=True&name=ctest-bgpaas_vn-26313007'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1...ter%3Aexternal=True&name=ctest-bgpaas_vn-26313007', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLlhwkajppyTavrN3gIgN7jpJoXgzVqNELx09EK...in-aY7-SmnMtnNFM6hk1IKVGk6gslF3jDP3oXvD5S8K8XqtxY'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1...ter%3Aexternal=True&name=ctest-bgpaas_vn-26313007', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLlhwkajppyTavrN3gIgN7jpJoXgzVqNELx09EK...in-aY7-SmnMtnNFM6hk1IKVGk6gslF3jDP3oXvD5S8K8XqtxY'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1...ter%3Aexternal=True&name=ctest-bgpaas_vn-26313007', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLlhwkajppyTavrN3gIgN7jpJoXgzVqNELx09EK...in-aY7-SmnMtnNFM6hk1IKVGk6gslF3jDP3oXvD5S8K8XqtxY'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1...ter%3Aexternal=True&name=ctest-bgpaas_vn-26313007'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLlhwkajppyTavrN3gIgN7jpJoXgzVqNELx09EK...in-aY7-SmnMtnNFM6hk1IKVGk6gslF3jDP3oXvD5S8K8XqtxY'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=1...ter%3Aexternal=True&name=ctest-bgpaas_vn-26313007', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLlhwkajppyTavrN3gIgN7jpJoXgzVqNELx09EK...in-aY7-SmnMtnNFM6hk1IKVGk6gslF3jDP3oXvD5S8K8XqtxY'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc329b17550>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLlhwkajppyTavrN3gIgN7jpJoXgzVqNELx09EK...in-aY7-SmnMtnNFM6hk1IKVGk6gslF3jDP3oXvD5S8K8XqtxY'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=1...ter%3Aexternal=True&name=ctest-bgpaas_vn-26313007', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLlhwkajppyTavrN3gIgN7jpJoXgzVqNELx09EK...in-aY7-SmnMtnNFM6hk1IKVGk6gslF3jDP3oXvD5S8K8XqtxY'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1-9ae7ea99bf7f&router%3Aexternal=True&name=ctest-bgpaas_vn-26313007: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1-9ae7ea99bf7f&router%3Aexternal=True&name=ctest-bgpaas_vn-26313007 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329b17e50>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc329b17e50>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1-9ae7ea99bf7f&router%3Aexternal=True&name=ctest-bgpaas_vn-26313007 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329b17e50>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1-9ae7ea99bf7f&router%3Aexternal=True&name=ctest-bgpaas_vn-26313007 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329b17e50>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/routing_policy/test_routing_policy.py", line 40, in test_rp_interface
ret_dict = self.config_basic()
File "/contrail-test/scripts/routing_policy/base.py", line 37, in config_basic
vn_fixture = self.create_vn(vn_name, vn_subnets)
File "/contrail-test/common/base.py", line 191, in create_vn
vn_fixture = self.create_only_vn(vn_name=vn_name,
File "/contrail-test/common/base.py", line 186, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1-9ae7ea99bf7f&router%3Aexternal=True&name=ctest-bgpaas_vn-26313007: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=1a457a64-cc9f-4459-99f1-9ae7ea99bf7f&router%3Aexternal=True&name=ctest-bgpaas_vn-26313007 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329b17e50>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.742 Log File
test_svc_in_network_datapath[ci_sanity]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:36:58 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestSvcRegr.test_svc_in_network_datapath>
self = <scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>
args = ()
kwargs = {}

/contrail-test/scripts/svc_firewall/test_svc_fw.py in test_svc_in_network_datapath(self=<scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>)
23 @preposttest_wrapper
24 def test_svc_in_network_datapath(self):
25 return self.verify_svc_chain(svc_img_name='cirros_in_net', service_mode='in-network',
26 create_svms=True)
27
self = <scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>
self.verify_svc_chain = <bound method VerifySvcChain.verify_svc_chain of...n_network_datapath[ci_sanity] id=0x7fc32b769ca0>>
svc_img_name undefined
service_mode undefined
create_svms undefined

/contrail-test/common/servicechain/verify.py in verify_svc_chain(self=<scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>, *args=(), **kwargs={'create_svms': True, 'service_mode': 'in-network', 'svc_img_name': 'cirros_in_net'})
318 def verify_svc_chain(self, *args, **kwargs):
319 svc_chain_info = kwargs.get('svc_chain_info')
320 ret_dict = svc_chain_info or self.config_svc_chain(*args, **kwargs)
321 proto = kwargs.get('proto', 'any')
322 left_vn_fq_name = ret_dict.get('left_vn_fixture').vn_fq_name
ret_dict undefined
svc_chain_info = None
self = <scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>
self.config_svc_chain = <bound method ConfigSvcChain.config_svc_chain of...n_network_datapath[ci_sanity] id=0x7fc32b769ca0>>
args = ()
kwargs = {'create_svms': True, 'service_mode': 'in-network', 'svc_img_name': 'cirros_in_net'}

/contrail-test/common/servicechain/config.py in config_svc_chain(self=<scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>, service_mode='in-network', service_type='firewall', max_inst=1, proto='any', svc_chain_type='parallel', src_ports=[0, 65535], dst_ports=[0, 65535], svc_img_name='cirros_in_net', st_version=2, mgmt_vn_name=None, mgmt_vn_subnets=[], mgmt_vn_fixture=None, left_vn_name=None, left_vn_subnets=[], left_vn_fixture=None, right_vn_name=None, right_vn_subnets=[], right_vn_fixture=None, left_lr_child_vn_fixture=None, right_lr_child_vn_fixture=None, left_vm_name=None, left_vm_fixture=None, right_vm_name=None, right_vm_fixture=None, image_name='cirros', policy_fixture=None, st_fixture=None, si_fixture=None, port_tuples_props=None, static_route=None, svm_fixtures=[], create_svms=True, evpn=False, modify_rules=False, policy_action='pass', hosts=[], **kwargs={})
440 mgmt_vn_subnets,
441 mgmt_vn_fixture,
442 mgmt_vn_fq_name) = self._get_vn_for_config(mgmt_vn_name,
443 mgmt_vn_subnets,
444 mgmt_vn_fixture,
mgmt_vn_fq_name undefined
self = <scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>
self._get_vn_for_config = <bound method ConfigSvcChain._get_vn_for_config ...n_network_datapath[ci_sanity] id=0x7fc32b769ca0>>
mgmt_vn_name = None

/contrail-test/common/servicechain/config.py in _get_vn_for_config(self=<scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>, vn_name='ctest-mgmt_vn-40338269', vn_subnets=['177.35.142.128/26'], vn_fixture=None, vn_name_prefix='mgmt_vn', **kwargs={})
355 vn_subnets = vn_subnets or \
356 [get_random_cidr(af=self.inputs.get_af())]
357 vn_fixture = vn_fixture or self.config_vn(vn_name, vn_subnets, **kwargs)
358 vn_fq_name = vn_fixture.vn_fq_name
359 return (vn_name, vn_subnets, vn_fixture, vn_fq_name)
vn_fixture = None
self = <scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>
self.config_vn = <bound method ConfigSvcChain.config_vn of <scrip...n_network_datapath[ci_sanity] id=0x7fc32b769ca0>>
vn_name = 'ctest-mgmt_vn-40338269'
vn_subnets = ['177.35.142.128/26']
kwargs = {}

/contrail-test/common/servicechain/config.py in config_vn(self=<scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>, vn_name='ctest-mgmt_vn-40338269', vn_net=['177.35.142.128/26'], **kwargs={})
134
135 def config_vn(self, vn_name, vn_net, **kwargs):
136 vn_fixture = self.useFixture(VNFixture(
137 project_name=self.inputs.project_name, connections=self.connections,
138 vn_name=vn_name, inputs=self.inputs, subnets=vn_net, **kwargs))
vn_fixture undefined
self = <scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>
self.useFixture = <bound method TestCase.useFixture of <scripts.sv...n_network_datapath[ci_sanity] id=0x7fc32b769ca0>>
global VNFixture = <class 'vn_test.VNFixture'>
project_name undefined
self.inputs = <common.contrail_test_init.ContrailTestInit object>
self.inputs.project_name = 'ctest-TestSvcRegr-00757541'
connections undefined
self.connections = <common.connections.ContrailConnections object>
vn_name = 'ctest-mgmt_vn-40338269'
inputs undefined
subnets undefined
vn_net = ['177.35.142.128/26']
kwargs = {}

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>, fixture=<vn_test.VNFixture object>)
754 # Gather_details worked, so raise the exception setUp
755 # encountered.
756 reraise(*exc_info)
757 else:
758 self.addCleanup(fixture.cleanUp)
global reraise = <function reraise>
exc_info = (<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), <traceback object>)

/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py in reraise(exc_class=<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, exc_obj=ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), exc_tb=<traceback object>, _marker=<object object>)
13
14 def reraise(exc_class, exc_obj, exc_tb, _marker=object()):
15 """Re-raise an exception received from sys.exc_info() or similar."""
16 raise exc_obj.with_traceback(exc_tb)
17
exc_obj = ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))")
exc_obj.with_traceback = <built-in method with_traceback of ConnectFailure object>
exc_tb = <traceback object>

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...in_network_datapath[ci_sanity] id=0x7fc32b769ca0>, fixture=<vn_test.VNFixture object>)
729 """
730 try:
731 fixture.setUp()
732 except MultipleExceptions as e:
733 if (fixtures is not None and
fixture = <vn_test.VNFixture object>
fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-mgmt_vn-40338269'
project_id undefined
self.project_id = '1e5f4730-48a7-459b-acb6-c4bf21647427'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-mgmt_vn-40338269', option='orch', **kwargs={'project_id': '1e5f4730-48a7-459b-acb6-c4bf21647427'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-mgmt_vn-40338269'
kwargs = {'project_id': '1e5f4730-48a7-459b-acb6-c4bf21647427'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-mgmt_vn-40338269', project_id='1e5f4730-48a7-459b-acb6-c4bf21647427', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-mgmt_vn-40338269', 'router:external': True, 'tenant_id': '1e5f4730-48a7-459b-acb6-c4bf21647427'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-mgmt_vn-40338269', 'router:external': True, 'tenant_id': '1e5f4730-48a7-459b-acb6-c4bf21647427'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-mgmt_vn-40338269', 'router:external': True, 'tenant_id': '1e5f4730-48a7-459b-acb6-c4bf21647427'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-mgmt_vn-40338269', 'router:external': True, 'tenant_id': '1e5f4730-48a7-459b-acb6-c4bf21647427'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-mgmt_vn-40338269', 'router:external': True, 'tenant_id': '1e5f4730-48a7-459b-acb6-c4bf21647427'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-mgmt_vn-40338269', 'router:external': True, 'tenant_id': '1e5f4730-48a7-459b-acb6-c4bf21647427'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-mgmt_vn-40338269', 'router:external': True, 'tenant_id': '1e5f4730-48a7-459b-acb6-c4bf21647427'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-mgmt_vn-40338269', 'router:external': True, 'tenant_id': '1e5f4730-48a7-459b-acb6-c4bf21647427'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-mgmt_vn-40338269', 'router:external': True, 'tenant_id': '1e5f4730-48a7-459b-acb6-c4bf21647427'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-mgmt_vn-40338269', 'router:external': True, 'tenant_id': '1e5f4730-48a7-459b-acb6-c4bf21647427'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-mgmt_vn-40338269', 'router:external': True, 'tenant_id': '1e5f4730-48a7-459b-acb6-c4bf21647427'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6...outer%3Aexternal=True&name=ctest-mgmt_vn-40338269', body=None, headers=None, params={'name': b'ctest-mgmt_vn-40338269', 'router:external': True, 'tenant_id': b'1e5f4730-48a7-459b-acb6-c4bf21647427'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6...outer%3Aexternal=True&name=ctest-mgmt_vn-40338269'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6...outer%3Aexternal=True&name=ctest-mgmt_vn-40338269', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6...outer%3Aexternal=True&name=ctest-mgmt_vn-40338269'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6...outer%3Aexternal=True&name=ctest-mgmt_vn-40338269', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLpgqflgfcLnWohxaKehfBe9QbsVOlzTMcy4mmv...FKLQRXvg_AyvucjPCLXfauiQiJTAMgjTsvxYkeByRmziyq6YE'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6...outer%3Aexternal=True&name=ctest-mgmt_vn-40338269', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLpgqflgfcLnWohxaKehfBe9QbsVOlzTMcy4mmv...FKLQRXvg_AyvucjPCLXfauiQiJTAMgjTsvxYkeByRmziyq6YE'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6...outer%3Aexternal=True&name=ctest-mgmt_vn-40338269', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLpgqflgfcLnWohxaKehfBe9QbsVOlzTMcy4mmv...FKLQRXvg_AyvucjPCLXfauiQiJTAMgjTsvxYkeByRmziyq6YE'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6...outer%3Aexternal=True&name=ctest-mgmt_vn-40338269'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLpgqflgfcLnWohxaKehfBe9QbsVOlzTMcy4mmv...FKLQRXvg_AyvucjPCLXfauiQiJTAMgjTsvxYkeByRmziyq6YE'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=1...outer%3Aexternal=True&name=ctest-mgmt_vn-40338269', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLpgqflgfcLnWohxaKehfBe9QbsVOlzTMcy4mmv...FKLQRXvg_AyvucjPCLXfauiQiJTAMgjTsvxYkeByRmziyq6YE'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc329c321f0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLpgqflgfcLnWohxaKehfBe9QbsVOlzTMcy4mmv...FKLQRXvg_AyvucjPCLXfauiQiJTAMgjTsvxYkeByRmziyq6YE'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=1...outer%3Aexternal=True&name=ctest-mgmt_vn-40338269', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLpgqflgfcLnWohxaKehfBe9QbsVOlzTMcy4mmv...FKLQRXvg_AyvucjPCLXfauiQiJTAMgjTsvxYkeByRmziyq6YE'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6-c4bf21647427&router%3Aexternal=True&name=ctest-mgmt_vn-40338269: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6-c4bf21647427&router%3Aexternal=True&name=ctest-mgmt_vn-40338269 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329bc04f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc329bc04f0>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6-c4bf21647427&router%3Aexternal=True&name=ctest-mgmt_vn-40338269 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329bc04f0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6-c4bf21647427&router%3Aexternal=True&name=ctest-mgmt_vn-40338269 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329bc04f0>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/svc_firewall/test_svc_fw.py", line 25, in test_svc_in_network_datapath
return self.verify_svc_chain(svc_img_name='cirros_in_net', service_mode='in-network',
File "/contrail-test/common/servicechain/verify.py", line 320, in verify_svc_chain
ret_dict = svc_chain_info or self.config_svc_chain(*args, **kwargs)
File "/contrail-test/common/servicechain/config.py", line 442, in config_svc_chain
mgmt_vn_fq_name) = self._get_vn_for_config(mgmt_vn_name,
File "/contrail-test/common/servicechain/config.py", line 357, in _get_vn_for_config
vn_fixture = vn_fixture or self.config_vn(vn_name, vn_subnets, **kwargs)
File "/contrail-test/common/servicechain/config.py", line 136, in config_vn
vn_fixture = self.useFixture(VNFixture(
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6-c4bf21647427&router%3Aexternal=True&name=ctest-mgmt_vn-40338269: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=1e5f4730-48a7-459b-acb6-c4bf21647427&router%3Aexternal=True&name=ctest-mgmt_vn-40338269 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329bc04f0>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.742 Log File
test_vdns_ping_same_vn[ci_sanity,sanity,suite1]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: stderr: {{{
/contrail-test/tcutils/control/cn_introspect_utils.py:40: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
if not p:
}}}

Traceback (most recent call last):
File "/contrail-test/tcutils/util.py", line 1041, in wrapper
return f(self, *func_args, **func_kwargs)
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:37:03 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes...me_vn[ci_sanity,sanity,suite1] id=0x7fc32b724700>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestvDNSBasic0.test_vdns_ping_same_vn>
self = <scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes...me_vn[ci_sanity,sanity,suite1] id=0x7fc32b724700>
args = ()
kwargs = {}

/contrail-test/scripts/vdns/test_vdns_basic.py in test_vdns_ping_same_vn(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes...me_vn[ci_sanity,sanity,suite1] id=0x7fc32b724700>)
81 # Associate VDNS with IPAM.
82 ipam_fixt1 = self.useFixture(IPAMFixture(ipam_name, vdns_obj= vdns_fixt1.obj, connections=proj_connections, ipamtype=ipam_mgmt_obj))
83 vn_fixt = self.useFixture(
84 VNFixture(
85 self.connections, self.inputs,
vn_fixt undefined
self = <scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes...me_vn[ci_sanity,sanity,suite1] id=0x7fc32b724700>
self.useFixture = <bound method TestCase.useFixture of <scripts.vd...e_vn[ci_sanity,sanity,suite1] id=0x7fc32b724700>>
global VNFixture = <class 'vn_test.VNFixture'>
self.connections = <common.connections.ContrailConnections object>
self.inputs = <common.contrail_test_init.ContrailTestInit object>
vn_name = 'ctest-vn1-vdns-57384397'
subnets undefined
vn1_ip = '10.10.10.0/24'
ipam_fq_name undefined
ipam_fixt1 = <ipam_test.IPAMFixture object>
ipam_fixt1.fq_name = ['default-domain', 'ctest-TestvDNSBasic0-00640447', 'ipam1']

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes...me_vn[ci_sanity,sanity,suite1] id=0x7fc32b724700>, fixture=<vn_test.VNFixture object>)
754 # Gather_details worked, so raise the exception setUp
755 # encountered.
756 reraise(*exc_info)
757 else:
758 self.addCleanup(fixture.cleanUp)
global reraise = <function reraise>
exc_info = (<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), <traceback object>)

/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py in reraise(exc_class=<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, exc_obj=ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), exc_tb=<traceback object>, _marker=<object object>)
13
14 def reraise(exc_class, exc_obj, exc_tb, _marker=object()):
15 """Re-raise an exception received from sys.exc_info() or similar."""
16 raise exc_obj.with_traceback(exc_tb)
17
exc_obj = ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))")
exc_obj.with_traceback = <built-in method with_traceback of ConnectFailure object>
exc_tb = <traceback object>

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes...me_vn[ci_sanity,sanity,suite1] id=0x7fc32b724700>, fixture=<vn_test.VNFixture object>)
729 """
730 try:
731 fixture.setUp()
732 except MultipleExceptions as e:
733 if (fixtures is not None and
fixture = <vn_test.VNFixture object>
fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn1-vdns-57384397'
project_id undefined
self.project_id = 'f75008ed-ccfa-4143-a099-1c2751a79c77'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn1-vdns-57384397', option='orch', **kwargs={'project_id': 'f75008ed-ccfa-4143-a099-1c2751a79c77'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn1-vdns-57384397'
kwargs = {'project_id': 'f75008ed-ccfa-4143-a099-1c2751a79c77'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn1-vdns-57384397', project_id='f75008ed-ccfa-4143-a099-1c2751a79c77', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn1-vdns-57384397', 'router:external': True, 'tenant_id': 'f75008ed-ccfa-4143-a099-1c2751a79c77'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn1-vdns-57384397', 'router:external': True, 'tenant_id': 'f75008ed-ccfa-4143-a099-1c2751a79c77'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn1-vdns-57384397', 'router:external': True, 'tenant_id': 'f75008ed-ccfa-4143-a099-1c2751a79c77'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn1-vdns-57384397', 'router:external': True, 'tenant_id': 'f75008ed-ccfa-4143-a099-1c2751a79c77'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn1-vdns-57384397', 'router:external': True, 'tenant_id': 'f75008ed-ccfa-4143-a099-1c2751a79c77'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn1-vdns-57384397', 'router:external': True, 'tenant_id': 'f75008ed-ccfa-4143-a099-1c2751a79c77'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn1-vdns-57384397', 'router:external': True, 'tenant_id': 'f75008ed-ccfa-4143-a099-1c2751a79c77'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn1-vdns-57384397', 'router:external': True, 'tenant_id': 'f75008ed-ccfa-4143-a099-1c2751a79c77'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn1-vdns-57384397', 'router:external': True, 'tenant_id': 'f75008ed-ccfa-4143-a099-1c2751a79c77'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn1-vdns-57384397', 'router:external': True, 'tenant_id': 'f75008ed-ccfa-4143-a099-1c2751a79c77'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn1-vdns-57384397', 'router:external': True, 'tenant_id': 'f75008ed-ccfa-4143-a099-1c2751a79c77'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099...uter%3Aexternal=True&name=ctest-vn1-vdns-57384397', body=None, headers=None, params={'name': b'ctest-vn1-vdns-57384397', 'router:external': True, 'tenant_id': b'f75008ed-ccfa-4143-a099-1c2751a79c77'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099...uter%3Aexternal=True&name=ctest-vn1-vdns-57384397'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099...uter%3Aexternal=True&name=ctest-vn1-vdns-57384397', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099...uter%3Aexternal=True&name=ctest-vn1-vdns-57384397'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099...uter%3Aexternal=True&name=ctest-vn1-vdns-57384397', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLtnRoW3BaanerABRSRAdIyVIJXB9YQQ84QhVHX...oMOGbnT3gH7aAeoxsa6VmRSLvAF4yd2YO2izNMgJnpXUQ3vm8'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099...uter%3Aexternal=True&name=ctest-vn1-vdns-57384397', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLtnRoW3BaanerABRSRAdIyVIJXB9YQQ84QhVHX...oMOGbnT3gH7aAeoxsa6VmRSLvAF4yd2YO2izNMgJnpXUQ3vm8'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099...uter%3Aexternal=True&name=ctest-vn1-vdns-57384397', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLtnRoW3BaanerABRSRAdIyVIJXB9YQQ84QhVHX...oMOGbnT3gH7aAeoxsa6VmRSLvAF4yd2YO2izNMgJnpXUQ3vm8'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099...uter%3Aexternal=True&name=ctest-vn1-vdns-57384397'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLtnRoW3BaanerABRSRAdIyVIJXB9YQQ84QhVHX...oMOGbnT3gH7aAeoxsa6VmRSLvAF4yd2YO2izNMgJnpXUQ3vm8'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=f...uter%3Aexternal=True&name=ctest-vn1-vdns-57384397', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLtnRoW3BaanerABRSRAdIyVIJXB9YQQ84QhVHX...oMOGbnT3gH7aAeoxsa6VmRSLvAF4yd2YO2izNMgJnpXUQ3vm8'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc32995d9d0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLtnRoW3BaanerABRSRAdIyVIJXB9YQQ84QhVHX...oMOGbnT3gH7aAeoxsa6VmRSLvAF4yd2YO2izNMgJnpXUQ3vm8'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=f...uter%3Aexternal=True&name=ctest-vn1-vdns-57384397', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLtnRoW3BaanerABRSRAdIyVIJXB9YQQ84QhVHX...oMOGbnT3gH7aAeoxsa6VmRSLvAF4yd2YO2izNMgJnpXUQ3vm8'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099-1c2751a79c77&router%3Aexternal=True&name=ctest-vn1-vdns-57384397: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099-1c2751a79c77&router%3Aexternal=True&name=ctest-vn1-vdns-57384397 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32994c760>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc32994c760>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099-1c2751a79c77&router%3Aexternal=True&name=ctest-vn1-vdns-57384397 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32994c760>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099-1c2751a79c77&router%3Aexternal=True&name=ctest-vn1-vdns-57384397 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32994c760>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/vdns/test_vdns_basic.py", line 83, in test_vdns_ping_same_vn
vn_fixt = self.useFixture(
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099-1c2751a79c77&router%3Aexternal=True&name=ctest-vn1-vdns-57384397: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=f75008ed-ccfa-4143-a099-1c2751a79c77&router%3Aexternal=True&name=ctest-vn1-vdns-57384397 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32994c760>: Failed to establish a new connection: [Errno 111] Connection refused'))

2.303 Log File
test_vm_file_trf_scp_tests[ci_contrail_go_kolla_ocata_sanity,ci_sanity,quick_sanity,vrouter_gw]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/util.py", line 1041, in wrapper
return f(self, *func_args, **func_kwargs)
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:37:07 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.vm_regression.test_vm.TestBasicVMVNx.te...anity,quick_sanity,vrouter_gw] id=0x7fc32b7029a0>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestBasicVMVNx.test_vm_file_trf_scp_tests>
self = <scripts.vm_regression.test_vm.TestBasicVMVNx.te...anity,quick_sanity,vrouter_gw] id=0x7fc32b7029a0>
args = ()
kwargs = {}

/contrail-test/scripts/vm_regression/test_vm.py in test_vm_file_trf_scp_tests(self=<scripts.vm_regression.test_vm.TestBasicVMVNx.te...anity,quick_sanity,vrouter_gw] id=0x7fc32b7029a0>)
2859 cmd_to_sync = [x]
2860 create_result = True
2861 vn_fixture = self.create_vn(orch=self.orchestrator)
2862 vm1_fixture = self.create_vm(vn_fixture=vn_fixture,
2863 image_name='ubuntu-sshpass',
vn_fixture undefined
self = <scripts.vm_regression.test_vm.TestBasicVMVNx.te...anity,quick_sanity,vrouter_gw] id=0x7fc32b7029a0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...nity,quick_sanity,vrouter_gw] id=0x7fc32b7029a0>>
orch undefined
self.orchestrator = <openstack.OpenstackOrchestrator object>

/contrail-test/common/base.py in create_vn(self=<scripts.vm_regression.test_vm.TestBasicVMVNx.te...anity,quick_sanity,vrouter_gw] id=0x7fc32b7029a0>, vn_name=None, vn_subnets=None, cleanup=True, **kwargs={'orch': <openstack.OpenstackOrchestrator object>})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.vm_regression.test_vm.TestBasicVMVNx.te...anity,quick_sanity,vrouter_gw] id=0x7fc32b7029a0>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ... 'scripts.vm_regression.test_vm.TestBasicVMVNx'>>
vn_name = None
vn_subnets = None
kwargs = {'orch': <openstack.OpenstackOrchestrator object>}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.vm_regression.test_vm.TestBasicVMVNx'>, vn_name='ctest-vn-06076992', vn_subnets=None, **kwargs={'orch': <openstack.OpenstackOrchestrator object>})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn-06076992'
project_id undefined
self.project_id = '21becdea-b8de-4812-b54f-c47ff9654f13'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-06076992', option='orch', **kwargs={'project_id': '21becdea-b8de-4812-b54f-c47ff9654f13'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn-06076992'
kwargs = {'project_id': '21becdea-b8de-4812-b54f-c47ff9654f13'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-06076992', project_id='21becdea-b8de-4812-b54f-c47ff9654f13', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn-06076992', 'router:external': True, 'tenant_id': '21becdea-b8de-4812-b54f-c47ff9654f13'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn-06076992', 'router:external': True, 'tenant_id': '21becdea-b8de-4812-b54f-c47ff9654f13'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn-06076992', 'router:external': True, 'tenant_id': '21becdea-b8de-4812-b54f-c47ff9654f13'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn-06076992', 'router:external': True, 'tenant_id': '21becdea-b8de-4812-b54f-c47ff9654f13'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn-06076992', 'router:external': True, 'tenant_id': '21becdea-b8de-4812-b54f-c47ff9654f13'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn-06076992', 'router:external': True, 'tenant_id': '21becdea-b8de-4812-b54f-c47ff9654f13'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn-06076992', 'router:external': True, 'tenant_id': '21becdea-b8de-4812-b54f-c47ff9654f13'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn-06076992', 'router:external': True, 'tenant_id': '21becdea-b8de-4812-b54f-c47ff9654f13'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-06076992', 'router:external': True, 'tenant_id': '21becdea-b8de-4812-b54f-c47ff9654f13'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn-06076992', 'router:external': True, 'tenant_id': '21becdea-b8de-4812-b54f-c47ff9654f13'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-06076992', 'router:external': True, 'tenant_id': '21becdea-b8de-4812-b54f-c47ff9654f13'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=21becdea-b8de-4812-b54f...f13&router%3Aexternal=True&name=ctest-vn-06076992', body=None, headers=None, params={'name': b'ctest-vn-06076992', 'router:external': True, 'tenant_id': b'21becdea-b8de-4812-b54f-c47ff9654f13'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=21becdea-b8de-4812-b54f...f13&router%3Aexternal=True&name=ctest-vn-06076992'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=21becdea-b8de-4812-b54f...f13&router%3Aexternal=True&name=ctest-vn-06076992', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=21becdea-b8de-4812-b54f...f13&router%3Aexternal=True&name=ctest-vn-06076992'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=21becdea-b8de-4812-b54f...f13&router%3Aexternal=True&name=ctest-vn-06076992', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLysB8Uw3gZnoxoIvRBsOY1wmBTgXXUkIlacdNY...MnrDMy_4zeIUEz5p95xNOEuA1kZ_rrZKlgrCLMZ-ifGMdse6s'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=21becdea-b8de-4812-b54f...f13&router%3Aexternal=True&name=ctest-vn-06076992', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLysB8Uw3gZnoxoIvRBsOY1wmBTgXXUkIlacdNY...MnrDMy_4zeIUEz5p95xNOEuA1kZ_rrZKlgrCLMZ-ifGMdse6s'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=21becdea-b8de-4812-b54f...f13&router%3Aexternal=True&name=ctest-vn-06076992', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLysB8Uw3gZnoxoIvRBsOY1wmBTgXXUkIlacdNY...MnrDMy_4zeIUEz5p95xNOEuA1kZ_rrZKlgrCLMZ-ifGMdse6s'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=21becdea-b8de-4812-b54f...f13&router%3Aexternal=True&name=ctest-vn-06076992'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLysB8Uw3gZnoxoIvRBsOY1wmBTgXXUkIlacdNY...MnrDMy_4zeIUEz5p95xNOEuA1kZ_rrZKlgrCLMZ-ifGMdse6s'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=2...f13&router%3Aexternal=True&name=ctest-vn-06076992', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLysB8Uw3gZnoxoIvRBsOY1wmBTgXXUkIlacdNY...MnrDMy_4zeIUEz5p95xNOEuA1kZ_rrZKlgrCLMZ-ifGMdse6s'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc32984d340>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLysB8Uw3gZnoxoIvRBsOY1wmBTgXXUkIlacdNY...MnrDMy_4zeIUEz5p95xNOEuA1kZ_rrZKlgrCLMZ-ifGMdse6s'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=2...f13&router%3Aexternal=True&name=ctest-vn-06076992', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmLysB8Uw3gZnoxoIvRBsOY1wmBTgXXUkIlacdNY...MnrDMy_4zeIUEz5p95xNOEuA1kZ_rrZKlgrCLMZ-ifGMdse6s'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=21becdea-b8de-4812-b54f-c47ff9654f13&router%3Aexternal=True&name=ctest-vn-06076992: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=21becdea-b8de-4812-b54f-c47ff9654f13&router%3Aexternal=True&name=ctest-vn-06076992 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32984dd90>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc32984dd90>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=21becdea-b8de-4812-b54f-c47ff9654f13&router%3Aexternal=True&name=ctest-vn-06076992 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32984dd90>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=21becdea-b8de-4812-b54f-c47ff9654f13&router%3Aexternal=True&name=ctest-vn-06076992 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32984dd90>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/vm_regression/test_vm.py", line 2861, in test_vm_file_trf_scp_tests
vn_fixture = self.create_vn(orch=self.orchestrator)
File "/contrail-test/common/base.py", line 191, in create_vn
vn_fixture = self.create_only_vn(vn_name=vn_name,
File "/contrail-test/common/base.py", line 186, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=21becdea-b8de-4812-b54f-c47ff9654f13&router%3Aexternal=True&name=ctest-vn-06076992: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=21becdea-b8de-4812-b54f-c47ff9654f13&router%3Aexternal=True&name=ctest-vn-06076992 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc32984dd90>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.723 Log File
test_generic_link_local_service[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity,dev_sanity_dpdk,sanity,suite1]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:37:11 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...dev_sanity_dpdk,sanity,suite1] id=0x7fc32b702dc0>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestBasicVMVN.test_generic_link_local_service>
self = <scripts.vm_regression.test_vm_basic.TestBasicVM...dev_sanity_dpdk,sanity,suite1] id=0x7fc32b702dc0>
args = ()
kwargs = {}

/contrail-test/scripts/vm_regression/test_vm_basic.py in test_generic_link_local_service(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...dev_sanity_dpdk,sanity,suite1] id=0x7fc32b702dc0>)
270 vn_name = get_random_name('vn2_metadata')
271 vn_subnets = ['11.1.1.0/24']
272 vn_fixture = self.useFixture(
273 VNFixture(
274 project_name=self.inputs.project_name, connections=self.connections,
vn_fixture undefined
self = <scripts.vm_regression.test_vm_basic.TestBasicVM...dev_sanity_dpdk,sanity,suite1] id=0x7fc32b702dc0>
self.useFixture = <bound method TestCase.useFixture of <scripts.vm...ev_sanity_dpdk,sanity,suite1] id=0x7fc32b702dc0>>
global VNFixture = <class 'vn_test.VNFixture'>
project_name undefined
self.inputs = <common.contrail_test_init.ContrailTestInit object>
self.inputs.project_name = 'ctest-TestBasicVMVN-64562559'
connections undefined
self.connections = <common.connections.ContrailConnections object>
vn_name = 'ctest-vn2_metadata-05236320'
inputs undefined
subnets undefined
vn_subnets = ['11.1.1.0/24']

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...dev_sanity_dpdk,sanity,suite1] id=0x7fc32b702dc0>, fixture=<vn_test.VNFixture object>)
754 # Gather_details worked, so raise the exception setUp
755 # encountered.
756 reraise(*exc_info)
757 else:
758 self.addCleanup(fixture.cleanUp)
global reraise = <function reraise>
exc_info = (<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), <traceback object>)

/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py in reraise(exc_class=<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, exc_obj=ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))"), exc_tb=<traceback object>, _marker=<object object>)
13
14 def reraise(exc_class, exc_obj, exc_tb, _marker=object()):
15 """Re-raise an exception received from sys.exc_info() or similar."""
16 raise exc_obj.with_traceback(exc_tb)
17
exc_obj = ConnectFailure("Unable to establish connection t...w connection: [Errno 111] Connection refused'))")
exc_obj.with_traceback = <built-in method with_traceback of ConnectFailure object>
exc_tb = <traceback object>

/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...dev_sanity_dpdk,sanity,suite1] id=0x7fc32b702dc0>, fixture=<vn_test.VNFixture object>)
729 """
730 try:
731 fixture.setUp()
732 except MultipleExceptions as e:
733 if (fixtures is not None and
fixture = <vn_test.VNFixture object>
fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn2_metadata-05236320'
project_id undefined
self.project_id = '8a68ef5e-8d04-45ce-a766-825f0ca6a683'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn2_metadata-05236320', option='orch', **kwargs={'project_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn2_metadata-05236320'
kwargs = {'project_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn2_metadata-05236320', project_id='8a68ef5e-8d04-45ce-a766-825f0ca6a683', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn2_metadata-05236320', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn2_metadata-05236320', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn2_metadata-05236320', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn2_metadata-05236320', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn2_metadata-05236320', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn2_metadata-05236320', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn2_metadata-05236320', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn2_metadata-05236320', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn2_metadata-05236320', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn2_metadata-05236320', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn2_metadata-05236320', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...%3Aexternal=True&name=ctest-vn2_metadata-05236320', body=None, headers=None, params={'name': b'ctest-vn2_metadata-05236320', 'router:external': True, 'tenant_id': b'8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...%3Aexternal=True&name=ctest-vn2_metadata-05236320'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...%3Aexternal=True&name=ctest-vn2_metadata-05236320', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...%3Aexternal=True&name=ctest-vn2_metadata-05236320'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...%3Aexternal=True&name=ctest-vn2_metadata-05236320', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...%3Aexternal=True&name=ctest-vn2_metadata-05236320', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...%3Aexternal=True&name=ctest-vn2_metadata-05236320', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...%3Aexternal=True&name=ctest-vn2_metadata-05236320'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=8...%3Aexternal=True&name=ctest-vn2_metadata-05236320', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc329741c40>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=8...%3Aexternal=True&name=ctest-vn2_metadata-05236320', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn2_metadata-05236320: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn2_metadata-05236320 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329826790>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc329826790>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn2_metadata-05236320 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329826790>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn2_metadata-05236320 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329826790>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/vm_regression/test_vm_basic.py", line 272, in test_generic_link_local_service
vn_fixture = self.useFixture(
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.9/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn2_metadata-05236320: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn2_metadata-05236320 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329826790>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.711 Log File
test_metadata_service[cb_sanity,ci_sanity,sanity,suite1]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:37:12 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7fc32b702c40>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestBasicVMVN.test_metadata_service>
self = <scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7fc32b702c40>
args = ()
kwargs = {}

/contrail-test/scripts/vm_regression/test_vm_basic.py in test_metadata_service(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7fc32b702c40>)
51 f.write(text)
52
53 vn_fixture = self.create_vn(af='v4')
54 vm1_fixture = self.create_vm(vn_fixture=vn_fixture,
55 image_name='cirros',
vn_fixture undefined
self = <scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7fc32b702c40>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...nity,ci_sanity,sanity,suite1] id=0x7fc32b702c40>>
af undefined

/contrail-test/common/base.py in create_vn(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7fc32b702c40>, vn_name=None, vn_subnets=None, cleanup=True, **kwargs={'af': 'v4'})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7fc32b702c40>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...ipts.vm_regression.test_vm_basic.TestBasicVMVN'>>
vn_name = None
vn_subnets = None
kwargs = {'af': 'v4'}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.vm_regression.test_vm_basic.TestBasicVMVN'>, vn_name='ctest-vn-17006703', vn_subnets=None, **kwargs={'af': 'v4'})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn-17006703'
project_id undefined
self.project_id = '8a68ef5e-8d04-45ce-a766-825f0ca6a683'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-17006703', option='orch', **kwargs={'project_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn-17006703'
kwargs = {'project_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-17006703', project_id='8a68ef5e-8d04-45ce-a766-825f0ca6a683', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn-17006703', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn-17006703', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn-17006703', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn-17006703', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn-17006703', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn-17006703', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn-17006703', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn-17006703', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-17006703', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn-17006703', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-17006703', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-17006703', body=None, headers=None, params={'name': b'ctest-vn-17006703', 'router:external': True, 'tenant_id': b'8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-17006703'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-17006703', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-17006703'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-17006703', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-17006703', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-17006703', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-17006703'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=8...683&router%3Aexternal=True&name=ctest-vn-17006703', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc329826610>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=8...683&router%3Aexternal=True&name=ctest-vn-17006703', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn-17006703: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn-17006703 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc3298ad820>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc3298ad820>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn-17006703 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc3298ad820>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn-17006703 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc3298ad820>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/vm_regression/test_vm_basic.py", line 53, in test_metadata_service
vn_fixture = self.create_vn(af='v4')
File "/contrail-test/common/base.py", line 191, in create_vn
vn_fixture = self.create_only_vn(vn_name=vn_name,
File "/contrail-test/common/base.py", line 186, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn-17006703: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn-17006703 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc3298ad820>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.747 Log File
test_ping_within_vn_two_vms_two_different_subnets[ci_contrail_go_kolla_ocata_sanity,ci_sanity,sanity,suite1]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.9.25: /usr/bin/python3
Thu Apr 2 12:37:12 2026

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7fc32b7070a0>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestBasicVMVN.test_ping_within_vn_two_vms_two_different_subnets>
self = <scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7fc32b7070a0>
args = ()
kwargs = {}

/contrail-test/scripts/vm_regression/test_vm_basic.py in test_ping_within_vn_two_vms_two_different_subnets(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7fc32b7070a0>)
124
125 ipam_obj = self.create_ipam()
126 vn1_fixture = self.create_vn(vn_subnets=vn1_subnets,
127 ipam_fq_name=ipam_obj.fq_name)
128
vn1_fixture undefined
self = <scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7fc32b7070a0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...nity,ci_sanity,sanity,suite1] id=0x7fc32b7070a0>>
vn_subnets undefined
vn1_subnets = ['31.1.1.0/29', '31.1.2.0/29']
ipam_fq_name undefined
ipam_obj = <ipam_test.IPAMFixture object>
ipam_obj.fq_name = ['default-domain', 'ctest-TestBasicVMVN-64562559', 'ctest-ipam-04507520']

/contrail-test/common/base.py in create_vn(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7fc32b7070a0>, vn_name=None, vn_subnets=['31.1.1.0/29', '31.1.2.0/29'], cleanup=True, **kwargs={'ipam_fq_name': ['default-domain', 'ctest-TestBasicVMVN-64562559', 'ctest-ipam-04507520']})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7fc32b7070a0>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...ipts.vm_regression.test_vm_basic.TestBasicVMVN'>>
vn_name = None
vn_subnets = ['31.1.1.0/29', '31.1.2.0/29']
kwargs = {'ipam_fq_name': ['default-domain', 'ctest-TestBasicVMVN-64562559', 'ctest-ipam-04507520']}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.vm_regression.test_vm_basic.TestBasicVMVN'>, vn_name='ctest-vn-76752033', vn_subnets=['31.1.1.0/29', '31.1.2.0/29'], **kwargs={'ipam_fq_name': ['default-domain', 'ctest-TestBasicVMVN-64562559', 'ctest-ipam-04507520']})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>

/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn-76752033'
project_id undefined
self.project_id = '8a68ef5e-8d04-45ce-a766-825f0ca6a683'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-76752033', option='orch', **kwargs={'project_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
182
183 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
184 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
185
186 def get_vn_obj_from_id(self, vn_id):
self = <openstack.OpenstackOrchestrator object>
self.quantum_h = <quantum_test.QuantumHelper object>
self.quantum_h.get_vn_obj_if_present = <bound method QuantumHelper.get_vn_obj_if_present of <quantum_test.QuantumHelper object>>
vn_name = 'ctest-vn-76752033'
kwargs = {'project_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-76752033', project_id='8a68ef5e-8d04-45ce-a766-825f0ca6a683', router_external=True)
274 query_dict['name'] = vn_name
275 try:
276 net_rsp = self.obj.list_networks(**query_dict)['networks']
277 if net_rsp:
278 return self.obj.show_network(network=net_rsp[0]['id'])
net_rsp undefined
self = <quantum_test.QuantumHelper object>
self.obj = <neutronclient.v2_0.client.Client object>
self.obj.list_networks = <bound method Client.list_networks of <neutronclient.v2_0.client.Client object>>
query_dict = {'name': 'ctest-vn-76752033', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn-76752033', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
815 """Fetches a list of all networks for a project."""
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
self = <neutronclient.v2_0.client.Client object>
self.list = <bound method ClientBase.list of <neutronclient.v2_0.client.Client object>>
self.networks_path = '/networks'
retrieve_all = True
_params = {'name': 'ctest-vn-76752033', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in list(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', retrieve_all=True, **params={'name': 'ctest-vn-76752033', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
367 res = []
368 request_ids = []
369 for r in self._pagination(collection, path, **params):
370 res.extend(r[collection])
371 request_ids.extend(r.request_ids)
r undefined
self = <neutronclient.v2_0.client.Client object>
self._pagination = <bound method ClientBase._pagination of <neutronclient.v2_0.client.Client object>>
collection = 'networks'
path = '/networks'
params = {'name': 'ctest-vn-76752033', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn-76752033', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
382 next = True
383 while next:
384 res = self.get(path, params=params)
385 yield res
386 next = False
res undefined
self = <neutronclient.v2_0.client.Client object>
self.get = <bound method ClientBase.get of <neutronclient.v2_0.client.Client object>>
path = '/networks'
params = {'name': 'ctest-vn-76752033', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in get(self=<neutronclient.v2_0.client.Client object>, action='/networks', body=None, headers=None, params={'name': 'ctest-vn-76752033', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
351
352 def get(self, action, body=None, headers=None, params=None):
353 return self.retry_request("GET", action, body=body,
354 headers=headers, params=params)
355
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-76752033', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/networks', body=None, headers=None, params={'name': 'ctest-vn-76752033', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'GET'
action = '/networks'
body = None
headers = None
params = {'name': 'ctest-vn-76752033', 'router:external': True, 'tenant_id': '8a68ef5e-8d04-45ce-a766-825f0ca6a683'}

/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='GET', action='/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-76752033', body=None, headers=None, params={'name': b'ctest-vn-76752033', 'router:external': True, 'tenant_id': b'8a68ef5e-8d04-45ce-a766-825f0ca6a683'})
279 body = self.serialize(body)
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
resp undefined
replybody undefined
self = <neutronclient.v2_0.client.Client object>
self.httpclient = <neutronclient.client.SessionClient object>
self.httpclient.do_request = <bound method SessionClient.do_request of <neutronclient.client.SessionClient object>>
action = '/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-76752033'
method = 'GET'
body = None
headers = None

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-76752033', method='GET', **kwargs={'authenticated': True, 'body': None, 'headers': None})
338 kwargs.setdefault('authenticated', True)
339 self._check_uri_length(url)
340 return self.request(url, method, **kwargs)
341
342 @property
self = <neutronclient.client.SessionClient object>
self.request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
url = '/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-76752033'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.9/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-76752033', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'raise_exc': False})
326
327 kwargs['headers'] = headers
328 resp = super(SessionClient, self).request(*args, **kwargs)
329 return resp, resp.text
330
resp undefined
builtinsuper = <class 'super'>
global SessionClient = <class 'neutronclient.client.SessionClient'>
self = <neutronclient.client.SessionClient object>
).request = <bound method SessionClient.request of <neutronclient.client.SessionClient object>>
args = ('/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-76752033', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'raise_exc': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-76752033', method='GET', **kwargs={'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'})
246 kwargs.setdefault('raise_exc', self.raise_exc)
247
248 return self.session.request(url, method, **kwargs)
249
250 def get_token(self, auth=None):
self = <neutronclient.client.SessionClient object>
self.session = <keystoneauth1.session.Session object>
self.session.request = <bound method Session.request of <keystoneauth1.session.Session object>>
url = '/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766...683&router%3Aexternal=True&name=ctest-vn-76752033'
method = 'GET'
kwargs = {'authenticated': True, 'data': None, 'endpoint_filter': {'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=8...683&router%3Aexternal=True&name=ctest-vn-76752033', method='GET', json=None, original_ip=None, user_agent='python-neutronclient', redirect=30, authenticated=True, endpoint_filter={'interface': 'public', 'region_name': 'RegionOne', 'service_type': 'network'}, auth=None, requests_auth=None, raise_exc=False, allow_reauth=True, log=True, endpoint_override=None, connect_retries=0, logger=<Logger keystoneauth.session (WARNING)>, allow=None, client_name=None, client_version=None, microversion=None, microversion_service_type=None, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, global_request_id=None, connect_retry_delay=None, status_code_retry_delay=None, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'verify': False})
911 kwargs.update(connection_params)
912
913 resp = send(**kwargs)
914
915 # log callee and caller request-id for each api call
resp undefined
send = functools.partial(<bound method Session._send_re...auth1.session._Retries object at 0x7fc329716220>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'verify': False}

/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.141:9696/v2.0/networks?tenant_id=8...683&router%3Aexternal=True&name=ctest-vn-76752033', method='GET', redirect=30, log=True, logger=<Logger keystoneauth.session (WARNING)>, split_loggers=None, connect_retries=0, status_code_retries=0, retriable_status_codes=[503], rate_semaphore=<keystoneauth1._fair_semaphore.FairSemaphore object>, connect_retry_delays=<keystoneauth1.session._Retries object>, status_code_retry_delays=<keystoneauth1.session._Retries object>, **kwargs={'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpzmL2jpXJHupNONUIsZORNZX3D8kw4QZv301z98JY...kKkCK5k5u8yAZRuYZjIX5Vhfag410fxhHP2oDNKY8HxvNs5-4'}, 'verify': False})
1018 # and firewall blocking.
1019 msg = 'Unable to establish connection to %s: %s' % (url, e)
1020 raise exceptions.ConnectFailure(msg)
1021 except requests.exceptions.RequestException as e:
1022 msg = 'Unexpected exception for %(url)s: %(error)s' % {
global exceptions = <module 'keystoneauth1.exceptions' from '/usr/lo...e-packages/keystoneauth1/exceptions/__init__.py'>
exceptions.ConnectFailure = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
msg = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn-76752033: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn-76752033 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329716430>: Failed to establish a new connection: [Errno 111] Connection refused'))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo... connection: [Errno 111] Connection refused'))"))
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"}
__dir__ = <built-in method __dir__ of ConnectFailure object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of ConnectFailure object>
__format__ = <built-in method __format__ of ConnectFailure object>
__ge__ = <method-wrapper '__ge__' of ConnectFailure object>
__getattribute__ = <method-wrapper '__getattribute__' of ConnectFailure object>
__gt__ = <method-wrapper '__gt__' of ConnectFailure object>
__hash__ = <method-wrapper '__hash__' of ConnectFailure object>
__init__ = <bound method ClientException.__init__ of Connec... connection: [Errno 111] Connection refused'))")>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of ConnectFailure object>
__lt__ = <method-wrapper '__lt__' of ConnectFailure object>
__module__ = 'keystoneauth1.exceptions.connection'
__ne__ = <method-wrapper '__ne__' of ConnectFailure object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of ConnectFailure object>
__reduce_ex__ = <built-in method __reduce_ex__ of ConnectFailure object>
__repr__ = <method-wrapper '__repr__' of ConnectFailure object>
__setattr__ = <method-wrapper '__setattr__' of ConnectFailure object>
__setstate__ = <built-in method __setstate__ of ConnectFailure object>
__sizeof__ = <built-in method __sizeof__ of ConnectFailure object>
__str__ = <method-wrapper '__str__' of ConnectFailure object>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
args = ("Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))",)
message = "Unable to establish connection to http://10.0.0....new connection: [Errno 111] Connection refused'))"
with_traceback = <built-in method with_traceback of ConnectFailure object>

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.9/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 590, in connect
self._internal_connect(address)
File "/usr/local/lib64/python3.9/site-packages/gevent/_socketcommon.py", line 634, in _internal_connect
raise _SocketError(err, strerror(err))
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib64/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output
self.send(msg)
File "/usr/lib64/python3.9/http/client.py", line 980, in send
self.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 187, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fc329716430>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn-76752033 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329716430>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn-76752033 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329716430>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/vm_regression/test_vm_basic.py", line 126, in test_ping_within_vn_two_vms_two_different_subnets
vn1_fixture = self.create_vn(vn_subnets=vn1_subnets,
File "/contrail-test/common/base.py", line 191, in create_vn
vn_fixture = self.create_only_vn(vn_name=vn_name,
File "/contrail-test/common/base.py", line 186, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 439, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 452, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 295, in _create_vn_orch
self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
File "/contrail-test/fixtures/openstack.py", line 184, in get_vn_obj_if_present
return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
File "/contrail-test/fixtures/quantum_test.py", line 276, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 817, in list_networks
return self.list('networks', self.networks_path, retrieve_all,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 281, in do_request
resp, replybody = self.httpclient.do_request(action, method, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.9/site-packages/keystoneauth1/session.py", line 1020, in _send_request
raise exceptions.ConnectFailure(msg)
keystoneauth1.exceptions.connection.ConnectFailure: Unable to establish connection to http://10.0.0.141:9696/v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn-76752033: HTTPConnectionPool(host='10.0.0.141', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8a68ef5e-8d04-45ce-a766-825f0ca6a683&router%3Aexternal=True&name=ctest-vn-76752033 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc329716430>: Failed to establish a new connection: [Errno 111] Connection refused'))

0.772 Log File
Properties »

Back to top