Test Results

Designed for use with JUnit and Ant.

Properties

Build : 8.8.1.4
cores : {'10.0.0.48': []}
LogsLocation : http://None/None/8.8.1.4_2024_08_27_17_22_21/logs/
Report : http://None/None/8.8.1.4_2024_08_27_17_22_21/junit-noframes.html
Topology :
DISTRO : "Ubuntu 22.04.4 LTS"
SKU : yoga
Config Nodes : ['cn-jenkins-deploy-platform-ansible-os-1800-1']
Control Nodes : ['cn-jenkins-deploy-platform-ansible-os-1800-1']
Compute Nodes : ['cn-jenkins-deploy-platform-ansible-os-1800-1']
Openstack Node : ['cn-jenkins-deploy-platform-ansible-os-1800-1']
WebUI Node : ['cn-jenkins-deploy-platform-ansible-os-1800-1']
Analytics Nodes : ['cn-jenkins-deploy-platform-ansible-os-1800-1']
Database Nodes : ['cn-jenkins-deploy-platform-ansible-os-1800-1']
Physical Devices : ['']


Summary

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

Packages

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

Package

NameTestsErrorsFailuresSkippedTime(s)
scripts400311.020
scripts12010050.008
Back to top


TestCase scripts

NameStatusTypeTime(s)LogFile
AnalyticsTestSanity.test_contrail_status[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity,vcenter,vcenter_compute]Success0.683
TestSriov.test_communication_between_two_sriov_vm[ci_sanity]SkippedSkipped as test is not supported if sriov_cluster=False 0.003
TestSriov.test_communication_between_two_sriov_vm_with_large_mtu[ci_sanity]SkippedSkipped as test is not supported if sriov_cluster=False 0.002
TestSriov.test_virtual_function_exhaustion_and_resue[ci_sanity]SkippedSkipped as test is not supported if sriov_cluster=False 0.002
Properties »

Back to top

TestCase scripts

NameStatusTypeTime(s)LogFile
AnalyticsTestSanity.test_contrail_status[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity,vcenter,vcenter_compute]Success0.614
AnalyticsBasicTestSanity.test_verify_object_logs[ci_sanity,dev_sanity_dpdk,sanity,suite1,vcenter,vcenter_compute]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 177, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.6.8: /usr/bin/python3
Tue Aug 27 17:22:45 2024

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...uite1,vcenter,vcenter_compute] id=0x7f9c799799e8>, *args=(), **kwargs={})
79 log.info('Initial checks done. Running the testcase now')
80 log.info('')
81 result = function(self, *args, **kwargs)
82 if self.inputs.upgrade:
83 pid = os.getpid()
result = None
function = <function AnalyticsBasicTestSanity.test_verify_object_logs>
self = <scripts.analytics.test_analytics_basic.Analytic...uite1,vcenter,vcenter_compute] id=0x7f9c799799e8>
args = ()
kwargs = {}

/contrail-test/scripts/analytics/test_analytics_basic.py in test_verify_object_logs(self=<scripts.analytics.test_analytics_basic.Analytic...uite1,vcenter,vcenter_compute] id=0x7f9c799799e8>)
34 start_time=str(OpServerUtils.utc_timestamp_usec())
35 vn_fixture= self.useFixture(VNFixture(connections=self.connections,
36 vn_name=vn_name, subnets=vn_subnets))
37 vn_fixture.verify_on_setup()
38 vm1_fixture = self.create_vm(vn_fixture=vn_fixture, image_name='cirros')
vn_name = 'ctest-vn22-06837596'
subnets undefined
vn_subnets = ['163.64.160.0/26']

/usr/local/lib/python3.6/site-packages/testtools/testcase.py in useFixture(self=<scripts.analytics.test_analytics_basic.Analytic...uite1,vcenter,vcenter_compute] id=0x7f9c799799e8>, 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...connection: [Errno 111] Connection refused',))",), <traceback object>)

/usr/local/lib/python3.6/site-packages/testtools/_compat3x.py in reraise(exc_class=<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, exc_obj=ConnectFailure("Unable to establish connection t...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...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.6/site-packages/testtools/testcase.py in useFixture(self=<scripts.analytics.test_analytics_basic.Analytic...uite1,vcenter,vcenter_compute] id=0x7f9c799799e8>, 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>)
447 def setUp(self):
448 super(VNFixture, self).setUp()
449 self.create()
450
451 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>)
460 self._create_vn_api(self.vn_name, self.project_obj)
461 else:
462 self._create_vn_orch()
463 if not self.obj:
464 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>)
302 try:
303 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
304 project_id=self.project_id)
305 if not self.obj:
306 self.obj = self.orchestrator.create_vn(
project_id undefined
self = <vn_test.VNFixture object>
self.project_id = 'd40c5230-8c04-4462-a36a-1e80e7f4b311'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn22-06837596', option='orch', **kwargs={'project_id': 'd40c5230-8c04-4462-a36a-1e80e7f4b311'})
204
205 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
206 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
207
208 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-06837596'
kwargs = {'project_id': 'd40c5230-8c04-4462-a36a-1e80e7f4b311'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn22-06837596', project_id='d40c5230-8c04-4462-a36a-1e80e7f4b311', router_external=True)
278 query_dict['name'] = vn_name
279 try:
280 net_rsp = self.obj.list_networks(**query_dict)['networks']
281 if net_rsp:
282 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-06837596', 'router:external': True, 'tenant_id': 'd40c5230-8c04-4462-a36a-1e80e7f4b311'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn22-06837596', 'router:external': True, 'tenant_id': 'd40c5230-8c04-4462-a36a-1e80e7f4b311'})
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
820 def show_network(self, network, **_params):
_params = {'name': 'ctest-vn22-06837596', 'router:external': True, 'tenant_id': 'd40c5230-8c04-4462-a36a-1e80e7f4b311'}

/usr/local/lib/python3.6/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-06837596', 'router:external': True, 'tenant_id': 'd40c5230-8c04-4462-a36a-1e80e7f4b311'})
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-06837596', 'router:external': True, 'tenant_id': 'd40c5230-8c04-4462-a36a-1e80e7f4b311'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn22-06837596', 'router:external': True, 'tenant_id': 'd40c5230-8c04-4462-a36a-1e80e7f4b311'})
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-06837596', 'router:external': True, 'tenant_id': 'd40c5230-8c04-4462-a36a-1e80e7f4b311'}

/usr/local/lib/python3.6/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-06837596', 'router:external': True, 'tenant_id': 'd40c5230-8c04-4462-a36a-1e80e7f4b311'})
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
356 def post(self, action, body=None, headers=None, params=None):
headers = None
params = {'name': 'ctest-vn22-06837596', 'router:external': True, 'tenant_id': 'd40c5230-8c04-4462-a36a-1e80e7f4b311'}

/usr/local/lib/python3.6/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-06837596', 'router:external': True, 'tenant_id': 'd40c5230-8c04-4462-a36a-1e80e7f4b311'})
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
333 # Exception has already been logged by do_request()
headers = None
params = {'name': 'ctest-vn22-06837596', 'router:external': True, 'tenant_id': 'd40c5230-8c04-4462-a36a-1e80e7f4b311'}

/usr/local/lib/python3.6/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=d40c5230-8c04-4462-a36a...1&router%3Aexternal=True&name=ctest-vn22-06837596', body=None, headers=None, params={'name': b'ctest-vn22-06837596', 'router:external': True, 'tenant_id': b'd40c5230-8c04-4462-a36a-1e80e7f4b311'})
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
284 status_code = resp.status_code
headers = None

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=d40c5230-8c04-4462-a36a...1&router%3Aexternal=True&name=ctest-vn22-06837596', 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=d40c5230-8c04-4462-a36a...1&router%3Aexternal=True&name=ctest-vn22-06837596'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=d40c5230-8c04-4462-a36a...1&router%3Aexternal=True&name=ctest-vn22-06837596', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgtkiGkTkDF__v5CKmKaTaEAnN_KqJVCkSuMbRzv...rZoCqb9U0NLrCEBVM3GqO-HIR-cBJ6zPJTS1Ygd-Mw9-XFR5Q'}, '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=d40c5230-8c04-4462-a36a...1&router%3Aexternal=True&name=ctest-vn22-06837596', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgtkiGkTkDF__v5CKmKaTaEAnN_KqJVCkSuMbRzv...rZoCqb9U0NLrCEBVM3GqO-HIR-cBJ6zPJTS1Ygd-Mw9-XFR5Q'}, 'raise_exc': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=d40c5230-8c04-4462-a36a...1&router%3Aexternal=True&name=ctest-vn22-06837596', 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': 'gAAAAABmzgtkiGkTkDF__v5CKmKaTaEAnN_KqJVCkSuMbRzv...rZoCqb9U0NLrCEBVM3GqO-HIR-cBJ6zPJTS1Ygd-Mw9-XFR5Q'}, '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=d40c5230-8c04-4462-a36a...1&router%3Aexternal=True&name=ctest-vn22-06837596'
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': 'gAAAAABmzgtkiGkTkDF__v5CKmKaTaEAnN_KqJVCkSuMbRzv...rZoCqb9U0NLrCEBVM3GqO-HIR-cBJ6zPJTS1Ygd-Mw9-XFR5Q'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=d4...1&router%3Aexternal=True&name=ctest-vn22-06837596', 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': 'gAAAAABmzgtkiGkTkDF__v5CKmKaTaEAnN_KqJVCkSuMbRzv...rZoCqb9U0NLrCEBVM3GqO-HIR-cBJ6zPJTS1Ygd-Mw9-XFR5Q'}, '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 0x7f9c753304e0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgtkiGkTkDF__v5CKmKaTaEAnN_KqJVCkSuMbRzv...rZoCqb9U0NLrCEBVM3GqO-HIR-cBJ6zPJTS1Ygd-Mw9-XFR5Q'}, 'verify': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=d4...1&router%3Aexternal=True&name=ctest-vn22-06837596', 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': 'gAAAAABmzgtkiGkTkDF__v5CKmKaTaEAnN_KqJVCkSuMbRzv...rZoCqb9U0NLrCEBVM3GqO-HIR-cBJ6zPJTS1Ygd-Mw9-XFR5Q'}, '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....ew connection: [Errno 111] Connection refused',))"
ConnectFailure: Unable to establish connection to http://10.0.0.48:9696/v2.0/networks?tenant_id=d40c5230-8c04-4462-a36a-1e80e7f4b311&router%3Aexternal=True&name=ctest-vn22-06837596: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=d40c5230-8c04-4462-a36a-1e80e7f4b311&router%3Aexternal=True&name=ctest-vn22-06837596 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c752ba7b8>: Failed to establish a new connection: [Errno 111] Connection refused',))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo...nnection: [Errno 111] Connection refused',))",),)
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....ew 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...onnection: [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....ew connection: [Errno 111] Connection refused',))",)
message = "Unable to establish connection to http://10.0.0....ew 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.6/site-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.6/site-packages/gevent/_socket3.py", line 400, in connect
raise error(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.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib64/python3.6/http/client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 974, in send
self.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9c752ba7b8>: 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.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=d40c5230-8c04-4462-a36a-1e80e7f4b311&router%3Aexternal=True&name=ctest-vn22-06837596 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c752ba7b8>: 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.6/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=d40c5230-8c04-4462-a36a-1e80e7f4b311&router%3Aexternal=True&name=ctest-vn22-06837596 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c752ba7b8>: 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 81, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/analytics/test_analytics_basic.py", line 36, in test_verify_object_logs
vn_name=vn_name, subnets=vn_subnets))
File "/usr/local/lib/python3.6/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.6/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.6/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 449, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 462, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 304, in _create_vn_orch
project_id=self.project_id)
File "/contrail-test/fixtures/openstack.py", line 206, 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 280, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 818, in list_networks
**_params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 354, in get
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 282, in do_request
headers=headers)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.6/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.48:9696/v2.0/networks?tenant_id=d40c5230-8c04-4462-a36a-1e80e7f4b311&router%3Aexternal=True&name=ctest-vn22-06837596: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=d40c5230-8c04-4462-a36a-1e80e7f4b311&router%3Aexternal=True&name=ctest-vn22-06837596 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c752ba7b8>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.771 Log File
FloatingipBasicTestSanity.test_floating_ip[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity,quick_sanity,sanity,suite1,vcenter,vcenter_compute,vrouter_gw]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 177, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.6.8: /usr/bin/python3
Tue Aug 27 17:22:51 2024

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...er,vcenter_compute,vrouter_gw] id=0x7f9c79803b38>, *args=(), **kwargs={})
79 log.info('Initial checks done. Running the testcase now')
80 log.info('')
81 result = function(self, *args, **kwargs)
82 if self.inputs.upgrade:
83 pid = os.getpid()
result = None
function = <function FloatingipBasicTestSanity.test_floating_ip>
self = <scripts.floatingip.test_floatingip_basic.Floati...er,vcenter_compute,vrouter_gw] id=0x7f9c79803b38>
args = ()
kwargs = {}

