| Name | Status | Type | Time(s) | LogFile |
| test_contrail_status[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity] | Success | | 0.649 | |
| 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
Fri Mar 27 21:26: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.analytics.test_analytics_basic.Analytic...dev_sanity_dpdk,sanity,suite1] id=0x7f12bf148310>, *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=0x7f12bf148310>
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=0x7f12bf148310>)
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=0x7f12bf148310>
self.useFixture = <bound method TestCase.useFixture of <scripts.an...ev_sanity_dpdk,sanity,suite1] id=0x7f12bf148310>>
global VNFixture = <class 'vn_test.VNFixture'>
connections undefined
self.connections = <common.connections.ContrailConnections object>
vn_name = 'ctest-vn22-98623549'
subnets undefined
vn_subnets = ['110.170.190.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=0x7f12bf148310>, 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=0x7f12bf148310>, 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-98623549'
project_id undefined
self.project_id = '115a2b5f-c1b0-4554-8729-3825d1beec13'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn22-98623549', option='orch', **kwargs={'project_id': '115a2b5f-c1b0-4554-8729-3825d1beec13'})
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-98623549'
kwargs = {'project_id': '115a2b5f-c1b0-4554-8729-3825d1beec13'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn22-98623549', project_id='115a2b5f-c1b0-4554-8729-3825d1beec13', 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-98623549', 'router:external': True, 'tenant_id': '115a2b5f-c1b0-4554-8729-3825d1beec13'}
/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-98623549', 'router:external': True, 'tenant_id': '115a2b5f-c1b0-4554-8729-3825d1beec13'})
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-98623549', 'router:external': True, 'tenant_id': '115a2b5f-c1b0-4554-8729-3825d1beec13'}
/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-98623549', 'router:external': True, 'tenant_id': '115a2b5f-c1b0-4554-8729-3825d1beec13'})
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-98623549', 'router:external': True, 'tenant_id': '115a2b5f-c1b0-4554-8729-3825d1beec13'}
/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-98623549', 'router:external': True, 'tenant_id': '115a2b5f-c1b0-4554-8729-3825d1beec13'})
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-98623549', 'router:external': True, 'tenant_id': '115a2b5f-c1b0-4554-8729-3825d1beec13'}
/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-98623549', 'router:external': True, 'tenant_id': '115a2b5f-c1b0-4554-8729-3825d1beec13'})
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-98623549', 'router:external': True, 'tenant_id': '115a2b5f-c1b0-4554-8729-3825d1beec13'}
/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-98623549', 'router:external': True, 'tenant_id': '115a2b5f-c1b0-4554-8729-3825d1beec13'})
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-98623549', 'router:external': True, 'tenant_id': '115a2b5f-c1b0-4554-8729-3825d1beec13'}
/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=115a2b5f-c1b0-4554-8729...3&router%3Aexternal=True&name=ctest-vn22-98623549', body=None, headers=None, params={'name': b'ctest-vn22-98623549', 'router:external': True, 'tenant_id': b'115a2b5f-c1b0-4554-8729-3825d1beec13'})
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=115a2b5f-c1b0-4554-8729...3&router%3Aexternal=True&name=ctest-vn22-98623549'
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=115a2b5f-c1b0-4554-8729...3&router%3Aexternal=True&name=ctest-vn22-98623549', 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=115a2b5f-c1b0-4554-8729...3&router%3Aexternal=True&name=ctest-vn22-98623549'
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=115a2b5f-c1b0-4554-8729...3&router%3Aexternal=True&name=ctest-vn22-98623549', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvXqJ3z2wRf8FFgnPHr3NNv2fZ2vVmJzvzmOxfZf...Y_veJekSDhAw11gQpRVXViqcCaz-f5ox1Cg-5h0okosiOqcZM'}, '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=115a2b5f-c1b0-4554-8729...3&router%3Aexternal=True&name=ctest-vn22-98623549', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvXqJ3z2wRf8FFgnPHr3NNv2fZ2vVmJzvzmOxfZf...Y_veJekSDhAw11gQpRVXViqcCaz-f5ox1Cg-5h0okosiOqcZM'}, '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=115a2b5f-c1b0-4554-8729...3&router%3Aexternal=True&name=ctest-vn22-98623549', 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': 'gAAAAABpxvXqJ3z2wRf8FFgnPHr3NNv2fZ2vVmJzvzmOxfZf...Y_veJekSDhAw11gQpRVXViqcCaz-f5ox1Cg-5h0okosiOqcZM'}, '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=115a2b5f-c1b0-4554-8729...3&router%3Aexternal=True&name=ctest-vn22-98623549'
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': 'gAAAAABpxvXqJ3z2wRf8FFgnPHr3NNv2fZ2vVmJzvzmOxfZf...Y_veJekSDhAw11gQpRVXViqcCaz-f5ox1Cg-5h0okosiOqcZM'}, '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.249:9696/v2.0/networks?tenant_id=1...3&router%3Aexternal=True&name=ctest-vn22-98623549', 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': 'gAAAAABpxvXqJ3z2wRf8FFgnPHr3NNv2fZ2vVmJzvzmOxfZf...Y_veJekSDhAw11gQpRVXViqcCaz-f5ox1Cg-5h0okosiOqcZM'}, '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 0x7f12be73e070>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvXqJ3z2wRf8FFgnPHr3NNv2fZ2vVmJzvzmOxfZf...Y_veJekSDhAw11gQpRVXViqcCaz-f5ox1Cg-5h0okosiOqcZM'}, '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.249:9696/v2.0/networks?tenant_id=1...3&router%3Aexternal=True&name=ctest-vn22-98623549', 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': 'gAAAAABpxvXqJ3z2wRf8FFgnPHr3NNv2fZ2vVmJzvzmOxfZf...Y_veJekSDhAw11gQpRVXViqcCaz-f5ox1Cg-5h0okosiOqcZM'}, '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.249:9696/v2.0/networks?tenant_id=115a2b5f-c1b0-4554-8729-3825d1beec13&router%3Aexternal=True&name=ctest-vn22-98623549: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=115a2b5f-c1b0-4554-8729-3825d1beec13&router%3Aexternal=True&name=ctest-vn22-98623549 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12be79f550>: 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 0x7f12be79f550>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=115a2b5f-c1b0-4554-8729-3825d1beec13&router%3Aexternal=True&name=ctest-vn22-98623549 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12be79f550>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=115a2b5f-c1b0-4554-8729-3825d1beec13&router%3Aexternal=True&name=ctest-vn22-98623549 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12be79f550>: 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.249:9696/v2.0/networks?tenant_id=115a2b5f-c1b0-4554-8729-3825d1beec13&router%3Aexternal=True&name=ctest-vn22-98623549: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=115a2b5f-c1b0-4554-8729-3825d1beec13&router%3Aexternal=True&name=ctest-vn22-98623549 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12be79f550>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.889 |
Log File
|
| test_db_manage[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity] | Success | | 4.409 | |
| test_analytics_docs[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity] | Success | | 0.379 | |
| test_config_docs[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity] | Success | | 0.440 | |
| 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
Fri Mar 27 21:26:15 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=0x7f12bef7ac40>, *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=0x7f12bef7ac40>
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=0x7f12bef7ac40>)
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=0x7f12bef7ac40>
self.useFixture = <bound method TestCase.useFixture of <scripts.fl...ity,sanity,suite1,vrouter_gw] id=0x7f12bef7ac40>>
global VNFixture = <class 'vn_test.VNFixture'>
project_name undefined
self.inputs = <common.contrail_test_init.ContrailTestInit object>
self.inputs.project_name = 'ctest-FloatingipBasicTestSanity-83291372'
connections undefined
self.connections = <common.connections.ContrailConnections object>
inputs undefined
vn_name undefined
fvn_name = 'ctest-fvn-58539501'
subnets undefined
fvn_subnets = ['40.195.177.192/26']
/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=<scripts.floatingip.test_floatingip_basic.Floati...nity,sanity,suite1,vrouter_gw] id=0x7f12bef7ac40>, 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=0x7f12bef7ac40>, 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-58539501'
project_id undefined
self.project_id = '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-fvn-58539501', option='orch', **kwargs={'project_id': '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'})
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-58539501'
kwargs = {'project_id': '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-fvn-58539501', project_id='3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b', 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-58539501', 'router:external': True, 'tenant_id': '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'}
/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-58539501', 'router:external': True, 'tenant_id': '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'})
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-58539501', 'router:external': True, 'tenant_id': '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'}
/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-58539501', 'router:external': True, 'tenant_id': '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'})
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-58539501', 'router:external': True, 'tenant_id': '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'}
/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-58539501', 'router:external': True, 'tenant_id': '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'})
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-58539501', 'router:external': True, 'tenant_id': '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'}
/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-58539501', 'router:external': True, 'tenant_id': '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'})
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-58539501', 'router:external': True, 'tenant_id': '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'}
/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-58539501', 'router:external': True, 'tenant_id': '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'})
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-58539501', 'router:external': True, 'tenant_id': '3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'}
/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=3f9c2e3b-ebc7-4e91-90c2...7b&router%3Aexternal=True&name=ctest-fvn-58539501', body=None, headers=None, params={'name': b'ctest-fvn-58539501', 'router:external': True, 'tenant_id': b'3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b'})
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=3f9c2e3b-ebc7-4e91-90c2...7b&router%3Aexternal=True&name=ctest-fvn-58539501'
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=3f9c2e3b-ebc7-4e91-90c2...7b&router%3Aexternal=True&name=ctest-fvn-58539501', 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=3f9c2e3b-ebc7-4e91-90c2...7b&router%3Aexternal=True&name=ctest-fvn-58539501'
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=3f9c2e3b-ebc7-4e91-90c2...7b&router%3Aexternal=True&name=ctest-fvn-58539501', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvX00xRyj_UQC0hgRCJXASbFOBB9DLZnbrI4Kk8B...NBvqcjBG9pyjQD4-fY7YjTIvhc-WzV6MNygA3zvBp4wP6frQ4'}, '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=3f9c2e3b-ebc7-4e91-90c2...7b&router%3Aexternal=True&name=ctest-fvn-58539501', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvX00xRyj_UQC0hgRCJXASbFOBB9DLZnbrI4Kk8B...NBvqcjBG9pyjQD4-fY7YjTIvhc-WzV6MNygA3zvBp4wP6frQ4'}, '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=3f9c2e3b-ebc7-4e91-90c2...7b&router%3Aexternal=True&name=ctest-fvn-58539501', 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': 'gAAAAABpxvX00xRyj_UQC0hgRCJXASbFOBB9DLZnbrI4Kk8B...NBvqcjBG9pyjQD4-fY7YjTIvhc-WzV6MNygA3zvBp4wP6frQ4'}, '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=3f9c2e3b-ebc7-4e91-90c2...7b&router%3Aexternal=True&name=ctest-fvn-58539501'
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': 'gAAAAABpxvX00xRyj_UQC0hgRCJXASbFOBB9DLZnbrI4Kk8B...NBvqcjBG9pyjQD4-fY7YjTIvhc-WzV6MNygA3zvBp4wP6frQ4'}, '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.249:9696/v2.0/networks?tenant_id=3...7b&router%3Aexternal=True&name=ctest-fvn-58539501', 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': 'gAAAAABpxvX00xRyj_UQC0hgRCJXASbFOBB9DLZnbrI4Kk8B...NBvqcjBG9pyjQD4-fY7YjTIvhc-WzV6MNygA3zvBp4wP6frQ4'}, '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 0x7f12bd4d8b20>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvX00xRyj_UQC0hgRCJXASbFOBB9DLZnbrI4Kk8B...NBvqcjBG9pyjQD4-fY7YjTIvhc-WzV6MNygA3zvBp4wP6frQ4'}, '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.249:9696/v2.0/networks?tenant_id=3...7b&router%3Aexternal=True&name=ctest-fvn-58539501', 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': 'gAAAAABpxvX00xRyj_UQC0hgRCJXASbFOBB9DLZnbrI4Kk8B...NBvqcjBG9pyjQD4-fY7YjTIvhc-WzV6MNygA3zvBp4wP6frQ4'}, '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.249:9696/v2.0/networks?tenant_id=3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b&router%3Aexternal=True&name=ctest-fvn-58539501: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b&router%3Aexternal=True&name=ctest-fvn-58539501 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd4d8d00>: 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 0x7f12bd4d8d00>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b&router%3Aexternal=True&name=ctest-fvn-58539501 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd4d8d00>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b&router%3Aexternal=True&name=ctest-fvn-58539501 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd4d8d00>: 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.249:9696/v2.0/networks?tenant_id=3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b&router%3Aexternal=True&name=ctest-fvn-58539501: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=3f9c2e3b-ebc7-4e91-90c2-0dc1aaea427b&router%3Aexternal=True&name=ctest-fvn-58539501 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd4d8d00>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.971 |
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
Fri Mar 27 21:27:19 2026
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.heat.test_heat.TestHeat.test_heat_stack..._kolla_ocata_sanity,ci_sanity] id=0x7f12c1001d30>, *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=0x7f12c1001d30>
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=0x7f12c1001d30>)
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=0x7f12c1001d30>
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.249:8004/v1/4156ae55be234c5c98ef799c78d2749c/stacks?', method='GET', **kwargs={'headers': {'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent': 'python-heatclient', 'X-Auth-Token': 'gAAAAABpxvX6SXFG7kxeMk69G4yprOH6sBQaWTBMpL1raTem...7mAoj_mX2-gsGJO3HfWdoT_ZiUSCMn-exiVkMKJYHUkEPVfU0'}})
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.475 |
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 0x7f12bd283850>: 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.249', port=9696): Max retries exceeded with url: /v2.0/security-groups (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd283850>: 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.249', port=9696): Max retries exceeded with url: /v2.0/security-groups (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd283850>: 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.249:9696/v2.0/security-groups: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/security-groups (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd283850>: 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
Fri Mar 27 21:27:28 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=0x7f12be9ff0a0>, *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=0x7f12be9ff0a0>
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=0x7f12be9ff0a0>)
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=0x7f12be9ff0a0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...anity,dev_sanity_dpdk,sanity] id=0x7f12be9ff0a0>>
/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7f12be9ff0a0>, 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=0x7f12be9ff0a0>
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-46182635', 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-46182635'
project_id undefined
self.project_id = '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-46182635', option='orch', **kwargs={'project_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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-46182635'
kwargs = {'project_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-46182635', project_id='4c7d0dff-a61d-4a9d-b847-f76eba3ccfac', 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-46182635', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/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-46182635', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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-46182635', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/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-46182635', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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-46182635', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/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-46182635', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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-46182635', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/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-46182635', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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-46182635', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/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-46182635', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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-46182635', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/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=4c7d0dff-a61d-4a9d-b847...fac&router%3Aexternal=True&name=ctest-vn-46182635', body=None, headers=None, params={'name': b'ctest-vn-46182635', 'router:external': True, 'tenant_id': b'4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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=4c7d0dff-a61d-4a9d-b847...fac&router%3Aexternal=True&name=ctest-vn-46182635'
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=4c7d0dff-a61d-4a9d-b847...fac&router%3Aexternal=True&name=ctest-vn-46182635', 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=4c7d0dff-a61d-4a9d-b847...fac&router%3Aexternal=True&name=ctest-vn-46182635'
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=4c7d0dff-a61d-4a9d-b847...fac&router%3Aexternal=True&name=ctest-vn-46182635', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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=4c7d0dff-a61d-4a9d-b847...fac&router%3Aexternal=True&name=ctest-vn-46182635', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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=4c7d0dff-a61d-4a9d-b847...fac&router%3Aexternal=True&name=ctest-vn-46182635', 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': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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=4c7d0dff-a61d-4a9d-b847...fac&router%3Aexternal=True&name=ctest-vn-46182635'
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': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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.249:9696/v2.0/networks?tenant_id=4...fac&router%3Aexternal=True&name=ctest-vn-46182635', 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': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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 0x7f12bd052d00>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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.249:9696/v2.0/networks?tenant_id=4...fac&router%3Aexternal=True&name=ctest-vn-46182635', 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': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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.249:9696/v2.0/networks?tenant_id=4c7d0dff-a61d-4a9d-b847-f76eba3ccfac&router%3Aexternal=True&name=ctest-vn-46182635: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=4c7d0dff-a61d-4a9d-b847-f76eba3ccfac&router%3Aexternal=True&name=ctest-vn-46182635 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd055610>: 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 0x7f12bd055610>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=4c7d0dff-a61d-4a9d-b847-f76eba3ccfac&router%3Aexternal=True&name=ctest-vn-46182635 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd055610>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=4c7d0dff-a61d-4a9d-b847-f76eba3ccfac&router%3Aexternal=True&name=ctest-vn-46182635 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd055610>: 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.249:9696/v2.0/networks?tenant_id=4c7d0dff-a61d-4a9d-b847-f76eba3ccfac&router%3Aexternal=True&name=ctest-vn-46182635: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=4c7d0dff-a61d-4a9d-b847-f76eba3ccfac&router%3Aexternal=True&name=ctest-vn-46182635 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd055610>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.930 |
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
Fri Mar 27 21:27:28 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=0x7f12bea11fd0>, *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=0x7f12bea11fd0>
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=0x7f12bea11fd0>)
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=0x7f12bea11fd0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...anity,dev_sanity_dpdk,sanity] id=0x7f12bea11fd0>>
vn1_name = 'ctest-vn1-17439095'
vn1_subnet_1 = '67.147.142.0/26'
vn1_subnet_2 = '209.69.74.128/26'
/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7f12bea11fd0>, vn_name='ctest-vn1-17439095', vn_subnets=['67.147.142.0/26', '209.69.74.128/26'], cleanup=True, **kwargs={})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.neutron.test_ports.TestPorts.test_ports...sanity,dev_sanity_dpdk,sanity] id=0x7f12bea11fd0>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of <class 'scripts.neutron.test_ports.TestPorts'>>
vn_name = 'ctest-vn1-17439095'
vn_subnets = ['67.147.142.0/26', '209.69.74.128/26']
kwargs = {}
/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.neutron.test_ports.TestPorts'>, vn_name='ctest-vn1-17439095', vn_subnets=['67.147.142.0/26', '209.69.74.128/26'], **kwargs={})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>
/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>
/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>
/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn1-17439095'
project_id undefined
self.project_id = '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn1-17439095', option='orch', **kwargs={'project_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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-17439095'
kwargs = {'project_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn1-17439095', project_id='4c7d0dff-a61d-4a9d-b847-f76eba3ccfac', 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-17439095', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/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-17439095', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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-17439095', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/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-17439095', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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-17439095', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/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-17439095', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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-17439095', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/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-17439095', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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-17439095', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/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-17439095', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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-17439095', 'router:external': True, 'tenant_id': '4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'}
/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=4c7d0dff-a61d-4a9d-b847...ac&router%3Aexternal=True&name=ctest-vn1-17439095', body=None, headers=None, params={'name': b'ctest-vn1-17439095', 'router:external': True, 'tenant_id': b'4c7d0dff-a61d-4a9d-b847-f76eba3ccfac'})
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=4c7d0dff-a61d-4a9d-b847...ac&router%3Aexternal=True&name=ctest-vn1-17439095'
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=4c7d0dff-a61d-4a9d-b847...ac&router%3Aexternal=True&name=ctest-vn1-17439095', 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=4c7d0dff-a61d-4a9d-b847...ac&router%3Aexternal=True&name=ctest-vn1-17439095'
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=4c7d0dff-a61d-4a9d-b847...ac&router%3Aexternal=True&name=ctest-vn1-17439095', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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=4c7d0dff-a61d-4a9d-b847...ac&router%3Aexternal=True&name=ctest-vn1-17439095', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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=4c7d0dff-a61d-4a9d-b847...ac&router%3Aexternal=True&name=ctest-vn1-17439095', 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': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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=4c7d0dff-a61d-4a9d-b847...ac&router%3Aexternal=True&name=ctest-vn1-17439095'
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': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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.249:9696/v2.0/networks?tenant_id=4...ac&router%3Aexternal=True&name=ctest-vn1-17439095', 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': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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 0x7f12bd055bb0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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.249:9696/v2.0/networks?tenant_id=4...ac&router%3Aexternal=True&name=ctest-vn1-17439095', 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': 'gAAAAABpxvY_X-rTX24UE-kWZH1Jd-fTu360gH6uM3m9NsSl...jAg1Ip-kl1miqimHSE3knf5Zfl7l0l0w1ZAGl-eMbsnjniQZ4'}, '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.249:9696/v2.0/networks?tenant_id=4c7d0dff-a61d-4a9d-b847-f76eba3ccfac&router%3Aexternal=True&name=ctest-vn1-17439095: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=4c7d0dff-a61d-4a9d-b847-f76eba3ccfac&router%3Aexternal=True&name=ctest-vn1-17439095 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd0559a0>: 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 0x7f12bd0559a0>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=4c7d0dff-a61d-4a9d-b847-f76eba3ccfac&router%3Aexternal=True&name=ctest-vn1-17439095 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd0559a0>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=4c7d0dff-a61d-4a9d-b847-f76eba3ccfac&router%3Aexternal=True&name=ctest-vn1-17439095 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd0559a0>: 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.249:9696/v2.0/networks?tenant_id=4c7d0dff-a61d-4a9d-b847-f76eba3ccfac&router%3Aexternal=True&name=ctest-vn1-17439095: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=4c7d0dff-a61d-4a9d-b847-f76eba3ccfac&router%3Aexternal=True&name=ctest-vn1-17439095 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd0559a0>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.449 |
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
Fri Mar 27 21:27:33 2026
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.neutron.test_routers.TestRouters.test_b...sanity,dev_sanity_dpdk,sanity] id=0x7f12bea27f40>, *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=0x7f12bea27f40>
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=0x7f12bea27f40>)
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=0x7f12bea27f40>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...anity,dev_sanity_dpdk,sanity] id=0x7f12bea27f40>>
vn1_name = 'ctest-vn1-77995393'
vn1_subnets = ['141.232.3.128/26']
/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_routers.TestRouters.test_b...sanity,dev_sanity_dpdk,sanity] id=0x7f12bea27f40>, vn_name='ctest-vn1-77995393', vn_subnets=['141.232.3.128/26'], cleanup=True, **kwargs={})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.neutron.test_routers.TestRouters.test_b...sanity,dev_sanity_dpdk,sanity] id=0x7f12bea27f40>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of <class 'scripts.neutron.test_routers.TestRouters'>>
vn_name = 'ctest-vn1-77995393'
vn_subnets = ['141.232.3.128/26']
kwargs = {}
/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.neutron.test_routers.TestRouters'>, vn_name='ctest-vn1-77995393', vn_subnets=['141.232.3.128/26'], **kwargs={})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>
/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>
/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>
/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-vn1-77995393'
project_id undefined
self.project_id = 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn1-77995393', option='orch', **kwargs={'project_id': 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'})
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-77995393'
kwargs = {'project_id': 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn1-77995393', project_id='e43c60a3-d4eb-4598-97e9-e50bc40f8834', 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-77995393', 'router:external': True, 'tenant_id': 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'}
/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-77995393', 'router:external': True, 'tenant_id': 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'})
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-77995393', 'router:external': True, 'tenant_id': 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'}
/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-77995393', 'router:external': True, 'tenant_id': 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'})
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-77995393', 'router:external': True, 'tenant_id': 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'}
/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-77995393', 'router:external': True, 'tenant_id': 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'})
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-77995393', 'router:external': True, 'tenant_id': 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'}
/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-77995393', 'router:external': True, 'tenant_id': 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'})
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-77995393', 'router:external': True, 'tenant_id': 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'}
/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-77995393', 'router:external': True, 'tenant_id': 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'})
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-77995393', 'router:external': True, 'tenant_id': 'e43c60a3-d4eb-4598-97e9-e50bc40f8834'}
/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=e43c60a3-d4eb-4598-97e9...34&router%3Aexternal=True&name=ctest-vn1-77995393', body=None, headers=None, params={'name': b'ctest-vn1-77995393', 'router:external': True, 'tenant_id': b'e43c60a3-d4eb-4598-97e9-e50bc40f8834'})
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=e43c60a3-d4eb-4598-97e9...34&router%3Aexternal=True&name=ctest-vn1-77995393'
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=e43c60a3-d4eb-4598-97e9...34&router%3Aexternal=True&name=ctest-vn1-77995393', 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=e43c60a3-d4eb-4598-97e9...34&router%3Aexternal=True&name=ctest-vn1-77995393'
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=e43c60a3-d4eb-4598-97e9...34&router%3Aexternal=True&name=ctest-vn1-77995393', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZEmWW6wuf199PG-dbUa6EE-cMJYdKgRXYI6__G...Kui2xzJdQEt26OqQ7KEgckEZC1DvHV_CgrKS75OO7GsWUTgDU'}, '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=e43c60a3-d4eb-4598-97e9...34&router%3Aexternal=True&name=ctest-vn1-77995393', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZEmWW6wuf199PG-dbUa6EE-cMJYdKgRXYI6__G...Kui2xzJdQEt26OqQ7KEgckEZC1DvHV_CgrKS75OO7GsWUTgDU'}, '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=e43c60a3-d4eb-4598-97e9...34&router%3Aexternal=True&name=ctest-vn1-77995393', 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': 'gAAAAABpxvZEmWW6wuf199PG-dbUa6EE-cMJYdKgRXYI6__G...Kui2xzJdQEt26OqQ7KEgckEZC1DvHV_CgrKS75OO7GsWUTgDU'}, '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=e43c60a3-d4eb-4598-97e9...34&router%3Aexternal=True&name=ctest-vn1-77995393'
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': 'gAAAAABpxvZEmWW6wuf199PG-dbUa6EE-cMJYdKgRXYI6__G...Kui2xzJdQEt26OqQ7KEgckEZC1DvHV_CgrKS75OO7GsWUTgDU'}, '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.249:9696/v2.0/networks?tenant_id=e...34&router%3Aexternal=True&name=ctest-vn1-77995393', 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': 'gAAAAABpxvZEmWW6wuf199PG-dbUa6EE-cMJYdKgRXYI6__G...Kui2xzJdQEt26OqQ7KEgckEZC1DvHV_CgrKS75OO7GsWUTgDU'}, '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 0x7f12bcf5d940>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZEmWW6wuf199PG-dbUa6EE-cMJYdKgRXYI6__G...Kui2xzJdQEt26OqQ7KEgckEZC1DvHV_CgrKS75OO7GsWUTgDU'}, '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.249:9696/v2.0/networks?tenant_id=e...34&router%3Aexternal=True&name=ctest-vn1-77995393', 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': 'gAAAAABpxvZEmWW6wuf199PG-dbUa6EE-cMJYdKgRXYI6__G...Kui2xzJdQEt26OqQ7KEgckEZC1DvHV_CgrKS75OO7GsWUTgDU'}, '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.249:9696/v2.0/networks?tenant_id=e43c60a3-d4eb-4598-97e9-e50bc40f8834&router%3Aexternal=True&name=ctest-vn1-77995393: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e43c60a3-d4eb-4598-97e9-e50bc40f8834&router%3Aexternal=True&name=ctest-vn1-77995393 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd07a0a0>: 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 0x7f12bd07a0a0>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e43c60a3-d4eb-4598-97e9-e50bc40f8834&router%3Aexternal=True&name=ctest-vn1-77995393 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd07a0a0>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e43c60a3-d4eb-4598-97e9-e50bc40f8834&router%3Aexternal=True&name=ctest-vn1-77995393 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd07a0a0>: 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.249:9696/v2.0/networks?tenant_id=e43c60a3-d4eb-4598-97e9-e50bc40f8834&router%3Aexternal=True&name=ctest-vn1-77995393: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e43c60a3-d4eb-4598-97e9-e50bc40f8834&router%3Aexternal=True&name=ctest-vn1-77995393 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bd07a0a0>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.823 |
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
Fri Mar 27 21:27: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.neutron.test_routers_basic.TestRoutersB...dev_sanity_dpdk,sanity,suite1] id=0x7f12be9b0670>, *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=0x7f12be9b0670>
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=0x7f12be9b0670>)
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=0x7f12be9b0670>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...ev_sanity_dpdk,sanity,suite1] id=0x7f12be9b0670>>
/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_routers_basic.TestRoutersB...dev_sanity_dpdk,sanity,suite1] id=0x7f12be9b0670>, 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=0x7f12be9b0670>
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-02453026', 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-02453026'
project_id undefined
self.project_id = '14540196-dba5-41c3-91fa-b4fe7d82aa27'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-02453026', option='orch', **kwargs={'project_id': '14540196-dba5-41c3-91fa-b4fe7d82aa27'})
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-02453026'
kwargs = {'project_id': '14540196-dba5-41c3-91fa-b4fe7d82aa27'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-02453026', project_id='14540196-dba5-41c3-91fa-b4fe7d82aa27', 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-02453026', 'router:external': True, 'tenant_id': '14540196-dba5-41c3-91fa-b4fe7d82aa27'}
/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-02453026', 'router:external': True, 'tenant_id': '14540196-dba5-41c3-91fa-b4fe7d82aa27'})
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-02453026', 'router:external': True, 'tenant_id': '14540196-dba5-41c3-91fa-b4fe7d82aa27'}
/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-02453026', 'router:external': True, 'tenant_id': '14540196-dba5-41c3-91fa-b4fe7d82aa27'})
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-02453026', 'router:external': True, 'tenant_id': '14540196-dba5-41c3-91fa-b4fe7d82aa27'}
/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-02453026', 'router:external': True, 'tenant_id': '14540196-dba5-41c3-91fa-b4fe7d82aa27'})
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-02453026', 'router:external': True, 'tenant_id': '14540196-dba5-41c3-91fa-b4fe7d82aa27'}
/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-02453026', 'router:external': True, 'tenant_id': '14540196-dba5-41c3-91fa-b4fe7d82aa27'})
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-02453026', 'router:external': True, 'tenant_id': '14540196-dba5-41c3-91fa-b4fe7d82aa27'}
/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-02453026', 'router:external': True, 'tenant_id': '14540196-dba5-41c3-91fa-b4fe7d82aa27'})
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-02453026', 'router:external': True, 'tenant_id': '14540196-dba5-41c3-91fa-b4fe7d82aa27'}
/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=14540196-dba5-41c3-91fa...a27&router%3Aexternal=True&name=ctest-vn-02453026', body=None, headers=None, params={'name': b'ctest-vn-02453026', 'router:external': True, 'tenant_id': b'14540196-dba5-41c3-91fa-b4fe7d82aa27'})
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=14540196-dba5-41c3-91fa...a27&router%3Aexternal=True&name=ctest-vn-02453026'
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=14540196-dba5-41c3-91fa...a27&router%3Aexternal=True&name=ctest-vn-02453026', 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=14540196-dba5-41c3-91fa...a27&router%3Aexternal=True&name=ctest-vn-02453026'
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=14540196-dba5-41c3-91fa...a27&router%3Aexternal=True&name=ctest-vn-02453026', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZIH6zVJk7x2Cttn9XuyGyv2kudVD4OMCyyR4kn...CApyhA1Gfnlm7LlMO3ZQkyKF17XEP_9WiK8BA27ApeHveG1UA'}, '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=14540196-dba5-41c3-91fa...a27&router%3Aexternal=True&name=ctest-vn-02453026', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZIH6zVJk7x2Cttn9XuyGyv2kudVD4OMCyyR4kn...CApyhA1Gfnlm7LlMO3ZQkyKF17XEP_9WiK8BA27ApeHveG1UA'}, '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=14540196-dba5-41c3-91fa...a27&router%3Aexternal=True&name=ctest-vn-02453026', 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': 'gAAAAABpxvZIH6zVJk7x2Cttn9XuyGyv2kudVD4OMCyyR4kn...CApyhA1Gfnlm7LlMO3ZQkyKF17XEP_9WiK8BA27ApeHveG1UA'}, '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=14540196-dba5-41c3-91fa...a27&router%3Aexternal=True&name=ctest-vn-02453026'
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': 'gAAAAABpxvZIH6zVJk7x2Cttn9XuyGyv2kudVD4OMCyyR4kn...CApyhA1Gfnlm7LlMO3ZQkyKF17XEP_9WiK8BA27ApeHveG1UA'}, '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.249:9696/v2.0/networks?tenant_id=1...a27&router%3Aexternal=True&name=ctest-vn-02453026', 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': 'gAAAAABpxvZIH6zVJk7x2Cttn9XuyGyv2kudVD4OMCyyR4kn...CApyhA1Gfnlm7LlMO3ZQkyKF17XEP_9WiK8BA27ApeHveG1UA'}, '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 0x7f12bcf56cd0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZIH6zVJk7x2Cttn9XuyGyv2kudVD4OMCyyR4kn...CApyhA1Gfnlm7LlMO3ZQkyKF17XEP_9WiK8BA27ApeHveG1UA'}, '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.249:9696/v2.0/networks?tenant_id=1...a27&router%3Aexternal=True&name=ctest-vn-02453026', 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': 'gAAAAABpxvZIH6zVJk7x2Cttn9XuyGyv2kudVD4OMCyyR4kn...CApyhA1Gfnlm7LlMO3ZQkyKF17XEP_9WiK8BA27ApeHveG1UA'}, '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.249:9696/v2.0/networks?tenant_id=14540196-dba5-41c3-91fa-b4fe7d82aa27&router%3Aexternal=True&name=ctest-vn-02453026: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=14540196-dba5-41c3-91fa-b4fe7d82aa27&router%3Aexternal=True&name=ctest-vn-02453026 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcfb7af0>: 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 0x7f12bcfb7af0>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=14540196-dba5-41c3-91fa-b4fe7d82aa27&router%3Aexternal=True&name=ctest-vn-02453026 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcfb7af0>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=14540196-dba5-41c3-91fa-b4fe7d82aa27&router%3Aexternal=True&name=ctest-vn-02453026 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcfb7af0>: 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.249:9696/v2.0/networks?tenant_id=14540196-dba5-41c3-91fa-b4fe7d82aa27&router%3Aexternal=True&name=ctest-vn-02453026: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=14540196-dba5-41c3-91fa-b4fe7d82aa27&router%3Aexternal=True&name=ctest-vn-02453026 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcfb7af0>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 1.952 |
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
Fri Mar 27 21:27: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.policy.test_policy.TestBasicPolicyIpv4v...ty,quick_sanity,sanity,suite1] id=0x7f12be8fa430>, *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=0x7f12be8fa430>
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=0x7f12be8fa430>)
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=0x7f12be8fa430>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...y,quick_sanity,sanity,suite1] id=0x7f12be8fa430>>
/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy.TestBasicPolicyIpv4v...ty,quick_sanity,sanity,suite1] id=0x7f12be8fa430>, 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=0x7f12be8fa430>
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-92095074', 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-92095074'
project_id undefined
self.project_id = '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-92095074', option='orch', **kwargs={'project_id': '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'})
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-92095074'
kwargs = {'project_id': '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-92095074', project_id='5a98e715-59d4-4ffb-926a-a52cf19d1bf2', 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-92095074', 'router:external': True, 'tenant_id': '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'}
/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-92095074', 'router:external': True, 'tenant_id': '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'})
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-92095074', 'router:external': True, 'tenant_id': '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'}
/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-92095074', 'router:external': True, 'tenant_id': '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'})
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-92095074', 'router:external': True, 'tenant_id': '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'}
/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-92095074', 'router:external': True, 'tenant_id': '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'})
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-92095074', 'router:external': True, 'tenant_id': '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'}
/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-92095074', 'router:external': True, 'tenant_id': '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'})
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-92095074', 'router:external': True, 'tenant_id': '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'}
/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-92095074', 'router:external': True, 'tenant_id': '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'})
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-92095074', 'router:external': True, 'tenant_id': '5a98e715-59d4-4ffb-926a-a52cf19d1bf2'}
/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=5a98e715-59d4-4ffb-926a...bf2&router%3Aexternal=True&name=ctest-vn-92095074', body=None, headers=None, params={'name': b'ctest-vn-92095074', 'router:external': True, 'tenant_id': b'5a98e715-59d4-4ffb-926a-a52cf19d1bf2'})
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=5a98e715-59d4-4ffb-926a...bf2&router%3Aexternal=True&name=ctest-vn-92095074'
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=5a98e715-59d4-4ffb-926a...bf2&router%3Aexternal=True&name=ctest-vn-92095074', 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=5a98e715-59d4-4ffb-926a...bf2&router%3Aexternal=True&name=ctest-vn-92095074'
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=5a98e715-59d4-4ffb-926a...bf2&router%3Aexternal=True&name=ctest-vn-92095074', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZOcQSzvORa7gxxVfhnJsri06FmsREuZ1-8xGZW...1iiJrvN-W0NPUcRhYsUnDVKqHjpeK-vY7H4EvZsY4YJoh_Bvs'}, '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=5a98e715-59d4-4ffb-926a...bf2&router%3Aexternal=True&name=ctest-vn-92095074', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZOcQSzvORa7gxxVfhnJsri06FmsREuZ1-8xGZW...1iiJrvN-W0NPUcRhYsUnDVKqHjpeK-vY7H4EvZsY4YJoh_Bvs'}, '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=5a98e715-59d4-4ffb-926a...bf2&router%3Aexternal=True&name=ctest-vn-92095074', 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': 'gAAAAABpxvZOcQSzvORa7gxxVfhnJsri06FmsREuZ1-8xGZW...1iiJrvN-W0NPUcRhYsUnDVKqHjpeK-vY7H4EvZsY4YJoh_Bvs'}, '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=5a98e715-59d4-4ffb-926a...bf2&router%3Aexternal=True&name=ctest-vn-92095074'
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': 'gAAAAABpxvZOcQSzvORa7gxxVfhnJsri06FmsREuZ1-8xGZW...1iiJrvN-W0NPUcRhYsUnDVKqHjpeK-vY7H4EvZsY4YJoh_Bvs'}, '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.249:9696/v2.0/networks?tenant_id=5...bf2&router%3Aexternal=True&name=ctest-vn-92095074', 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': 'gAAAAABpxvZOcQSzvORa7gxxVfhnJsri06FmsREuZ1-8xGZW...1iiJrvN-W0NPUcRhYsUnDVKqHjpeK-vY7H4EvZsY4YJoh_Bvs'}, '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 0x7f12bcd55d60>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZOcQSzvORa7gxxVfhnJsri06FmsREuZ1-8xGZW...1iiJrvN-W0NPUcRhYsUnDVKqHjpeK-vY7H4EvZsY4YJoh_Bvs'}, '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.249:9696/v2.0/networks?tenant_id=5...bf2&router%3Aexternal=True&name=ctest-vn-92095074', 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': 'gAAAAABpxvZOcQSzvORa7gxxVfhnJsri06FmsREuZ1-8xGZW...1iiJrvN-W0NPUcRhYsUnDVKqHjpeK-vY7H4EvZsY4YJoh_Bvs'}, '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.249:9696/v2.0/networks?tenant_id=5a98e715-59d4-4ffb-926a-a52cf19d1bf2&router%3Aexternal=True&name=ctest-vn-92095074: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=5a98e715-59d4-4ffb-926a-a52cf19d1bf2&router%3Aexternal=True&name=ctest-vn-92095074 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcd55070>: 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 0x7f12bcd55070>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=5a98e715-59d4-4ffb-926a-a52cf19d1bf2&router%3Aexternal=True&name=ctest-vn-92095074 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcd55070>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=5a98e715-59d4-4ffb-926a-a52cf19d1bf2&router%3Aexternal=True&name=ctest-vn-92095074 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcd55070>: 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.249:9696/v2.0/networks?tenant_id=5a98e715-59d4-4ffb-926a-a52cf19d1bf2&router%3Aexternal=True&name=ctest-vn-92095074: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=5a98e715-59d4-4ffb-926a-a52cf19d1bf2&router%3Aexternal=True&name=ctest-vn-92095074 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcd55070>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.923 |
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
Fri Mar 27 21:27:49 2026
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7f12be8fafa0>, *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=0x7f12be8fafa0>
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=0x7f12be8fafa0>)
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=0x7f12be8fafa0>
).test_remove_policy_with_ref = <bound method TestBasicPolicyNegativeIpv4v6.test...cy_with_ref[ci_sanity,sanity] id=0x7f12be8fafa0>>
/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7f12be8fafa0>, *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
Fri Mar 27 21:27:49 2026
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7f12be8fafa0>, *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=0x7f12be8fafa0>
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=0x7f12be8fafa0>)
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=0x7f12be8fafa0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...cy_with_ref[ci_sanity,sanity] id=0x7f12be8fafa0>>
vn1_name = 'ctest-vn4-99911944'
vn1_subnets = ['192.69.185.64/26', '3dd3:aed6:e697:d2a9:ce16:6d5b::/96']
/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7f12be8fafa0>, vn_name='ctest-vn4-99911944', vn_subnets=['192.69.185.64/26', '3dd3:aed6:e697:d2a9:ce16:6d5b::/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=0x7f12be8fafa0>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...licy.test_policy.TestBasicPolicyNegativeIpv4v6'>>
vn_name = 'ctest-vn4-99911944'
vn_subnets = ['192.69.185.64/26', '3dd3:aed6:e697:d2a9:ce16:6d5b::/96']
kwargs = {}
/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.policy.test_policy.TestBasicPolicyNegativeIpv4v6'>, vn_name='ctest-vn4-99911944', vn_subnets=['192.69.185.64/26', '3dd3:aed6:e697:d2a9:ce16:6d5b::/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-99911944'
project_id undefined
self.project_id = '8e082180-e53d-47f0-bf1b-a9189f4f9192'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn4-99911944', option='orch', **kwargs={'project_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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-99911944'
kwargs = {'project_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn4-99911944', project_id='8e082180-e53d-47f0-bf1b-a9189f4f9192', 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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944', body=None, headers=None, params={'name': b'ctest-vn4-99911944', 'router:external': True, 'tenant_id': b'8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944'
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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944', 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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944'
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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944', 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': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944'
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': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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.249:9696/v2.0/networks?tenant_id=8...92&router%3Aexternal=True&name=ctest-vn4-99911944', 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': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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 0x7f12bcc61400>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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.249:9696/v2.0/networks?tenant_id=8...92&router%3Aexternal=True&name=ctest-vn4-99911944', 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': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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.249:9696/v2.0/networks?tenant_id=8e082180-e53d-47f0-bf1b-a9189f4f9192&router%3Aexternal=True&name=ctest-vn4-99911944: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8e082180-e53d-47f0-bf1b-a9189f4f9192&router%3Aexternal=True&name=ctest-vn4-99911944 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcc624f0>: 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 0x7f12bcc624f0>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8e082180-e53d-47f0-bf1b-a9189f4f9192&router%3Aexternal=True&name=ctest-vn4-99911944 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcc624f0>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8e082180-e53d-47f0-bf1b-a9189f4f9192&router%3Aexternal=True&name=ctest-vn4-99911944 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcc624f0>: 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.249:9696/v2.0/networks?tenant_id=8e082180-e53d-47f0-bf1b-a9189f4f9192&router%3Aexternal=True&name=ctest-vn4-99911944: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8e082180-e53d-47f0-bf1b-a9189f4f9192&router%3Aexternal=True&name=ctest-vn4-99911944 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcc624f0>: 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
Fri Mar 27 21:27:49 2026
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7f12be8fafa0>, *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=0x7f12be8fafa0>
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=0x7f12be8fafa0>)
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=0x7f12be8fafa0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...cy_with_ref[ci_sanity,sanity] id=0x7f12be8fafa0>>
vn1_name = 'ctest-vn4-99911944'
vn1_subnets = ['192.69.185.64/26', '3dd3:aed6:e697:d2a9:ce16:6d5b::/96']
/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy.TestBasicPolicyNegat...icy_with_ref[ci_sanity,sanity] id=0x7f12be8fafa0>, vn_name='ctest-vn4-99911944', vn_subnets=['192.69.185.64/26', '3dd3:aed6:e697:d2a9:ce16:6d5b::/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=0x7f12be8fafa0>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...licy.test_policy.TestBasicPolicyNegativeIpv4v6'>>
vn_name = 'ctest-vn4-99911944'
vn_subnets = ['192.69.185.64/26', '3dd3:aed6:e697:d2a9:ce16:6d5b::/96']
kwargs = {}
/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.policy.test_policy.TestBasicPolicyNegativeIpv4v6'>, vn_name='ctest-vn4-99911944', vn_subnets=['192.69.185.64/26', '3dd3:aed6:e697:d2a9:ce16:6d5b::/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-99911944'
project_id undefined
self.project_id = '8e082180-e53d-47f0-bf1b-a9189f4f9192'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn4-99911944', option='orch', **kwargs={'project_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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-99911944'
kwargs = {'project_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn4-99911944', project_id='8e082180-e53d-47f0-bf1b-a9189f4f9192', 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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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-99911944', 'router:external': True, 'tenant_id': '8e082180-e53d-47f0-bf1b-a9189f4f9192'}
/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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944', body=None, headers=None, params={'name': b'ctest-vn4-99911944', 'router:external': True, 'tenant_id': b'8e082180-e53d-47f0-bf1b-a9189f4f9192'})
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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944'
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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944', 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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944'
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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944', 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': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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=8e082180-e53d-47f0-bf1b...92&router%3Aexternal=True&name=ctest-vn4-99911944'
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': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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.249:9696/v2.0/networks?tenant_id=8...92&router%3Aexternal=True&name=ctest-vn4-99911944', 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': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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 0x7f12bcc61400>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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.249:9696/v2.0/networks?tenant_id=8...92&router%3Aexternal=True&name=ctest-vn4-99911944', 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': 'gAAAAABpxvZTrVGF0TsWV9AVe3E8xCHffwaST9I6evqqj3y0...4_rSNqyb8zyBL3AHWE-Xf_59O2zfe6FFkkGguvS--TrRUgO8s'}, '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.249:9696/v2.0/networks?tenant_id=8e082180-e53d-47f0-bf1b-a9189f4f9192&router%3Aexternal=True&name=ctest-vn4-99911944: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8e082180-e53d-47f0-bf1b-a9189f4f9192&router%3Aexternal=True&name=ctest-vn4-99911944 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcc624f0>: 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 0x7f12bcc624f0>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8e082180-e53d-47f0-bf1b-a9189f4f9192&router%3Aexternal=True&name=ctest-vn4-99911944 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcc624f0>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8e082180-e53d-47f0-bf1b-a9189f4f9192&router%3Aexternal=True&name=ctest-vn4-99911944 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcc624f0>: 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.249:9696/v2.0/networks?tenant_id=8e082180-e53d-47f0-bf1b-a9189f4f9192&router%3Aexternal=True&name=ctest-vn4-99911944: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8e082180-e53d-47f0-bf1b-a9189f4f9192&router%3Aexternal=True&name=ctest-vn4-99911944 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcc624f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 1.633 |
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
Fri Mar 27 21:27:54 2026
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.policy.test_policy_basic.TestBasicPolic...ty,quick_sanity,sanity,suite1] id=0x7f12be92f130>, *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=0x7f12be92f130>
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=0x7f12be92f130>)
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=0x7f12be92f130>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...y,quick_sanity,sanity,suite1] id=0x7f12be92f130>>
/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy_basic.TestBasicPolic...ty,quick_sanity,sanity,suite1] id=0x7f12be92f130>, 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=0x7f12be92f130>
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-64514285', 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-64514285'
project_id undefined
self.project_id = '8e885e1b-a8a8-4667-a77b-de5bd8136318'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-64514285', option='orch', **kwargs={'project_id': '8e885e1b-a8a8-4667-a77b-de5bd8136318'})
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-64514285'
kwargs = {'project_id': '8e885e1b-a8a8-4667-a77b-de5bd8136318'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-64514285', project_id='8e885e1b-a8a8-4667-a77b-de5bd8136318', 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-64514285', 'router:external': True, 'tenant_id': '8e885e1b-a8a8-4667-a77b-de5bd8136318'}
/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-64514285', 'router:external': True, 'tenant_id': '8e885e1b-a8a8-4667-a77b-de5bd8136318'})
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-64514285', 'router:external': True, 'tenant_id': '8e885e1b-a8a8-4667-a77b-de5bd8136318'}
/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-64514285', 'router:external': True, 'tenant_id': '8e885e1b-a8a8-4667-a77b-de5bd8136318'})
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-64514285', 'router:external': True, 'tenant_id': '8e885e1b-a8a8-4667-a77b-de5bd8136318'}
/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-64514285', 'router:external': True, 'tenant_id': '8e885e1b-a8a8-4667-a77b-de5bd8136318'})
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-64514285', 'router:external': True, 'tenant_id': '8e885e1b-a8a8-4667-a77b-de5bd8136318'}
/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-64514285', 'router:external': True, 'tenant_id': '8e885e1b-a8a8-4667-a77b-de5bd8136318'})
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-64514285', 'router:external': True, 'tenant_id': '8e885e1b-a8a8-4667-a77b-de5bd8136318'}
/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-64514285', 'router:external': True, 'tenant_id': '8e885e1b-a8a8-4667-a77b-de5bd8136318'})
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-64514285', 'router:external': True, 'tenant_id': '8e885e1b-a8a8-4667-a77b-de5bd8136318'}
/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=8e885e1b-a8a8-4667-a77b...318&router%3Aexternal=True&name=ctest-vn-64514285', body=None, headers=None, params={'name': b'ctest-vn-64514285', 'router:external': True, 'tenant_id': b'8e885e1b-a8a8-4667-a77b-de5bd8136318'})
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=8e885e1b-a8a8-4667-a77b...318&router%3Aexternal=True&name=ctest-vn-64514285'
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=8e885e1b-a8a8-4667-a77b...318&router%3Aexternal=True&name=ctest-vn-64514285', 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=8e885e1b-a8a8-4667-a77b...318&router%3Aexternal=True&name=ctest-vn-64514285'
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=8e885e1b-a8a8-4667-a77b...318&router%3Aexternal=True&name=ctest-vn-64514285', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZZKtlmOrA3in0Ce6GXs67KOspRNxL0xKctCNZv...wJ2jpZsxJaHTs4tVuINbjreahImghqm81usa9L_3fiqEj6cEw'}, '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=8e885e1b-a8a8-4667-a77b...318&router%3Aexternal=True&name=ctest-vn-64514285', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZZKtlmOrA3in0Ce6GXs67KOspRNxL0xKctCNZv...wJ2jpZsxJaHTs4tVuINbjreahImghqm81usa9L_3fiqEj6cEw'}, '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=8e885e1b-a8a8-4667-a77b...318&router%3Aexternal=True&name=ctest-vn-64514285', 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': 'gAAAAABpxvZZKtlmOrA3in0Ce6GXs67KOspRNxL0xKctCNZv...wJ2jpZsxJaHTs4tVuINbjreahImghqm81usa9L_3fiqEj6cEw'}, '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=8e885e1b-a8a8-4667-a77b...318&router%3Aexternal=True&name=ctest-vn-64514285'
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': 'gAAAAABpxvZZKtlmOrA3in0Ce6GXs67KOspRNxL0xKctCNZv...wJ2jpZsxJaHTs4tVuINbjreahImghqm81usa9L_3fiqEj6cEw'}, '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.249:9696/v2.0/networks?tenant_id=8...318&router%3Aexternal=True&name=ctest-vn-64514285', 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': 'gAAAAABpxvZZKtlmOrA3in0Ce6GXs67KOspRNxL0xKctCNZv...wJ2jpZsxJaHTs4tVuINbjreahImghqm81usa9L_3fiqEj6cEw'}, '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 0x7f12bcb59d90>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZZKtlmOrA3in0Ce6GXs67KOspRNxL0xKctCNZv...wJ2jpZsxJaHTs4tVuINbjreahImghqm81usa9L_3fiqEj6cEw'}, '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.249:9696/v2.0/networks?tenant_id=8...318&router%3Aexternal=True&name=ctest-vn-64514285', 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': 'gAAAAABpxvZZKtlmOrA3in0Ce6GXs67KOspRNxL0xKctCNZv...wJ2jpZsxJaHTs4tVuINbjreahImghqm81usa9L_3fiqEj6cEw'}, '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.249:9696/v2.0/networks?tenant_id=8e885e1b-a8a8-4667-a77b-de5bd8136318&router%3Aexternal=True&name=ctest-vn-64514285: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8e885e1b-a8a8-4667-a77b-de5bd8136318&router%3Aexternal=True&name=ctest-vn-64514285 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcb60220>: 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 0x7f12bcb60220>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8e885e1b-a8a8-4667-a77b-de5bd8136318&router%3Aexternal=True&name=ctest-vn-64514285 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcb60220>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8e885e1b-a8a8-4667-a77b-de5bd8136318&router%3Aexternal=True&name=ctest-vn-64514285 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcb60220>: 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.249:9696/v2.0/networks?tenant_id=8e885e1b-a8a8-4667-a77b-de5bd8136318&router%3Aexternal=True&name=ctest-vn-64514285: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8e885e1b-a8a8-4667-a77b-de5bd8136318&router%3Aexternal=True&name=ctest-vn-64514285 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcb60220>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.957 |
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
Fri Mar 27 21:27: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.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7f12be737880>, *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=0x7f12be737880>
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=0x7f12be737880>)
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=0x7f12be737880>
self.config_basic = <bound method RPBase.config_basic of <scripts.ro...p_interface[ci_sanity,sanity] id=0x7f12be737880>>
/contrail-test/scripts/routing_policy/base.py in config_basic(self=<scripts.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7f12be737880>)
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=0x7f12be737880>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...p_interface[ci_sanity,sanity] id=0x7f12be737880>>
vn_name = 'ctest-bgpaas_vn-66278064'
vn_subnets = ['24.225.86.64/26']
/contrail-test/common/base.py in create_vn(self=<scripts.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7f12be737880>, vn_name='ctest-bgpaas_vn-66278064', vn_subnets=['24.225.86.64/26'], cleanup=True, **kwargs={})
189
190 def create_vn(self, vn_name=None, vn_subnets=None, cleanup=True, **kwargs):
191 vn_fixture = self.create_only_vn(vn_name=vn_name,
192 vn_subnets=vn_subnets,
193 **kwargs)
vn_fixture undefined
self = <scripts.routing_policy.test_routing_policy.Test...rp_interface[ci_sanity,sanity] id=0x7f12be737880>
self.create_only_vn = <bound method GenericTestBase.create_only_vn of ...ipts.routing_policy.test_routing_policy.TestRP'>>
vn_name = 'ctest-bgpaas_vn-66278064'
vn_subnets = ['24.225.86.64/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-66278064', vn_subnets=['24.225.86.64/26'], **kwargs={})
184 subnets=vn_subnets,
185 **kwargs)
186 vn_fixture.setUp()
187 return vn_fixture
188 # end create_only_vn
vn_fixture = <vn_test.VNFixture object>
vn_fixture.setUp = <bound method VNFixture.setUp of <vn_test.VNFixture object>>
/contrail-test/fixtures/vn_test.py in setUp(self=<vn_test.VNFixture object>)
437 def setUp(self):
438 super(VNFixture, self).setUp()
439 self.create()
440
441 def create(self):
self = <vn_test.VNFixture object>
self.create = <bound method VNFixture.create of <vn_test.VNFixture object>>
/contrail-test/fixtures/vn_test.py in create(self=<vn_test.VNFixture object>)
450 self._create_vn_api(self.vn_name, self.project_obj)
451 else:
452 self._create_vn_orch()
453 if not self.obj:
454 self.logger.debug('VN %s not present' % (self.vn_name))
self = <vn_test.VNFixture object>
self._create_vn_orch = <bound method VNFixture._create_vn_orch of <vn_test.VNFixture object>>
/contrail-test/fixtures/vn_test.py in _create_vn_orch(self=<vn_test.VNFixture object>)
293 self.project_id = self.connections.get_project_id()
294 try:
295 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
296 project_id=self.project_id)
297 if not self.obj:
self = <vn_test.VNFixture object>
self.obj = None
self.orchestrator = <openstack.OpenstackOrchestrator object>
self.orchestrator.get_vn_obj_if_present = <bound method OpenstackOrchestrator.get_vn_obj_i...sent of <openstack.OpenstackOrchestrator object>>
self.vn_name = 'ctest-bgpaas_vn-66278064'
project_id undefined
self.project_id = 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-bgpaas_vn-66278064', option='orch', **kwargs={'project_id': 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'})
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-66278064'
kwargs = {'project_id': 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-bgpaas_vn-66278064', project_id='c4fb8f65-8e22-47f7-ae85-ccebb8ca113d', 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-66278064', 'router:external': True, 'tenant_id': 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'}
/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-66278064', 'router:external': True, 'tenant_id': 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'})
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-66278064', 'router:external': True, 'tenant_id': 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'}
/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-66278064', 'router:external': True, 'tenant_id': 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'})
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-66278064', 'router:external': True, 'tenant_id': 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'}
/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-66278064', 'router:external': True, 'tenant_id': 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'})
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-66278064', 'router:external': True, 'tenant_id': 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'}
/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-66278064', 'router:external': True, 'tenant_id': 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'})
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-66278064', 'router:external': True, 'tenant_id': 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'}
/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-66278064', 'router:external': True, 'tenant_id': 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'})
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-66278064', 'router:external': True, 'tenant_id': 'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'}
/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=c4fb8f65-8e22-47f7-ae85...ter%3Aexternal=True&name=ctest-bgpaas_vn-66278064', body=None, headers=None, params={'name': b'ctest-bgpaas_vn-66278064', 'router:external': True, 'tenant_id': b'c4fb8f65-8e22-47f7-ae85-ccebb8ca113d'})
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=c4fb8f65-8e22-47f7-ae85...ter%3Aexternal=True&name=ctest-bgpaas_vn-66278064'
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=c4fb8f65-8e22-47f7-ae85...ter%3Aexternal=True&name=ctest-bgpaas_vn-66278064', 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=c4fb8f65-8e22-47f7-ae85...ter%3Aexternal=True&name=ctest-bgpaas_vn-66278064'
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=c4fb8f65-8e22-47f7-ae85...ter%3Aexternal=True&name=ctest-bgpaas_vn-66278064', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZej5ymroNlm6KOFGSFknSAqX6zvuu8lB5y5Jue...gSp6MwEtPQnfAcNxDkahvZebHuqfZfsoJS3AID3C_Rk1Y35t0'}, '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=c4fb8f65-8e22-47f7-ae85...ter%3Aexternal=True&name=ctest-bgpaas_vn-66278064', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZej5ymroNlm6KOFGSFknSAqX6zvuu8lB5y5Jue...gSp6MwEtPQnfAcNxDkahvZebHuqfZfsoJS3AID3C_Rk1Y35t0'}, '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=c4fb8f65-8e22-47f7-ae85...ter%3Aexternal=True&name=ctest-bgpaas_vn-66278064', 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': 'gAAAAABpxvZej5ymroNlm6KOFGSFknSAqX6zvuu8lB5y5Jue...gSp6MwEtPQnfAcNxDkahvZebHuqfZfsoJS3AID3C_Rk1Y35t0'}, '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=c4fb8f65-8e22-47f7-ae85...ter%3Aexternal=True&name=ctest-bgpaas_vn-66278064'
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': 'gAAAAABpxvZej5ymroNlm6KOFGSFknSAqX6zvuu8lB5y5Jue...gSp6MwEtPQnfAcNxDkahvZebHuqfZfsoJS3AID3C_Rk1Y35t0'}, '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.249:9696/v2.0/networks?tenant_id=c...ter%3Aexternal=True&name=ctest-bgpaas_vn-66278064', 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': 'gAAAAABpxvZej5ymroNlm6KOFGSFknSAqX6zvuu8lB5y5Jue...gSp6MwEtPQnfAcNxDkahvZebHuqfZfsoJS3AID3C_Rk1Y35t0'}, '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 0x7f12bca67550>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZej5ymroNlm6KOFGSFknSAqX6zvuu8lB5y5Jue...gSp6MwEtPQnfAcNxDkahvZebHuqfZfsoJS3AID3C_Rk1Y35t0'}, '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.249:9696/v2.0/networks?tenant_id=c...ter%3Aexternal=True&name=ctest-bgpaas_vn-66278064', 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': 'gAAAAABpxvZej5ymroNlm6KOFGSFknSAqX6zvuu8lB5y5Jue...gSp6MwEtPQnfAcNxDkahvZebHuqfZfsoJS3AID3C_Rk1Y35t0'}, '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.249:9696/v2.0/networks?tenant_id=c4fb8f65-8e22-47f7-ae85-ccebb8ca113d&router%3Aexternal=True&name=ctest-bgpaas_vn-66278064: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=c4fb8f65-8e22-47f7-ae85-ccebb8ca113d&router%3Aexternal=True&name=ctest-bgpaas_vn-66278064 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bca67850>: 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 0x7f12bca67850>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=c4fb8f65-8e22-47f7-ae85-ccebb8ca113d&router%3Aexternal=True&name=ctest-bgpaas_vn-66278064 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bca67850>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=c4fb8f65-8e22-47f7-ae85-ccebb8ca113d&router%3Aexternal=True&name=ctest-bgpaas_vn-66278064 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bca67850>: 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.249:9696/v2.0/networks?tenant_id=c4fb8f65-8e22-47f7-ae85-ccebb8ca113d&router%3Aexternal=True&name=ctest-bgpaas_vn-66278064: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=c4fb8f65-8e22-47f7-ae85-ccebb8ca113d&router%3Aexternal=True&name=ctest-bgpaas_vn-66278064 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bca67850>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.900 |
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
Fri Mar 27 21:28:04 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=0x7f12be6b6ca0>, *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=0x7f12be6b6ca0>
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=0x7f12be6b6ca0>)
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=0x7f12be6b6ca0>
self.verify_svc_chain = <bound method VerifySvcChain.verify_svc_chain of...n_network_datapath[ci_sanity] id=0x7f12be6b6ca0>>
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=0x7f12be6b6ca0>, *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=0x7f12be6b6ca0>
self.config_svc_chain = <bound method ConfigSvcChain.config_svc_chain of...n_network_datapath[ci_sanity] id=0x7f12be6b6ca0>>
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=0x7f12be6b6ca0>, 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=0x7f12be6b6ca0>
self._get_vn_for_config = <bound method ConfigSvcChain._get_vn_for_config ...n_network_datapath[ci_sanity] id=0x7f12be6b6ca0>>
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=0x7f12be6b6ca0>, vn_name='ctest-mgmt_vn-88216444', vn_subnets=['47.38.24.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=0x7f12be6b6ca0>
self.config_vn = <bound method ConfigSvcChain.config_vn of <scrip...n_network_datapath[ci_sanity] id=0x7f12be6b6ca0>>
vn_name = 'ctest-mgmt_vn-88216444'
vn_subnets = ['47.38.24.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=0x7f12be6b6ca0>, vn_name='ctest-mgmt_vn-88216444', vn_net=['47.38.24.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=0x7f12be6b6ca0>
self.useFixture = <bound method TestCase.useFixture of <scripts.sv...n_network_datapath[ci_sanity] id=0x7f12be6b6ca0>>
global VNFixture = <class 'vn_test.VNFixture'>
project_name undefined
self.inputs = <common.contrail_test_init.ContrailTestInit object>
self.inputs.project_name = 'ctest-TestSvcRegr-79682398'
connections undefined
self.connections = <common.connections.ContrailConnections object>
vn_name = 'ctest-mgmt_vn-88216444'
inputs undefined
subnets undefined
vn_net = ['47.38.24.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=0x7f12be6b6ca0>, 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=0x7f12be6b6ca0>, 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-88216444'
project_id undefined
self.project_id = 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-mgmt_vn-88216444', option='orch', **kwargs={'project_id': 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'})
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-88216444'
kwargs = {'project_id': 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-mgmt_vn-88216444', project_id='b8f8f3b7-1e63-412f-a1da-cba8b1b0117c', 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-88216444', 'router:external': True, 'tenant_id': 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'}
/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-88216444', 'router:external': True, 'tenant_id': 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'})
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-88216444', 'router:external': True, 'tenant_id': 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'}
/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-88216444', 'router:external': True, 'tenant_id': 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'})
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-88216444', 'router:external': True, 'tenant_id': 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'}
/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-88216444', 'router:external': True, 'tenant_id': 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'})
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-88216444', 'router:external': True, 'tenant_id': 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'}
/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-88216444', 'router:external': True, 'tenant_id': 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'})
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-88216444', 'router:external': True, 'tenant_id': 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'}
/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-88216444', 'router:external': True, 'tenant_id': 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'})
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-88216444', 'router:external': True, 'tenant_id': 'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'}
/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=b8f8f3b7-1e63-412f-a1da...outer%3Aexternal=True&name=ctest-mgmt_vn-88216444', body=None, headers=None, params={'name': b'ctest-mgmt_vn-88216444', 'router:external': True, 'tenant_id': b'b8f8f3b7-1e63-412f-a1da-cba8b1b0117c'})
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=b8f8f3b7-1e63-412f-a1da...outer%3Aexternal=True&name=ctest-mgmt_vn-88216444'
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=b8f8f3b7-1e63-412f-a1da...outer%3Aexternal=True&name=ctest-mgmt_vn-88216444', 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=b8f8f3b7-1e63-412f-a1da...outer%3Aexternal=True&name=ctest-mgmt_vn-88216444'
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=b8f8f3b7-1e63-412f-a1da...outer%3Aexternal=True&name=ctest-mgmt_vn-88216444', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZiVYYF8QV0cv4cUqpqR8NnA5s9eyvNLRgFmh0g...VfaNhJD3aLRgMFj-ARNPcjp2sqzyg-QnPBRXgKh32NSB15_q0'}, '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=b8f8f3b7-1e63-412f-a1da...outer%3Aexternal=True&name=ctest-mgmt_vn-88216444', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZiVYYF8QV0cv4cUqpqR8NnA5s9eyvNLRgFmh0g...VfaNhJD3aLRgMFj-ARNPcjp2sqzyg-QnPBRXgKh32NSB15_q0'}, '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=b8f8f3b7-1e63-412f-a1da...outer%3Aexternal=True&name=ctest-mgmt_vn-88216444', 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': 'gAAAAABpxvZiVYYF8QV0cv4cUqpqR8NnA5s9eyvNLRgFmh0g...VfaNhJD3aLRgMFj-ARNPcjp2sqzyg-QnPBRXgKh32NSB15_q0'}, '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=b8f8f3b7-1e63-412f-a1da...outer%3Aexternal=True&name=ctest-mgmt_vn-88216444'
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': 'gAAAAABpxvZiVYYF8QV0cv4cUqpqR8NnA5s9eyvNLRgFmh0g...VfaNhJD3aLRgMFj-ARNPcjp2sqzyg-QnPBRXgKh32NSB15_q0'}, '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.249:9696/v2.0/networks?tenant_id=b...outer%3Aexternal=True&name=ctest-mgmt_vn-88216444', 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': 'gAAAAABpxvZiVYYF8QV0cv4cUqpqR8NnA5s9eyvNLRgFmh0g...VfaNhJD3aLRgMFj-ARNPcjp2sqzyg-QnPBRXgKh32NSB15_q0'}, '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 0x7f12bcb81dc0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZiVYYF8QV0cv4cUqpqR8NnA5s9eyvNLRgFmh0g...VfaNhJD3aLRgMFj-ARNPcjp2sqzyg-QnPBRXgKh32NSB15_q0'}, '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.249:9696/v2.0/networks?tenant_id=b...outer%3Aexternal=True&name=ctest-mgmt_vn-88216444', 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': 'gAAAAABpxvZiVYYF8QV0cv4cUqpqR8NnA5s9eyvNLRgFmh0g...VfaNhJD3aLRgMFj-ARNPcjp2sqzyg-QnPBRXgKh32NSB15_q0'}, '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.249:9696/v2.0/networks?tenant_id=b8f8f3b7-1e63-412f-a1da-cba8b1b0117c&router%3Aexternal=True&name=ctest-mgmt_vn-88216444: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b8f8f3b7-1e63-412f-a1da-cba8b1b0117c&router%3Aexternal=True&name=ctest-mgmt_vn-88216444 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcb0f1f0>: 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 0x7f12bcb0f1f0>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b8f8f3b7-1e63-412f-a1da-cba8b1b0117c&router%3Aexternal=True&name=ctest-mgmt_vn-88216444 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcb0f1f0>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b8f8f3b7-1e63-412f-a1da-cba8b1b0117c&router%3Aexternal=True&name=ctest-mgmt_vn-88216444 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcb0f1f0>: 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.249:9696/v2.0/networks?tenant_id=b8f8f3b7-1e63-412f-a1da-cba8b1b0117c&router%3Aexternal=True&name=ctest-mgmt_vn-88216444: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b8f8f3b7-1e63-412f-a1da-cba8b1b0117c&router%3Aexternal=True&name=ctest-mgmt_vn-88216444 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bcb0f1f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 1.000 |
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
Fri Mar 27 21:28:11 2026
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes...me_vn[ci_sanity,sanity,suite1] id=0x7f12be672700>, *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=0x7f12be672700>
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=0x7f12be672700>)
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=0x7f12be672700>
self.useFixture = <bound method TestCase.useFixture of <scripts.vd...e_vn[ci_sanity,sanity,suite1] id=0x7f12be672700>>
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-64036723'
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-16658881', '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=0x7f12be672700>, 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=0x7f12be672700>, 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-64036723'
project_id undefined
self.project_id = '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn1-vdns-64036723', option='orch', **kwargs={'project_id': '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'})
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-64036723'
kwargs = {'project_id': '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn1-vdns-64036723', project_id='2d5a4069-c79c-4a0c-83ee-6c6b8aef9264', 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-64036723', 'router:external': True, 'tenant_id': '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'}
/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-64036723', 'router:external': True, 'tenant_id': '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'})
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-64036723', 'router:external': True, 'tenant_id': '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'}
/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-64036723', 'router:external': True, 'tenant_id': '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'})
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-64036723', 'router:external': True, 'tenant_id': '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'}
/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-64036723', 'router:external': True, 'tenant_id': '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'})
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-64036723', 'router:external': True, 'tenant_id': '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'}
/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-64036723', 'router:external': True, 'tenant_id': '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'})
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-64036723', 'router:external': True, 'tenant_id': '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'}
/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-64036723', 'router:external': True, 'tenant_id': '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'})
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-64036723', 'router:external': True, 'tenant_id': '2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'}
/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=2d5a4069-c79c-4a0c-83ee...uter%3Aexternal=True&name=ctest-vn1-vdns-64036723', body=None, headers=None, params={'name': b'ctest-vn1-vdns-64036723', 'router:external': True, 'tenant_id': b'2d5a4069-c79c-4a0c-83ee-6c6b8aef9264'})
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=2d5a4069-c79c-4a0c-83ee...uter%3Aexternal=True&name=ctest-vn1-vdns-64036723'
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=2d5a4069-c79c-4a0c-83ee...uter%3Aexternal=True&name=ctest-vn1-vdns-64036723', 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=2d5a4069-c79c-4a0c-83ee...uter%3Aexternal=True&name=ctest-vn1-vdns-64036723'
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=2d5a4069-c79c-4a0c-83ee...uter%3Aexternal=True&name=ctest-vn1-vdns-64036723', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZnw9XNmpHY57UQFCTjuRT9Vn9k99n_-YEN9ASz...8BK2AJZapLMsEzOPCddNgiRvwfuRbxe-jia4s9Xc2gDyjemJc'}, '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=2d5a4069-c79c-4a0c-83ee...uter%3Aexternal=True&name=ctest-vn1-vdns-64036723', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZnw9XNmpHY57UQFCTjuRT9Vn9k99n_-YEN9ASz...8BK2AJZapLMsEzOPCddNgiRvwfuRbxe-jia4s9Xc2gDyjemJc'}, '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=2d5a4069-c79c-4a0c-83ee...uter%3Aexternal=True&name=ctest-vn1-vdns-64036723', 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': 'gAAAAABpxvZnw9XNmpHY57UQFCTjuRT9Vn9k99n_-YEN9ASz...8BK2AJZapLMsEzOPCddNgiRvwfuRbxe-jia4s9Xc2gDyjemJc'}, '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=2d5a4069-c79c-4a0c-83ee...uter%3Aexternal=True&name=ctest-vn1-vdns-64036723'
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': 'gAAAAABpxvZnw9XNmpHY57UQFCTjuRT9Vn9k99n_-YEN9ASz...8BK2AJZapLMsEzOPCddNgiRvwfuRbxe-jia4s9Xc2gDyjemJc'}, '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.249:9696/v2.0/networks?tenant_id=2...uter%3Aexternal=True&name=ctest-vn1-vdns-64036723', 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': 'gAAAAABpxvZnw9XNmpHY57UQFCTjuRT9Vn9k99n_-YEN9ASz...8BK2AJZapLMsEzOPCddNgiRvwfuRbxe-jia4s9Xc2gDyjemJc'}, '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 0x7f12bc8add00>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZnw9XNmpHY57UQFCTjuRT9Vn9k99n_-YEN9ASz...8BK2AJZapLMsEzOPCddNgiRvwfuRbxe-jia4s9Xc2gDyjemJc'}, '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.249:9696/v2.0/networks?tenant_id=2...uter%3Aexternal=True&name=ctest-vn1-vdns-64036723', 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': 'gAAAAABpxvZnw9XNmpHY57UQFCTjuRT9Vn9k99n_-YEN9ASz...8BK2AJZapLMsEzOPCddNgiRvwfuRbxe-jia4s9Xc2gDyjemJc'}, '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.249:9696/v2.0/networks?tenant_id=2d5a4069-c79c-4a0c-83ee-6c6b8aef9264&router%3Aexternal=True&name=ctest-vn1-vdns-64036723: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=2d5a4069-c79c-4a0c-83ee-6c6b8aef9264&router%3Aexternal=True&name=ctest-vn1-vdns-64036723 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc89c460>: 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 0x7f12bc89c460>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=2d5a4069-c79c-4a0c-83ee-6c6b8aef9264&router%3Aexternal=True&name=ctest-vn1-vdns-64036723 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc89c460>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=2d5a4069-c79c-4a0c-83ee-6c6b8aef9264&router%3Aexternal=True&name=ctest-vn1-vdns-64036723 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc89c460>: 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.249:9696/v2.0/networks?tenant_id=2d5a4069-c79c-4a0c-83ee-6c6b8aef9264&router%3Aexternal=True&name=ctest-vn1-vdns-64036723: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=2d5a4069-c79c-4a0c-83ee-6c6b8aef9264&router%3Aexternal=True&name=ctest-vn1-vdns-64036723 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc89c460>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 3.025 |
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
Fri Mar 27 21:28:16 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=0x7f12be6509a0>, *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=0x7f12be6509a0>
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=0x7f12be6509a0>)
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=0x7f12be6509a0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...nity,quick_sanity,vrouter_gw] id=0x7f12be6509a0>>
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=0x7f12be6509a0>, 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=0x7f12be6509a0>
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-09098155', 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-09098155'
project_id undefined
self.project_id = 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-09098155', option='orch', **kwargs={'project_id': 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'})
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-09098155'
kwargs = {'project_id': 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-09098155', project_id='a29ca43b-86db-4aa3-bbac-ad6d852f4d9f', 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-09098155', 'router:external': True, 'tenant_id': 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'}
/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-09098155', 'router:external': True, 'tenant_id': 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'})
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-09098155', 'router:external': True, 'tenant_id': 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'}
/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-09098155', 'router:external': True, 'tenant_id': 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'})
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-09098155', 'router:external': True, 'tenant_id': 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'}
/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-09098155', 'router:external': True, 'tenant_id': 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'})
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-09098155', 'router:external': True, 'tenant_id': 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'}
/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-09098155', 'router:external': True, 'tenant_id': 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'})
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-09098155', 'router:external': True, 'tenant_id': 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'}
/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-09098155', 'router:external': True, 'tenant_id': 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'})
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-09098155', 'router:external': True, 'tenant_id': 'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'}
/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=a29ca43b-86db-4aa3-bbac...d9f&router%3Aexternal=True&name=ctest-vn-09098155', body=None, headers=None, params={'name': b'ctest-vn-09098155', 'router:external': True, 'tenant_id': b'a29ca43b-86db-4aa3-bbac-ad6d852f4d9f'})
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=a29ca43b-86db-4aa3-bbac...d9f&router%3Aexternal=True&name=ctest-vn-09098155'
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=a29ca43b-86db-4aa3-bbac...d9f&router%3Aexternal=True&name=ctest-vn-09098155', 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=a29ca43b-86db-4aa3-bbac...d9f&router%3Aexternal=True&name=ctest-vn-09098155'
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=a29ca43b-86db-4aa3-bbac...d9f&router%3Aexternal=True&name=ctest-vn-09098155', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZu-aUJVP5tPpS2QB_kdgT0N3AjUywBjKiXvCsG...vMAoYtsq9wmpfqaoLR8Q8-HznwWJt53RPVEX-tcmIcNVSuv10'}, '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=a29ca43b-86db-4aa3-bbac...d9f&router%3Aexternal=True&name=ctest-vn-09098155', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZu-aUJVP5tPpS2QB_kdgT0N3AjUywBjKiXvCsG...vMAoYtsq9wmpfqaoLR8Q8-HznwWJt53RPVEX-tcmIcNVSuv10'}, '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=a29ca43b-86db-4aa3-bbac...d9f&router%3Aexternal=True&name=ctest-vn-09098155', 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': 'gAAAAABpxvZu-aUJVP5tPpS2QB_kdgT0N3AjUywBjKiXvCsG...vMAoYtsq9wmpfqaoLR8Q8-HznwWJt53RPVEX-tcmIcNVSuv10'}, '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=a29ca43b-86db-4aa3-bbac...d9f&router%3Aexternal=True&name=ctest-vn-09098155'
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': 'gAAAAABpxvZu-aUJVP5tPpS2QB_kdgT0N3AjUywBjKiXvCsG...vMAoYtsq9wmpfqaoLR8Q8-HznwWJt53RPVEX-tcmIcNVSuv10'}, '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.249:9696/v2.0/networks?tenant_id=a...d9f&router%3Aexternal=True&name=ctest-vn-09098155', 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': 'gAAAAABpxvZu-aUJVP5tPpS2QB_kdgT0N3AjUywBjKiXvCsG...vMAoYtsq9wmpfqaoLR8Q8-HznwWJt53RPVEX-tcmIcNVSuv10'}, '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 0x7f12bc79a4f0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZu-aUJVP5tPpS2QB_kdgT0N3AjUywBjKiXvCsG...vMAoYtsq9wmpfqaoLR8Q8-HznwWJt53RPVEX-tcmIcNVSuv10'}, '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.249:9696/v2.0/networks?tenant_id=a...d9f&router%3Aexternal=True&name=ctest-vn-09098155', 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': 'gAAAAABpxvZu-aUJVP5tPpS2QB_kdgT0N3AjUywBjKiXvCsG...vMAoYtsq9wmpfqaoLR8Q8-HznwWJt53RPVEX-tcmIcNVSuv10'}, '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.249:9696/v2.0/networks?tenant_id=a29ca43b-86db-4aa3-bbac-ad6d852f4d9f&router%3Aexternal=True&name=ctest-vn-09098155: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a29ca43b-86db-4aa3-bbac-ad6d852f4d9f&router%3Aexternal=True&name=ctest-vn-09098155 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc79a970>: 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 0x7f12bc79a970>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a29ca43b-86db-4aa3-bbac-ad6d852f4d9f&router%3Aexternal=True&name=ctest-vn-09098155 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc79a970>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a29ca43b-86db-4aa3-bbac-ad6d852f4d9f&router%3Aexternal=True&name=ctest-vn-09098155 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc79a970>: 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.249:9696/v2.0/networks?tenant_id=a29ca43b-86db-4aa3-bbac-ad6d852f4d9f&router%3Aexternal=True&name=ctest-vn-09098155: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a29ca43b-86db-4aa3-bbac-ad6d852f4d9f&router%3Aexternal=True&name=ctest-vn-09098155 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc79a970>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.912 |
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
Fri Mar 27 21:28:20 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=0x7f12be650dc0>, *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=0x7f12be650dc0>
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=0x7f12be650dc0>)
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=0x7f12be650dc0>
self.useFixture = <bound method TestCase.useFixture of <scripts.vm...ev_sanity_dpdk,sanity,suite1] id=0x7f12be650dc0>>
global VNFixture = <class 'vn_test.VNFixture'>
project_name undefined
self.inputs = <common.contrail_test_init.ContrailTestInit object>
self.inputs.project_name = 'ctest-TestBasicVMVN-81290818'
connections undefined
self.connections = <common.connections.ContrailConnections object>
vn_name = 'ctest-vn2_metadata-46934131'
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=0x7f12be650dc0>, 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=0x7f12be650dc0>, 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-46934131'
project_id undefined
self.project_id = '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn2_metadata-46934131', option='orch', **kwargs={'project_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-46934131'
kwargs = {'project_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn2_metadata-46934131', project_id='23b8cfdb-5f90-4e5c-8105-324fecdb8d3f', 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-46934131', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-46934131', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-46934131', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-46934131', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-46934131', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-46934131', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-46934131', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-46934131', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-46934131', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-46934131', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-46934131', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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=23b8cfdb-5f90-4e5c-8105...%3Aexternal=True&name=ctest-vn2_metadata-46934131', body=None, headers=None, params={'name': b'ctest-vn2_metadata-46934131', 'router:external': True, 'tenant_id': b'23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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=23b8cfdb-5f90-4e5c-8105...%3Aexternal=True&name=ctest-vn2_metadata-46934131'
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=23b8cfdb-5f90-4e5c-8105...%3Aexternal=True&name=ctest-vn2_metadata-46934131', 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=23b8cfdb-5f90-4e5c-8105...%3Aexternal=True&name=ctest-vn2_metadata-46934131'
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=23b8cfdb-5f90-4e5c-8105...%3Aexternal=True&name=ctest-vn2_metadata-46934131', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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=23b8cfdb-5f90-4e5c-8105...%3Aexternal=True&name=ctest-vn2_metadata-46934131', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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=23b8cfdb-5f90-4e5c-8105...%3Aexternal=True&name=ctest-vn2_metadata-46934131', 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': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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=23b8cfdb-5f90-4e5c-8105...%3Aexternal=True&name=ctest-vn2_metadata-46934131'
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': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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.249:9696/v2.0/networks?tenant_id=2...%3Aexternal=True&name=ctest-vn2_metadata-46934131', 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': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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 0x7f12bc795df0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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.249:9696/v2.0/networks?tenant_id=2...%3Aexternal=True&name=ctest-vn2_metadata-46934131', 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': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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.249:9696/v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn2_metadata-46934131: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn2_metadata-46934131 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc771790>: 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 0x7f12bc771790>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn2_metadata-46934131 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc771790>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn2_metadata-46934131 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc771790>: 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.249:9696/v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn2_metadata-46934131: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn2_metadata-46934131 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc771790>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.818 |
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
Fri Mar 27 21:28: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.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7f12be650c40>, *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=0x7f12be650c40>
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=0x7f12be650c40>)
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=0x7f12be650c40>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...nity,ci_sanity,sanity,suite1] id=0x7f12be650c40>>
af undefined
/contrail-test/common/base.py in create_vn(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7f12be650c40>, 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=0x7f12be650c40>
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-67341382', 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-67341382'
project_id undefined
self.project_id = '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-67341382', option='orch', **kwargs={'project_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-67341382'
kwargs = {'project_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-67341382', project_id='23b8cfdb-5f90-4e5c-8105-324fecdb8d3f', 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-67341382', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-67341382', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-67341382', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-67341382', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-67341382', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-67341382', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-67341382', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-67341382', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-67341382', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-67341382', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-67341382', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-67341382', body=None, headers=None, params={'name': b'ctest-vn-67341382', 'router:external': True, 'tenant_id': b'23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-67341382'
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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-67341382', 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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-67341382'
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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-67341382', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-67341382', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-67341382', 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': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-67341382'
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': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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.249:9696/v2.0/networks?tenant_id=2...d3f&router%3Aexternal=True&name=ctest-vn-67341382', 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': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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 0x7f12bc79ac70>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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.249:9696/v2.0/networks?tenant_id=2...d3f&router%3Aexternal=True&name=ctest-vn-67341382', 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': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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.249:9696/v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn-67341382: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn-67341382 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc68bf10>: 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 0x7f12bc68bf10>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn-67341382 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc68bf10>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn-67341382 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc68bf10>: 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.249:9696/v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn-67341382: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn-67341382 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc68bf10>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.858 |
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
Fri Mar 27 21:28:22 2026
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7f12be6550a0>, *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=0x7f12be6550a0>
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=0x7f12be6550a0>)
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=0x7f12be6550a0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...nity,ci_sanity,sanity,suite1] id=0x7f12be6550a0>>
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-81290818', 'ctest-ipam-11557381']
/contrail-test/common/base.py in create_vn(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...anity,ci_sanity,sanity,suite1] id=0x7f12be6550a0>, 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-81290818', 'ctest-ipam-11557381']})
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=0x7f12be6550a0>
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-81290818', 'ctest-ipam-11557381']}
/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.vm_regression.test_vm_basic.TestBasicVMVN'>, vn_name='ctest-vn-40070691', vn_subnets=['31.1.1.0/29', '31.1.2.0/29'], **kwargs={'ipam_fq_name': ['default-domain', 'ctest-TestBasicVMVN-81290818', 'ctest-ipam-11557381']})
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-40070691'
project_id undefined
self.project_id = '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'
/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-40070691', option='orch', **kwargs={'project_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-40070691'
kwargs = {'project_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-40070691', project_id='23b8cfdb-5f90-4e5c-8105-324fecdb8d3f', 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-40070691', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-40070691', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-40070691', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-40070691', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-40070691', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-40070691', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-40070691', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-40070691', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-40070691', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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-40070691', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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-40070691', 'router:external': True, 'tenant_id': '23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'}
/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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-40070691', body=None, headers=None, params={'name': b'ctest-vn-40070691', 'router:external': True, 'tenant_id': b'23b8cfdb-5f90-4e5c-8105-324fecdb8d3f'})
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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-40070691'
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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-40070691', 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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-40070691'
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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-40070691', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-40070691', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-40070691', 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': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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=23b8cfdb-5f90-4e5c-8105...d3f&router%3Aexternal=True&name=ctest-vn-40070691'
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': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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.249:9696/v2.0/networks?tenant_id=2...d3f&router%3Aexternal=True&name=ctest-vn-40070691', 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': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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 0x7f12bc663430>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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.249:9696/v2.0/networks?tenant_id=2...d3f&router%3Aexternal=True&name=ctest-vn-40070691', 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': 'gAAAAABpxvZze88KasNl0S_c9UQzCxnuShNvXxukdEmZkLRg...6ZlvpEyEXjdT9cx8rdsFH0uS8oIlVbLqRB4NLVDt7atebNr0w'}, '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.249:9696/v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn-40070691: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn-40070691 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc663640>: 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 0x7f12bc663640>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn-40070691 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc663640>: 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.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn-40070691 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc663640>: 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.249:9696/v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn-40070691: HTTPConnectionPool(host='10.0.0.249', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=23b8cfdb-5f90-4e5c-8105-324fecdb8d3f&router%3Aexternal=True&name=ctest-vn-40070691 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f12bc663640>: Failed to establish a new connection: [Errno 111] Connection refused'))
| 0.919 |
Log File
|