| Name | Status | Type | Time(s) | LogFile |
| test_contrail_status[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity] | Success | | 0.596 | |
| test_verify_object_logs[ci_sanity,dev_sanity_dpdk,sanity,suite1] | Failure | Details
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
Mon Mar 30 10:36:37 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=0x7f55dec622e0>, *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=0x7f55dec622e0>
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=0x7f55dec622e0>)
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=0x7f55dec622e0>
self.useFixture = <bound method TestCase.useFixture of <scripts.an...ev_sanity_dpdk,sanity,suite1] id=0x7f55dec622e0>>
global VNFixture = <class 'vn_test.VNFixture'>
connections undefined
self.connections = <common.connections.ContrailConnections object>
vn_name = 'ctest-vn22-54713120'
subnets undefined
vn_subnets = ['204.32.240.128/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=0x7f55dec622e0>, 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=0x7f55dec622e0>, 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-54713120'
project_id undefined
self.project_id = '51607218-d67a-44a4-befa-9265cda3e467'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn22-54713120', option='orch', **kwargs={'project_id': '51607218-d67a-44a4-befa-9265cda3e467'})
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-54713120'
kwargs = {'project_id': '51607218-d67a-44a4-befa-9265cda3e467'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn22-54713120', project_id='51607218-d67a-44a4-befa-9265cda3e467', 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-54713120', 'router:external': True, 'tenant_id': '51607218-d67a-44a4-befa-9265cda3e467'}
/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-54713120', 'router:external': True, 'tenant_id': '51607218-d67a-44a4-befa-9265cda3e467'})
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-54713120', 'router:external': True, 'tenant_id': '51607218-d67a-44a4-befa-9265cda3e467'}
/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-54713120', 'router:external': True, 'tenant_id': '51607218-d67a-44a4-befa-9265cda3e467'})
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-54713120', 'router:external': True, 'tenant_id': '51607218-d67a-44a4-befa-9265cda3e467'}
/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-54713120', 'router:external': True, 'tenant_id': '51607218-d67a-44a4-befa-9265cda3e467'})
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-54713120', 'router:external': True, 'tenant_id': '51607218-d67a-44a4-befa-9265cda3e467'}
/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-54713120', 'router:external': True, 'tenant_id': '51607218-d67a-44a4-befa-9265cda3e467'})
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-54713120', 'router:external': True, 'tenant_id': '51607218-d67a-44a4-befa-9265cda3e467'}
/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-54713120', 'router:external': True, 'tenant_id': '51607218-d67a-44a4-befa-9265cda3e467'})
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-54713120', 'router:external': True, 'tenant_id': '51607218-d67a-44a4-befa-9265cda3e467'}
/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=51607218-d67a-44a4-befa...7&router%3Aexternal=True&name=ctest-vn22-54713120', body=None, headers=None, params={'name': b'ctest-vn22-54713120', 'router:external': True, 'tenant_id': b'51607218-d67a-44a4-befa-9265cda3e467'})
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=51607218-d67a-44a4-befa...7&router%3Aexternal=True&name=ctest-vn22-54713120'
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=51607218-d67a-44a4-befa...7&router%3Aexternal=True&name=ctest-vn22-54713120', 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=51607218-d67a-44a4-befa...7&router%3Aexternal=True&name=ctest-vn22-54713120'
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=51607218-d67a-44a4-befa...7&router%3Aexternal=True&name=ctest-vn22-54713120', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylI0kQbcvw-N1-twAzIeqxnK4KEtQA1yMxiJM6Z4...1RZbI42sOpcnUOcKpH2SCOkc2HvfesmzmPEAxiN-qG8yvjgWs'}, '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=51607218-d67a-44a4-befa...7&router%3Aexternal=True&name=ctest-vn22-54713120', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylI0kQbcvw-N1-twAzIeqxnK4KEtQA1yMxiJM6Z4...1RZbI42sOpcnUOcKpH2SCOkc2HvfesmzmPEAxiN-qG8yvjgWs'}, '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=51607218-d67a-44a4-befa...7&router%3Aexternal=True&name=ctest-vn22-54713120', 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': 'gAAAAABpylI0kQbcvw-N1-twAzIeqxnK4KEtQA1yMxiJM6Z4...1RZbI42sOpcnUOcKpH2SCOkc2HvfesmzmPEAxiN-qG8yvjgWs'}, '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=51607218-d67a-44a4-befa...7&router%3Aexternal=True&name=ctest-vn22-54713120'
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': 'gAAAAABpylI0kQbcvw-N1-twAzIeqxnK4KEtQA1yMxiJM6Z4...1RZbI42sOpcnUOcKpH2SCOkc2HvfesmzmPEAxiN-qG8yvjgWs'}, '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.22:9696/v2.0/networks?tenant_id=51...7&router%3Aexternal=True&name=ctest-vn22-54713120', 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': 'gAAAAABpylI0kQbcvw-N1-twAzIeqxnK4KEtQA1yMxiJM6Z4...1RZbI42sOpcnUOcKpH2SCOkc2HvfesmzmPEAxiN-qG8yvjgWs'}, '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 0x7f55de258220>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylI0kQbcvw-N1-twAzIeqxnK4KEtQA1yMxiJM6Z4...1RZbI42sOpcnUOcKpH2SCOkc2HvfesmzmPEAxiN-qG8yvjgWs'}, '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.22:9696/v2.0/networks?tenant_id=51...7&router%3Aexternal=True&name=ctest-vn22-54713120', 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': 'gAAAAABpylI0kQbcvw-N1-twAzIeqxnK4KEtQA1yMxiJM6Z4...1RZbI42sOpcnUOcKpH2SCOkc2HvfesmzmPEAxiN-qG8yvjgWs'}, '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.22:9696/v2.0/networks?tenant_id=51607218-d67a-44a4-befa-9265cda3e467&router%3Aexternal=True&name=ctest-vn22-54713120: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=51607218-d67a-44a4-befa-9265cda3e467&router%3Aexternal=True&name=ctest-vn22-54713120 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55de2b9c70>: 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 0x7f55de2b9c70>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=51607218-d67a-44a4-befa-9265cda3e467&router%3Aexternal=True&name=ctest-vn22-54713120 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55de2b9c70>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=51607218-d67a-44a4-befa-9265cda3e467&router%3Aexternal=True&name=ctest-vn22-54713120 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55de2b9c70>: 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.22:9696/v2.0/networks?tenant_id=51607218-d67a-44a4-befa-9265cda3e467&router%3Aexternal=True&name=ctest-vn22-54713120: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=51607218-d67a-44a4-befa-9265cda3e467&router%3Aexternal=True&name=ctest-vn22-54713120 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55de2b9c70>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.736 |
Log File
|
| test_db_manage[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity] | Success | | 4.290 | |
| test_analytics_docs[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity] | Success | | 0.306 | |
| test_config_docs[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity] | Success | | 0.337 | |
| test_floating_ip[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity,quick_sanity,sanity,suite1,vrouter_gw] | Failure | Details
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
Mon Mar 30 10: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.floatingip.test_floatingip_basic.Floati...nity,sanity,suite1,vrouter_gw] id=0x7f55dea95c10>, *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=0x7f55dea95c10>
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=0x7f55dea95c10>)
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=0x7f55dea95c10>
self.useFixture = <bound method TestCase.useFixture of <scripts.fl...ity,sanity,suite1,vrouter_gw] id=0x7f55dea95c10>>
global VNFixture = <class 'vn_test.VNFixture'>
project_name undefined
self.inputs = <common.contrail_test_init.ContrailTestInit object>
self.inputs.project_name = 'ctest-FloatingipBasicTestSanity-59412576'
connections undefined
self.connections = <common.connections.ContrailConnections object>
inputs undefined
vn_name undefined
fvn_name = 'ctest-fvn-95412873'
subnets undefined
fvn_subnets = ['150.183.18.64/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=0x7f55dea95c10>, 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=0x7f55dea95c10>, 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-95412873'
project_id undefined
self.project_id = 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-fvn-95412873', option='orch', **kwargs={'project_id': 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'})
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-95412873'
kwargs = {'project_id': 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-fvn-95412873', project_id='e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1', 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-95412873', 'router:external': True, 'tenant_id': 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'}
/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-95412873', 'router:external': True, 'tenant_id': 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'})
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-95412873', 'router:external': True, 'tenant_id': 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'}
/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-95412873', 'router:external': True, 'tenant_id': 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'})
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-95412873', 'router:external': True, 'tenant_id': 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'}
/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-95412873', 'router:external': True, 'tenant_id': 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'})
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-95412873', 'router:external': True, 'tenant_id': 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'}
/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-95412873', 'router:external': True, 'tenant_id': 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'})
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-95412873', 'router:external': True, 'tenant_id': 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'}
/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-95412873', 'router:external': True, 'tenant_id': 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'})
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-95412873', 'router:external': True, 'tenant_id': 'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'}
/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=e991b45c-71b8-4d6b-a52a...f1&router%3Aexternal=True&name=ctest-fvn-95412873', body=None, headers=None, params={'name': b'ctest-fvn-95412873', 'router:external': True, 'tenant_id': b'e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1'})
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=e991b45c-71b8-4d6b-a52a...f1&router%3Aexternal=True&name=ctest-fvn-95412873'
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=e991b45c-71b8-4d6b-a52a...f1&router%3Aexternal=True&name=ctest-fvn-95412873', 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=e991b45c-71b8-4d6b-a52a...f1&router%3Aexternal=True&name=ctest-fvn-95412873'
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=e991b45c-71b8-4d6b-a52a...f1&router%3Aexternal=True&name=ctest-fvn-95412873', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylI9SnvpTIHCPy93SIRtDHKYrmq5HS7tP5xh89Um...FgBwbeF3uco5UGF_BCBjTQRUVYkRXfF3EQ9aj1TvXOH8dAe2c'}, '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=e991b45c-71b8-4d6b-a52a...f1&router%3Aexternal=True&name=ctest-fvn-95412873', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylI9SnvpTIHCPy93SIRtDHKYrmq5HS7tP5xh89Um...FgBwbeF3uco5UGF_BCBjTQRUVYkRXfF3EQ9aj1TvXOH8dAe2c'}, '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=e991b45c-71b8-4d6b-a52a...f1&router%3Aexternal=True&name=ctest-fvn-95412873', 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': 'gAAAAABpylI9SnvpTIHCPy93SIRtDHKYrmq5HS7tP5xh89Um...FgBwbeF3uco5UGF_BCBjTQRUVYkRXfF3EQ9aj1TvXOH8dAe2c'}, '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=e991b45c-71b8-4d6b-a52a...f1&router%3Aexternal=True&name=ctest-fvn-95412873'
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': 'gAAAAABpylI9SnvpTIHCPy93SIRtDHKYrmq5HS7tP5xh89Um...FgBwbeF3uco5UGF_BCBjTQRUVYkRXfF3EQ9aj1TvXOH8dAe2c'}, '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.22:9696/v2.0/networks?tenant_id=e9...f1&router%3Aexternal=True&name=ctest-fvn-95412873', 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': 'gAAAAABpylI9SnvpTIHCPy93SIRtDHKYrmq5HS7tP5xh89Um...FgBwbeF3uco5UGF_BCBjTQRUVYkRXfF3EQ9aj1TvXOH8dAe2c'}, '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 0x7f55dcff3100>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylI9SnvpTIHCPy93SIRtDHKYrmq5HS7tP5xh89Um...FgBwbeF3uco5UGF_BCBjTQRUVYkRXfF3EQ9aj1TvXOH8dAe2c'}, '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.22:9696/v2.0/networks?tenant_id=e9...f1&router%3Aexternal=True&name=ctest-fvn-95412873', 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': 'gAAAAABpylI9SnvpTIHCPy93SIRtDHKYrmq5HS7tP5xh89Um...FgBwbeF3uco5UGF_BCBjTQRUVYkRXfF3EQ9aj1TvXOH8dAe2c'}, '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.22:9696/v2.0/networks?tenant_id=e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1&router%3Aexternal=True&name=ctest-fvn-95412873: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1&router%3Aexternal=True&name=ctest-fvn-95412873 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcff3c70>: 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 0x7f55dcff3c70>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1&router%3Aexternal=True&name=ctest-fvn-95412873 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcff3c70>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1&router%3Aexternal=True&name=ctest-fvn-95412873 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcff3c70>: 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.22:9696/v2.0/networks?tenant_id=e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1&router%3Aexternal=True&name=ctest-fvn-95412873: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e991b45c-71b8-4d6b-a52a-ebf43a4e3ff1&router%3Aexternal=True&name=ctest-fvn-95412873 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcff3c70>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.802 |
Log File
|
| test_heat_stacks_list[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity] | Failure | Details
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
Mon Mar 30 10:37:51 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=0x7f55e0b1bd00>, *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=0x7f55e0b1bd00>
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=0x7f55e0b1bd00>)
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=0x7f55e0b1bd00>
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.22:8004/v1/3843c6eec73b4b6c9acf783c3b5f40a0/stacks?', method='GET', **kwargs={'headers': {'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'python-heatclient', 'X-Auth-Token': 'gAAAAABpylJCt_udMOzRNM9TumwkfufHCChmcokaEurO3U_K...RmL53lIwvFrSlgyJ04Siziy7DBIv_Y-EcvVA0fONCtoMqTTAk'}})
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.361 |
Log File
|
| test_router_crud[ci_sanity,dev_sanity_dpdk,sanity] | Failure | Details
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 0x7f55dcd9f7f0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/security-groups (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcd9f7f0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/security-groups (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcd9f7f0>: 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.22:9696/v2.0/security-groups: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/security-groups (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcd9f7f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.015 |
Log File
|
| test_ports_bindings[ci_sanity,dev_sanity_dpdk,sanity] | Failure | Details
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
Mon Mar 30 10:37: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.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7f55de51a070>, *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=0x7f55de51a070>
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=0x7f55de51a070>)
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=0x7f55de51a070>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...anity,dev_sanity_dpdk,sanity] id=0x7f55de51a070>>
/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7f55de51a070>, 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=0x7f55de51a070>
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-18676832', 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-18676832'
project_id undefined
self.project_id = 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-18676832', option='orch', **kwargs={'project_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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-18676832'
kwargs = {'project_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-18676832', project_id='a7ca525c-e591-4eb8-9ffa-5e337d7e1db9', 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-18676832', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/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-18676832', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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-18676832', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/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-18676832', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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-18676832', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/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-18676832', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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-18676832', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/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-18676832', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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-18676832', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/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-18676832', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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-18676832', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/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=a7ca525c-e591-4eb8-9ffa...db9&router%3Aexternal=True&name=ctest-vn-18676832', body=None, headers=None, params={'name': b'ctest-vn-18676832', 'router:external': True, 'tenant_id': b'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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=a7ca525c-e591-4eb8-9ffa...db9&router%3Aexternal=True&name=ctest-vn-18676832'
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=a7ca525c-e591-4eb8-9ffa...db9&router%3Aexternal=True&name=ctest-vn-18676832', 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=a7ca525c-e591-4eb8-9ffa...db9&router%3Aexternal=True&name=ctest-vn-18676832'
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=a7ca525c-e591-4eb8-9ffa...db9&router%3Aexternal=True&name=ctest-vn-18676832', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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=a7ca525c-e591-4eb8-9ffa...db9&router%3Aexternal=True&name=ctest-vn-18676832', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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=a7ca525c-e591-4eb8-9ffa...db9&router%3Aexternal=True&name=ctest-vn-18676832', 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': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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=a7ca525c-e591-4eb8-9ffa...db9&router%3Aexternal=True&name=ctest-vn-18676832'
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': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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.22:9696/v2.0/networks?tenant_id=a7...db9&router%3Aexternal=True&name=ctest-vn-18676832', 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': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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 0x7f55dcb6c8b0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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.22:9696/v2.0/networks?tenant_id=a7...db9&router%3Aexternal=True&name=ctest-vn-18676832', 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': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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.22:9696/v2.0/networks?tenant_id=a7ca525c-e591-4eb8-9ffa-5e337d7e1db9&router%3Aexternal=True&name=ctest-vn-18676832: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a7ca525c-e591-4eb8-9ffa-5e337d7e1db9&router%3Aexternal=True&name=ctest-vn-18676832 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcb6f760>: 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 0x7f55dcb6f760>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a7ca525c-e591-4eb8-9ffa-5e337d7e1db9&router%3Aexternal=True&name=ctest-vn-18676832 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcb6f760>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a7ca525c-e591-4eb8-9ffa-5e337d7e1db9&router%3Aexternal=True&name=ctest-vn-18676832 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcb6f760>: 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.22:9696/v2.0/networks?tenant_id=a7ca525c-e591-4eb8-9ffa-5e337d7e1db9&router%3Aexternal=True&name=ctest-vn-18676832: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a7ca525c-e591-4eb8-9ffa-5e337d7e1db9&router%3Aexternal=True&name=ctest-vn-18676832 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcb6f760>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.770 |
Log File
|
| test_ports_specific_subnet_ip[ci_sanity,dev_sanity_dpdk,sanity] | Failure | Details
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
Mon Mar 30 10:37:59 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=0x7f55de52bfa0>, *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=0x7f55de52bfa0>
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=0x7f55de52bfa0>)
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=0x7f55de52bfa0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...anity,dev_sanity_dpdk,sanity] id=0x7f55de52bfa0>>
vn1_name = 'ctest-vn1-18301549'
vn1_subnet_1 = '78.222.34.128/26'
vn1_subnet_2 = '206.229.119.0/26'
/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7f55de52bfa0>, vn_name='ctest-vn1-18301549', vn_subnets=['78.222.34.128/26', '206.229.119.0/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=0x7f55de52bfa0>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of <class 'scripts.neutron.test_ports.TestPorts'>>
vn_name = 'ctest-vn1-18301549'
vn_subnets = ['78.222.34.128/26', '206.229.119.0/26']
kwargs = {}
/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.neutron.test_ports.TestPorts'>, vn_name='ctest-vn1-18301549', vn_subnets=['78.222.34.128/26', '206.229.119.0/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-18301549'
project_id undefined
self.project_id = 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn1-18301549', option='orch', **kwargs={'project_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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-18301549'
kwargs = {'project_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn1-18301549', project_id='a7ca525c-e591-4eb8-9ffa-5e337d7e1db9', 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-18301549', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/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-18301549', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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-18301549', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/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-18301549', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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-18301549', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/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-18301549', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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-18301549', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/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-18301549', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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-18301549', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/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-18301549', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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-18301549', 'router:external': True, 'tenant_id': 'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'}
/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=a7ca525c-e591-4eb8-9ffa...b9&router%3Aexternal=True&name=ctest-vn1-18301549', body=None, headers=None, params={'name': b'ctest-vn1-18301549', 'router:external': True, 'tenant_id': b'a7ca525c-e591-4eb8-9ffa-5e337d7e1db9'})
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=a7ca525c-e591-4eb8-9ffa...b9&router%3Aexternal=True&name=ctest-vn1-18301549'
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=a7ca525c-e591-4eb8-9ffa...b9&router%3Aexternal=True&name=ctest-vn1-18301549', 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=a7ca525c-e591-4eb8-9ffa...b9&router%3Aexternal=True&name=ctest-vn1-18301549'
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=a7ca525c-e591-4eb8-9ffa...b9&router%3Aexternal=True&name=ctest-vn1-18301549', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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=a7ca525c-e591-4eb8-9ffa...b9&router%3Aexternal=True&name=ctest-vn1-18301549', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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=a7ca525c-e591-4eb8-9ffa...b9&router%3Aexternal=True&name=ctest-vn1-18301549', 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': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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=a7ca525c-e591-4eb8-9ffa...b9&router%3Aexternal=True&name=ctest-vn1-18301549'
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': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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.22:9696/v2.0/networks?tenant_id=a7...b9&router%3Aexternal=True&name=ctest-vn1-18301549', 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': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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 0x7f55dcb6f370>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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.22:9696/v2.0/networks?tenant_id=a7...b9&router%3Aexternal=True&name=ctest-vn1-18301549', 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': 'gAAAAABpylKFQbDtlrqE7hGUUd5Q7hQWde5CjBNOE_nzE3LX...a-re64VpaUPU6f3zuminY8y-r0QJos55Gp5plX7qGwMbbgWI4'}, '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.22:9696/v2.0/networks?tenant_id=a7ca525c-e591-4eb8-9ffa-5e337d7e1db9&router%3Aexternal=True&name=ctest-vn1-18301549: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a7ca525c-e591-4eb8-9ffa-5e337d7e1db9&router%3Aexternal=True&name=ctest-vn1-18301549 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcb6ff40>: 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 0x7f55dcb6ff40>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a7ca525c-e591-4eb8-9ffa-5e337d7e1db9&router%3Aexternal=True&name=ctest-vn1-18301549 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcb6ff40>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a7ca525c-e591-4eb8-9ffa-5e337d7e1db9&router%3Aexternal=True&name=ctest-vn1-18301549 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcb6ff40>: 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.22:9696/v2.0/networks?tenant_id=a7ca525c-e591-4eb8-9ffa-5e337d7e1db9&router%3Aexternal=True&name=ctest-vn1-18301549: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a7ca525c-e591-4eb8-9ffa-5e337d7e1db9&router%3Aexternal=True&name=ctest-vn1-18301549 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcb6ff40>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.461 |
Log File
|
| test_basic_router_behavior[ci_sanity,dev_sanity_dpdk,sanity] | Failure | Details
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
Mon Mar 30 10:38: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.neutron.test_routers.TestRouters.test_b...sanity,dev_sanity_dpdk,sanity] id=0x7f55de542f10>, *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=0x7f55de542f10>
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=0x7f55de542f10>)
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=0x7f55de542f10>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...anity,dev_sanity_dpdk,sanity] id=0x7f55de542f10>>
vn1_name = 'ctest-vn1-62409885'
vn1_subnets = ['53.54.104.192/26']
/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_routers.TestRouters.test_b...sanity,dev_sanity_dpdk,sanity] id=0x7f55de542f10>, vn_name='ctest-vn1-62409885', vn_subnets=['53.54.104.192/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=0x7f55de542f10>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of <class 'scripts.neutron.test_routers.TestRouters'>>
vn_name = 'ctest-vn1-62409885'
vn_subnets = ['53.54.104.192/26']
kwargs = {}
/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.neutron.test_routers.TestRouters'>, vn_name='ctest-vn1-62409885', vn_subnets=['53.54.104.192/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-62409885'
project_id undefined
self.project_id = '6d248399-6f3f-4ee5-831f-71d8973dd95b'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn1-62409885', option='orch', **kwargs={'project_id': '6d248399-6f3f-4ee5-831f-71d8973dd95b'})
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-62409885'
kwargs = {'project_id': '6d248399-6f3f-4ee5-831f-71d8973dd95b'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn1-62409885', project_id='6d248399-6f3f-4ee5-831f-71d8973dd95b', 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-62409885', 'router:external': True, 'tenant_id': '6d248399-6f3f-4ee5-831f-71d8973dd95b'}
/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-62409885', 'router:external': True, 'tenant_id': '6d248399-6f3f-4ee5-831f-71d8973dd95b'})
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-62409885', 'router:external': True, 'tenant_id': '6d248399-6f3f-4ee5-831f-71d8973dd95b'}
/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-62409885', 'router:external': True, 'tenant_id': '6d248399-6f3f-4ee5-831f-71d8973dd95b'})
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-62409885', 'router:external': True, 'tenant_id': '6d248399-6f3f-4ee5-831f-71d8973dd95b'}
/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-62409885', 'router:external': True, 'tenant_id': '6d248399-6f3f-4ee5-831f-71d8973dd95b'})
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-62409885', 'router:external': True, 'tenant_id': '6d248399-6f3f-4ee5-831f-71d8973dd95b'}
/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-62409885', 'router:external': True, 'tenant_id': '6d248399-6f3f-4ee5-831f-71d8973dd95b'})
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-62409885', 'router:external': True, 'tenant_id': '6d248399-6f3f-4ee5-831f-71d8973dd95b'}
/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-62409885', 'router:external': True, 'tenant_id': '6d248399-6f3f-4ee5-831f-71d8973dd95b'})
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-62409885', 'router:external': True, 'tenant_id': '6d248399-6f3f-4ee5-831f-71d8973dd95b'}
/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=6d248399-6f3f-4ee5-831f...5b&router%3Aexternal=True&name=ctest-vn1-62409885', body=None, headers=None, params={'name': b'ctest-vn1-62409885', 'router:external': True, 'tenant_id': b'6d248399-6f3f-4ee5-831f-71d8973dd95b'})
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=6d248399-6f3f-4ee5-831f...5b&router%3Aexternal=True&name=ctest-vn1-62409885'
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=6d248399-6f3f-4ee5-831f...5b&router%3Aexternal=True&name=ctest-vn1-62409885', 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=6d248399-6f3f-4ee5-831f...5b&router%3Aexternal=True&name=ctest-vn1-62409885'
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=6d248399-6f3f-4ee5-831f...5b&router%3Aexternal=True&name=ctest-vn1-62409885', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKKpDM1jjGCCk2L6A2HTeCDa9t_HKpC92RFGCVn...YNtiAanfyEfDCwi-LQ6NEy5QnkEDSj76bAWfROwhz00po5IP4'}, '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=6d248399-6f3f-4ee5-831f...5b&router%3Aexternal=True&name=ctest-vn1-62409885', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKKpDM1jjGCCk2L6A2HTeCDa9t_HKpC92RFGCVn...YNtiAanfyEfDCwi-LQ6NEy5QnkEDSj76bAWfROwhz00po5IP4'}, '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=6d248399-6f3f-4ee5-831f...5b&router%3Aexternal=True&name=ctest-vn1-62409885', 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': 'gAAAAABpylKKpDM1jjGCCk2L6A2HTeCDa9t_HKpC92RFGCVn...YNtiAanfyEfDCwi-LQ6NEy5QnkEDSj76bAWfROwhz00po5IP4'}, '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=6d248399-6f3f-4ee5-831f...5b&router%3Aexternal=True&name=ctest-vn1-62409885'
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': 'gAAAAABpylKKpDM1jjGCCk2L6A2HTeCDa9t_HKpC92RFGCVn...YNtiAanfyEfDCwi-LQ6NEy5QnkEDSj76bAWfROwhz00po5IP4'}, '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.22:9696/v2.0/networks?tenant_id=6d...5b&router%3Aexternal=True&name=ctest-vn1-62409885', 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': 'gAAAAABpylKKpDM1jjGCCk2L6A2HTeCDa9t_HKpC92RFGCVn...YNtiAanfyEfDCwi-LQ6NEy5QnkEDSj76bAWfROwhz00po5IP4'}, '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 0x7f55dca75d60>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKKpDM1jjGCCk2L6A2HTeCDa9t_HKpC92RFGCVn...YNtiAanfyEfDCwi-LQ6NEy5QnkEDSj76bAWfROwhz00po5IP4'}, '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.22:9696/v2.0/networks?tenant_id=6d...5b&router%3Aexternal=True&name=ctest-vn1-62409885', 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': 'gAAAAABpylKKpDM1jjGCCk2L6A2HTeCDa9t_HKpC92RFGCVn...YNtiAanfyEfDCwi-LQ6NEy5QnkEDSj76bAWfROwhz00po5IP4'}, '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.22:9696/v2.0/networks?tenant_id=6d248399-6f3f-4ee5-831f-71d8973dd95b&router%3Aexternal=True&name=ctest-vn1-62409885: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=6d248399-6f3f-4ee5-831f-71d8973dd95b&router%3Aexternal=True&name=ctest-vn1-62409885 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dca7a490>: 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 0x7f55dca7a490>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=6d248399-6f3f-4ee5-831f-71d8973dd95b&router%3Aexternal=True&name=ctest-vn1-62409885 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dca7a490>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=6d248399-6f3f-4ee5-831f-71d8973dd95b&router%3Aexternal=True&name=ctest-vn1-62409885 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dca7a490>: 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.22:9696/v2.0/networks?tenant_id=6d248399-6f3f-4ee5-831f-71d8973dd95b&router%3Aexternal=True&name=ctest-vn1-62409885: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=6d248399-6f3f-4ee5-831f-71d8973dd95b&router%3Aexternal=True&name=ctest-vn1-62409885 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dca7a490>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.781 |
Log File
|
| test_basic_snat_behavior_without_external_connectivity[ci_sanity,dev_sanity_dpdk,sanity,suite1] | Failure | Details
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
Mon Mar 30 10:38:08 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=0x7f55de4ca640>, *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=0x7f55de4ca640>
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=0x7f55de4ca640>)
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=0x7f55de4ca640>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...ev_sanity_dpdk,sanity,suite1] id=0x7f55de4ca640>>
/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_routers_basic.TestRoutersB...dev_sanity_dpdk,sanity,suite1] id=0x7f55de4ca640>, 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=0x7f55de4ca640>
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-80056212', 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-80056212'
project_id undefined
self.project_id = 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-80056212', option='orch', **kwargs={'project_id': 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'})
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-80056212'
kwargs = {'project_id': 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-80056212', project_id='aeb7b043-2dfa-48cc-82f3-5071b870c3ef', 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-80056212', 'router:external': True, 'tenant_id': 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'}
/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-80056212', 'router:external': True, 'tenant_id': 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'})
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-80056212', 'router:external': True, 'tenant_id': 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'}
/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-80056212', 'router:external': True, 'tenant_id': 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'})
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-80056212', 'router:external': True, 'tenant_id': 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'}
/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-80056212', 'router:external': True, 'tenant_id': 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'})
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-80056212', 'router:external': True, 'tenant_id': 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'}
/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-80056212', 'router:external': True, 'tenant_id': 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'})
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-80056212', 'router:external': True, 'tenant_id': 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'}
/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-80056212', 'router:external': True, 'tenant_id': 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'})
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-80056212', 'router:external': True, 'tenant_id': 'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'}
/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=aeb7b043-2dfa-48cc-82f3...3ef&router%3Aexternal=True&name=ctest-vn-80056212', body=None, headers=None, params={'name': b'ctest-vn-80056212', 'router:external': True, 'tenant_id': b'aeb7b043-2dfa-48cc-82f3-5071b870c3ef'})
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=aeb7b043-2dfa-48cc-82f3...3ef&router%3Aexternal=True&name=ctest-vn-80056212'
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=aeb7b043-2dfa-48cc-82f3...3ef&router%3Aexternal=True&name=ctest-vn-80056212', 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=aeb7b043-2dfa-48cc-82f3...3ef&router%3Aexternal=True&name=ctest-vn-80056212'
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=aeb7b043-2dfa-48cc-82f3...3ef&router%3Aexternal=True&name=ctest-vn-80056212', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKOlKi-MmNlm7vWJHYWKPCHjD_3du0j648d3mmw...SbAqgAkA0XoaGCvKmBGC1G-S0f7r9MVvt21dsCLOubwRNXAis'}, '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=aeb7b043-2dfa-48cc-82f3...3ef&router%3Aexternal=True&name=ctest-vn-80056212', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKOlKi-MmNlm7vWJHYWKPCHjD_3du0j648d3mmw...SbAqgAkA0XoaGCvKmBGC1G-S0f7r9MVvt21dsCLOubwRNXAis'}, '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=aeb7b043-2dfa-48cc-82f3...3ef&router%3Aexternal=True&name=ctest-vn-80056212', 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': 'gAAAAABpylKOlKi-MmNlm7vWJHYWKPCHjD_3du0j648d3mmw...SbAqgAkA0XoaGCvKmBGC1G-S0f7r9MVvt21dsCLOubwRNXAis'}, '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=aeb7b043-2dfa-48cc-82f3...3ef&router%3Aexternal=True&name=ctest-vn-80056212'
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': 'gAAAAABpylKOlKi-MmNlm7vWJHYWKPCHjD_3du0j648d3mmw...SbAqgAkA0XoaGCvKmBGC1G-S0f7r9MVvt21dsCLOubwRNXAis'}, '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.22:9696/v2.0/networks?tenant_id=ae...3ef&router%3Aexternal=True&name=ctest-vn-80056212', 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': 'gAAAAABpylKOlKi-MmNlm7vWJHYWKPCHjD_3du0j648d3mmw...SbAqgAkA0XoaGCvKmBGC1G-S0f7r9MVvt21dsCLOubwRNXAis'}, '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 0x7f55dcacfdc0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKOlKi-MmNlm7vWJHYWKPCHjD_3du0j648d3mmw...SbAqgAkA0XoaGCvKmBGC1G-S0f7r9MVvt21dsCLOubwRNXAis'}, '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.22:9696/v2.0/networks?tenant_id=ae...3ef&router%3Aexternal=True&name=ctest-vn-80056212', 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': 'gAAAAABpylKOlKi-MmNlm7vWJHYWKPCHjD_3du0j648d3mmw...SbAqgAkA0XoaGCvKmBGC1G-S0f7r9MVvt21dsCLOubwRNXAis'}, '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.22:9696/v2.0/networks?tenant_id=aeb7b043-2dfa-48cc-82f3-5071b870c3ef&router%3Aexternal=True&name=ctest-vn-80056212: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=aeb7b043-2dfa-48cc-82f3-5071b870c3ef&router%3Aexternal=True&name=ctest-vn-80056212 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcacffd0>: 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 0x7f55dcacffd0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=aeb7b043-2dfa-48cc-82f3-5071b870c3ef&router%3Aexternal=True&name=ctest-vn-80056212 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcacffd0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=aeb7b043-2dfa-48cc-82f3-5071b870c3ef&router%3Aexternal=True&name=ctest-vn-80056212 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcacffd0>: 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.22:9696/v2.0/networks?tenant_id=aeb7b043-2dfa-48cc-82f3-5071b870c3ef&router%3Aexternal=True&name=ctest-vn-80056212: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=aeb7b043-2dfa-48cc-82f3-5071b870c3ef&router%3Aexternal=True&name=ctest-vn-80056212 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dcacffd0>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 1.655 |
Log File
|
| test_basic_policy_allow_deny[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity,quick_sanity,sanity,suite1] | Failure | Details
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
Mon Mar 30 10:38:13 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=0x7f55de415400>, *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=0x7f55de415400>
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=0x7f55de415400>)
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=0x7f55de415400>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...y,quick_sanity,sanity,suite1] id=0x7f55de415400>>
/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy.TestBasicPolicyIpv4v...ty,quick_sanity,sanity,suite1] id=0x7f55de415400>, 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=0x7f55de415400>
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-60967468', 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-60967468'
project_id undefined
self.project_id = '57fe0a42-e162-4026-8214-a3b4e9df8465'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-60967468', option='orch', **kwargs={'project_id': '57fe0a42-e162-4026-8214-a3b4e9df8465'})
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-60967468'
kwargs = {'project_id': '57fe0a42-e162-4026-8214-a3b4e9df8465'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-60967468', project_id='57fe0a42-e162-4026-8214-a3b4e9df8465', 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-60967468', 'router:external': True, 'tenant_id': '57fe0a42-e162-4026-8214-a3b4e9df8465'}
/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-60967468', 'router:external': True, 'tenant_id': '57fe0a42-e162-4026-8214-a3b4e9df8465'})
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-60967468', 'router:external': True, 'tenant_id': '57fe0a42-e162-4026-8214-a3b4e9df8465'}
/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-60967468', 'router:external': True, 'tenant_id': '57fe0a42-e162-4026-8214-a3b4e9df8465'})
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-60967468', 'router:external': True, 'tenant_id': '57fe0a42-e162-4026-8214-a3b4e9df8465'}
/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-60967468', 'router:external': True, 'tenant_id': '57fe0a42-e162-4026-8214-a3b4e9df8465'})
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-60967468', 'router:external': True, 'tenant_id': '57fe0a42-e162-4026-8214-a3b4e9df8465'}
/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-60967468', 'router:external': True, 'tenant_id': '57fe0a42-e162-4026-8214-a3b4e9df8465'})
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-60967468', 'router:external': True, 'tenant_id': '57fe0a42-e162-4026-8214-a3b4e9df8465'}
/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-60967468', 'router:external': True, 'tenant_id': '57fe0a42-e162-4026-8214-a3b4e9df8465'})
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-60967468', 'router:external': True, 'tenant_id': '57fe0a42-e162-4026-8214-a3b4e9df8465'}
/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=57fe0a42-e162-4026-8214...465&router%3Aexternal=True&name=ctest-vn-60967468', body=None, headers=None, params={'name': b'ctest-vn-60967468', 'router:external': True, 'tenant_id': b'57fe0a42-e162-4026-8214-a3b4e9df8465'})
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=57fe0a42-e162-4026-8214...465&router%3Aexternal=True&name=ctest-vn-60967468'
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=57fe0a42-e162-4026-8214...465&router%3Aexternal=True&name=ctest-vn-60967468', 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=57fe0a42-e162-4026-8214...465&router%3Aexternal=True&name=ctest-vn-60967468'
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=57fe0a42-e162-4026-8214...465&router%3Aexternal=True&name=ctest-vn-60967468', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKTc-fVrjGIcusDJyV6Fgv620DOULY6nv_FYmwW...rUxEf5Pg3JY_u95gXbsQpQvNh4wKg7Yng4yDdO8FutTSatTTI'}, '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=57fe0a42-e162-4026-8214...465&router%3Aexternal=True&name=ctest-vn-60967468', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKTc-fVrjGIcusDJyV6Fgv620DOULY6nv_FYmwW...rUxEf5Pg3JY_u95gXbsQpQvNh4wKg7Yng4yDdO8FutTSatTTI'}, '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=57fe0a42-e162-4026-8214...465&router%3Aexternal=True&name=ctest-vn-60967468', 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': 'gAAAAABpylKTc-fVrjGIcusDJyV6Fgv620DOULY6nv_FYmwW...rUxEf5Pg3JY_u95gXbsQpQvNh4wKg7Yng4yDdO8FutTSatTTI'}, '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=57fe0a42-e162-4026-8214...465&router%3Aexternal=True&name=ctest-vn-60967468'
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': 'gAAAAABpylKTc-fVrjGIcusDJyV6Fgv620DOULY6nv_FYmwW...rUxEf5Pg3JY_u95gXbsQpQvNh4wKg7Yng4yDdO8FutTSatTTI'}, '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.22:9696/v2.0/networks?tenant_id=57...465&router%3Aexternal=True&name=ctest-vn-60967468', 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': 'gAAAAABpylKTc-fVrjGIcusDJyV6Fgv620DOULY6nv_FYmwW...rUxEf5Pg3JY_u95gXbsQpQvNh4wKg7Yng4yDdO8FutTSatTTI'}, '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 0x7f55dc86dd00>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKTc-fVrjGIcusDJyV6Fgv620DOULY6nv_FYmwW...rUxEf5Pg3JY_u95gXbsQpQvNh4wKg7Yng4yDdO8FutTSatTTI'}, '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.22:9696/v2.0/networks?tenant_id=57...465&router%3Aexternal=True&name=ctest-vn-60967468', 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': 'gAAAAABpylKTc-fVrjGIcusDJyV6Fgv620DOULY6nv_FYmwW...rUxEf5Pg3JY_u95gXbsQpQvNh4wKg7Yng4yDdO8FutTSatTTI'}, '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.22:9696/v2.0/networks?tenant_id=57fe0a42-e162-4026-8214-a3b4e9df8465&router%3Aexternal=True&name=ctest-vn-60967468: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=57fe0a42-e162-4026-8214-a3b4e9df8465&router%3Aexternal=True&name=ctest-vn-60967468 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc86d310>: 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 0x7f55dc86d310>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=57fe0a42-e162-4026-8214-a3b4e9df8465&router%3Aexternal=True&name=ctest-vn-60967468 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc86d310>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=57fe0a42-e162-4026-8214-a3b4e9df8465&router%3Aexternal=True&name=ctest-vn-60967468 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc86d310>: 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.22:9696/v2.0/networks?tenant_id=57fe0a42-e162-4026-8214-a3b4e9df8465&router%3Aexternal=True&name=ctest-vn-60967468: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=57fe0a42-e162-4026-8214-a3b4e9df8465&router%3Aexternal=True&name=ctest-vn-60967468 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc86d310>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.754 |
Log File
|
| test_remove_policy_with_ref[ci_sanity,sanity] | Failure | Details
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
Mon Mar 30 10:38:17 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=0x7f55de415f70>, *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=0x7f55de415f70>
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=0x7f55de415f70>)
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=0x7f55de415f70>
).test_remove_policy_with_ref = <bound method TestBasicPolicyNegativeIpv4v6.test...cy_with_ref[ci_sanity,sanity] id=0x7f55de415f70>>
/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7f55de415f70>, *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
Mon Mar 30 10:38:17 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=0x7f55de415f70>, *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=0x7f55de415f70>
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=0x7f55de415f70>)
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=0x7f55de415f70>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...cy_with_ref[ci_sanity,sanity] id=0x7f55de415f70>>
vn1_name = 'ctest-vn4-69312835'
vn1_subnets = ['64.76.205.128/26', '2d0d:1099:98bc:5052:32b2:fcca::/96']
/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7f55de415f70>, vn_name='ctest-vn4-69312835', vn_subnets=['64.76.205.128/26', '2d0d:1099:98bc:5052:32b2:fcca::/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=0x7f55de415f70>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...licy.test_policy.TestBasicPolicyNegativeIpv4v6'>>
vn_name = 'ctest-vn4-69312835'
vn_subnets = ['64.76.205.128/26', '2d0d:1099:98bc:5052:32b2:fcca::/96']
kwargs = {}
/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.policy.test_policy.TestBasicPolicyNegativeIpv4v6'>, vn_name='ctest-vn4-69312835', vn_subnets=['64.76.205.128/26', '2d0d:1099:98bc:5052:32b2:fcca::/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-69312835'
project_id undefined
self.project_id = '01291bf2-1547-42f5-9cc1-01422f554454'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn4-69312835', option='orch', **kwargs={'project_id': '01291bf2-1547-42f5-9cc1-01422f554454'})
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-69312835'
kwargs = {'project_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn4-69312835', project_id='01291bf2-1547-42f5-9cc1-01422f554454', 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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'})
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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'})
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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'})
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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'})
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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'})
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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835', body=None, headers=None, params={'name': b'ctest-vn4-69312835', 'router:external': True, 'tenant_id': b'01291bf2-1547-42f5-9cc1-01422f554454'})
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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835'
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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835', 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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835'
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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835', 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': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835'
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': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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.22:9696/v2.0/networks?tenant_id=01...54&router%3Aexternal=True&name=ctest-vn4-69312835', 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': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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 0x7f55dc77a580>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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.22:9696/v2.0/networks?tenant_id=01...54&router%3Aexternal=True&name=ctest-vn4-69312835', 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': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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.22:9696/v2.0/networks?tenant_id=01291bf2-1547-42f5-9cc1-01422f554454&router%3Aexternal=True&name=ctest-vn4-69312835: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=01291bf2-1547-42f5-9cc1-01422f554454&router%3Aexternal=True&name=ctest-vn4-69312835 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc77b430>: 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 0x7f55dc77b430>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=01291bf2-1547-42f5-9cc1-01422f554454&router%3Aexternal=True&name=ctest-vn4-69312835 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc77b430>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=01291bf2-1547-42f5-9cc1-01422f554454&router%3Aexternal=True&name=ctest-vn4-69312835 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc77b430>: 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.22:9696/v2.0/networks?tenant_id=01291bf2-1547-42f5-9cc1-01422f554454&router%3Aexternal=True&name=ctest-vn4-69312835: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=01291bf2-1547-42f5-9cc1-01422f554454&router%3Aexternal=True&name=ctest-vn4-69312835 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc77b430>: 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
Mon Mar 30 10:38:17 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=0x7f55de415f70>, *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=0x7f55de415f70>
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=0x7f55de415f70>)
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=0x7f55de415f70>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...cy_with_ref[ci_sanity,sanity] id=0x7f55de415f70>>
vn1_name = 'ctest-vn4-69312835'
vn1_subnets = ['64.76.205.128/26', '2d0d:1099:98bc:5052:32b2:fcca::/96']
/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7f55de415f70>, vn_name='ctest-vn4-69312835', vn_subnets=['64.76.205.128/26', '2d0d:1099:98bc:5052:32b2:fcca::/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=0x7f55de415f70>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...licy.test_policy.TestBasicPolicyNegativeIpv4v6'>>
vn_name = 'ctest-vn4-69312835'
vn_subnets = ['64.76.205.128/26', '2d0d:1099:98bc:5052:32b2:fcca::/96']
kwargs = {}
/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.policy.test_policy.TestBasicPolicyNegativeIpv4v6'>, vn_name='ctest-vn4-69312835', vn_subnets=['64.76.205.128/26', '2d0d:1099:98bc:5052:32b2:fcca::/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-69312835'
project_id undefined
self.project_id = '01291bf2-1547-42f5-9cc1-01422f554454'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn4-69312835', option='orch', **kwargs={'project_id': '01291bf2-1547-42f5-9cc1-01422f554454'})
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-69312835'
kwargs = {'project_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn4-69312835', project_id='01291bf2-1547-42f5-9cc1-01422f554454', 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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'})
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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'})
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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'})
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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'})
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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'})
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-69312835', 'router:external': True, 'tenant_id': '01291bf2-1547-42f5-9cc1-01422f554454'}
/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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835', body=None, headers=None, params={'name': b'ctest-vn4-69312835', 'router:external': True, 'tenant_id': b'01291bf2-1547-42f5-9cc1-01422f554454'})
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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835'
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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835', 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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835'
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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835', 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': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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=01291bf2-1547-42f5-9cc1...54&router%3Aexternal=True&name=ctest-vn4-69312835'
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': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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.22:9696/v2.0/networks?tenant_id=01...54&router%3Aexternal=True&name=ctest-vn4-69312835', 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': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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 0x7f55dc77a580>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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.22:9696/v2.0/networks?tenant_id=01...54&router%3Aexternal=True&name=ctest-vn4-69312835', 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': 'gAAAAABpylKY9ZAu3UOKYYcEJoPwJX4Avhexk1mqzQEcYCJ1...g6-G1mFmh5nFtFFpUj8-TIp08pn0xOUuGqMgfDYpyUmg7MM1k'}, '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.22:9696/v2.0/networks?tenant_id=01291bf2-1547-42f5-9cc1-01422f554454&router%3Aexternal=True&name=ctest-vn4-69312835: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=01291bf2-1547-42f5-9cc1-01422f554454&router%3Aexternal=True&name=ctest-vn4-69312835 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc77b430>: 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 0x7f55dc77b430>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=01291bf2-1547-42f5-9cc1-01422f554454&router%3Aexternal=True&name=ctest-vn4-69312835 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc77b430>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=01291bf2-1547-42f5-9cc1-01422f554454&router%3Aexternal=True&name=ctest-vn4-69312835 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc77b430>: 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.22:9696/v2.0/networks?tenant_id=01291bf2-1547-42f5-9cc1-01422f554454&router%3Aexternal=True&name=ctest-vn4-69312835: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=01291bf2-1547-42f5-9cc1-01422f554454&router%3Aexternal=True&name=ctest-vn4-69312835 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc77b430>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 1.495 |
Log File
|
| test_basic_policy_allow_deny[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity,quick_sanity,sanity,suite1] | Failure | Details
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
Mon Mar 30 10:38:21 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=0x7f55de466100>, *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=0x7f55de466100>
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=0x7f55de466100>)
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=0x7f55de466100>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...y,quick_sanity,sanity,suite1] id=0x7f55de466100>>
/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy_basic.TestBasicPolic...ty,quick_sanity,sanity,suite1] id=0x7f55de466100>, 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=0x7f55de466100>
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-26814729', 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-26814729'
project_id undefined
self.project_id = 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-26814729', option='orch', **kwargs={'project_id': 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'})
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-26814729'
kwargs = {'project_id': 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-26814729', project_id='acff26f4-976e-4dcf-b8c9-0ab9d4096be1', 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-26814729', 'router:external': True, 'tenant_id': 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'}
/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-26814729', 'router:external': True, 'tenant_id': 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'})
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-26814729', 'router:external': True, 'tenant_id': 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'}
/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-26814729', 'router:external': True, 'tenant_id': 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'})
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-26814729', 'router:external': True, 'tenant_id': 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'}
/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-26814729', 'router:external': True, 'tenant_id': 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'})
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-26814729', 'router:external': True, 'tenant_id': 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'}
/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-26814729', 'router:external': True, 'tenant_id': 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'})
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-26814729', 'router:external': True, 'tenant_id': 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'}
/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-26814729', 'router:external': True, 'tenant_id': 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'})
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-26814729', 'router:external': True, 'tenant_id': 'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'}
/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=acff26f4-976e-4dcf-b8c9...be1&router%3Aexternal=True&name=ctest-vn-26814729', body=None, headers=None, params={'name': b'ctest-vn-26814729', 'router:external': True, 'tenant_id': b'acff26f4-976e-4dcf-b8c9-0ab9d4096be1'})
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=acff26f4-976e-4dcf-b8c9...be1&router%3Aexternal=True&name=ctest-vn-26814729'
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=acff26f4-976e-4dcf-b8c9...be1&router%3Aexternal=True&name=ctest-vn-26814729', 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=acff26f4-976e-4dcf-b8c9...be1&router%3Aexternal=True&name=ctest-vn-26814729'
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=acff26f4-976e-4dcf-b8c9...be1&router%3Aexternal=True&name=ctest-vn-26814729', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKcDY6v05FtQKhBU7qw6jtYys4mk-qlcYTiO7LO...l8YJiDYI2U1jpadWScmrjApoDtVAcTLXypVDhafQQRthgIMFA'}, '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=acff26f4-976e-4dcf-b8c9...be1&router%3Aexternal=True&name=ctest-vn-26814729', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKcDY6v05FtQKhBU7qw6jtYys4mk-qlcYTiO7LO...l8YJiDYI2U1jpadWScmrjApoDtVAcTLXypVDhafQQRthgIMFA'}, '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=acff26f4-976e-4dcf-b8c9...be1&router%3Aexternal=True&name=ctest-vn-26814729', 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': 'gAAAAABpylKcDY6v05FtQKhBU7qw6jtYys4mk-qlcYTiO7LO...l8YJiDYI2U1jpadWScmrjApoDtVAcTLXypVDhafQQRthgIMFA'}, '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=acff26f4-976e-4dcf-b8c9...be1&router%3Aexternal=True&name=ctest-vn-26814729'
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': 'gAAAAABpylKcDY6v05FtQKhBU7qw6jtYys4mk-qlcYTiO7LO...l8YJiDYI2U1jpadWScmrjApoDtVAcTLXypVDhafQQRthgIMFA'}, '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.22:9696/v2.0/networks?tenant_id=ac...be1&router%3Aexternal=True&name=ctest-vn-26814729', 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': 'gAAAAABpylKcDY6v05FtQKhBU7qw6jtYys4mk-qlcYTiO7LO...l8YJiDYI2U1jpadWScmrjApoDtVAcTLXypVDhafQQRthgIMFA'}, '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 0x7f55dc672f10>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKcDY6v05FtQKhBU7qw6jtYys4mk-qlcYTiO7LO...l8YJiDYI2U1jpadWScmrjApoDtVAcTLXypVDhafQQRthgIMFA'}, '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.22:9696/v2.0/networks?tenant_id=ac...be1&router%3Aexternal=True&name=ctest-vn-26814729', 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': 'gAAAAABpylKcDY6v05FtQKhBU7qw6jtYys4mk-qlcYTiO7LO...l8YJiDYI2U1jpadWScmrjApoDtVAcTLXypVDhafQQRthgIMFA'}, '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.22:9696/v2.0/networks?tenant_id=acff26f4-976e-4dcf-b8c9-0ab9d4096be1&router%3Aexternal=True&name=ctest-vn-26814729: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=acff26f4-976e-4dcf-b8c9-0ab9d4096be1&router%3Aexternal=True&name=ctest-vn-26814729 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc6781c0>: 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 0x7f55dc6781c0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=acff26f4-976e-4dcf-b8c9-0ab9d4096be1&router%3Aexternal=True&name=ctest-vn-26814729 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc6781c0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=acff26f4-976e-4dcf-b8c9-0ab9d4096be1&router%3Aexternal=True&name=ctest-vn-26814729 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc6781c0>: 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.22:9696/v2.0/networks?tenant_id=acff26f4-976e-4dcf-b8c9-0ab9d4096be1&router%3Aexternal=True&name=ctest-vn-26814729: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=acff26f4-976e-4dcf-b8c9-0ab9d4096be1&router%3Aexternal=True&name=ctest-vn-26814729 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc6781c0>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.806 |
Log File
|
| test_rp_interface[ci_sanity,sanity] | Failure | Details
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
Mon Mar 30 10:38:25 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=0x7f55de251850>, *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=0x7f55de251850>
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=0x7f55de251850>)
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=0x7f55de251850>
self.config_basic = <bound method RPBase.config_basic of <scripts.ro...p_interface[ci_sanity,sanity] id=0x7f55de251850>>
/contrail-test/scripts/routing_policy/base.py in config_basic(self=<scripts.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7f55de251850>)
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=0x7f55de251850>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...p_interface[ci_sanity,sanity] id=0x7f55de251850>>
vn_name = 'ctest-bgpaas_vn-68896353'
vn_subnets = ['222.255.81.192/26']
/contrail-test/common/base.py in create_vn(self=<scripts.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7f55de251850>, vn_name='ctest-bgpaas_vn-68896353', vn_subnets=['222.255.81.192/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=0x7f55de251850>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...ipts.routing_policy.test_routing_policy.TestRP'>>
vn_name = 'ctest-bgpaas_vn-68896353'
vn_subnets = ['222.255.81.192/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-68896353', vn_subnets=['222.255.81.192/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-68896353'
project_id undefined
self.project_id = '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-bgpaas_vn-68896353', option='orch', **kwargs={'project_id': '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'})
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-68896353'
kwargs = {'project_id': '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-bgpaas_vn-68896353', project_id='34e1b01a-cf07-4acd-9b81-b7e1dd74acb8', 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-68896353', 'router:external': True, 'tenant_id': '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'}
/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-68896353', 'router:external': True, 'tenant_id': '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'})
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-68896353', 'router:external': True, 'tenant_id': '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'}
/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-68896353', 'router:external': True, 'tenant_id': '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'})
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-68896353', 'router:external': True, 'tenant_id': '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'}
/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-68896353', 'router:external': True, 'tenant_id': '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'})
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-68896353', 'router:external': True, 'tenant_id': '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'}
/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-68896353', 'router:external': True, 'tenant_id': '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'})
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-68896353', 'router:external': True, 'tenant_id': '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'}
/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-68896353', 'router:external': True, 'tenant_id': '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'})
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-68896353', 'router:external': True, 'tenant_id': '34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'}
/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=34e1b01a-cf07-4acd-9b81...ter%3Aexternal=True&name=ctest-bgpaas_vn-68896353', body=None, headers=None, params={'name': b'ctest-bgpaas_vn-68896353', 'router:external': True, 'tenant_id': b'34e1b01a-cf07-4acd-9b81-b7e1dd74acb8'})
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=34e1b01a-cf07-4acd-9b81...ter%3Aexternal=True&name=ctest-bgpaas_vn-68896353'
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=34e1b01a-cf07-4acd-9b81...ter%3Aexternal=True&name=ctest-bgpaas_vn-68896353', 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=34e1b01a-cf07-4acd-9b81...ter%3Aexternal=True&name=ctest-bgpaas_vn-68896353'
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=34e1b01a-cf07-4acd-9b81...ter%3Aexternal=True&name=ctest-bgpaas_vn-68896353', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKg7tMEr8lzoNnkRwwOXpZ7wPu5_YhN4o58C2xL...0nsTVkoLxP1sSW6IqlS2TsXSnXjO-IvtZ6sdnx1qXAliiWn9E'}, '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=34e1b01a-cf07-4acd-9b81...ter%3Aexternal=True&name=ctest-bgpaas_vn-68896353', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKg7tMEr8lzoNnkRwwOXpZ7wPu5_YhN4o58C2xL...0nsTVkoLxP1sSW6IqlS2TsXSnXjO-IvtZ6sdnx1qXAliiWn9E'}, '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=34e1b01a-cf07-4acd-9b81...ter%3Aexternal=True&name=ctest-bgpaas_vn-68896353', 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': 'gAAAAABpylKg7tMEr8lzoNnkRwwOXpZ7wPu5_YhN4o58C2xL...0nsTVkoLxP1sSW6IqlS2TsXSnXjO-IvtZ6sdnx1qXAliiWn9E'}, '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=34e1b01a-cf07-4acd-9b81...ter%3Aexternal=True&name=ctest-bgpaas_vn-68896353'
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': 'gAAAAABpylKg7tMEr8lzoNnkRwwOXpZ7wPu5_YhN4o58C2xL...0nsTVkoLxP1sSW6IqlS2TsXSnXjO-IvtZ6sdnx1qXAliiWn9E'}, '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.22:9696/v2.0/networks?tenant_id=34...ter%3Aexternal=True&name=ctest-bgpaas_vn-68896353', 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': 'gAAAAABpylKg7tMEr8lzoNnkRwwOXpZ7wPu5_YhN4o58C2xL...0nsTVkoLxP1sSW6IqlS2TsXSnXjO-IvtZ6sdnx1qXAliiWn9E'}, '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 0x7f55dc580490>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKg7tMEr8lzoNnkRwwOXpZ7wPu5_YhN4o58C2xL...0nsTVkoLxP1sSW6IqlS2TsXSnXjO-IvtZ6sdnx1qXAliiWn9E'}, '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.22:9696/v2.0/networks?tenant_id=34...ter%3Aexternal=True&name=ctest-bgpaas_vn-68896353', 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': 'gAAAAABpylKg7tMEr8lzoNnkRwwOXpZ7wPu5_YhN4o58C2xL...0nsTVkoLxP1sSW6IqlS2TsXSnXjO-IvtZ6sdnx1qXAliiWn9E'}, '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.22:9696/v2.0/networks?tenant_id=34e1b01a-cf07-4acd-9b81-b7e1dd74acb8&router%3Aexternal=True&name=ctest-bgpaas_vn-68896353: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=34e1b01a-cf07-4acd-9b81-b7e1dd74acb8&router%3Aexternal=True&name=ctest-bgpaas_vn-68896353 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc580c10>: 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 0x7f55dc580c10>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=34e1b01a-cf07-4acd-9b81-b7e1dd74acb8&router%3Aexternal=True&name=ctest-bgpaas_vn-68896353 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc580c10>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=34e1b01a-cf07-4acd-9b81-b7e1dd74acb8&router%3Aexternal=True&name=ctest-bgpaas_vn-68896353 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc580c10>: 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.22:9696/v2.0/networks?tenant_id=34e1b01a-cf07-4acd-9b81-b7e1dd74acb8&router%3Aexternal=True&name=ctest-bgpaas_vn-68896353: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=34e1b01a-cf07-4acd-9b81-b7e1dd74acb8&router%3Aexternal=True&name=ctest-bgpaas_vn-68896353 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc580c10>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.782 |
Log File
|
| test_svc_in_network_datapath[ci_sanity] | Failure | Details
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
Mon Mar 30 10:38:30 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=0x7f55de1d2c70>, *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=0x7f55de1d2c70>
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=0x7f55de1d2c70>)
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=0x7f55de1d2c70>
self.verify_svc_chain = <bound method VerifySvcChain.verify_svc_chain of...n_network_datapath[ci_sanity] id=0x7f55de1d2c70>>
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=0x7f55de1d2c70>, *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=0x7f55de1d2c70>
self.config_svc_chain = <bound method ConfigSvcChain.config_svc_chain of...n_network_datapath[ci_sanity] id=0x7f55de1d2c70>>
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=0x7f55de1d2c70>, 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=0x7f55de1d2c70>
self._get_vn_for_config = <bound method ConfigSvcChain._get_vn_for_config ...n_network_datapath[ci_sanity] id=0x7f55de1d2c70>>
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=0x7f55de1d2c70>, vn_name='ctest-mgmt_vn-70778709', vn_subnets=['71.208.203.192/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=0x7f55de1d2c70>
self.config_vn = <bound method ConfigSvcChain.config_vn of <scrip...n_network_datapath[ci_sanity] id=0x7f55de1d2c70>>
vn_name = 'ctest-mgmt_vn-70778709'
vn_subnets = ['71.208.203.192/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=0x7f55de1d2c70>, vn_name='ctest-mgmt_vn-70778709', vn_net=['71.208.203.192/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=0x7f55de1d2c70>
self.useFixture = <bound method TestCase.useFixture of <scripts.sv...n_network_datapath[ci_sanity] id=0x7f55de1d2c70>>
global VNFixture = <class 'vn_test.VNFixture'>
project_name undefined
self.inputs = <common.contrail_test_init.ContrailTestInit object>
self.inputs.project_name = 'ctest-TestSvcRegr-77213741'
connections undefined
self.connections = <common.connections.ContrailConnections object>
vn_name = 'ctest-mgmt_vn-70778709'
inputs undefined
subnets undefined
vn_net = ['71.208.203.192/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=0x7f55de1d2c70>, 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=0x7f55de1d2c70>, 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-70778709'
project_id undefined
self.project_id = 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-mgmt_vn-70778709', option='orch', **kwargs={'project_id': 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'})
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-70778709'
kwargs = {'project_id': 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-mgmt_vn-70778709', project_id='b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb', 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-70778709', 'router:external': True, 'tenant_id': 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'}
/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-70778709', 'router:external': True, 'tenant_id': 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'})
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-70778709', 'router:external': True, 'tenant_id': 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'}
/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-70778709', 'router:external': True, 'tenant_id': 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'})
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-70778709', 'router:external': True, 'tenant_id': 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'}
/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-70778709', 'router:external': True, 'tenant_id': 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'})
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-70778709', 'router:external': True, 'tenant_id': 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'}
/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-70778709', 'router:external': True, 'tenant_id': 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'})
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-70778709', 'router:external': True, 'tenant_id': 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'}
/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-70778709', 'router:external': True, 'tenant_id': 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'})
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-70778709', 'router:external': True, 'tenant_id': 'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'}
/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=b1e3fcc7-cc09-4ca8-acd8...outer%3Aexternal=True&name=ctest-mgmt_vn-70778709', body=None, headers=None, params={'name': b'ctest-mgmt_vn-70778709', 'router:external': True, 'tenant_id': b'b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb'})
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=b1e3fcc7-cc09-4ca8-acd8...outer%3Aexternal=True&name=ctest-mgmt_vn-70778709'
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=b1e3fcc7-cc09-4ca8-acd8...outer%3Aexternal=True&name=ctest-mgmt_vn-70778709', 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=b1e3fcc7-cc09-4ca8-acd8...outer%3Aexternal=True&name=ctest-mgmt_vn-70778709'
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=b1e3fcc7-cc09-4ca8-acd8...outer%3Aexternal=True&name=ctest-mgmt_vn-70778709', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKkssuetP8RHFjFxD8g56zhjWR2QeIghPvvwt_8...vpAG0SSI_5F48819ZJwl98NwPoc5dM3le2hTVm9gj99Ced13Q'}, '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=b1e3fcc7-cc09-4ca8-acd8...outer%3Aexternal=True&name=ctest-mgmt_vn-70778709', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKkssuetP8RHFjFxD8g56zhjWR2QeIghPvvwt_8...vpAG0SSI_5F48819ZJwl98NwPoc5dM3le2hTVm9gj99Ced13Q'}, '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=b1e3fcc7-cc09-4ca8-acd8...outer%3Aexternal=True&name=ctest-mgmt_vn-70778709', 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': 'gAAAAABpylKkssuetP8RHFjFxD8g56zhjWR2QeIghPvvwt_8...vpAG0SSI_5F48819ZJwl98NwPoc5dM3le2hTVm9gj99Ced13Q'}, '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=b1e3fcc7-cc09-4ca8-acd8...outer%3Aexternal=True&name=ctest-mgmt_vn-70778709'
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': 'gAAAAABpylKkssuetP8RHFjFxD8g56zhjWR2QeIghPvvwt_8...vpAG0SSI_5F48819ZJwl98NwPoc5dM3le2hTVm9gj99Ced13Q'}, '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.22:9696/v2.0/networks?tenant_id=b1...outer%3Aexternal=True&name=ctest-mgmt_vn-70778709', 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': 'gAAAAABpylKkssuetP8RHFjFxD8g56zhjWR2QeIghPvvwt_8...vpAG0SSI_5F48819ZJwl98NwPoc5dM3le2hTVm9gj99Ced13Q'}, '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 0x7f55dc699e50>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKkssuetP8RHFjFxD8g56zhjWR2QeIghPvvwt_8...vpAG0SSI_5F48819ZJwl98NwPoc5dM3le2hTVm9gj99Ced13Q'}, '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.22:9696/v2.0/networks?tenant_id=b1...outer%3Aexternal=True&name=ctest-mgmt_vn-70778709', 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': 'gAAAAABpylKkssuetP8RHFjFxD8g56zhjWR2QeIghPvvwt_8...vpAG0SSI_5F48819ZJwl98NwPoc5dM3le2hTVm9gj99Ced13Q'}, '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.22:9696/v2.0/networks?tenant_id=b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb&router%3Aexternal=True&name=ctest-mgmt_vn-70778709: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb&router%3Aexternal=True&name=ctest-mgmt_vn-70778709 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc628490>: 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 0x7f55dc628490>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb&router%3Aexternal=True&name=ctest-mgmt_vn-70778709 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc628490>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb&router%3Aexternal=True&name=ctest-mgmt_vn-70778709 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc628490>: 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.22:9696/v2.0/networks?tenant_id=b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb&router%3Aexternal=True&name=ctest-mgmt_vn-70778709: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b1e3fcc7-cc09-4ca8-acd8-e864c7378cfb&router%3Aexternal=True&name=ctest-mgmt_vn-70778709 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc628490>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.780 |
Log File
|
| test_vdns_ping_same_vn[ci_sanity,sanity,suite1] | Failure | Details
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
Mon Mar 30 10:38:35 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=0x7f55de18c6d0>, *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=0x7f55de18c6d0>
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=0x7f55de18c6d0>)
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=0x7f55de18c6d0>
self.useFixture = <bound method TestCase.useFixture of <scripts.vd...e_vn[ci_sanity,sanity,suite1] id=0x7f55de18c6d0>>
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-36673128'
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-50599972', '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=0x7f55de18c6d0>, 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=0x7f55de18c6d0>, 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-36673128'
project_id undefined
self.project_id = 'fe93f372-552a-414e-bd2f-1396f6deac7a'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn1-vdns-36673128', option='orch', **kwargs={'project_id': 'fe93f372-552a-414e-bd2f-1396f6deac7a'})
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-36673128'
kwargs = {'project_id': 'fe93f372-552a-414e-bd2f-1396f6deac7a'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn1-vdns-36673128', project_id='fe93f372-552a-414e-bd2f-1396f6deac7a', 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-36673128', 'router:external': True, 'tenant_id': 'fe93f372-552a-414e-bd2f-1396f6deac7a'}
/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-36673128', 'router:external': True, 'tenant_id': 'fe93f372-552a-414e-bd2f-1396f6deac7a'})
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-36673128', 'router:external': True, 'tenant_id': 'fe93f372-552a-414e-bd2f-1396f6deac7a'}
/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-36673128', 'router:external': True, 'tenant_id': 'fe93f372-552a-414e-bd2f-1396f6deac7a'})
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-36673128', 'router:external': True, 'tenant_id': 'fe93f372-552a-414e-bd2f-1396f6deac7a'}
/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-36673128', 'router:external': True, 'tenant_id': 'fe93f372-552a-414e-bd2f-1396f6deac7a'})
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-36673128', 'router:external': True, 'tenant_id': 'fe93f372-552a-414e-bd2f-1396f6deac7a'}
/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-36673128', 'router:external': True, 'tenant_id': 'fe93f372-552a-414e-bd2f-1396f6deac7a'})
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-36673128', 'router:external': True, 'tenant_id': 'fe93f372-552a-414e-bd2f-1396f6deac7a'}
/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-36673128', 'router:external': True, 'tenant_id': 'fe93f372-552a-414e-bd2f-1396f6deac7a'})
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-36673128', 'router:external': True, 'tenant_id': 'fe93f372-552a-414e-bd2f-1396f6deac7a'}
/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=fe93f372-552a-414e-bd2f...uter%3Aexternal=True&name=ctest-vn1-vdns-36673128', body=None, headers=None, params={'name': b'ctest-vn1-vdns-36673128', 'router:external': True, 'tenant_id': b'fe93f372-552a-414e-bd2f-1396f6deac7a'})
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=fe93f372-552a-414e-bd2f...uter%3Aexternal=True&name=ctest-vn1-vdns-36673128'
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=fe93f372-552a-414e-bd2f...uter%3Aexternal=True&name=ctest-vn1-vdns-36673128', 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=fe93f372-552a-414e-bd2f...uter%3Aexternal=True&name=ctest-vn1-vdns-36673128'
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=fe93f372-552a-414e-bd2f...uter%3Aexternal=True&name=ctest-vn1-vdns-36673128', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKpqWwY4Qa9rJQ53I9QF4A9vJ6MFQjWwkwi_Aef...1XUog5Vt5S_OJwnWtHZdLG6_YGDpTZxkuj834HvNjvjAu8j_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=fe93f372-552a-414e-bd2f...uter%3Aexternal=True&name=ctest-vn1-vdns-36673128', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKpqWwY4Qa9rJQ53I9QF4A9vJ6MFQjWwkwi_Aef...1XUog5Vt5S_OJwnWtHZdLG6_YGDpTZxkuj834HvNjvjAu8j_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=fe93f372-552a-414e-bd2f...uter%3Aexternal=True&name=ctest-vn1-vdns-36673128', 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': 'gAAAAABpylKpqWwY4Qa9rJQ53I9QF4A9vJ6MFQjWwkwi_Aef...1XUog5Vt5S_OJwnWtHZdLG6_YGDpTZxkuj834HvNjvjAu8j_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=fe93f372-552a-414e-bd2f...uter%3Aexternal=True&name=ctest-vn1-vdns-36673128'
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': 'gAAAAABpylKpqWwY4Qa9rJQ53I9QF4A9vJ6MFQjWwkwi_Aef...1XUog5Vt5S_OJwnWtHZdLG6_YGDpTZxkuj834HvNjvjAu8j_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.22:9696/v2.0/networks?tenant_id=fe...uter%3Aexternal=True&name=ctest-vn1-vdns-36673128', 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': 'gAAAAABpylKpqWwY4Qa9rJQ53I9QF4A9vJ6MFQjWwkwi_Aef...1XUog5Vt5S_OJwnWtHZdLG6_YGDpTZxkuj834HvNjvjAu8j_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 0x7f55dc3c5b20>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKpqWwY4Qa9rJQ53I9QF4A9vJ6MFQjWwkwi_Aef...1XUog5Vt5S_OJwnWtHZdLG6_YGDpTZxkuj834HvNjvjAu8j_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.22:9696/v2.0/networks?tenant_id=fe...uter%3Aexternal=True&name=ctest-vn1-vdns-36673128', 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': 'gAAAAABpylKpqWwY4Qa9rJQ53I9QF4A9vJ6MFQjWwkwi_Aef...1XUog5Vt5S_OJwnWtHZdLG6_YGDpTZxkuj834HvNjvjAu8j_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.22:9696/v2.0/networks?tenant_id=fe93f372-552a-414e-bd2f-1396f6deac7a&router%3Aexternal=True&name=ctest-vn1-vdns-36673128: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=fe93f372-552a-414e-bd2f-1396f6deac7a&router%3Aexternal=True&name=ctest-vn1-vdns-36673128 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc3b13d0>: 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 0x7f55dc3b13d0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=fe93f372-552a-414e-bd2f-1396f6deac7a&router%3Aexternal=True&name=ctest-vn1-vdns-36673128 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc3b13d0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=fe93f372-552a-414e-bd2f-1396f6deac7a&router%3Aexternal=True&name=ctest-vn1-vdns-36673128 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc3b13d0>: 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.22:9696/v2.0/networks?tenant_id=fe93f372-552a-414e-bd2f-1396f6deac7a&router%3Aexternal=True&name=ctest-vn1-vdns-36673128: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=fe93f372-552a-414e-bd2f-1396f6deac7a&router%3Aexternal=True&name=ctest-vn1-vdns-36673128 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc3b13d0>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 2.388 |
Log File
|
| test_vm_file_trf_scp_tests[ci_contrail_go_kolla_ocata_sanity,ci_sanity,quick_sanity,vrouter_gw] | Failure | Details
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
Mon Mar 30 10:38:39 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=0x7f55de16a970>, *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=0x7f55de16a970>
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=0x7f55de16a970>)
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=0x7f55de16a970>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...nity,quick_sanity,vrouter_gw] id=0x7f55de16a970>>
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=0x7f55de16a970>, 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=0x7f55de16a970>
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-12749553', 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-12749553'
project_id undefined
self.project_id = '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-12749553', option='orch', **kwargs={'project_id': '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'})
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-12749553'
kwargs = {'project_id': '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-12749553', project_id='8825cfa4-1d4a-4b9b-bdfb-527807fb386d', 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-12749553', 'router:external': True, 'tenant_id': '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'}
/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-12749553', 'router:external': True, 'tenant_id': '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'})
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-12749553', 'router:external': True, 'tenant_id': '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'}
/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-12749553', 'router:external': True, 'tenant_id': '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'})
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-12749553', 'router:external': True, 'tenant_id': '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'}
/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-12749553', 'router:external': True, 'tenant_id': '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'})
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-12749553', 'router:external': True, 'tenant_id': '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'}
/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-12749553', 'router:external': True, 'tenant_id': '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'})
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-12749553', 'router:external': True, 'tenant_id': '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'}
/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-12749553', 'router:external': True, 'tenant_id': '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'})
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-12749553', 'router:external': True, 'tenant_id': '8825cfa4-1d4a-4b9b-bdfb-527807fb386d'}
/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=8825cfa4-1d4a-4b9b-bdfb...86d&router%3Aexternal=True&name=ctest-vn-12749553', body=None, headers=None, params={'name': b'ctest-vn-12749553', 'router:external': True, 'tenant_id': b'8825cfa4-1d4a-4b9b-bdfb-527807fb386d'})
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=8825cfa4-1d4a-4b9b-bdfb...86d&router%3Aexternal=True&name=ctest-vn-12749553'
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=8825cfa4-1d4a-4b9b-bdfb...86d&router%3Aexternal=True&name=ctest-vn-12749553', 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=8825cfa4-1d4a-4b9b-bdfb...86d&router%3Aexternal=True&name=ctest-vn-12749553'
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=8825cfa4-1d4a-4b9b-bdfb...86d&router%3Aexternal=True&name=ctest-vn-12749553', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKuE8sEpJSOLGvkht6tIPcOMfV8kTfe5iO7dc6r...UBFDks5JQDBsh_ebMtxl7N0PkMNBB5hoIAowBhniUV9E63WSo'}, '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=8825cfa4-1d4a-4b9b-bdfb...86d&router%3Aexternal=True&name=ctest-vn-12749553', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKuE8sEpJSOLGvkht6tIPcOMfV8kTfe5iO7dc6r...UBFDks5JQDBsh_ebMtxl7N0PkMNBB5hoIAowBhniUV9E63WSo'}, '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=8825cfa4-1d4a-4b9b-bdfb...86d&router%3Aexternal=True&name=ctest-vn-12749553', 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': 'gAAAAABpylKuE8sEpJSOLGvkht6tIPcOMfV8kTfe5iO7dc6r...UBFDks5JQDBsh_ebMtxl7N0PkMNBB5hoIAowBhniUV9E63WSo'}, '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=8825cfa4-1d4a-4b9b-bdfb...86d&router%3Aexternal=True&name=ctest-vn-12749553'
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': 'gAAAAABpylKuE8sEpJSOLGvkht6tIPcOMfV8kTfe5iO7dc6r...UBFDks5JQDBsh_ebMtxl7N0PkMNBB5hoIAowBhniUV9E63WSo'}, '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.22:9696/v2.0/networks?tenant_id=88...86d&router%3Aexternal=True&name=ctest-vn-12749553', 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': 'gAAAAABpylKuE8sEpJSOLGvkht6tIPcOMfV8kTfe5iO7dc6r...UBFDks5JQDBsh_ebMtxl7N0PkMNBB5hoIAowBhniUV9E63WSo'}, '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 0x7f55dc2b48e0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKuE8sEpJSOLGvkht6tIPcOMfV8kTfe5iO7dc6r...UBFDks5JQDBsh_ebMtxl7N0PkMNBB5hoIAowBhniUV9E63WSo'}, '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.22:9696/v2.0/networks?tenant_id=88...86d&router%3Aexternal=True&name=ctest-vn-12749553', 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': 'gAAAAABpylKuE8sEpJSOLGvkht6tIPcOMfV8kTfe5iO7dc6r...UBFDks5JQDBsh_ebMtxl7N0PkMNBB5hoIAowBhniUV9E63WSo'}, '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.22:9696/v2.0/networks?tenant_id=8825cfa4-1d4a-4b9b-bdfb-527807fb386d&router%3Aexternal=True&name=ctest-vn-12749553: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8825cfa4-1d4a-4b9b-bdfb-527807fb386d&router%3Aexternal=True&name=ctest-vn-12749553 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc2b4af0>: 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 0x7f55dc2b4af0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8825cfa4-1d4a-4b9b-bdfb-527807fb386d&router%3Aexternal=True&name=ctest-vn-12749553 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc2b4af0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8825cfa4-1d4a-4b9b-bdfb-527807fb386d&router%3Aexternal=True&name=ctest-vn-12749553 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc2b4af0>: 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.22:9696/v2.0/networks?tenant_id=8825cfa4-1d4a-4b9b-bdfb-527807fb386d&router%3Aexternal=True&name=ctest-vn-12749553: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8825cfa4-1d4a-4b9b-bdfb-527807fb386d&router%3Aexternal=True&name=ctest-vn-12749553 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc2b4af0>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.741 |
Log File
|
| test_generic_link_local_service[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity,dev_sanity_dpdk,sanity,suite1] | Failure | Details
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
Mon Mar 30 10:38:43 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=0x7f55de16ad90>, *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=0x7f55de16ad90>
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=0x7f55de16ad90>)
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=0x7f55de16ad90>
self.useFixture = <bound method TestCase.useFixture of <scripts.vm...ev_sanity_dpdk,sanity,suite1] id=0x7f55de16ad90>>
global VNFixture = <class 'vn_test.VNFixture'>
project_name undefined
self.inputs = <common.contrail_test_init.ContrailTestInit object>
self.inputs.project_name = 'ctest-TestBasicVMVN-80419675'
connections undefined
self.connections = <common.connections.ContrailConnections object>
vn_name = 'ctest-vn2_metadata-65717314'
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=0x7f55de16ad90>, 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=0x7f55de16ad90>, 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-65717314'
project_id undefined
self.project_id = 'b31e7100-ba7c-4513-9a5d-97bc8900e931'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn2_metadata-65717314', option='orch', **kwargs={'project_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-65717314'
kwargs = {'project_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn2_metadata-65717314', project_id='b31e7100-ba7c-4513-9a5d-97bc8900e931', 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-65717314', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-65717314', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-65717314', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-65717314', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-65717314', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-65717314', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-65717314', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-65717314', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-65717314', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-65717314', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-65717314', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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=b31e7100-ba7c-4513-9a5d...%3Aexternal=True&name=ctest-vn2_metadata-65717314', body=None, headers=None, params={'name': b'ctest-vn2_metadata-65717314', 'router:external': True, 'tenant_id': b'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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=b31e7100-ba7c-4513-9a5d...%3Aexternal=True&name=ctest-vn2_metadata-65717314'
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=b31e7100-ba7c-4513-9a5d...%3Aexternal=True&name=ctest-vn2_metadata-65717314', 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=b31e7100-ba7c-4513-9a5d...%3Aexternal=True&name=ctest-vn2_metadata-65717314'
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=b31e7100-ba7c-4513-9a5d...%3Aexternal=True&name=ctest-vn2_metadata-65717314', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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=b31e7100-ba7c-4513-9a5d...%3Aexternal=True&name=ctest-vn2_metadata-65717314', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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=b31e7100-ba7c-4513-9a5d...%3Aexternal=True&name=ctest-vn2_metadata-65717314', 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': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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=b31e7100-ba7c-4513-9a5d...%3Aexternal=True&name=ctest-vn2_metadata-65717314'
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': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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.22:9696/v2.0/networks?tenant_id=b3...%3Aexternal=True&name=ctest-vn2_metadata-65717314', 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': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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 0x7f55dc1d3880>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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.22:9696/v2.0/networks?tenant_id=b3...%3Aexternal=True&name=ctest-vn2_metadata-65717314', 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': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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.22:9696/v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn2_metadata-65717314: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn2_metadata-65717314 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc1710a0>: 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 0x7f55dc1710a0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn2_metadata-65717314 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc1710a0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn2_metadata-65717314 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc1710a0>: 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.22:9696/v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn2_metadata-65717314: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn2_metadata-65717314 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc1710a0>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.736 |
Log File
|
| test_metadata_service[cb_sanity,ci_sanity,sanity,suite1] | Failure | Details
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
Mon Mar 30 10:38:44 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=0x7f55de16ac10>, *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=0x7f55de16ac10>
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=0x7f55de16ac10>)
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=0x7f55de16ac10>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...nity,ci_sanity,sanity,suite1] id=0x7f55de16ac10>>
af undefined
/contrail-test/common/base.py in create_vn(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7f55de16ac10>, 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=0x7f55de16ac10>
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-19486216', 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-19486216'
project_id undefined
self.project_id = 'b31e7100-ba7c-4513-9a5d-97bc8900e931'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-19486216', option='orch', **kwargs={'project_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-19486216'
kwargs = {'project_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-19486216', project_id='b31e7100-ba7c-4513-9a5d-97bc8900e931', 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-19486216', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-19486216', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-19486216', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-19486216', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-19486216', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-19486216', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-19486216', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-19486216', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-19486216', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-19486216', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-19486216', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-19486216', body=None, headers=None, params={'name': b'ctest-vn-19486216', 'router:external': True, 'tenant_id': b'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-19486216'
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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-19486216', 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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-19486216'
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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-19486216', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-19486216', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-19486216', 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': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-19486216'
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': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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.22:9696/v2.0/networks?tenant_id=b3...931&router%3Aexternal=True&name=ctest-vn-19486216', 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': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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 0x7f55dc21c520>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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.22:9696/v2.0/networks?tenant_id=b3...931&router%3Aexternal=True&name=ctest-vn-19486216', 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': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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.22:9696/v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn-19486216: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn-19486216 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc171d00>: 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 0x7f55dc171d00>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn-19486216 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc171d00>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn-19486216 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc171d00>: 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.22:9696/v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn-19486216: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn-19486216 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc171d00>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.761 |
Log File
|
| test_ping_within_vn_two_vms_two_different_subnets[ci_contrail_go_kolla_ocata_sanity,ci_sanity,sanity,suite1] | Failure | Details
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
Mon Mar 30 10:38:45 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=0x7f55de16f070>, *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=0x7f55de16f070>
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=0x7f55de16f070>)
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=0x7f55de16f070>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...nity,ci_sanity,sanity,suite1] id=0x7f55de16f070>>
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-80419675', 'ctest-ipam-86567419']
/contrail-test/common/base.py in create_vn(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7f55de16f070>, 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-80419675', 'ctest-ipam-86567419']})
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=0x7f55de16f070>
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-80419675', 'ctest-ipam-86567419']}
/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.vm_regression.test_vm_basic.TestBasicVMVN'>, vn_name='ctest-vn-96706479', vn_subnets=['31.1.1.0/29', '31.1.2.0/29'], **kwargs={'ipam_fq_name': ['default-domain', 'ctest-TestBasicVMVN-80419675', 'ctest-ipam-86567419']})
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-96706479'
project_id undefined
self.project_id = 'b31e7100-ba7c-4513-9a5d-97bc8900e931'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-96706479', option='orch', **kwargs={'project_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-96706479'
kwargs = {'project_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-96706479', project_id='b31e7100-ba7c-4513-9a5d-97bc8900e931', 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-96706479', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-96706479', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-96706479', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-96706479', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-96706479', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-96706479', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-96706479', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-96706479', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-96706479', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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-96706479', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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-96706479', 'router:external': True, 'tenant_id': 'b31e7100-ba7c-4513-9a5d-97bc8900e931'}
/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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-96706479', body=None, headers=None, params={'name': b'ctest-vn-96706479', 'router:external': True, 'tenant_id': b'b31e7100-ba7c-4513-9a5d-97bc8900e931'})
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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-96706479'
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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-96706479', 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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-96706479'
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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-96706479', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-96706479', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-96706479', 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': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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=b31e7100-ba7c-4513-9a5d...931&router%3Aexternal=True&name=ctest-vn-96706479'
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': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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.22:9696/v2.0/networks?tenant_id=b3...931&router%3Aexternal=True&name=ctest-vn-96706479', 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': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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 0x7f55dc17e460>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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.22:9696/v2.0/networks?tenant_id=b3...931&router%3Aexternal=True&name=ctest-vn-96706479', 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': 'gAAAAABpylKy5395ttUdHQ-2IGDj-Of-wuCi_f1TpK-sYN7M...1mhP6cv3TwSwFIaHGtcPv9KS00HR53kBYjJhTUwKguQM73qoY'}, '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.22:9696/v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn-96706479: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn-96706479 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc17e3a0>: 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 0x7f55dc17e3a0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn-96706479 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc17e3a0>: 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.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn-96706479 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc17e3a0>: 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.22:9696/v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn-96706479: HTTPConnectionPool(host='10.0.0.22', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b31e7100-ba7c-4513-9a5d-97bc8900e931&router%3Aexternal=True&name=ctest-vn-96706479 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f55dc17e3a0>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.777 |
Log File
|