/contrail-test/scripts/floatingip/test_floatingip_basic.py in test_floating_ip(self=<scripts.floatingip.test_floatingip_basic.Floati...er,vcenter_compute,vrouter_gw] id=0x7f9c79803b38>)
65 inputs=self.inputs,
66 vn_name=fvn_name,
67 subnets=fvn_subnets))
68
69 assert fvn_fixture.verify_on_setup()
subnets undefined
fvn_subnets = ['189.199.172.64/26']

/usr/local/lib/python3.6/site-packages/testtools/testcase.py in useFixture(self=<scripts.floatingip.test_floatingip_basic.Floati...er,vcenter_compute,vrouter_gw] id=0x7f9c79803b38>, 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...connection: [Errno 111] Connection refused',))",), <traceback object>)

/usr/local/lib/python3.6/site-packages/testtools/_compat3x.py in reraise(exc_class=<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, exc_obj=ConnectFailure("Unable to establish connection t...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...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.6/site-packages/testtools/testcase.py in useFixture(self=<scripts.floatingip.test_floatingip_basic.Floati...er,vcenter_compute,vrouter_gw] id=0x7f9c79803b38>, 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>)
447 def setUp(self):
448 super(VNFixture, self).setUp()
449 self.create()
450
451 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>)
460 self._create_vn_api(self.vn_name, self.project_obj)
461 else:
462 self._create_vn_orch()
463 if not self.obj:
464 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>)
302 try:
303 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
304 project_id=self.project_id)
305 if not self.obj:
306 self.obj = self.orchestrator.create_vn(
project_id undefined
self = <vn_test.VNFixture object>
self.project_id = '8ef2a807-ae03-4822-905d-70c9607e288c'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-fvn-01815595', option='orch', **kwargs={'project_id': '8ef2a807-ae03-4822-905d-70c9607e288c'})
204
205 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
206 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
207
208 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-01815595'
kwargs = {'project_id': '8ef2a807-ae03-4822-905d-70c9607e288c'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-fvn-01815595', project_id='8ef2a807-ae03-4822-905d-70c9607e288c', router_external=True)
278 query_dict['name'] = vn_name
279 try:
280 net_rsp = self.obj.list_networks(**query_dict)['networks']
281 if net_rsp:
282 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-01815595', 'router:external': True, 'tenant_id': '8ef2a807-ae03-4822-905d-70c9607e288c'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-fvn-01815595', 'router:external': True, 'tenant_id': '8ef2a807-ae03-4822-905d-70c9607e288c'})
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
820 def show_network(self, network, **_params):
_params = {'name': 'ctest-fvn-01815595', 'router:external': True, 'tenant_id': '8ef2a807-ae03-4822-905d-70c9607e288c'}

/usr/local/lib/python3.6/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-01815595', 'router:external': True, 'tenant_id': '8ef2a807-ae03-4822-905d-70c9607e288c'})
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-01815595', 'router:external': True, 'tenant_id': '8ef2a807-ae03-4822-905d-70c9607e288c'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-fvn-01815595', 'router:external': True, 'tenant_id': '8ef2a807-ae03-4822-905d-70c9607e288c'})
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-01815595', 'router:external': True, 'tenant_id': '8ef2a807-ae03-4822-905d-70c9607e288c'}

/usr/local/lib/python3.6/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-01815595', 'router:external': True, 'tenant_id': '8ef2a807-ae03-4822-905d-70c9607e288c'})
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
356 def post(self, action, body=None, headers=None, params=None):
headers = None
params = {'name': 'ctest-fvn-01815595', 'router:external': True, 'tenant_id': '8ef2a807-ae03-4822-905d-70c9607e288c'}

/usr/local/lib/python3.6/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-01815595', 'router:external': True, 'tenant_id': '8ef2a807-ae03-4822-905d-70c9607e288c'})
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
333 # Exception has already been logged by do_request()
headers = None
params = {'name': 'ctest-fvn-01815595', 'router:external': True, 'tenant_id': '8ef2a807-ae03-4822-905d-70c9607e288c'}

/usr/local/lib/python3.6/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=8ef2a807-ae03-4822-905d...8c&router%3Aexternal=True&name=ctest-fvn-01815595', body=None, headers=None, params={'name': b'ctest-fvn-01815595', 'router:external': True, 'tenant_id': b'8ef2a807-ae03-4822-905d-70c9607e288c'})
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
284 status_code = resp.status_code
headers = None

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=8ef2a807-ae03-4822-905d...8c&router%3Aexternal=True&name=ctest-fvn-01815595', 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=8ef2a807-ae03-4822-905d...8c&router%3Aexternal=True&name=ctest-fvn-01815595'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=8ef2a807-ae03-4822-905d...8c&router%3Aexternal=True&name=ctest-fvn-01815595', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgto4FT64tVQ65iBZFh0XfQGZwKjxrx2oDgBKBab...LOFKGcpU6dmD2JhUFHa-J-Rmqab3UNhZOC9wsDI04vtxeQWv0'}, '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=8ef2a807-ae03-4822-905d...8c&router%3Aexternal=True&name=ctest-fvn-01815595', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgto4FT64tVQ65iBZFh0XfQGZwKjxrx2oDgBKBab...LOFKGcpU6dmD2JhUFHa-J-Rmqab3UNhZOC9wsDI04vtxeQWv0'}, 'raise_exc': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=8ef2a807-ae03-4822-905d...8c&router%3Aexternal=True&name=ctest-fvn-01815595', 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': 'gAAAAABmzgto4FT64tVQ65iBZFh0XfQGZwKjxrx2oDgBKBab...LOFKGcpU6dmD2JhUFHa-J-Rmqab3UNhZOC9wsDI04vtxeQWv0'}, '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=8ef2a807-ae03-4822-905d...8c&router%3Aexternal=True&name=ctest-fvn-01815595'
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': 'gAAAAABmzgto4FT64tVQ65iBZFh0XfQGZwKjxrx2oDgBKBab...LOFKGcpU6dmD2JhUFHa-J-Rmqab3UNhZOC9wsDI04vtxeQWv0'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=8e...8c&router%3Aexternal=True&name=ctest-fvn-01815595', 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': 'gAAAAABmzgto4FT64tVQ65iBZFh0XfQGZwKjxrx2oDgBKBab...LOFKGcpU6dmD2JhUFHa-J-Rmqab3UNhZOC9wsDI04vtxeQWv0'}, '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 0x7f9c75180cc0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgto4FT64tVQ65iBZFh0XfQGZwKjxrx2oDgBKBab...LOFKGcpU6dmD2JhUFHa-J-Rmqab3UNhZOC9wsDI04vtxeQWv0'}, 'verify': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=8e...8c&router%3Aexternal=True&name=ctest-fvn-01815595', 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': 'gAAAAABmzgto4FT64tVQ65iBZFh0XfQGZwKjxrx2oDgBKBab...LOFKGcpU6dmD2JhUFHa-J-Rmqab3UNhZOC9wsDI04vtxeQWv0'}, '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....ew connection: [Errno 111] Connection refused',))"
ConnectFailure: Unable to establish connection to http://10.0.0.48:9696/v2.0/networks?tenant_id=8ef2a807-ae03-4822-905d-70c9607e288c&router%3Aexternal=True&name=ctest-fvn-01815595: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8ef2a807-ae03-4822-905d-70c9607e288c&router%3Aexternal=True&name=ctest-fvn-01815595 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c75053a90>: Failed to establish a new connection: [Errno 111] Connection refused',))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo...nnection: [Errno 111] Connection refused',))",),)
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....ew 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...onnection: [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....ew connection: [Errno 111] Connection refused',))",)
message = "Unable to establish connection to http://10.0.0....ew 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.6/site-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.6/site-packages/gevent/_socket3.py", line 400, in connect
raise error(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.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib64/python3.6/http/client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 974, in send
self.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9c75053a90>: 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.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8ef2a807-ae03-4822-905d-70c9607e288c&router%3Aexternal=True&name=ctest-fvn-01815595 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c75053a90>: 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.6/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8ef2a807-ae03-4822-905d-70c9607e288c&router%3Aexternal=True&name=ctest-fvn-01815595 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c75053a90>: 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 81, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/floatingip/test_floatingip_basic.py", line 67, in test_floating_ip
subnets=fvn_subnets))
File "/usr/local/lib/python3.6/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.6/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.6/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 449, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 462, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 304, in _create_vn_orch
project_id=self.project_id)
File "/contrail-test/fixtures/openstack.py", line 206, 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 280, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 818, in list_networks
**_params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 354, in get
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 282, in do_request
headers=headers)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.6/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.48:9696/v2.0/networks?tenant_id=8ef2a807-ae03-4822-905d-70c9607e288c&router%3Aexternal=True&name=ctest-fvn-01815595: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8ef2a807-ae03-4822-905d-70c9607e288c&router%3Aexternal=True&name=ctest-fvn-01815595 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c75053a90>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.785 Log File
TestHeat.test_heat_stacks_list[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity]Success0.415
TestRoutersBasic.test_basic_snat_behavior_without_external_connectivity[ci_sanity,dev_sanity_dpdk,sanity,suite1]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 177, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.6.8: /usr/bin/python3
Tue Aug 27 17:22:59 2024

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=0x7f9c76dc2908>, *args=(), **kwargs={})
79 log.info('Initial checks done. Running the testcase now')
80 log.info('')
81 result = function(self, *args, **kwargs)
82 if self.inputs.upgrade:
83 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=0x7f9c76dc2908>
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=0x7f9c76dc2908>)
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=0x7f9c76dc2908>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...ev_sanity_dpdk,sanity,suite1] id=0x7f9c76dc2908>>

/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_routers_basic.TestRoutersB...dev_sanity_dpdk,sanity,suite1] id=0x7f9c76dc2908>, vn_name=None, vn_subnets=None, cleanup=True, **kwargs={})
202 vn_fixture = self.create_only_vn(vn_name=vn_name,
203 vn_subnets=vn_subnets,
204 **kwargs)
205 if cleanup:
206 self.addCleanup(vn_fixture.cleanUp)
kwargs = {}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.neutron.test_routers_basic.TestRoutersBasic'>, vn_name='ctest-vn-78217787', vn_subnets=None, **kwargs={})
195 subnets=vn_subnets,
196 **kwargs)
197 vn_fixture.setUp()
198 return vn_fixture
199 # 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>)
447 def setUp(self):
448 super(VNFixture, self).setUp()
449 self.create()
450
451 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>)
460 self._create_vn_api(self.vn_name, self.project_obj)
461 else:
462 self._create_vn_orch()
463 if not self.obj:
464 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>)
302 try:
303 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
304 project_id=self.project_id)
305 if not self.obj:
306 self.obj = self.orchestrator.create_vn(
project_id undefined
self = <vn_test.VNFixture object>
self.project_id = '45082fda-663f-4e54-a4cc-a0b213a3f40c'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-78217787', option='orch', **kwargs={'project_id': '45082fda-663f-4e54-a4cc-a0b213a3f40c'})
204
205 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
206 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
207
208 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-78217787'
kwargs = {'project_id': '45082fda-663f-4e54-a4cc-a0b213a3f40c'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-78217787', project_id='45082fda-663f-4e54-a4cc-a0b213a3f40c', router_external=True)
278 query_dict['name'] = vn_name
279 try:
280 net_rsp = self.obj.list_networks(**query_dict)['networks']
281 if net_rsp:
282 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-78217787', 'router:external': True, 'tenant_id': '45082fda-663f-4e54-a4cc-a0b213a3f40c'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn-78217787', 'router:external': True, 'tenant_id': '45082fda-663f-4e54-a4cc-a0b213a3f40c'})
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
820 def show_network(self, network, **_params):
_params = {'name': 'ctest-vn-78217787', 'router:external': True, 'tenant_id': '45082fda-663f-4e54-a4cc-a0b213a3f40c'}

/usr/local/lib/python3.6/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-78217787', 'router:external': True, 'tenant_id': '45082fda-663f-4e54-a4cc-a0b213a3f40c'})
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-78217787', 'router:external': True, 'tenant_id': '45082fda-663f-4e54-a4cc-a0b213a3f40c'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn-78217787', 'router:external': True, 'tenant_id': '45082fda-663f-4e54-a4cc-a0b213a3f40c'})
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-78217787', 'router:external': True, 'tenant_id': '45082fda-663f-4e54-a4cc-a0b213a3f40c'}

/usr/local/lib/python3.6/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-78217787', 'router:external': True, 'tenant_id': '45082fda-663f-4e54-a4cc-a0b213a3f40c'})
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
356 def post(self, action, body=None, headers=None, params=None):
headers = None
params = {'name': 'ctest-vn-78217787', 'router:external': True, 'tenant_id': '45082fda-663f-4e54-a4cc-a0b213a3f40c'}

/usr/local/lib/python3.6/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-78217787', 'router:external': True, 'tenant_id': '45082fda-663f-4e54-a4cc-a0b213a3f40c'})
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
333 # Exception has already been logged by do_request()
headers = None
params = {'name': 'ctest-vn-78217787', 'router:external': True, 'tenant_id': '45082fda-663f-4e54-a4cc-a0b213a3f40c'}

/usr/local/lib/python3.6/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=45082fda-663f-4e54-a4cc...40c&router%3Aexternal=True&name=ctest-vn-78217787', body=None, headers=None, params={'name': b'ctest-vn-78217787', 'router:external': True, 'tenant_id': b'45082fda-663f-4e54-a4cc-a0b213a3f40c'})
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
284 status_code = resp.status_code
headers = None

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=45082fda-663f-4e54-a4cc...40c&router%3Aexternal=True&name=ctest-vn-78217787', 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=45082fda-663f-4e54-a4cc...40c&router%3Aexternal=True&name=ctest-vn-78217787'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=45082fda-663f-4e54-a4cc...40c&router%3Aexternal=True&name=ctest-vn-78217787', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgtxqfPcfZeQUSRLj8wuEuw_iZ2O0vDHqx3mt9k5...gEzu1B5zuGy-sTLp1GkQBSfB3oyPsdDPBAuyuT-StI3hHBbkc'}, '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=45082fda-663f-4e54-a4cc...40c&router%3Aexternal=True&name=ctest-vn-78217787', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgtxqfPcfZeQUSRLj8wuEuw_iZ2O0vDHqx3mt9k5...gEzu1B5zuGy-sTLp1GkQBSfB3oyPsdDPBAuyuT-StI3hHBbkc'}, 'raise_exc': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=45082fda-663f-4e54-a4cc...40c&router%3Aexternal=True&name=ctest-vn-78217787', 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': 'gAAAAABmzgtxqfPcfZeQUSRLj8wuEuw_iZ2O0vDHqx3mt9k5...gEzu1B5zuGy-sTLp1GkQBSfB3oyPsdDPBAuyuT-StI3hHBbkc'}, '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=45082fda-663f-4e54-a4cc...40c&router%3Aexternal=True&name=ctest-vn-78217787'
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': 'gAAAAABmzgtxqfPcfZeQUSRLj8wuEuw_iZ2O0vDHqx3mt9k5...gEzu1B5zuGy-sTLp1GkQBSfB3oyPsdDPBAuyuT-StI3hHBbkc'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=45...40c&router%3Aexternal=True&name=ctest-vn-78217787', 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': 'gAAAAABmzgtxqfPcfZeQUSRLj8wuEuw_iZ2O0vDHqx3mt9k5...gEzu1B5zuGy-sTLp1GkQBSfB3oyPsdDPBAuyuT-StI3hHBbkc'}, '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 0x7f9c74e14748>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgtxqfPcfZeQUSRLj8wuEuw_iZ2O0vDHqx3mt9k5...gEzu1B5zuGy-sTLp1GkQBSfB3oyPsdDPBAuyuT-StI3hHBbkc'}, 'verify': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=45...40c&router%3Aexternal=True&name=ctest-vn-78217787', 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': 'gAAAAABmzgtxqfPcfZeQUSRLj8wuEuw_iZ2O0vDHqx3mt9k5...gEzu1B5zuGy-sTLp1GkQBSfB3oyPsdDPBAuyuT-StI3hHBbkc'}, '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....ew connection: [Errno 111] Connection refused',))"
ConnectFailure: Unable to establish connection to http://10.0.0.48:9696/v2.0/networks?tenant_id=45082fda-663f-4e54-a4cc-a0b213a3f40c&router%3Aexternal=True&name=ctest-vn-78217787: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=45082fda-663f-4e54-a4cc-a0b213a3f40c&router%3Aexternal=True&name=ctest-vn-78217787 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c769be080>: Failed to establish a new connection: [Errno 111] Connection refused',))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo...nnection: [Errno 111] Connection refused',))",),)
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....ew 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...onnection: [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....ew connection: [Errno 111] Connection refused',))",)
message = "Unable to establish connection to http://10.0.0....ew 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.6/site-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.6/site-packages/gevent/_socket3.py", line 400, in connect
raise error(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.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib64/python3.6/http/client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 974, in send
self.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9c769be080>: 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.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=45082fda-663f-4e54-a4cc-a0b213a3f40c&router%3Aexternal=True&name=ctest-vn-78217787 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c769be080>: 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.6/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=45082fda-663f-4e54-a4cc-a0b213a3f40c&router%3Aexternal=True&name=ctest-vn-78217787 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c769be080>: 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 81, 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 204, in create_vn
**kwargs)
File "/contrail-test/common/base.py", line 197, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 449, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 462, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 304, in _create_vn_orch
project_id=self.project_id)
File "/contrail-test/fixtures/openstack.py", line 206, 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 280, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 818, in list_networks
**_params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 354, in get
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 282, in do_request
headers=headers)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.6/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.48:9696/v2.0/networks?tenant_id=45082fda-663f-4e54-a4cc-a0b213a3f40c&router%3Aexternal=True&name=ctest-vn-78217787: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=45082fda-663f-4e54-a4cc-a0b213a3f40c&router%3Aexternal=True&name=ctest-vn-78217787 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c769be080>: Failed to establish a new connection: [Errno 111] Connection refused',))

1.571 Log File
TestBasicPolicyIpv4v6.test_basic_policy_allow_deny[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity,quick_sanity,sanity,suite1,vcenter_compute]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 177, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.6.8: /usr/bin/python3
Tue Aug 27 17:23:03 2024

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...sanity,suite1,vcenter_compute] id=0x7f9c76d8c080>, *args=(), **kwargs={})
79 log.info('Initial checks done. Running the testcase now')
80 log.info('')
81 result = function(self, *args, **kwargs)
82 if self.inputs.upgrade:
83 pid = os.getpid()
result = None
function = <function TestBasicPolicy.test_basic_policy_allow_deny>
self = <scripts.policy.test_policy.TestBasicPolicyIpv4v...sanity,suite1,vcenter_compute] id=0x7f9c76d8c080>
args = ()
kwargs = {}

/contrail-test/scripts/policy/test_policy_basic.py in test_basic_policy_allow_deny(self=<scripts.policy.test_policy.TestBasicPolicyIpv4v...sanity,suite1,vcenter_compute] id=0x7f9c76d8c080>)
96 Check that pings fail
97 '''
98 vn1_fixture = self.create_vn()
99 vn2_fixture = self.create_vn()
100 # vn1_name = get_random_name('vn1')
vn1_fixture undefined
self = <scripts.policy.test_policy.TestBasicPolicyIpv4v...sanity,suite1,vcenter_compute] id=0x7f9c76d8c080>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...anity,suite1,vcenter_compute] id=0x7f9c76d8c080>>

/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy.TestBasicPolicyIpv4v...sanity,suite1,vcenter_compute] id=0x7f9c76d8c080>, vn_name=None, vn_subnets=None, cleanup=True, **kwargs={})
202 vn_fixture = self.create_only_vn(vn_name=vn_name,
203 vn_subnets=vn_subnets,
204 **kwargs)
205 if cleanup:
206 self.addCleanup(vn_fixture.cleanUp)
kwargs = {}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.policy.test_policy.TestBasicPolicyIpv4v6'>, vn_name='ctest-vn-18260606', vn_subnets=None, **kwargs={})
195 subnets=vn_subnets,
196 **kwargs)
197 vn_fixture.setUp()
198 return vn_fixture
199 # 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>)
447 def setUp(self):
448 super(VNFixture, self).setUp()
449 self.create()
450
451 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>)
460 self._create_vn_api(self.vn_name, self.project_obj)
461 else:
462 self._create_vn_orch()
463 if not self.obj:
464 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>)
302 try:
303 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
304 project_id=self.project_id)
305 if not self.obj:
306 self.obj = self.orchestrator.create_vn(
project_id undefined
self = <vn_test.VNFixture object>
self.project_id = 'b2c76961-8332-4d35-aa85-d84cc06f6278'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-18260606', option='orch', **kwargs={'project_id': 'b2c76961-8332-4d35-aa85-d84cc06f6278'})
204
205 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
206 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
207
208 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-18260606'
kwargs = {'project_id': 'b2c76961-8332-4d35-aa85-d84cc06f6278'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-18260606', project_id='b2c76961-8332-4d35-aa85-d84cc06f6278', router_external=True)
278 query_dict['name'] = vn_name
279 try:
280 net_rsp = self.obj.list_networks(**query_dict)['networks']
281 if net_rsp:
282 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-18260606', 'router:external': True, 'tenant_id': 'b2c76961-8332-4d35-aa85-d84cc06f6278'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn-18260606', 'router:external': True, 'tenant_id': 'b2c76961-8332-4d35-aa85-d84cc06f6278'})
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
820 def show_network(self, network, **_params):
_params = {'name': 'ctest-vn-18260606', 'router:external': True, 'tenant_id': 'b2c76961-8332-4d35-aa85-d84cc06f6278'}

/usr/local/lib/python3.6/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-18260606', 'router:external': True, 'tenant_id': 'b2c76961-8332-4d35-aa85-d84cc06f6278'})
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-18260606', 'router:external': True, 'tenant_id': 'b2c76961-8332-4d35-aa85-d84cc06f6278'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn-18260606', 'router:external': True, 'tenant_id': 'b2c76961-8332-4d35-aa85-d84cc06f6278'})
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-18260606', 'router:external': True, 'tenant_id': 'b2c76961-8332-4d35-aa85-d84cc06f6278'}

/usr/local/lib/python3.6/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-18260606', 'router:external': True, 'tenant_id': 'b2c76961-8332-4d35-aa85-d84cc06f6278'})
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
356 def post(self, action, body=None, headers=None, params=None):
headers = None
params = {'name': 'ctest-vn-18260606', 'router:external': True, 'tenant_id': 'b2c76961-8332-4d35-aa85-d84cc06f6278'}

/usr/local/lib/python3.6/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-18260606', 'router:external': True, 'tenant_id': 'b2c76961-8332-4d35-aa85-d84cc06f6278'})
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
333 # Exception has already been logged by do_request()
headers = None
params = {'name': 'ctest-vn-18260606', 'router:external': True, 'tenant_id': 'b2c76961-8332-4d35-aa85-d84cc06f6278'}

/usr/local/lib/python3.6/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=b2c76961-8332-4d35-aa85...278&router%3Aexternal=True&name=ctest-vn-18260606', body=None, headers=None, params={'name': b'ctest-vn-18260606', 'router:external': True, 'tenant_id': b'b2c76961-8332-4d35-aa85-d84cc06f6278'})
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
284 status_code = resp.status_code
headers = None

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=b2c76961-8332-4d35-aa85...278&router%3Aexternal=True&name=ctest-vn-18260606', 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=b2c76961-8332-4d35-aa85...278&router%3Aexternal=True&name=ctest-vn-18260606'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=b2c76961-8332-4d35-aa85...278&router%3Aexternal=True&name=ctest-vn-18260606', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgt1a-xGbrOv5ZvXXvnqazv8ANtrbZMKopprRRAi...XY0UQxnaGs6TF0SmVeVDSy6RQPUruDRusH0dyO1K3xCBcjbd8'}, '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=b2c76961-8332-4d35-aa85...278&router%3Aexternal=True&name=ctest-vn-18260606', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgt1a-xGbrOv5ZvXXvnqazv8ANtrbZMKopprRRAi...XY0UQxnaGs6TF0SmVeVDSy6RQPUruDRusH0dyO1K3xCBcjbd8'}, 'raise_exc': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=b2c76961-8332-4d35-aa85...278&router%3Aexternal=True&name=ctest-vn-18260606', 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': 'gAAAAABmzgt1a-xGbrOv5ZvXXvnqazv8ANtrbZMKopprRRAi...XY0UQxnaGs6TF0SmVeVDSy6RQPUruDRusH0dyO1K3xCBcjbd8'}, '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=b2c76961-8332-4d35-aa85...278&router%3Aexternal=True&name=ctest-vn-18260606'
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': 'gAAAAABmzgt1a-xGbrOv5ZvXXvnqazv8ANtrbZMKopprRRAi...XY0UQxnaGs6TF0SmVeVDSy6RQPUruDRusH0dyO1K3xCBcjbd8'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=b2...278&router%3Aexternal=True&name=ctest-vn-18260606', 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': 'gAAAAABmzgt1a-xGbrOv5ZvXXvnqazv8ANtrbZMKopprRRAi...XY0UQxnaGs6TF0SmVeVDSy6RQPUruDRusH0dyO1K3xCBcjbd8'}, '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 0x7f9c76b4ec50>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgt1a-xGbrOv5ZvXXvnqazv8ANtrbZMKopprRRAi...XY0UQxnaGs6TF0SmVeVDSy6RQPUruDRusH0dyO1K3xCBcjbd8'}, 'verify': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=b2...278&router%3Aexternal=True&name=ctest-vn-18260606', 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': 'gAAAAABmzgt1a-xGbrOv5ZvXXvnqazv8ANtrbZMKopprRRAi...XY0UQxnaGs6TF0SmVeVDSy6RQPUruDRusH0dyO1K3xCBcjbd8'}, '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....ew connection: [Errno 111] Connection refused',))"
ConnectFailure: Unable to establish connection to http://10.0.0.48:9696/v2.0/networks?tenant_id=b2c76961-8332-4d35-aa85-d84cc06f6278&router%3Aexternal=True&name=ctest-vn-18260606: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b2c76961-8332-4d35-aa85-d84cc06f6278&router%3Aexternal=True&name=ctest-vn-18260606 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c754d7518>: Failed to establish a new connection: [Errno 111] Connection refused',))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo...nnection: [Errno 111] Connection refused',))",),)
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....ew 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...onnection: [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....ew connection: [Errno 111] Connection refused',))",)
message = "Unable to establish connection to http://10.0.0....ew 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.6/site-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.6/site-packages/gevent/_socket3.py", line 400, in connect
raise error(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.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib64/python3.6/http/client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 974, in send
self.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9c754d7518>: 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.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b2c76961-8332-4d35-aa85-d84cc06f6278&router%3Aexternal=True&name=ctest-vn-18260606 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c754d7518>: 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.6/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b2c76961-8332-4d35-aa85-d84cc06f6278&router%3Aexternal=True&name=ctest-vn-18260606 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c754d7518>: 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 81, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/policy/test_policy_basic.py", line 98, in test_basic_policy_allow_deny
vn1_fixture = self.create_vn()
File "/contrail-test/common/base.py", line 204, in create_vn
**kwargs)
File "/contrail-test/common/base.py", line 197, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 449, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 462, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 304, in _create_vn_orch
project_id=self.project_id)
File "/contrail-test/fixtures/openstack.py", line 206, 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 280, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 818, in list_networks
**_params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 354, in get
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 282, in do_request
headers=headers)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.6/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.48:9696/v2.0/networks?tenant_id=b2c76961-8332-4d35-aa85-d84cc06f6278&router%3Aexternal=True&name=ctest-vn-18260606: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=b2c76961-8332-4d35-aa85-d84cc06f6278&router%3Aexternal=True&name=ctest-vn-18260606 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c754d7518>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.712 Log File
TestBasicPolicy.test_basic_policy_allow_deny[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity,quick_sanity,sanity,suite1,vcenter_compute]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 177, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.6.8: /usr/bin/python3
Tue Aug 27 17:23:06 2024

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...sanity,suite1,vcenter_compute] id=0x7f9c76d25ba8>, *args=(), **kwargs={})
79 log.info('Initial checks done. Running the testcase now')
80 log.info('')
81 result = function(self, *args, **kwargs)
82 if self.inputs.upgrade:
83 pid = os.getpid()
result = None
function = <function TestBasicPolicy.test_basic_policy_allow_deny>
self = <scripts.policy.test_policy_basic.TestBasicPolic...sanity,suite1,vcenter_compute] id=0x7f9c76d25ba8>
args = ()
kwargs = {}

/contrail-test/scripts/policy/test_policy_basic.py in test_basic_policy_allow_deny(self=<scripts.policy.test_policy_basic.TestBasicPolic...sanity,suite1,vcenter_compute] id=0x7f9c76d25ba8>)
96 Check that pings fail
97 '''
98 vn1_fixture = self.create_vn()
99 vn2_fixture = self.create_vn()
100 # vn1_name = get_random_name('vn1')
vn1_fixture undefined
self = <scripts.policy.test_policy_basic.TestBasicPolic...sanity,suite1,vcenter_compute] id=0x7f9c76d25ba8>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...anity,suite1,vcenter_compute] id=0x7f9c76d25ba8>>

/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy_basic.TestBasicPolic...sanity,suite1,vcenter_compute] id=0x7f9c76d25ba8>, vn_name=None, vn_subnets=None, cleanup=True, **kwargs={})
202 vn_fixture = self.create_only_vn(vn_name=vn_name,
203 vn_subnets=vn_subnets,
204 **kwargs)
205 if cleanup:
206 self.addCleanup(vn_fixture.cleanUp)
kwargs = {}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.policy.test_policy_basic.TestBasicPolicy'>, vn_name='ctest-vn-74896428', vn_subnets=None, **kwargs={})
195 subnets=vn_subnets,
196 **kwargs)
197 vn_fixture.setUp()
198 return vn_fixture
199 # 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>)
447 def setUp(self):
448 super(VNFixture, self).setUp()
449 self.create()
450
451 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>)
460 self._create_vn_api(self.vn_name, self.project_obj)
461 else:
462 self._create_vn_orch()
463 if not self.obj:
464 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>)
302 try:
303 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
304 project_id=self.project_id)
305 if not self.obj:
306 self.obj = self.orchestrator.create_vn(
project_id undefined
self = <vn_test.VNFixture object>
self.project_id = 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-74896428', option='orch', **kwargs={'project_id': 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'})
204
205 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
206 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
207
208 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-74896428'
kwargs = {'project_id': 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-74896428', project_id='e7951f6a-be7a-4cb0-9ba0-4d4d920835a7', router_external=True)
278 query_dict['name'] = vn_name
279 try:
280 net_rsp = self.obj.list_networks(**query_dict)['networks']
281 if net_rsp:
282 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-74896428', 'router:external': True, 'tenant_id': 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn-74896428', 'router:external': True, 'tenant_id': 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'})
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
820 def show_network(self, network, **_params):
_params = {'name': 'ctest-vn-74896428', 'router:external': True, 'tenant_id': 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'}

/usr/local/lib/python3.6/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-74896428', 'router:external': True, 'tenant_id': 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'})
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-74896428', 'router:external': True, 'tenant_id': 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn-74896428', 'router:external': True, 'tenant_id': 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'})
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-74896428', 'router:external': True, 'tenant_id': 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'}

/usr/local/lib/python3.6/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-74896428', 'router:external': True, 'tenant_id': 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'})
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
356 def post(self, action, body=None, headers=None, params=None):
headers = None
params = {'name': 'ctest-vn-74896428', 'router:external': True, 'tenant_id': 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'}

/usr/local/lib/python3.6/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-74896428', 'router:external': True, 'tenant_id': 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'})
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
333 # Exception has already been logged by do_request()
headers = None
params = {'name': 'ctest-vn-74896428', 'router:external': True, 'tenant_id': 'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'}

/usr/local/lib/python3.6/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=e7951f6a-be7a-4cb0-9ba0...5a7&router%3Aexternal=True&name=ctest-vn-74896428', body=None, headers=None, params={'name': b'ctest-vn-74896428', 'router:external': True, 'tenant_id': b'e7951f6a-be7a-4cb0-9ba0-4d4d920835a7'})
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
284 status_code = resp.status_code
headers = None

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=e7951f6a-be7a-4cb0-9ba0...5a7&router%3Aexternal=True&name=ctest-vn-74896428', 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=e7951f6a-be7a-4cb0-9ba0...5a7&router%3Aexternal=True&name=ctest-vn-74896428'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=e7951f6a-be7a-4cb0-9ba0...5a7&router%3Aexternal=True&name=ctest-vn-74896428', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgt5QITwcpkTg5ucIL5QBKWd6MBcAjsnTMfibJnr...lCDA4lneB9Z24Rz9ycAs6Gwb5QKDI9ToBcvaaG5D7WxsgENjw'}, '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=e7951f6a-be7a-4cb0-9ba0...5a7&router%3Aexternal=True&name=ctest-vn-74896428', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgt5QITwcpkTg5ucIL5QBKWd6MBcAjsnTMfibJnr...lCDA4lneB9Z24Rz9ycAs6Gwb5QKDI9ToBcvaaG5D7WxsgENjw'}, 'raise_exc': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=e7951f6a-be7a-4cb0-9ba0...5a7&router%3Aexternal=True&name=ctest-vn-74896428', 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': 'gAAAAABmzgt5QITwcpkTg5ucIL5QBKWd6MBcAjsnTMfibJnr...lCDA4lneB9Z24Rz9ycAs6Gwb5QKDI9ToBcvaaG5D7WxsgENjw'}, '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=e7951f6a-be7a-4cb0-9ba0...5a7&router%3Aexternal=True&name=ctest-vn-74896428'
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': 'gAAAAABmzgt5QITwcpkTg5ucIL5QBKWd6MBcAjsnTMfibJnr...lCDA4lneB9Z24Rz9ycAs6Gwb5QKDI9ToBcvaaG5D7WxsgENjw'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=e7...5a7&router%3Aexternal=True&name=ctest-vn-74896428', 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': 'gAAAAABmzgt5QITwcpkTg5ucIL5QBKWd6MBcAjsnTMfibJnr...lCDA4lneB9Z24Rz9ycAs6Gwb5QKDI9ToBcvaaG5D7WxsgENjw'}, '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 0x7f9c74db39b0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgt5QITwcpkTg5ucIL5QBKWd6MBcAjsnTMfibJnr...lCDA4lneB9Z24Rz9ycAs6Gwb5QKDI9ToBcvaaG5D7WxsgENjw'}, 'verify': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=e7...5a7&router%3Aexternal=True&name=ctest-vn-74896428', 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': 'gAAAAABmzgt5QITwcpkTg5ucIL5QBKWd6MBcAjsnTMfibJnr...lCDA4lneB9Z24Rz9ycAs6Gwb5QKDI9ToBcvaaG5D7WxsgENjw'}, '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....ew connection: [Errno 111] Connection refused',))"
ConnectFailure: Unable to establish connection to http://10.0.0.48:9696/v2.0/networks?tenant_id=e7951f6a-be7a-4cb0-9ba0-4d4d920835a7&router%3Aexternal=True&name=ctest-vn-74896428: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e7951f6a-be7a-4cb0-9ba0-4d4d920835a7&router%3Aexternal=True&name=ctest-vn-74896428 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74d6f860>: Failed to establish a new connection: [Errno 111] Connection refused',))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo...nnection: [Errno 111] Connection refused',))",),)
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....ew 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...onnection: [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....ew connection: [Errno 111] Connection refused',))",)
message = "Unable to establish connection to http://10.0.0....ew 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.6/site-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.6/site-packages/gevent/_socket3.py", line 400, in connect
raise error(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.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib64/python3.6/http/client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 974, in send
self.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9c74d6f860>: 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.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e7951f6a-be7a-4cb0-9ba0-4d4d920835a7&router%3Aexternal=True&name=ctest-vn-74896428 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74d6f860>: 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.6/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e7951f6a-be7a-4cb0-9ba0-4d4d920835a7&router%3Aexternal=True&name=ctest-vn-74896428 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74d6f860>: 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 81, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/policy/test_policy_basic.py", line 98, in test_basic_policy_allow_deny
vn1_fixture = self.create_vn()
File "/contrail-test/common/base.py", line 204, in create_vn
**kwargs)
File "/contrail-test/common/base.py", line 197, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 449, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 462, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 304, in _create_vn_orch
project_id=self.project_id)
File "/contrail-test/fixtures/openstack.py", line 206, 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 280, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 818, in list_networks
**_params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 354, in get
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 282, in do_request
headers=headers)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.6/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.48:9696/v2.0/networks?tenant_id=e7951f6a-be7a-4cb0-9ba0-4d4d920835a7&router%3Aexternal=True&name=ctest-vn-74896428: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e7951f6a-be7a-4cb0-9ba0-4d4d920835a7&router%3Aexternal=True&name=ctest-vn-74896428 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74d6f860>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.709 Log File
TestSvcRegr.test_svc_in_network_datapath[ci_sanity,vcenter]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 177, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.6.8: /usr/bin/python3
Tue Aug 27 17:23:10 2024

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...rk_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>, *args=(), **kwargs={})
79 log.info('Initial checks done. Running the testcase now')
80 log.info('')
81 result = function(self, *args, **kwargs)
82 if self.inputs.upgrade:
83 pid = os.getpid()
result = None
function = <function TestSvcRegr.test_svc_in_network_datapath>
self = <scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...rk_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>
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...rk_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>)
31 def test_svc_in_network_datapath(self):
32 return self.verify_svc_chain(svc_img_name='cirros_in_net', service_mode='in-network',
33 create_svms=True)
34
35
create_svms undefined

/contrail-test/common/servicechain/verify.py in verify_svc_chain(self=<scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...rk_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>, *args=(), **kwargs={'create_svms': True, 'service_mode': 'in-network', 'svc_img_name': 'cirros_in_net'})
326 def verify_svc_chain(self, *args, **kwargs):
327 svc_chain_info = kwargs.get('svc_chain_info')
328 ret_dict = svc_chain_info or self.config_svc_chain(*args, **kwargs)
329 proto = kwargs.get('proto', 'any')
330 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...rk_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>
self.config_svc_chain = <bound method ConfigSvcChain.config_svc_chain of...k_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>>
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...rk_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>, 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={})
472 mgmt_vn_fixture,
473 'mgmt_vn',
474 **kwargs)
475
476 # Left
kwargs = {}

/contrail-test/common/servicechain/config.py in _get_vn_for_config(self=<scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...rk_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>, vn_name='ctest-mgmt_vn-61879604', vn_subnets=['44.125.253.0/26'], vn_fixture=None, vn_name_prefix='mgmt_vn', **kwargs={})
373 vn_subnets = vn_subnets or \
374 [get_random_cidr(af=self.inputs.get_af())]
375 vn_fixture = vn_fixture or self.config_vn(vn_name, vn_subnets, **kwargs)
376 vn_fq_name = vn_fixture.vn_fq_name
377 return (vn_name, vn_subnets, vn_fixture, vn_fq_name)
vn_fixture = None
self = <scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...rk_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>
self.config_vn = <bound method ConfigSvcChain.config_vn of <scrip...k_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>>
vn_name = 'ctest-mgmt_vn-61879604'
vn_subnets = ['44.125.253.0/26']
kwargs = {}

/contrail-test/common/servicechain/config.py in config_vn(self=<scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...rk_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>, vn_name='ctest-mgmt_vn-61879604', vn_net=['44.125.253.0/26'], **kwargs={})
154 vn_fixture = self.useFixture(VNFixture(
155 project_name=self.inputs.project_name, connections=self.connections,
156 vn_name=vn_name, inputs=self.inputs, subnets=vn_net, **kwargs))
157 assert vn_fixture.verify_on_setup()
158 return vn_fixture
vn_name = 'ctest-mgmt_vn-61879604'
inputs undefined
self = <scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...rk_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>
self.inputs = <common.contrail_test_init.ContrailTestInit object>
subnets undefined
vn_net = ['44.125.253.0/26']
kwargs = {}

/usr/local/lib/python3.6/site-packages/testtools/testcase.py in useFixture(self=<scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...rk_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>, 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...connection: [Errno 111] Connection refused',))",), <traceback object>)

/usr/local/lib/python3.6/site-packages/testtools/_compat3x.py in reraise(exc_class=<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, exc_obj=ConnectFailure("Unable to establish connection t...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...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.6/site-packages/testtools/testcase.py in useFixture(self=<scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...rk_datapath[ci_sanity,vcenter] id=0x7f9c76a93080>, 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>)
447 def setUp(self):
448 super(VNFixture, self).setUp()
449 self.create()
450
451 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>)
460 self._create_vn_api(self.vn_name, self.project_obj)
461 else:
462 self._create_vn_orch()
463 if not self.obj:
464 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>)
302 try:
303 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
304 project_id=self.project_id)
305 if not self.obj:
306 self.obj = self.orchestrator.create_vn(
project_id undefined
self = <vn_test.VNFixture object>
self.project_id = 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-mgmt_vn-61879604', option='orch', **kwargs={'project_id': 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'})
204
205 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
206 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
207
208 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-61879604'
kwargs = {'project_id': 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-mgmt_vn-61879604', project_id='e41c7df0-e7f1-475f-a54b-be5fcb20bd3c', router_external=True)
278 query_dict['name'] = vn_name
279 try:
280 net_rsp = self.obj.list_networks(**query_dict)['networks']
281 if net_rsp:
282 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-61879604', 'router:external': True, 'tenant_id': 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'}

/usr/local/lib/python3.6/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-61879604', 'router:external': True, 'tenant_id': 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'})
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
820 def show_network(self, network, **_params):
_params = {'name': 'ctest-mgmt_vn-61879604', 'router:external': True, 'tenant_id': 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'}

/usr/local/lib/python3.6/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-61879604', 'router:external': True, 'tenant_id': 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'})
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-61879604', 'router:external': True, 'tenant_id': 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'}

/usr/local/lib/python3.6/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-61879604', 'router:external': True, 'tenant_id': 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'})
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-61879604', 'router:external': True, 'tenant_id': 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'}

/usr/local/lib/python3.6/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-61879604', 'router:external': True, 'tenant_id': 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'})
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
356 def post(self, action, body=None, headers=None, params=None):
headers = None
params = {'name': 'ctest-mgmt_vn-61879604', 'router:external': True, 'tenant_id': 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'}

/usr/local/lib/python3.6/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-61879604', 'router:external': True, 'tenant_id': 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'})
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
333 # Exception has already been logged by do_request()
headers = None
params = {'name': 'ctest-mgmt_vn-61879604', 'router:external': True, 'tenant_id': 'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'}

/usr/local/lib/python3.6/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=e41c7df0-e7f1-475f-a54b...outer%3Aexternal=True&name=ctest-mgmt_vn-61879604', body=None, headers=None, params={'name': b'ctest-mgmt_vn-61879604', 'router:external': True, 'tenant_id': b'e41c7df0-e7f1-475f-a54b-be5fcb20bd3c'})
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
284 status_code = resp.status_code
headers = None

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=e41c7df0-e7f1-475f-a54b...outer%3Aexternal=True&name=ctest-mgmt_vn-61879604', 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=e41c7df0-e7f1-475f-a54b...outer%3Aexternal=True&name=ctest-mgmt_vn-61879604'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=e41c7df0-e7f1-475f-a54b...outer%3Aexternal=True&name=ctest-mgmt_vn-61879604', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgt9LC1MStwFBLYZaYT7FcydoBUgLWp-nGck_tV5...XvfK5UsnC_J_CFtrEnNYCvI_XN33dKuHzDQtSPT3VVwWK0zhw'}, '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=e41c7df0-e7f1-475f-a54b...outer%3Aexternal=True&name=ctest-mgmt_vn-61879604', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgt9LC1MStwFBLYZaYT7FcydoBUgLWp-nGck_tV5...XvfK5UsnC_J_CFtrEnNYCvI_XN33dKuHzDQtSPT3VVwWK0zhw'}, 'raise_exc': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=e41c7df0-e7f1-475f-a54b...outer%3Aexternal=True&name=ctest-mgmt_vn-61879604', 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': 'gAAAAABmzgt9LC1MStwFBLYZaYT7FcydoBUgLWp-nGck_tV5...XvfK5UsnC_J_CFtrEnNYCvI_XN33dKuHzDQtSPT3VVwWK0zhw'}, '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=e41c7df0-e7f1-475f-a54b...outer%3Aexternal=True&name=ctest-mgmt_vn-61879604'
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': 'gAAAAABmzgt9LC1MStwFBLYZaYT7FcydoBUgLWp-nGck_tV5...XvfK5UsnC_J_CFtrEnNYCvI_XN33dKuHzDQtSPT3VVwWK0zhw'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=e4...outer%3Aexternal=True&name=ctest-mgmt_vn-61879604', 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': 'gAAAAABmzgt9LC1MStwFBLYZaYT7FcydoBUgLWp-nGck_tV5...XvfK5UsnC_J_CFtrEnNYCvI_XN33dKuHzDQtSPT3VVwWK0zhw'}, '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 0x7f9c74d65860>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzgt9LC1MStwFBLYZaYT7FcydoBUgLWp-nGck_tV5...XvfK5UsnC_J_CFtrEnNYCvI_XN33dKuHzDQtSPT3VVwWK0zhw'}, 'verify': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=e4...outer%3Aexternal=True&name=ctest-mgmt_vn-61879604', 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': 'gAAAAABmzgt9LC1MStwFBLYZaYT7FcydoBUgLWp-nGck_tV5...XvfK5UsnC_J_CFtrEnNYCvI_XN33dKuHzDQtSPT3VVwWK0zhw'}, '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....ew connection: [Errno 111] Connection refused',))"
ConnectFailure: Unable to establish connection to http://10.0.0.48:9696/v2.0/networks?tenant_id=e41c7df0-e7f1-475f-a54b-be5fcb20bd3c&router%3Aexternal=True&name=ctest-mgmt_vn-61879604: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e41c7df0-e7f1-475f-a54b-be5fcb20bd3c&router%3Aexternal=True&name=ctest-mgmt_vn-61879604 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74d92630>: Failed to establish a new connection: [Errno 111] Connection refused',))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo...nnection: [Errno 111] Connection refused',))",),)
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....ew 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...onnection: [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....ew connection: [Errno 111] Connection refused',))",)
message = "Unable to establish connection to http://10.0.0....ew 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.6/site-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.6/site-packages/gevent/_socket3.py", line 400, in connect
raise error(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.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib64/python3.6/http/client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 974, in send
self.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9c74d92630>: 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.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e41c7df0-e7f1-475f-a54b-be5fcb20bd3c&router%3Aexternal=True&name=ctest-mgmt_vn-61879604 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74d92630>: 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.6/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e41c7df0-e7f1-475f-a54b-be5fcb20bd3c&router%3Aexternal=True&name=ctest-mgmt_vn-61879604 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74d92630>: 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 81, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/svc_firewall/test_svc_fw.py", line 33, in test_svc_in_network_datapath
create_svms=True)
File "/contrail-test/common/servicechain/verify.py", line 328, in verify_svc_chain
ret_dict = svc_chain_info or self.config_svc_chain(*args, **kwargs)
File "/contrail-test/common/servicechain/config.py", line 474, in config_svc_chain
**kwargs)
File "/contrail-test/common/servicechain/config.py", line 375, 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 156, in config_vn
vn_name=vn_name, inputs=self.inputs, subnets=vn_net, **kwargs))
File "/usr/local/lib/python3.6/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.6/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.6/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 449, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 462, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 304, in _create_vn_orch
project_id=self.project_id)
File "/contrail-test/fixtures/openstack.py", line 206, 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 280, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 818, in list_networks
**_params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 354, in get
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 282, in do_request
headers=headers)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.6/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.48:9696/v2.0/networks?tenant_id=e41c7df0-e7f1-475f-a54b-be5fcb20bd3c&router%3Aexternal=True&name=ctest-mgmt_vn-61879604: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=e41c7df0-e7f1-475f-a54b-be5fcb20bd3c&router%3Aexternal=True&name=ctest-mgmt_vn-61879604 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74d92630>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.690 Log File
TestvDNSBasic0.test_vdns_ping_same_vn[ci_sanity,sanity,suite1,vcenter,vcenter_compute]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/util.py", line 1167, in wrapper
return f(self, *func_args, **func_kwargs)
File "/contrail-test/tcutils/wrappers.py", line 177, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.6.8: /usr/bin/python3
Tue Aug 27 17:23:15 2024

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...uite1,vcenter,vcenter_compute] id=0x7f9c76a4f278>, *args=(), **kwargs={})
79 log.info('Initial checks done. Running the testcase now')
80 log.info('')
81 result = function(self, *args, **kwargs)
82 if self.inputs.upgrade:
83 pid = os.getpid()
result = None
function = <function TestvDNSBasic0.test_vdns_ping_same_vn>
self = <scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes...uite1,vcenter,vcenter_compute] id=0x7f9c76a4f278>
args = ()
kwargs = {}

/contrail-test/scripts/vdns/test_vdns_basic.py in test_vdns_ping_same_vn(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes...uite1,vcenter,vcenter_compute] id=0x7f9c76a4f278>)
98 VNFixture(
99 self.connections, self.inputs,
100 vn_name=vn_name, subnets=[vn1_ip], ipam_fq_name=ipam_fixt1.fq_name))
101 vm_fixture = {}
102 # Launch VM with VN Created above. This test verifies on launch of VM agent should updated DNS 'A' and 'PTR' records
vn_name = 'ctest-vn1-vdns-75346596'
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-97934736', 'ipam1']

/usr/local/lib/python3.6/site-packages/testtools/testcase.py in useFixture(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes...uite1,vcenter,vcenter_compute] id=0x7f9c76a4f278>, 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...connection: [Errno 111] Connection refused',))",), <traceback object>)

/usr/local/lib/python3.6/site-packages/testtools/_compat3x.py in reraise(exc_class=<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, exc_obj=ConnectFailure("Unable to establish connection t...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...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.6/site-packages/testtools/testcase.py in useFixture(self=<scripts.vdns.test_vdns_basic.TestvDNSBasic0.tes...uite1,vcenter,vcenter_compute] id=0x7f9c76a4f278>, 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>)
447 def setUp(self):
448 super(VNFixture, self).setUp()
449 self.create()
450
451 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>)
460 self._create_vn_api(self.vn_name, self.project_obj)
461 else:
462 self._create_vn_orch()
463 if not self.obj:
464 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>)
302 try:
303 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
304 project_id=self.project_id)
305 if not self.obj:
306 self.obj = self.orchestrator.create_vn(
project_id undefined
self = <vn_test.VNFixture object>
self.project_id = '4b897751-4831-4ad1-9b68-528251ee881c'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn1-vdns-75346596', option='orch', **kwargs={'project_id': '4b897751-4831-4ad1-9b68-528251ee881c'})
204
205 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
206 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
207
208 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-75346596'
kwargs = {'project_id': '4b897751-4831-4ad1-9b68-528251ee881c'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn1-vdns-75346596', project_id='4b897751-4831-4ad1-9b68-528251ee881c', router_external=True)
278 query_dict['name'] = vn_name
279 try:
280 net_rsp = self.obj.list_networks(**query_dict)['networks']
281 if net_rsp:
282 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-75346596', 'router:external': True, 'tenant_id': '4b897751-4831-4ad1-9b68-528251ee881c'}

/usr/local/lib/python3.6/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-75346596', 'router:external': True, 'tenant_id': '4b897751-4831-4ad1-9b68-528251ee881c'})
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
820 def show_network(self, network, **_params):
_params = {'name': 'ctest-vn1-vdns-75346596', 'router:external': True, 'tenant_id': '4b897751-4831-4ad1-9b68-528251ee881c'}

/usr/local/lib/python3.6/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-75346596', 'router:external': True, 'tenant_id': '4b897751-4831-4ad1-9b68-528251ee881c'})
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-75346596', 'router:external': True, 'tenant_id': '4b897751-4831-4ad1-9b68-528251ee881c'}

/usr/local/lib/python3.6/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-75346596', 'router:external': True, 'tenant_id': '4b897751-4831-4ad1-9b68-528251ee881c'})
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-75346596', 'router:external': True, 'tenant_id': '4b897751-4831-4ad1-9b68-528251ee881c'}

/usr/local/lib/python3.6/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-75346596', 'router:external': True, 'tenant_id': '4b897751-4831-4ad1-9b68-528251ee881c'})
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
356 def post(self, action, body=None, headers=None, params=None):
headers = None
params = {'name': 'ctest-vn1-vdns-75346596', 'router:external': True, 'tenant_id': '4b897751-4831-4ad1-9b68-528251ee881c'}

/usr/local/lib/python3.6/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-75346596', 'router:external': True, 'tenant_id': '4b897751-4831-4ad1-9b68-528251ee881c'})
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
333 # Exception has already been logged by do_request()
headers = None
params = {'name': 'ctest-vn1-vdns-75346596', 'router:external': True, 'tenant_id': '4b897751-4831-4ad1-9b68-528251ee881c'}

/usr/local/lib/python3.6/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=4b897751-4831-4ad1-9b68...uter%3Aexternal=True&name=ctest-vn1-vdns-75346596', body=None, headers=None, params={'name': b'ctest-vn1-vdns-75346596', 'router:external': True, 'tenant_id': b'4b897751-4831-4ad1-9b68-528251ee881c'})
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
284 status_code = resp.status_code
headers = None

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=4b897751-4831-4ad1-9b68...uter%3Aexternal=True&name=ctest-vn1-vdns-75346596', 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=4b897751-4831-4ad1-9b68...uter%3Aexternal=True&name=ctest-vn1-vdns-75346596'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=4b897751-4831-4ad1-9b68...uter%3Aexternal=True&name=ctest-vn1-vdns-75346596', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzguBOUwJEMby0C1NpD2_Cu6-VECOp1zlihOWcJq-...AqyNycR9XRCorvWANBdIpddm1xVT3ZBsN6hDXS_HDJ9qIqktQ'}, '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=4b897751-4831-4ad1-9b68...uter%3Aexternal=True&name=ctest-vn1-vdns-75346596', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzguBOUwJEMby0C1NpD2_Cu6-VECOp1zlihOWcJq-...AqyNycR9XRCorvWANBdIpddm1xVT3ZBsN6hDXS_HDJ9qIqktQ'}, 'raise_exc': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=4b897751-4831-4ad1-9b68...uter%3Aexternal=True&name=ctest-vn1-vdns-75346596', 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': 'gAAAAABmzguBOUwJEMby0C1NpD2_Cu6-VECOp1zlihOWcJq-...AqyNycR9XRCorvWANBdIpddm1xVT3ZBsN6hDXS_HDJ9qIqktQ'}, '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=4b897751-4831-4ad1-9b68...uter%3Aexternal=True&name=ctest-vn1-vdns-75346596'
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': 'gAAAAABmzguBOUwJEMby0C1NpD2_Cu6-VECOp1zlihOWcJq-...AqyNycR9XRCorvWANBdIpddm1xVT3ZBsN6hDXS_HDJ9qIqktQ'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=4b...uter%3Aexternal=True&name=ctest-vn1-vdns-75346596', 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': 'gAAAAABmzguBOUwJEMby0C1NpD2_Cu6-VECOp1zlihOWcJq-...AqyNycR9XRCorvWANBdIpddm1xVT3ZBsN6hDXS_HDJ9qIqktQ'}, '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 0x7f9c74a8af60>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzguBOUwJEMby0C1NpD2_Cu6-VECOp1zlihOWcJq-...AqyNycR9XRCorvWANBdIpddm1xVT3ZBsN6hDXS_HDJ9qIqktQ'}, 'verify': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=4b...uter%3Aexternal=True&name=ctest-vn1-vdns-75346596', 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': 'gAAAAABmzguBOUwJEMby0C1NpD2_Cu6-VECOp1zlihOWcJq-...AqyNycR9XRCorvWANBdIpddm1xVT3ZBsN6hDXS_HDJ9qIqktQ'}, '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....ew connection: [Errno 111] Connection refused',))"
ConnectFailure: Unable to establish connection to http://10.0.0.48:9696/v2.0/networks?tenant_id=4b897751-4831-4ad1-9b68-528251ee881c&router%3Aexternal=True&name=ctest-vn1-vdns-75346596: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=4b897751-4831-4ad1-9b68-528251ee881c&router%3Aexternal=True&name=ctest-vn1-vdns-75346596 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74a98e10>: Failed to establish a new connection: [Errno 111] Connection refused',))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo...nnection: [Errno 111] Connection refused',))",),)
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....ew 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...onnection: [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....ew connection: [Errno 111] Connection refused',))",)
message = "Unable to establish connection to http://10.0.0....ew 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.6/site-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.6/site-packages/gevent/_socket3.py", line 400, in connect
raise error(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.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib64/python3.6/http/client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 974, in send
self.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9c74a98e10>: 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.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=4b897751-4831-4ad1-9b68-528251ee881c&router%3Aexternal=True&name=ctest-vn1-vdns-75346596 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74a98e10>: 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.6/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=4b897751-4831-4ad1-9b68-528251ee881c&router%3Aexternal=True&name=ctest-vn1-vdns-75346596 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74a98e10>: 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 81, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/vdns/test_vdns_basic.py", line 100, in test_vdns_ping_same_vn
vn_name=vn_name, subnets=[vn1_ip], ipam_fq_name=ipam_fixt1.fq_name))
File "/usr/local/lib/python3.6/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.6/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.6/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 449, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 462, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 304, in _create_vn_orch
project_id=self.project_id)
File "/contrail-test/fixtures/openstack.py", line 206, 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 280, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 818, in list_networks
**_params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 354, in get
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 282, in do_request
headers=headers)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.6/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.48:9696/v2.0/networks?tenant_id=4b897751-4831-4ad1-9b68-528251ee881c&router%3Aexternal=True&name=ctest-vn1-vdns-75346596: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=4b897751-4831-4ad1-9b68-528251ee881c&router%3Aexternal=True&name=ctest-vn1-vdns-75346596 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74a98e10>: Failed to establish a new connection: [Errno 111] Connection refused',))

2.263 Log File
TestBasicVMVNx.test_vm_file_trf_scp_tests[ci_contrail_go_kolla_ocata_sanity,ci_sanity,quick_sanity,vcenter_compute,vrouter_gw]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/util.py", line 1167, in wrapper
return f(self, *func_args, **func_kwargs)
File "/contrail-test/tcutils/wrappers.py", line 177, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.6.8: /usr/bin/python3
Tue Aug 27 17:23:19 2024

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...ty,vcenter_compute,vrouter_gw] id=0x7f9c769c8588>, *args=(), **kwargs={})
79 log.info('Initial checks done. Running the testcase now')
80 log.info('')
81 result = function(self, *args, **kwargs)
82 if self.inputs.upgrade:
83 pid = os.getpid()
result = None
function = <function TestBasicVMVNx.test_vm_file_trf_scp_tests>
self = <scripts.vm_regression.test_vm.TestBasicVMVNx.te...ty,vcenter_compute,vrouter_gw] id=0x7f9c769c8588>
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...ty,vcenter_compute,vrouter_gw] id=0x7f9c769c8588>)
2898 cmd_to_sync = [x]
2899 create_result = True
2900 vn_fixture = self.create_vn(orch=self.orchestrator)
2901 vm1_fixture = self.create_vm(vn_fixture=vn_fixture,
2902 image_name='ubuntu-sshpass',
vn_fixture undefined
self = <scripts.vm_regression.test_vm.TestBasicVMVNx.te...ty,vcenter_compute,vrouter_gw] id=0x7f9c769c8588>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...y,vcenter_compute,vrouter_gw] id=0x7f9c769c8588>>
orch undefined
self.orchestrator = <openstack.OpenstackOrchestrator object>

/contrail-test/common/base.py in create_vn(self=<scripts.vm_regression.test_vm.TestBasicVMVNx.te...ty,vcenter_compute,vrouter_gw] id=0x7f9c769c8588>, vn_name=None, vn_subnets=None, cleanup=True, **kwargs={'orch': <openstack.OpenstackOrchestrator object>})
202 vn_fixture = self.create_only_vn(vn_name=vn_name,
203 vn_subnets=vn_subnets,
204 **kwargs)
205 if cleanup:
206 self.addCleanup(vn_fixture.cleanUp)
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-92310669', vn_subnets=None, **kwargs={'orch': <openstack.OpenstackOrchestrator object>})
195 subnets=vn_subnets,
196 **kwargs)
197 vn_fixture.setUp()
198 return vn_fixture
199 # 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>)
447 def setUp(self):
448 super(VNFixture, self).setUp()
449 self.create()
450
451 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>)
460 self._create_vn_api(self.vn_name, self.project_obj)
461 else:
462 self._create_vn_orch()
463 if not self.obj:
464 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>)
302 try:
303 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
304 project_id=self.project_id)
305 if not self.obj:
306 self.obj = self.orchestrator.create_vn(
project_id undefined
self = <vn_test.VNFixture object>
self.project_id = '9c50d1e8-f684-4fbd-8352-d6de5215efa7'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-92310669', option='orch', **kwargs={'project_id': '9c50d1e8-f684-4fbd-8352-d6de5215efa7'})
204
205 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
206 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
207
208 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-92310669'
kwargs = {'project_id': '9c50d1e8-f684-4fbd-8352-d6de5215efa7'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-92310669', project_id='9c50d1e8-f684-4fbd-8352-d6de5215efa7', router_external=True)
278 query_dict['name'] = vn_name
279 try:
280 net_rsp = self.obj.list_networks(**query_dict)['networks']
281 if net_rsp:
282 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-92310669', 'router:external': True, 'tenant_id': '9c50d1e8-f684-4fbd-8352-d6de5215efa7'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn-92310669', 'router:external': True, 'tenant_id': '9c50d1e8-f684-4fbd-8352-d6de5215efa7'})
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
820 def show_network(self, network, **_params):
_params = {'name': 'ctest-vn-92310669', 'router:external': True, 'tenant_id': '9c50d1e8-f684-4fbd-8352-d6de5215efa7'}

/usr/local/lib/python3.6/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-92310669', 'router:external': True, 'tenant_id': '9c50d1e8-f684-4fbd-8352-d6de5215efa7'})
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-92310669', 'router:external': True, 'tenant_id': '9c50d1e8-f684-4fbd-8352-d6de5215efa7'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn-92310669', 'router:external': True, 'tenant_id': '9c50d1e8-f684-4fbd-8352-d6de5215efa7'})
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-92310669', 'router:external': True, 'tenant_id': '9c50d1e8-f684-4fbd-8352-d6de5215efa7'}

/usr/local/lib/python3.6/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-92310669', 'router:external': True, 'tenant_id': '9c50d1e8-f684-4fbd-8352-d6de5215efa7'})
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
356 def post(self, action, body=None, headers=None, params=None):
headers = None
params = {'name': 'ctest-vn-92310669', 'router:external': True, 'tenant_id': '9c50d1e8-f684-4fbd-8352-d6de5215efa7'}

/usr/local/lib/python3.6/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-92310669', 'router:external': True, 'tenant_id': '9c50d1e8-f684-4fbd-8352-d6de5215efa7'})
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
333 # Exception has already been logged by do_request()
headers = None
params = {'name': 'ctest-vn-92310669', 'router:external': True, 'tenant_id': '9c50d1e8-f684-4fbd-8352-d6de5215efa7'}

/usr/local/lib/python3.6/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=9c50d1e8-f684-4fbd-8352...fa7&router%3Aexternal=True&name=ctest-vn-92310669', body=None, headers=None, params={'name': b'ctest-vn-92310669', 'router:external': True, 'tenant_id': b'9c50d1e8-f684-4fbd-8352-d6de5215efa7'})
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
284 status_code = resp.status_code
headers = None

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=9c50d1e8-f684-4fbd-8352...fa7&router%3Aexternal=True&name=ctest-vn-92310669', 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=9c50d1e8-f684-4fbd-8352...fa7&router%3Aexternal=True&name=ctest-vn-92310669'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=9c50d1e8-f684-4fbd-8352...fa7&router%3Aexternal=True&name=ctest-vn-92310669', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzguGlEVZRcuxfEnq-tp5ZHOnOOM1io7rE_i77Xe_...a2PpBPPX9iwNkF9TsrmcP4Dd2Hlil7Sb8ae1z8OAq4kOqR97k'}, '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=9c50d1e8-f684-4fbd-8352...fa7&router%3Aexternal=True&name=ctest-vn-92310669', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzguGlEVZRcuxfEnq-tp5ZHOnOOM1io7rE_i77Xe_...a2PpBPPX9iwNkF9TsrmcP4Dd2Hlil7Sb8ae1z8OAq4kOqR97k'}, 'raise_exc': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=9c50d1e8-f684-4fbd-8352...fa7&router%3Aexternal=True&name=ctest-vn-92310669', 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': 'gAAAAABmzguGlEVZRcuxfEnq-tp5ZHOnOOM1io7rE_i77Xe_...a2PpBPPX9iwNkF9TsrmcP4Dd2Hlil7Sb8ae1z8OAq4kOqR97k'}, '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=9c50d1e8-f684-4fbd-8352...fa7&router%3Aexternal=True&name=ctest-vn-92310669'
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': 'gAAAAABmzguGlEVZRcuxfEnq-tp5ZHOnOOM1io7rE_i77Xe_...a2PpBPPX9iwNkF9TsrmcP4Dd2Hlil7Sb8ae1z8OAq4kOqR97k'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=9c...fa7&router%3Aexternal=True&name=ctest-vn-92310669', 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': 'gAAAAABmzguGlEVZRcuxfEnq-tp5ZHOnOOM1io7rE_i77Xe_...a2PpBPPX9iwNkF9TsrmcP4Dd2Hlil7Sb8ae1z8OAq4kOqR97k'}, '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 0x7f9c74bc7748>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzguGlEVZRcuxfEnq-tp5ZHOnOOM1io7rE_i77Xe_...a2PpBPPX9iwNkF9TsrmcP4Dd2Hlil7Sb8ae1z8OAq4kOqR97k'}, 'verify': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=9c...fa7&router%3Aexternal=True&name=ctest-vn-92310669', 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': 'gAAAAABmzguGlEVZRcuxfEnq-tp5ZHOnOOM1io7rE_i77Xe_...a2PpBPPX9iwNkF9TsrmcP4Dd2Hlil7Sb8ae1z8OAq4kOqR97k'}, '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....ew connection: [Errno 111] Connection refused',))"
ConnectFailure: Unable to establish connection to http://10.0.0.48:9696/v2.0/networks?tenant_id=9c50d1e8-f684-4fbd-8352-d6de5215efa7&router%3Aexternal=True&name=ctest-vn-92310669: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=9c50d1e8-f684-4fbd-8352-d6de5215efa7&router%3Aexternal=True&name=ctest-vn-92310669 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c749a9ba8>: Failed to establish a new connection: [Errno 111] Connection refused',))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo...nnection: [Errno 111] Connection refused',))",),)
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....ew 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...onnection: [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....ew connection: [Errno 111] Connection refused',))",)
message = "Unable to establish connection to http://10.0.0....ew 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.6/site-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.6/site-packages/gevent/_socket3.py", line 400, in connect
raise error(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.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib64/python3.6/http/client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 974, in send
self.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9c749a9ba8>: 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.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=9c50d1e8-f684-4fbd-8352-d6de5215efa7&router%3Aexternal=True&name=ctest-vn-92310669 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c749a9ba8>: 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.6/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=9c50d1e8-f684-4fbd-8352-d6de5215efa7&router%3Aexternal=True&name=ctest-vn-92310669 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c749a9ba8>: 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 81, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/vm_regression/test_vm.py", line 2900, in test_vm_file_trf_scp_tests
vn_fixture = self.create_vn(orch=self.orchestrator)
File "/contrail-test/common/base.py", line 204, in create_vn
**kwargs)
File "/contrail-test/common/base.py", line 197, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 449, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 462, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 304, in _create_vn_orch
project_id=self.project_id)
File "/contrail-test/fixtures/openstack.py", line 206, 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 280, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 818, in list_networks
**_params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 354, in get
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 282, in do_request
headers=headers)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.6/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.48:9696/v2.0/networks?tenant_id=9c50d1e8-f684-4fbd-8352-d6de5215efa7&router%3Aexternal=True&name=ctest-vn-92310669: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=9c50d1e8-f684-4fbd-8352-d6de5215efa7&router%3Aexternal=True&name=ctest-vn-92310669 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c749a9ba8>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.700 Log File
TestBasicVMVN.test_generic_link_local_service[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity,dev_sanity_dpdk,sanity,suite1,vcenter,vcenter_compute]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 177, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.6.8: /usr/bin/python3
Tue Aug 27 17:23:23 2024

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...uite1,vcenter,vcenter_compute] id=0x7f9c769c8780>, *args=(), **kwargs={})
79 log.info('Initial checks done. Running the testcase now')
80 log.info('')
81 result = function(self, *args, **kwargs)
82 if self.inputs.upgrade:
83 pid = os.getpid()
result = None
function = <function TestBasicVMVN.test_generic_link_local_service>
self = <scripts.vm_regression.test_vm_basic.TestBasicVM...uite1,vcenter,vcenter_compute] id=0x7f9c769c8780>
args = ()
kwargs = {}

/contrail-test/tcutils/util.py in wrapper(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...uite1,vcenter,vcenter_compute] id=0x7f9c769c8780>, *func_args=(), **func_kwargs={})
1165 raise testtools.TestCase.skipException(msg)
1166
1167 return f(self, *func_args, **func_kwargs)
1168 return wrapper
1169 return decorator
f = <function TestBasicVMVN.test_generic_link_local_service>
self = <scripts.vm_regression.test_vm_basic.TestBasicVM...uite1,vcenter,vcenter_compute] id=0x7f9c769c8780>
func_args = ()
func_kwargs = {}

/contrail-test/scripts/vm_regression/test_vm_basic.py in test_generic_link_local_service(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...uite1,vcenter,vcenter_compute] id=0x7f9c769c8780>)
291 VNFixture(
292 project_name=self.inputs.project_name, connections=self.connections,
293 vn_name=vn_name, inputs=self.inputs, subnets=vn_subnets))
294 vn_obj = vn_fixture.obj
295 vm1_fixture = self.create_vm(vn_ids=[vn_fixture.uuid], image_name='cirros')
vn_name = 'ctest-vn2_metadata-56473315'
inputs undefined
self = <scripts.vm_regression.test_vm_basic.TestBasicVM...uite1,vcenter,vcenter_compute] id=0x7f9c769c8780>
self.inputs = <common.contrail_test_init.ContrailTestInit object>
subnets undefined
vn_subnets = ['11.1.1.0/24']

/usr/local/lib/python3.6/site-packages/testtools/testcase.py in useFixture(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...uite1,vcenter,vcenter_compute] id=0x7f9c769c8780>, 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...connection: [Errno 111] Connection refused',))",), <traceback object>)

/usr/local/lib/python3.6/site-packages/testtools/_compat3x.py in reraise(exc_class=<class 'keystoneauth1.exceptions.connection.ConnectFailure'>, exc_obj=ConnectFailure("Unable to establish connection t...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...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.6/site-packages/testtools/testcase.py in useFixture(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...uite1,vcenter,vcenter_compute] id=0x7f9c769c8780>, 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>)
447 def setUp(self):
448 super(VNFixture, self).setUp()
449 self.create()
450
451 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>)
460 self._create_vn_api(self.vn_name, self.project_obj)
461 else:
462 self._create_vn_orch()
463 if not self.obj:
464 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>)
302 try:
303 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
304 project_id=self.project_id)
305 if not self.obj:
306 self.obj = self.orchestrator.create_vn(
project_id undefined
self = <vn_test.VNFixture object>
self.project_id = '002335b3-f346-404d-a86c-d67dec80faf4'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn2_metadata-56473315', option='orch', **kwargs={'project_id': '002335b3-f346-404d-a86c-d67dec80faf4'})
204
205 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
206 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
207
208 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-56473315'
kwargs = {'project_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn2_metadata-56473315', project_id='002335b3-f346-404d-a86c-d67dec80faf4', router_external=True)
278 query_dict['name'] = vn_name
279 try:
280 net_rsp = self.obj.list_networks(**query_dict)['networks']
281 if net_rsp:
282 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-56473315', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/usr/local/lib/python3.6/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-56473315', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'})
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
820 def show_network(self, network, **_params):
_params = {'name': 'ctest-vn2_metadata-56473315', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/usr/local/lib/python3.6/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-56473315', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'})
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-56473315', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/usr/local/lib/python3.6/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-56473315', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'})
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-56473315', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/usr/local/lib/python3.6/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-56473315', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'})
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
356 def post(self, action, body=None, headers=None, params=None):
headers = None
params = {'name': 'ctest-vn2_metadata-56473315', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/usr/local/lib/python3.6/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-56473315', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'})
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
333 # Exception has already been logged by do_request()
headers = None
params = {'name': 'ctest-vn2_metadata-56473315', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/usr/local/lib/python3.6/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=002335b3-f346-404d-a86c...%3Aexternal=True&name=ctest-vn2_metadata-56473315', body=None, headers=None, params={'name': b'ctest-vn2_metadata-56473315', 'router:external': True, 'tenant_id': b'002335b3-f346-404d-a86c-d67dec80faf4'})
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
284 status_code = resp.status_code
headers = None

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=002335b3-f346-404d-a86c...%3Aexternal=True&name=ctest-vn2_metadata-56473315', 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=002335b3-f346-404d-a86c...%3Aexternal=True&name=ctest-vn2_metadata-56473315'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=002335b3-f346-404d-a86c...%3Aexternal=True&name=ctest-vn2_metadata-56473315', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, '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=002335b3-f346-404d-a86c...%3Aexternal=True&name=ctest-vn2_metadata-56473315', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, 'raise_exc': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=002335b3-f346-404d-a86c...%3Aexternal=True&name=ctest-vn2_metadata-56473315', 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': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, '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=002335b3-f346-404d-a86c...%3Aexternal=True&name=ctest-vn2_metadata-56473315'
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': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=00...%3Aexternal=True&name=ctest-vn2_metadata-56473315', 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': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, '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 0x7f9c7486ec88>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, 'verify': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=00...%3Aexternal=True&name=ctest-vn2_metadata-56473315', 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': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, '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....ew connection: [Errno 111] Connection refused',))"
ConnectFailure: Unable to establish connection to http://10.0.0.48:9696/v2.0/networks?tenant_id=002335b3-f346-404d-a86c-d67dec80faf4&router%3Aexternal=True&name=ctest-vn2_metadata-56473315: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=002335b3-f346-404d-a86c-d67dec80faf4&router%3Aexternal=True&name=ctest-vn2_metadata-56473315 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74a2db00>: Failed to establish a new connection: [Errno 111] Connection refused',))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo...nnection: [Errno 111] Connection refused',))",),)
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....ew 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...onnection: [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....ew connection: [Errno 111] Connection refused',))",)
message = "Unable to establish connection to http://10.0.0....ew 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.6/site-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.6/site-packages/gevent/_socket3.py", line 400, in connect
raise error(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.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib64/python3.6/http/client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 974, in send
self.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9c74a2db00>: 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.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=002335b3-f346-404d-a86c-d67dec80faf4&router%3Aexternal=True&name=ctest-vn2_metadata-56473315 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74a2db00>: 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.6/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=002335b3-f346-404d-a86c-d67dec80faf4&router%3Aexternal=True&name=ctest-vn2_metadata-56473315 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74a2db00>: 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 81, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/tcutils/util.py", line 1167, in wrapper
return f(self, *func_args, **func_kwargs)
File "/contrail-test/scripts/vm_regression/test_vm_basic.py", line 293, in test_generic_link_local_service
vn_name=vn_name, inputs=self.inputs, subnets=vn_subnets))
File "/usr/local/lib/python3.6/site-packages/testtools/testcase.py", line 756, in useFixture
reraise(*exc_info)
File "/usr/local/lib/python3.6/site-packages/testtools/_compat3x.py", line 16, in reraise
raise exc_obj.with_traceback(exc_tb)
File "/usr/local/lib/python3.6/site-packages/testtools/testcase.py", line 731, in useFixture
fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 449, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 462, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 304, in _create_vn_orch
project_id=self.project_id)
File "/contrail-test/fixtures/openstack.py", line 206, 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 280, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 818, in list_networks
**_params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 354, in get
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 282, in do_request
headers=headers)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.6/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.48:9696/v2.0/networks?tenant_id=002335b3-f346-404d-a86c-d67dec80faf4&router%3Aexternal=True&name=ctest-vn2_metadata-56473315: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=002335b3-f346-404d-a86c-d67dec80faf4&router%3Aexternal=True&name=ctest-vn2_metadata-56473315 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74a2db00>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.726 Log File
TestBasicVMVN.test_ping_within_vn_two_vms_two_different_subnets[ci_contrail_go_kolla_ocata_sanity,ci_sanity,sanity,suite1,vcenter_compute]FailureDetails

Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 177, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: ConnectFailure
Python 3.6.8: /usr/bin/python3
Tue Aug 27 17:23:24 2024

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...sanity,suite1,vcenter_compute] id=0x7f9c769c8940>, *args=(), **kwargs={})
79 log.info('Initial checks done. Running the testcase now')
80 log.info('')
81 result = function(self, *args, **kwargs)
82 if self.inputs.upgrade:
83 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...sanity,suite1,vcenter_compute] id=0x7f9c769c8940>
args = ()
kwargs = {}

/contrail-test/tcutils/util.py in wrapper(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...sanity,suite1,vcenter_compute] id=0x7f9c769c8940>, *func_args=(), **func_kwargs={})
1165 raise testtools.TestCase.skipException(msg)
1166
1167 return f(self, *func_args, **func_kwargs)
1168 return wrapper
1169 return decorator
f = <function TestBasicVMVN.test_ping_within_vn_two_vms_two_different_subnets>
self = <scripts.vm_regression.test_vm_basic.TestBasicVM...sanity,suite1,vcenter_compute] id=0x7f9c769c8940>
func_args = ()
func_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...sanity,suite1,vcenter_compute] id=0x7f9c769c8940>)
142 ipam_obj = self.create_ipam()
143 vn1_fixture = self.create_vn(vn_subnets=vn1_subnets,
144 ipam_fq_name=ipam_obj.fq_name)
145
146 subnet_objects = vn1_fixture.get_subnets()
ipam_fq_name undefined
ipam_obj = <ipam_test.IPAMFixture object>
ipam_obj.fq_name = ['default-domain', 'ctest-TestBasicVMVN-82361136', 'ctest-ipam-35471071']

/contrail-test/common/base.py in create_vn(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...sanity,suite1,vcenter_compute] id=0x7f9c769c8940>, 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-82361136', 'ctest-ipam-35471071']})
202 vn_fixture = self.create_only_vn(vn_name=vn_name,
203 vn_subnets=vn_subnets,
204 **kwargs)
205 if cleanup:
206 self.addCleanup(vn_fixture.cleanUp)
kwargs = {'ipam_fq_name': ['default-domain', 'ctest-TestBasicVMVN-82361136', 'ctest-ipam-35471071']}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.vm_regression.test_vm_basic.TestBasicVMVN'>, vn_name='ctest-vn-36533309', vn_subnets=['31.1.1.0/29', '31.1.2.0/29'], **kwargs={'ipam_fq_name': ['default-domain', 'ctest-TestBasicVMVN-82361136', 'ctest-ipam-35471071']})
195 subnets=vn_subnets,
196 **kwargs)
197 vn_fixture.setUp()
198 return vn_fixture
199 # 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>)
447 def setUp(self):
448 super(VNFixture, self).setUp()
449 self.create()
450
451 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>)
460 self._create_vn_api(self.vn_name, self.project_obj)
461 else:
462 self._create_vn_orch()
463 if not self.obj:
464 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>)
302 try:
303 self.obj = self.orchestrator.get_vn_obj_if_present(self.vn_name,
304 project_id=self.project_id)
305 if not self.obj:
306 self.obj = self.orchestrator.create_vn(
project_id undefined
self = <vn_test.VNFixture object>
self.project_id = '002335b3-f346-404d-a86c-d67dec80faf4'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-36533309', option='orch', **kwargs={'project_id': '002335b3-f346-404d-a86c-d67dec80faf4'})
204
205 def get_vn_obj_if_present(self, vn_name, option='orch', **kwargs):
206 return self.quantum_h.get_vn_obj_if_present(vn_name, **kwargs)
207
208 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-36533309'
kwargs = {'project_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-36533309', project_id='002335b3-f346-404d-a86c-d67dec80faf4', router_external=True)
278 query_dict['name'] = vn_name
279 try:
280 net_rsp = self.obj.list_networks(**query_dict)['networks']
281 if net_rsp:
282 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-36533309', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in list_networks(self=<neutronclient.v2_0.client.Client object>, retrieve_all=True, **_params={'name': 'ctest-vn-36533309', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'})
816 # Pass filters in "params" argument to do_request
817 return self.list('networks', self.networks_path, retrieve_all,
818 **_params)
819
820 def show_network(self, network, **_params):
_params = {'name': 'ctest-vn-36533309', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/usr/local/lib/python3.6/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-36533309', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'})
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-36533309', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py in _pagination(self=<neutronclient.v2_0.client.Client object>, collection='networks', path='/networks', **params={'name': 'ctest-vn-36533309', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'})
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-36533309', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/usr/local/lib/python3.6/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-36533309', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'})
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
356 def post(self, action, body=None, headers=None, params=None):
headers = None
params = {'name': 'ctest-vn-36533309', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/usr/local/lib/python3.6/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-36533309', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'})
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
333 # Exception has already been logged by do_request()
headers = None
params = {'name': 'ctest-vn-36533309', 'router:external': True, 'tenant_id': '002335b3-f346-404d-a86c-d67dec80faf4'}

/usr/local/lib/python3.6/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=002335b3-f346-404d-a86c...af4&router%3Aexternal=True&name=ctest-vn-36533309', body=None, headers=None, params={'name': b'ctest-vn-36533309', 'router:external': True, 'tenant_id': b'002335b3-f346-404d-a86c-d67dec80faf4'})
280
281 resp, replybody = self.httpclient.do_request(action, method, body=body,
282 headers=headers)
283
284 status_code = resp.status_code
headers = None

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in do_request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=002335b3-f346-404d-a86c...af4&router%3Aexternal=True&name=ctest-vn-36533309', 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=002335b3-f346-404d-a86c...af4&router%3Aexternal=True&name=ctest-vn-36533309'
method = 'GET'
kwargs = {'authenticated': True, 'body': None, 'headers': None}

/usr/local/lib/python3.6/site-packages/neutronclient/client.py in request(self=<neutronclient.client.SessionClient object>, *args=('/v2.0/networks?tenant_id=002335b3-f346-404d-a86c...af4&router%3Aexternal=True&name=ctest-vn-36533309', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, '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=002335b3-f346-404d-a86c...af4&router%3Aexternal=True&name=ctest-vn-36533309', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, 'raise_exc': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py in request(self=<neutronclient.client.SessionClient object>, url='/v2.0/networks?tenant_id=002335b3-f346-404d-a86c...af4&router%3Aexternal=True&name=ctest-vn-36533309', 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': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, '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=002335b3-f346-404d-a86c...af4&router%3Aexternal=True&name=ctest-vn-36533309'
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': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, 'raise_exc': False, 'rate_semaphore': <keystoneauth1._fair_semaphore.FairSemaphore object>, 'user_agent': 'python-neutronclient'}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=00...af4&router%3Aexternal=True&name=ctest-vn-36533309', 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': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, '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 0x7f9c749d6be0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, 'verify': False}

/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py in _send_request(self=<keystoneauth1.session.Session object>, url='http://10.0.0.48:9696/v2.0/networks?tenant_id=00...af4&router%3Aexternal=True&name=ctest-vn-36533309', 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': 'gAAAAABmzguKyddgwes6NpFRKz2x5AfvnVrKoCUm9N7SNmpw...SMwJClXU5fgIPOmfGB9ifcrHlprzItXE3Xf38tSZ_AICqvTeQ'}, '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....ew connection: [Errno 111] Connection refused',))"
ConnectFailure: Unable to establish connection to http://10.0.0.48:9696/v2.0/networks?tenant_id=002335b3-f346-404d-a86c-d67dec80faf4&router%3Aexternal=True&name=ctest-vn-36533309: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=002335b3-f346-404d-a86c-d67dec80faf4&router%3Aexternal=True&name=ctest-vn-36533309 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74920dd8>: Failed to establish a new connection: [Errno 111] Connection refused',))
__cause__ = None
__class__ = <class 'keystoneauth1.exceptions.connection.ConnectFailure'>
__context__ = ConnectionError(MaxRetryError("HTTPConnectionPoo...nnection: [Errno 111] Connection refused',))",),)
__delattr__ = <method-wrapper '__delattr__' of ConnectFailure object>
__dict__ = {'message': "Unable to establish connection to http://10.0.0....ew 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...onnection: [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....ew connection: [Errno 111] Connection refused',))",)
message = "Unable to establish connection to http://10.0.0....ew 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.6/site-packages/urllib3/connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
File "/usr/local/lib64/python3.6/site-packages/gevent/_socket3.py", line 400, in connect
raise error(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.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib64/python3.6/http/client.py", line 1254, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1300, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1249, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib64/python3.6/http/client.py", line 1036, in _send_output
self.send(msg)
File "/usr/lib64/python3.6/http/client.py", line 974, in send
self.connect()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 200, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.6/site-packages/urllib3/connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f9c74920dd8>: 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.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=002335b3-f346-404d-a86c-d67dec80faf4&router%3Aexternal=True&name=ctest-vn-36533309 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74920dd8>: 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.6/site-packages/keystoneauth1/session.py", line 1004, in _send_request
resp = self.session.request(method, url, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=002335b3-f346-404d-a86c-d67dec80faf4&router%3Aexternal=True&name=ctest-vn-36533309 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74920dd8>: 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 81, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/tcutils/util.py", line 1167, in wrapper
return f(self, *func_args, **func_kwargs)
File "/contrail-test/scripts/vm_regression/test_vm_basic.py", line 144, in test_ping_within_vn_two_vms_two_different_subnets
ipam_fq_name=ipam_obj.fq_name)
File "/contrail-test/common/base.py", line 204, in create_vn
**kwargs)
File "/contrail-test/common/base.py", line 197, in create_only_vn
vn_fixture.setUp()
File "/contrail-test/fixtures/vn_test.py", line 449, in setUp
self.create()
File "/contrail-test/fixtures/vn_test.py", line 462, in create
self._create_vn_orch()
File "/contrail-test/fixtures/vn_test.py", line 304, in _create_vn_orch
project_id=self.project_id)
File "/contrail-test/fixtures/openstack.py", line 206, 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 280, in get_vn_obj_if_present
net_rsp = self.obj.list_networks(**query_dict)['networks']
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 818, in list_networks
**_params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 369, in list
for r in self._pagination(collection, path, **params):
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 384, in _pagination
res = self.get(path, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 354, in get
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 282, in do_request
headers=headers)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 340, in do_request
return self.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/neutronclient/client.py", line 328, in request
resp = super(SessionClient, self).request(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/local/lib/python3.6/site-packages/keystoneauth1/session.py", line 913, in request
resp = send(**kwargs)
File "/usr/local/lib/python3.6/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.48:9696/v2.0/networks?tenant_id=002335b3-f346-404d-a86c-d67dec80faf4&router%3Aexternal=True&name=ctest-vn-36533309: HTTPConnectionPool(host='10.0.0.48', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=002335b3-f346-404d-a86c-d67dec80faf4&router%3Aexternal=True&name=ctest-vn-36533309 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9c74920dd8>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.763 Log File
Properties »

Back to top