Test Results

Designed for use with JUnit and Ant.

Properties

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


Summary

TestsFailuresErrorsSkippedSuccess rateTime
16100323.08%70.759
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)
16010370.759

Package

NameTestsErrorsFailuresSkippedTime(s)
scripts12010057.499
scripts400313.260
Back to top


TestCase scripts

NameStatusTypeTime(s)LogFile
AnalyticsTestSanity.test_contrail_status[cb_sanity,ci_sanity,dev_sanity_dpdk,sanity,vcenter,vcenter_compute]Success0.714
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
Wed Aug 28 12:00:56 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=0x7fbad13de9e8>, *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=0x7fbad13de9e8>
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=0x7fbad13de9e8>)
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-44764349'
subnets undefined
vn_subnets = ['17.166.98.192/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=0x7fbad13de9e8>, 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=0x7fbad13de9e8>, 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 = 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn22-44764349', option='orch', **kwargs={'project_id': 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'})
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-44764349'
kwargs = {'project_id': 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn22-44764349', project_id='c133dcef-f383-40e0-82b8-e8f3f517ddb3', 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-44764349', 'router:external': True, 'tenant_id': 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'}

/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-44764349', 'router:external': True, 'tenant_id': 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'})
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-44764349', 'router:external': True, 'tenant_id': 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'}

/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-44764349', 'router:external': True, 'tenant_id': 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'})
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-44764349', 'router:external': True, 'tenant_id': 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'}

/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-44764349', 'router:external': True, 'tenant_id': 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'})
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-44764349', 'router:external': True, 'tenant_id': 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'}

/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-44764349', 'router:external': True, 'tenant_id': 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'})
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-44764349', 'router:external': True, 'tenant_id': 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'}

/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-44764349', 'router:external': True, 'tenant_id': 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'})
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-44764349', 'router:external': True, 'tenant_id': 'c133dcef-f383-40e0-82b8-e8f3f517ddb3'}

/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=c133dcef-f383-40e0-82b8...3&router%3Aexternal=True&name=ctest-vn22-44764349', body=None, headers=None, params={'name': b'ctest-vn22-44764349', 'router:external': True, 'tenant_id': b'c133dcef-f383-40e0-82b8-e8f3f517ddb3'})
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=c133dcef-f383-40e0-82b8...3&router%3Aexternal=True&name=ctest-vn22-44764349', 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=c133dcef-f383-40e0-82b8...3&router%3Aexternal=True&name=ctest-vn22-44764349'
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=c133dcef-f383-40e0-82b8...3&router%3Aexternal=True&name=ctest-vn22-44764349', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxF3EiZkMjPRA1U5_sC5bOLP0TzcQIMcH4yk5G6u...HEYavl-eRp3j5nvnb02TWToQ2DVFVG7DVjnlenY16P9xhIQGc'}, '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=c133dcef-f383-40e0-82b8...3&router%3Aexternal=True&name=ctest-vn22-44764349', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxF3EiZkMjPRA1U5_sC5bOLP0TzcQIMcH4yk5G6u...HEYavl-eRp3j5nvnb02TWToQ2DVFVG7DVjnlenY16P9xhIQGc'}, '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=c133dcef-f383-40e0-82b8...3&router%3Aexternal=True&name=ctest-vn22-44764349', 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': 'gAAAAABmzxF3EiZkMjPRA1U5_sC5bOLP0TzcQIMcH4yk5G6u...HEYavl-eRp3j5nvnb02TWToQ2DVFVG7DVjnlenY16P9xhIQGc'}, '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=c133dcef-f383-40e0-82b8...3&router%3Aexternal=True&name=ctest-vn22-44764349'
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': 'gAAAAABmzxF3EiZkMjPRA1U5_sC5bOLP0TzcQIMcH4yk5G6u...HEYavl-eRp3j5nvnb02TWToQ2DVFVG7DVjnlenY16P9xhIQGc'}, '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.31:9696/v2.0/networks?tenant_id=c1...3&router%3Aexternal=True&name=ctest-vn22-44764349', 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': 'gAAAAABmzxF3EiZkMjPRA1U5_sC5bOLP0TzcQIMcH4yk5G6u...HEYavl-eRp3j5nvnb02TWToQ2DVFVG7DVjnlenY16P9xhIQGc'}, '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 0x7fbaccd98470>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxF3EiZkMjPRA1U5_sC5bOLP0TzcQIMcH4yk5G6u...HEYavl-eRp3j5nvnb02TWToQ2DVFVG7DVjnlenY16P9xhIQGc'}, '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.31:9696/v2.0/networks?tenant_id=c1...3&router%3Aexternal=True&name=ctest-vn22-44764349', 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': 'gAAAAABmzxF3EiZkMjPRA1U5_sC5bOLP0TzcQIMcH4yk5G6u...HEYavl-eRp3j5nvnb02TWToQ2DVFVG7DVjnlenY16P9xhIQGc'}, '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.31:9696/v2.0/networks?tenant_id=c133dcef-f383-40e0-82b8-e8f3f517ddb3&router%3Aexternal=True&name=ctest-vn22-44764349: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=c133dcef-f383-40e0-82b8-e8f3f517ddb3&router%3Aexternal=True&name=ctest-vn22-44764349 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacce6f7b8>: 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 0x7fbacce6f7b8>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=c133dcef-f383-40e0-82b8-e8f3f517ddb3&router%3Aexternal=True&name=ctest-vn22-44764349 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacce6f7b8>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=c133dcef-f383-40e0-82b8-e8f3f517ddb3&router%3Aexternal=True&name=ctest-vn22-44764349 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacce6f7b8>: 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.31:9696/v2.0/networks?tenant_id=c133dcef-f383-40e0-82b8-e8f3f517ddb3&router%3Aexternal=True&name=ctest-vn22-44764349: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=c133dcef-f383-40e0-82b8-e8f3f517ddb3&router%3Aexternal=True&name=ctest-vn22-44764349 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacce6f7b8>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.774 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
Wed Aug 28 12:01: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.floatingip.test_floatingip_basic.Floati...er,vcenter_compute,vrouter_gw] id=0x7fbad1268b38>, *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=0x7fbad1268b38>
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=0x7fbad1268b38>)
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 = ['40.214.229.128/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=0x7fbad1268b38>, 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=0x7fbad1268b38>, 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 = '2c1e42be-e577-44b6-b458-d831f52b9189'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-fvn-60833054', option='orch', **kwargs={'project_id': '2c1e42be-e577-44b6-b458-d831f52b9189'})
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-60833054'
kwargs = {'project_id': '2c1e42be-e577-44b6-b458-d831f52b9189'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-fvn-60833054', project_id='2c1e42be-e577-44b6-b458-d831f52b9189', 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-60833054', 'router:external': True, 'tenant_id': '2c1e42be-e577-44b6-b458-d831f52b9189'}

/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-60833054', 'router:external': True, 'tenant_id': '2c1e42be-e577-44b6-b458-d831f52b9189'})
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-60833054', 'router:external': True, 'tenant_id': '2c1e42be-e577-44b6-b458-d831f52b9189'}

/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-60833054', 'router:external': True, 'tenant_id': '2c1e42be-e577-44b6-b458-d831f52b9189'})
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-60833054', 'router:external': True, 'tenant_id': '2c1e42be-e577-44b6-b458-d831f52b9189'}

/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-60833054', 'router:external': True, 'tenant_id': '2c1e42be-e577-44b6-b458-d831f52b9189'})
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-60833054', 'router:external': True, 'tenant_id': '2c1e42be-e577-44b6-b458-d831f52b9189'}

/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-60833054', 'router:external': True, 'tenant_id': '2c1e42be-e577-44b6-b458-d831f52b9189'})
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-60833054', 'router:external': True, 'tenant_id': '2c1e42be-e577-44b6-b458-d831f52b9189'}

/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-60833054', 'router:external': True, 'tenant_id': '2c1e42be-e577-44b6-b458-d831f52b9189'})
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-60833054', 'router:external': True, 'tenant_id': '2c1e42be-e577-44b6-b458-d831f52b9189'}

/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=2c1e42be-e577-44b6-b458...89&router%3Aexternal=True&name=ctest-fvn-60833054', body=None, headers=None, params={'name': b'ctest-fvn-60833054', 'router:external': True, 'tenant_id': b'2c1e42be-e577-44b6-b458-d831f52b9189'})
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=2c1e42be-e577-44b6-b458...89&router%3Aexternal=True&name=ctest-fvn-60833054', 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=2c1e42be-e577-44b6-b458...89&router%3Aexternal=True&name=ctest-fvn-60833054'
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=2c1e42be-e577-44b6-b458...89&router%3Aexternal=True&name=ctest-fvn-60833054', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxF8fVthhgkqUOIzeHaf_L2ZQ4T6hFyt6GRFAobH...rBlZvXt2nQ6Ak3mKOJu25U7u-0uSt56soYngRqgHV7-qaJTAk'}, '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=2c1e42be-e577-44b6-b458...89&router%3Aexternal=True&name=ctest-fvn-60833054', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxF8fVthhgkqUOIzeHaf_L2ZQ4T6hFyt6GRFAobH...rBlZvXt2nQ6Ak3mKOJu25U7u-0uSt56soYngRqgHV7-qaJTAk'}, '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=2c1e42be-e577-44b6-b458...89&router%3Aexternal=True&name=ctest-fvn-60833054', 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': 'gAAAAABmzxF8fVthhgkqUOIzeHaf_L2ZQ4T6hFyt6GRFAobH...rBlZvXt2nQ6Ak3mKOJu25U7u-0uSt56soYngRqgHV7-qaJTAk'}, '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=2c1e42be-e577-44b6-b458...89&router%3Aexternal=True&name=ctest-fvn-60833054'
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': 'gAAAAABmzxF8fVthhgkqUOIzeHaf_L2ZQ4T6hFyt6GRFAobH...rBlZvXt2nQ6Ak3mKOJu25U7u-0uSt56soYngRqgHV7-qaJTAk'}, '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.31:9696/v2.0/networks?tenant_id=2c...89&router%3Aexternal=True&name=ctest-fvn-60833054', 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': 'gAAAAABmzxF8fVthhgkqUOIzeHaf_L2ZQ4T6hFyt6GRFAobH...rBlZvXt2nQ6Ak3mKOJu25U7u-0uSt56soYngRqgHV7-qaJTAk'}, '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 0x7fbaccaec940>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxF8fVthhgkqUOIzeHaf_L2ZQ4T6hFyt6GRFAobH...rBlZvXt2nQ6Ak3mKOJu25U7u-0uSt56soYngRqgHV7-qaJTAk'}, '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.31:9696/v2.0/networks?tenant_id=2c...89&router%3Aexternal=True&name=ctest-fvn-60833054', 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': 'gAAAAABmzxF8fVthhgkqUOIzeHaf_L2ZQ4T6hFyt6GRFAobH...rBlZvXt2nQ6Ak3mKOJu25U7u-0uSt56soYngRqgHV7-qaJTAk'}, '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.31:9696/v2.0/networks?tenant_id=2c1e42be-e577-44b6-b458-d831f52b9189&router%3Aexternal=True&name=ctest-fvn-60833054: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=2c1e42be-e577-44b6-b458-d831f52b9189&router%3Aexternal=True&name=ctest-fvn-60833054 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbaccab7a58>: 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 0x7fbaccab7a58>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=2c1e42be-e577-44b6-b458-d831f52b9189&router%3Aexternal=True&name=ctest-fvn-60833054 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbaccab7a58>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=2c1e42be-e577-44b6-b458-d831f52b9189&router%3Aexternal=True&name=ctest-fvn-60833054 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbaccab7a58>: 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.31:9696/v2.0/networks?tenant_id=2c1e42be-e577-44b6-b458-d831f52b9189&router%3Aexternal=True&name=ctest-fvn-60833054: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=2c1e42be-e577-44b6-b458-d831f52b9189&router%3Aexternal=True&name=ctest-fvn-60833054 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbaccab7a58>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.862 Log File
TestHeat.test_heat_stacks_list[cb_sanity,ci_contrail_go_kolla_ocata_sanity,ci_sanity]Success0.478
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
Wed Aug 28 12:01:13 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=0x7fbace827908>, *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=0x7fbace827908>
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=0x7fbace827908>)
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=0x7fbace827908>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...ev_sanity_dpdk,sanity,suite1] id=0x7fbace827908>>

/contrail-test/common/base.py in create_vn(self=<scripts.neutron.test_routers_basic.TestRoutersB...dev_sanity_dpdk,sanity,suite1] id=0x7fbace827908>, 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-12484285', 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 = 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-12484285', option='orch', **kwargs={'project_id': 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'})
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-12484285'
kwargs = {'project_id': 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-12484285', project_id='c2fc0cd5-bc79-4b0e-8706-530b2351ac44', 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-12484285', 'router:external': True, 'tenant_id': 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'}

/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-12484285', 'router:external': True, 'tenant_id': 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'})
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-12484285', 'router:external': True, 'tenant_id': 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'}

/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-12484285', 'router:external': True, 'tenant_id': 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'})
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-12484285', 'router:external': True, 'tenant_id': 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'}

/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-12484285', 'router:external': True, 'tenant_id': 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'})
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-12484285', 'router:external': True, 'tenant_id': 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'}

/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-12484285', 'router:external': True, 'tenant_id': 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'})
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-12484285', 'router:external': True, 'tenant_id': 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'}

/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-12484285', 'router:external': True, 'tenant_id': 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'})
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-12484285', 'router:external': True, 'tenant_id': 'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'}

/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=c2fc0cd5-bc79-4b0e-8706...c44&router%3Aexternal=True&name=ctest-vn-12484285', body=None, headers=None, params={'name': b'ctest-vn-12484285', 'router:external': True, 'tenant_id': b'c2fc0cd5-bc79-4b0e-8706-530b2351ac44'})
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=c2fc0cd5-bc79-4b0e-8706...c44&router%3Aexternal=True&name=ctest-vn-12484285', 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=c2fc0cd5-bc79-4b0e-8706...c44&router%3Aexternal=True&name=ctest-vn-12484285'
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=c2fc0cd5-bc79-4b0e-8706...c44&router%3Aexternal=True&name=ctest-vn-12484285', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGGvCc_SW2gLeGtOlqYNuF1izgJLZ1Ggr58oLVS...b6KwoyO640mOo6MaPGEIsIF4E4U69LjXvznrLITpSAhijN29A'}, '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=c2fc0cd5-bc79-4b0e-8706...c44&router%3Aexternal=True&name=ctest-vn-12484285', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGGvCc_SW2gLeGtOlqYNuF1izgJLZ1Ggr58oLVS...b6KwoyO640mOo6MaPGEIsIF4E4U69LjXvznrLITpSAhijN29A'}, '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=c2fc0cd5-bc79-4b0e-8706...c44&router%3Aexternal=True&name=ctest-vn-12484285', 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': 'gAAAAABmzxGGvCc_SW2gLeGtOlqYNuF1izgJLZ1Ggr58oLVS...b6KwoyO640mOo6MaPGEIsIF4E4U69LjXvznrLITpSAhijN29A'}, '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=c2fc0cd5-bc79-4b0e-8706...c44&router%3Aexternal=True&name=ctest-vn-12484285'
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': 'gAAAAABmzxGGvCc_SW2gLeGtOlqYNuF1izgJLZ1Ggr58oLVS...b6KwoyO640mOo6MaPGEIsIF4E4U69LjXvznrLITpSAhijN29A'}, '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.31:9696/v2.0/networks?tenant_id=c2...c44&router%3Aexternal=True&name=ctest-vn-12484285', 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': 'gAAAAABmzxGGvCc_SW2gLeGtOlqYNuF1izgJLZ1Ggr58oLVS...b6KwoyO640mOo6MaPGEIsIF4E4U69LjXvznrLITpSAhijN29A'}, '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 0x7fbace4480f0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGGvCc_SW2gLeGtOlqYNuF1izgJLZ1Ggr58oLVS...b6KwoyO640mOo6MaPGEIsIF4E4U69LjXvznrLITpSAhijN29A'}, '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.31:9696/v2.0/networks?tenant_id=c2...c44&router%3Aexternal=True&name=ctest-vn-12484285', 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': 'gAAAAABmzxGGvCc_SW2gLeGtOlqYNuF1izgJLZ1Ggr58oLVS...b6KwoyO640mOo6MaPGEIsIF4E4U69LjXvznrLITpSAhijN29A'}, '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.31:9696/v2.0/networks?tenant_id=c2fc0cd5-bc79-4b0e-8706-530b2351ac44&router%3Aexternal=True&name=ctest-vn-12484285: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=c2fc0cd5-bc79-4b0e-8706-530b2351ac44&router%3Aexternal=True&name=ctest-vn-12484285 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbace4163c8>: 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 0x7fbace4163c8>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=c2fc0cd5-bc79-4b0e-8706-530b2351ac44&router%3Aexternal=True&name=ctest-vn-12484285 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbace4163c8>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=c2fc0cd5-bc79-4b0e-8706-530b2351ac44&router%3Aexternal=True&name=ctest-vn-12484285 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbace4163c8>: 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.31:9696/v2.0/networks?tenant_id=c2fc0cd5-bc79-4b0e-8706-530b2351ac44&router%3Aexternal=True&name=ctest-vn-12484285: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=c2fc0cd5-bc79-4b0e-8706-530b2351ac44&router%3Aexternal=True&name=ctest-vn-12484285 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbace4163c8>: Failed to establish a new connection: [Errno 111] Connection refused',))

1.806 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
Wed Aug 28 12:01:17 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=0x7fbace7f1080>, *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=0x7fbace7f1080>
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=0x7fbace7f1080>)
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=0x7fbace7f1080>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...anity,suite1,vcenter_compute] id=0x7fbace7f1080>>

/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy.TestBasicPolicyIpv4v...sanity,suite1,vcenter_compute] id=0x7fbace7f1080>, 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-61760728', 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 = '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-61760728', option='orch', **kwargs={'project_id': '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'})
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-61760728'
kwargs = {'project_id': '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-61760728', project_id='0c6bc3c8-6884-454f-ae0f-5147384f8e0e', 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-61760728', 'router:external': True, 'tenant_id': '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'}

/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-61760728', 'router:external': True, 'tenant_id': '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'})
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-61760728', 'router:external': True, 'tenant_id': '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'}

/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-61760728', 'router:external': True, 'tenant_id': '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'})
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-61760728', 'router:external': True, 'tenant_id': '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'}

/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-61760728', 'router:external': True, 'tenant_id': '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'})
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-61760728', 'router:external': True, 'tenant_id': '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'}

/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-61760728', 'router:external': True, 'tenant_id': '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'})
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-61760728', 'router:external': True, 'tenant_id': '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'}

/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-61760728', 'router:external': True, 'tenant_id': '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'})
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-61760728', 'router:external': True, 'tenant_id': '0c6bc3c8-6884-454f-ae0f-5147384f8e0e'}

/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=0c6bc3c8-6884-454f-ae0f...e0e&router%3Aexternal=True&name=ctest-vn-61760728', body=None, headers=None, params={'name': b'ctest-vn-61760728', 'router:external': True, 'tenant_id': b'0c6bc3c8-6884-454f-ae0f-5147384f8e0e'})
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=0c6bc3c8-6884-454f-ae0f...e0e&router%3Aexternal=True&name=ctest-vn-61760728', 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=0c6bc3c8-6884-454f-ae0f...e0e&router%3Aexternal=True&name=ctest-vn-61760728'
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=0c6bc3c8-6884-454f-ae0f...e0e&router%3Aexternal=True&name=ctest-vn-61760728', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGM5WIIcr5QXXXGRjybTv5S0uNJrVX26NBnc1s0...F-kbS3HDdAVoMYo5ptS2bPQbw90o7yr8r4joslfQxJY8cE6Yw'}, '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=0c6bc3c8-6884-454f-ae0f...e0e&router%3Aexternal=True&name=ctest-vn-61760728', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGM5WIIcr5QXXXGRjybTv5S0uNJrVX26NBnc1s0...F-kbS3HDdAVoMYo5ptS2bPQbw90o7yr8r4joslfQxJY8cE6Yw'}, '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=0c6bc3c8-6884-454f-ae0f...e0e&router%3Aexternal=True&name=ctest-vn-61760728', 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': 'gAAAAABmzxGM5WIIcr5QXXXGRjybTv5S0uNJrVX26NBnc1s0...F-kbS3HDdAVoMYo5ptS2bPQbw90o7yr8r4joslfQxJY8cE6Yw'}, '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=0c6bc3c8-6884-454f-ae0f...e0e&router%3Aexternal=True&name=ctest-vn-61760728'
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': 'gAAAAABmzxGM5WIIcr5QXXXGRjybTv5S0uNJrVX26NBnc1s0...F-kbS3HDdAVoMYo5ptS2bPQbw90o7yr8r4joslfQxJY8cE6Yw'}, '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.31:9696/v2.0/networks?tenant_id=0c...e0e&router%3Aexternal=True&name=ctest-vn-61760728', 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': 'gAAAAABmzxGM5WIIcr5QXXXGRjybTv5S0uNJrVX26NBnc1s0...F-kbS3HDdAVoMYo5ptS2bPQbw90o7yr8r4joslfQxJY8cE6Yw'}, '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 0x7fbace416630>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGM5WIIcr5QXXXGRjybTv5S0uNJrVX26NBnc1s0...F-kbS3HDdAVoMYo5ptS2bPQbw90o7yr8r4joslfQxJY8cE6Yw'}, '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.31:9696/v2.0/networks?tenant_id=0c...e0e&router%3Aexternal=True&name=ctest-vn-61760728', 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': 'gAAAAABmzxGM5WIIcr5QXXXGRjybTv5S0uNJrVX26NBnc1s0...F-kbS3HDdAVoMYo5ptS2bPQbw90o7yr8r4joslfQxJY8cE6Yw'}, '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.31:9696/v2.0/networks?tenant_id=0c6bc3c8-6884-454f-ae0f-5147384f8e0e&router%3Aexternal=True&name=ctest-vn-61760728: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=0c6bc3c8-6884-454f-ae0f-5147384f8e0e&router%3Aexternal=True&name=ctest-vn-61760728 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbaccf3d438>: 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 0x7fbaccf3d438>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=0c6bc3c8-6884-454f-ae0f-5147384f8e0e&router%3Aexternal=True&name=ctest-vn-61760728 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbaccf3d438>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=0c6bc3c8-6884-454f-ae0f-5147384f8e0e&router%3Aexternal=True&name=ctest-vn-61760728 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbaccf3d438>: 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.31:9696/v2.0/networks?tenant_id=0c6bc3c8-6884-454f-ae0f-5147384f8e0e&router%3Aexternal=True&name=ctest-vn-61760728: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=0c6bc3c8-6884-454f-ae0f-5147384f8e0e&router%3Aexternal=True&name=ctest-vn-61760728 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbaccf3d438>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.781 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
Wed Aug 28 12:01:21 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=0x7fbace78bba8>, *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=0x7fbace78bba8>
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=0x7fbace78bba8>)
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=0x7fbace78bba8>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...anity,suite1,vcenter_compute] id=0x7fbace78bba8>>

/contrail-test/common/base.py in create_vn(self=<scripts.policy.test_policy_basic.TestBasicPolic...sanity,suite1,vcenter_compute] id=0x7fbace78bba8>, 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-08376384', 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 = 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-08376384', option='orch', **kwargs={'project_id': 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'})
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-08376384'
kwargs = {'project_id': 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-08376384', project_id='f7ce5af3-a6f9-4855-9747-be097e7a94b8', 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-08376384', 'router:external': True, 'tenant_id': 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'}

/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-08376384', 'router:external': True, 'tenant_id': 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'})
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-08376384', 'router:external': True, 'tenant_id': 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'}

/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-08376384', 'router:external': True, 'tenant_id': 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'})
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-08376384', 'router:external': True, 'tenant_id': 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'}

/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-08376384', 'router:external': True, 'tenant_id': 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'})
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-08376384', 'router:external': True, 'tenant_id': 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'}

/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-08376384', 'router:external': True, 'tenant_id': 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'})
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-08376384', 'router:external': True, 'tenant_id': 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'}

/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-08376384', 'router:external': True, 'tenant_id': 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'})
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-08376384', 'router:external': True, 'tenant_id': 'f7ce5af3-a6f9-4855-9747-be097e7a94b8'}

/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=f7ce5af3-a6f9-4855-9747...4b8&router%3Aexternal=True&name=ctest-vn-08376384', body=None, headers=None, params={'name': b'ctest-vn-08376384', 'router:external': True, 'tenant_id': b'f7ce5af3-a6f9-4855-9747-be097e7a94b8'})
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=f7ce5af3-a6f9-4855-9747...4b8&router%3Aexternal=True&name=ctest-vn-08376384', 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=f7ce5af3-a6f9-4855-9747...4b8&router%3Aexternal=True&name=ctest-vn-08376384'
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=f7ce5af3-a6f9-4855-9747...4b8&router%3Aexternal=True&name=ctest-vn-08376384', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGQdj6w2K3pahqF6K5eEb8DSsSDWcFnRs_6L7bZ...nqkmXEOER23TUPIgm4xiJqDD7IHXNxXBqR1PnKTTXCnNewFKs'}, '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=f7ce5af3-a6f9-4855-9747...4b8&router%3Aexternal=True&name=ctest-vn-08376384', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGQdj6w2K3pahqF6K5eEb8DSsSDWcFnRs_6L7bZ...nqkmXEOER23TUPIgm4xiJqDD7IHXNxXBqR1PnKTTXCnNewFKs'}, '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=f7ce5af3-a6f9-4855-9747...4b8&router%3Aexternal=True&name=ctest-vn-08376384', 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': 'gAAAAABmzxGQdj6w2K3pahqF6K5eEb8DSsSDWcFnRs_6L7bZ...nqkmXEOER23TUPIgm4xiJqDD7IHXNxXBqR1PnKTTXCnNewFKs'}, '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=f7ce5af3-a6f9-4855-9747...4b8&router%3Aexternal=True&name=ctest-vn-08376384'
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': 'gAAAAABmzxGQdj6w2K3pahqF6K5eEb8DSsSDWcFnRs_6L7bZ...nqkmXEOER23TUPIgm4xiJqDD7IHXNxXBqR1PnKTTXCnNewFKs'}, '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.31:9696/v2.0/networks?tenant_id=f7...4b8&router%3Aexternal=True&name=ctest-vn-08376384', 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': 'gAAAAABmzxGQdj6w2K3pahqF6K5eEb8DSsSDWcFnRs_6L7bZ...nqkmXEOER23TUPIgm4xiJqDD7IHXNxXBqR1PnKTTXCnNewFKs'}, '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 0x7fbace5b3f60>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGQdj6w2K3pahqF6K5eEb8DSsSDWcFnRs_6L7bZ...nqkmXEOER23TUPIgm4xiJqDD7IHXNxXBqR1PnKTTXCnNewFKs'}, '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.31:9696/v2.0/networks?tenant_id=f7...4b8&router%3Aexternal=True&name=ctest-vn-08376384', 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': 'gAAAAABmzxGQdj6w2K3pahqF6K5eEb8DSsSDWcFnRs_6L7bZ...nqkmXEOER23TUPIgm4xiJqDD7IHXNxXBqR1PnKTTXCnNewFKs'}, '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.31:9696/v2.0/networks?tenant_id=f7ce5af3-a6f9-4855-9747-be097e7a94b8&router%3Aexternal=True&name=ctest-vn-08376384: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=f7ce5af3-a6f9-4855-9747-be097e7a94b8&router%3Aexternal=True&name=ctest-vn-08376384 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc7d57b8>: 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 0x7fbacc7d57b8>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=f7ce5af3-a6f9-4855-9747-be097e7a94b8&router%3Aexternal=True&name=ctest-vn-08376384 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc7d57b8>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=f7ce5af3-a6f9-4855-9747-be097e7a94b8&router%3Aexternal=True&name=ctest-vn-08376384 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc7d57b8>: 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.31:9696/v2.0/networks?tenant_id=f7ce5af3-a6f9-4855-9747-be097e7a94b8&router%3Aexternal=True&name=ctest-vn-08376384: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=f7ce5af3-a6f9-4855-9747-be097e7a94b8&router%3Aexternal=True&name=ctest-vn-08376384 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc7d57b8>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.789 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
Wed Aug 28 12:01:26 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=0x7fbace4f70b8>, *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=0x7fbace4f70b8>
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=0x7fbace4f70b8>)
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=0x7fbace4f70b8>, *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=0x7fbace4f70b8>
self.config_svc_chain = <bound method ConfigSvcChain.config_svc_chain of...k_datapath[ci_sanity,vcenter] id=0x7fbace4f70b8>>
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=0x7fbace4f70b8>, 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=0x7fbace4f70b8>, vn_name='ctest-mgmt_vn-58894691', vn_subnets=['42.35.52.64/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=0x7fbace4f70b8>
self.config_vn = <bound method ConfigSvcChain.config_vn of <scrip...k_datapath[ci_sanity,vcenter] id=0x7fbace4f70b8>>
vn_name = 'ctest-mgmt_vn-58894691'
vn_subnets = ['42.35.52.64/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=0x7fbace4f70b8>, vn_name='ctest-mgmt_vn-58894691', vn_net=['42.35.52.64/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-58894691'
inputs undefined
self = <scripts.svc_firewall.test_svc_fw.TestSvcRegr.te...rk_datapath[ci_sanity,vcenter] id=0x7fbace4f70b8>
self.inputs = <common.contrail_test_init.ContrailTestInit object>
subnets undefined
vn_net = ['42.35.52.64/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=0x7fbace4f70b8>, 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=0x7fbace4f70b8>, 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 = 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-mgmt_vn-58894691', option='orch', **kwargs={'project_id': 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'})
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-58894691'
kwargs = {'project_id': 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-mgmt_vn-58894691', project_id='fc2d8c23-d4e5-4994-97b8-487d31c84f28', 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-58894691', 'router:external': True, 'tenant_id': 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'}

/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-58894691', 'router:external': True, 'tenant_id': 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'})
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-58894691', 'router:external': True, 'tenant_id': 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'}

/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-58894691', 'router:external': True, 'tenant_id': 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'})
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-58894691', 'router:external': True, 'tenant_id': 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'}

/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-58894691', 'router:external': True, 'tenant_id': 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'})
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-58894691', 'router:external': True, 'tenant_id': 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'}

/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-58894691', 'router:external': True, 'tenant_id': 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'})
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-58894691', 'router:external': True, 'tenant_id': 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'}

/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-58894691', 'router:external': True, 'tenant_id': 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'})
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-58894691', 'router:external': True, 'tenant_id': 'fc2d8c23-d4e5-4994-97b8-487d31c84f28'}

/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=fc2d8c23-d4e5-4994-97b8...outer%3Aexternal=True&name=ctest-mgmt_vn-58894691', body=None, headers=None, params={'name': b'ctest-mgmt_vn-58894691', 'router:external': True, 'tenant_id': b'fc2d8c23-d4e5-4994-97b8-487d31c84f28'})
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=fc2d8c23-d4e5-4994-97b8...outer%3Aexternal=True&name=ctest-mgmt_vn-58894691', 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=fc2d8c23-d4e5-4994-97b8...outer%3Aexternal=True&name=ctest-mgmt_vn-58894691'
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=fc2d8c23-d4e5-4994-97b8...outer%3Aexternal=True&name=ctest-mgmt_vn-58894691', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGUJUHEAOVAYaJUM7Qh20wRp3HMWxR9SvpP4JEN...jTNw_lddo2AwCdtecw_HFCDOnOSY3k7c3a3XdOHwFPWOOJSJA'}, '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=fc2d8c23-d4e5-4994-97b8...outer%3Aexternal=True&name=ctest-mgmt_vn-58894691', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGUJUHEAOVAYaJUM7Qh20wRp3HMWxR9SvpP4JEN...jTNw_lddo2AwCdtecw_HFCDOnOSY3k7c3a3XdOHwFPWOOJSJA'}, '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=fc2d8c23-d4e5-4994-97b8...outer%3Aexternal=True&name=ctest-mgmt_vn-58894691', 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': 'gAAAAABmzxGUJUHEAOVAYaJUM7Qh20wRp3HMWxR9SvpP4JEN...jTNw_lddo2AwCdtecw_HFCDOnOSY3k7c3a3XdOHwFPWOOJSJA'}, '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=fc2d8c23-d4e5-4994-97b8...outer%3Aexternal=True&name=ctest-mgmt_vn-58894691'
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': 'gAAAAABmzxGUJUHEAOVAYaJUM7Qh20wRp3HMWxR9SvpP4JEN...jTNw_lddo2AwCdtecw_HFCDOnOSY3k7c3a3XdOHwFPWOOJSJA'}, '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.31:9696/v2.0/networks?tenant_id=fc...outer%3Aexternal=True&name=ctest-mgmt_vn-58894691', 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': 'gAAAAABmzxGUJUHEAOVAYaJUM7Qh20wRp3HMWxR9SvpP4JEN...jTNw_lddo2AwCdtecw_HFCDOnOSY3k7c3a3XdOHwFPWOOJSJA'}, '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 0x7fbacc706860>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGUJUHEAOVAYaJUM7Qh20wRp3HMWxR9SvpP4JEN...jTNw_lddo2AwCdtecw_HFCDOnOSY3k7c3a3XdOHwFPWOOJSJA'}, '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.31:9696/v2.0/networks?tenant_id=fc...outer%3Aexternal=True&name=ctest-mgmt_vn-58894691', 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': 'gAAAAABmzxGUJUHEAOVAYaJUM7Qh20wRp3HMWxR9SvpP4JEN...jTNw_lddo2AwCdtecw_HFCDOnOSY3k7c3a3XdOHwFPWOOJSJA'}, '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.31:9696/v2.0/networks?tenant_id=fc2d8c23-d4e5-4994-97b8-487d31c84f28&router%3Aexternal=True&name=ctest-mgmt_vn-58894691: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=fc2d8c23-d4e5-4994-97b8-487d31c84f28&router%3Aexternal=True&name=ctest-mgmt_vn-58894691 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc7f7470>: 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 0x7fbacc7f7470>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=fc2d8c23-d4e5-4994-97b8-487d31c84f28&router%3Aexternal=True&name=ctest-mgmt_vn-58894691 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc7f7470>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=fc2d8c23-d4e5-4994-97b8-487d31c84f28&router%3Aexternal=True&name=ctest-mgmt_vn-58894691 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc7f7470>: 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.31:9696/v2.0/networks?tenant_id=fc2d8c23-d4e5-4994-97b8-487d31c84f28&router%3Aexternal=True&name=ctest-mgmt_vn-58894691: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=fc2d8c23-d4e5-4994-97b8-487d31c84f28&router%3Aexternal=True&name=ctest-mgmt_vn-58894691 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc7f7470>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.797 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
Wed Aug 28 12:01:32 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=0x7fbace4b32b0>, *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=0x7fbace4b32b0>
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=0x7fbace4b32b0>)
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-02376475'
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-77376881', '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=0x7fbace4b32b0>, 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=0x7fbace4b32b0>, 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 = 'ac3f37f1-a966-4a9d-858b-a96ae625b570'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn1-vdns-02376475', option='orch', **kwargs={'project_id': 'ac3f37f1-a966-4a9d-858b-a96ae625b570'})
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-02376475'
kwargs = {'project_id': 'ac3f37f1-a966-4a9d-858b-a96ae625b570'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn1-vdns-02376475', project_id='ac3f37f1-a966-4a9d-858b-a96ae625b570', 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-02376475', 'router:external': True, 'tenant_id': 'ac3f37f1-a966-4a9d-858b-a96ae625b570'}

/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-02376475', 'router:external': True, 'tenant_id': 'ac3f37f1-a966-4a9d-858b-a96ae625b570'})
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-02376475', 'router:external': True, 'tenant_id': 'ac3f37f1-a966-4a9d-858b-a96ae625b570'}

/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-02376475', 'router:external': True, 'tenant_id': 'ac3f37f1-a966-4a9d-858b-a96ae625b570'})
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-02376475', 'router:external': True, 'tenant_id': 'ac3f37f1-a966-4a9d-858b-a96ae625b570'}

/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-02376475', 'router:external': True, 'tenant_id': 'ac3f37f1-a966-4a9d-858b-a96ae625b570'})
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-02376475', 'router:external': True, 'tenant_id': 'ac3f37f1-a966-4a9d-858b-a96ae625b570'}

/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-02376475', 'router:external': True, 'tenant_id': 'ac3f37f1-a966-4a9d-858b-a96ae625b570'})
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-02376475', 'router:external': True, 'tenant_id': 'ac3f37f1-a966-4a9d-858b-a96ae625b570'}

/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-02376475', 'router:external': True, 'tenant_id': 'ac3f37f1-a966-4a9d-858b-a96ae625b570'})
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-02376475', 'router:external': True, 'tenant_id': 'ac3f37f1-a966-4a9d-858b-a96ae625b570'}

/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=ac3f37f1-a966-4a9d-858b...uter%3Aexternal=True&name=ctest-vn1-vdns-02376475', body=None, headers=None, params={'name': b'ctest-vn1-vdns-02376475', 'router:external': True, 'tenant_id': b'ac3f37f1-a966-4a9d-858b-a96ae625b570'})
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=ac3f37f1-a966-4a9d-858b...uter%3Aexternal=True&name=ctest-vn1-vdns-02376475', 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=ac3f37f1-a966-4a9d-858b...uter%3Aexternal=True&name=ctest-vn1-vdns-02376475'
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=ac3f37f1-a966-4a9d-858b...uter%3Aexternal=True&name=ctest-vn1-vdns-02376475', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGZoBM5gvTr-JftQJUITgtwZe0w-yu67oDQcGRq...IQMoG_qN3j0etS27uUgpnXez4Fw1e2wh4QX-nmK4RL3DuPhMQ'}, '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=ac3f37f1-a966-4a9d-858b...uter%3Aexternal=True&name=ctest-vn1-vdns-02376475', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGZoBM5gvTr-JftQJUITgtwZe0w-yu67oDQcGRq...IQMoG_qN3j0etS27uUgpnXez4Fw1e2wh4QX-nmK4RL3DuPhMQ'}, '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=ac3f37f1-a966-4a9d-858b...uter%3Aexternal=True&name=ctest-vn1-vdns-02376475', 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': 'gAAAAABmzxGZoBM5gvTr-JftQJUITgtwZe0w-yu67oDQcGRq...IQMoG_qN3j0etS27uUgpnXez4Fw1e2wh4QX-nmK4RL3DuPhMQ'}, '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=ac3f37f1-a966-4a9d-858b...uter%3Aexternal=True&name=ctest-vn1-vdns-02376475'
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': 'gAAAAABmzxGZoBM5gvTr-JftQJUITgtwZe0w-yu67oDQcGRq...IQMoG_qN3j0etS27uUgpnXez4Fw1e2wh4QX-nmK4RL3DuPhMQ'}, '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.31:9696/v2.0/networks?tenant_id=ac...uter%3Aexternal=True&name=ctest-vn1-vdns-02376475', 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': 'gAAAAABmzxGZoBM5gvTr-JftQJUITgtwZe0w-yu67oDQcGRq...IQMoG_qN3j0etS27uUgpnXez4Fw1e2wh4QX-nmK4RL3DuPhMQ'}, '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 0x7fbacc4fd6d8>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGZoBM5gvTr-JftQJUITgtwZe0w-yu67oDQcGRq...IQMoG_qN3j0etS27uUgpnXez4Fw1e2wh4QX-nmK4RL3DuPhMQ'}, '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.31:9696/v2.0/networks?tenant_id=ac...uter%3Aexternal=True&name=ctest-vn1-vdns-02376475', 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': 'gAAAAABmzxGZoBM5gvTr-JftQJUITgtwZe0w-yu67oDQcGRq...IQMoG_qN3j0etS27uUgpnXez4Fw1e2wh4QX-nmK4RL3DuPhMQ'}, '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.31:9696/v2.0/networks?tenant_id=ac3f37f1-a966-4a9d-858b-a96ae625b570&router%3Aexternal=True&name=ctest-vn1-vdns-02376475: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=ac3f37f1-a966-4a9d-858b-a96ae625b570&router%3Aexternal=True&name=ctest-vn1-vdns-02376475 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc4f0898>: 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 0x7fbacc4f0898>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=ac3f37f1-a966-4a9d-858b-a96ae625b570&router%3Aexternal=True&name=ctest-vn1-vdns-02376475 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc4f0898>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=ac3f37f1-a966-4a9d-858b-a96ae625b570&router%3Aexternal=True&name=ctest-vn1-vdns-02376475 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc4f0898>: 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.31:9696/v2.0/networks?tenant_id=ac3f37f1-a966-4a9d-858b-a96ae625b570&router%3Aexternal=True&name=ctest-vn1-vdns-02376475: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=ac3f37f1-a966-4a9d-858b-a96ae625b570&router%3Aexternal=True&name=ctest-vn1-vdns-02376475 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc4f0898>: Failed to establish a new connection: [Errno 111] Connection refused',))

2.618 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
Wed Aug 28 12:01:36 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=0x7fbace42d5c0>, *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=0x7fbace42d5c0>
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=0x7fbace42d5c0>)
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=0x7fbace42d5c0>
self.create_vn = <bound method GenericTestBase.create_vn of <scri...y,vcenter_compute,vrouter_gw] id=0x7fbace42d5c0>>
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=0x7fbace42d5c0>, 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-67273371', 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 = '8970de0f-bdd5-41b2-b52b-aef622d54e18'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-67273371', option='orch', **kwargs={'project_id': '8970de0f-bdd5-41b2-b52b-aef622d54e18'})
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-67273371'
kwargs = {'project_id': '8970de0f-bdd5-41b2-b52b-aef622d54e18'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-67273371', project_id='8970de0f-bdd5-41b2-b52b-aef622d54e18', 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-67273371', 'router:external': True, 'tenant_id': '8970de0f-bdd5-41b2-b52b-aef622d54e18'}

/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-67273371', 'router:external': True, 'tenant_id': '8970de0f-bdd5-41b2-b52b-aef622d54e18'})
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-67273371', 'router:external': True, 'tenant_id': '8970de0f-bdd5-41b2-b52b-aef622d54e18'}

/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-67273371', 'router:external': True, 'tenant_id': '8970de0f-bdd5-41b2-b52b-aef622d54e18'})
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-67273371', 'router:external': True, 'tenant_id': '8970de0f-bdd5-41b2-b52b-aef622d54e18'}

/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-67273371', 'router:external': True, 'tenant_id': '8970de0f-bdd5-41b2-b52b-aef622d54e18'})
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-67273371', 'router:external': True, 'tenant_id': '8970de0f-bdd5-41b2-b52b-aef622d54e18'}

/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-67273371', 'router:external': True, 'tenant_id': '8970de0f-bdd5-41b2-b52b-aef622d54e18'})
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-67273371', 'router:external': True, 'tenant_id': '8970de0f-bdd5-41b2-b52b-aef622d54e18'}

/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-67273371', 'router:external': True, 'tenant_id': '8970de0f-bdd5-41b2-b52b-aef622d54e18'})
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-67273371', 'router:external': True, 'tenant_id': '8970de0f-bdd5-41b2-b52b-aef622d54e18'}

/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=8970de0f-bdd5-41b2-b52b...e18&router%3Aexternal=True&name=ctest-vn-67273371', body=None, headers=None, params={'name': b'ctest-vn-67273371', 'router:external': True, 'tenant_id': b'8970de0f-bdd5-41b2-b52b-aef622d54e18'})
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=8970de0f-bdd5-41b2-b52b...e18&router%3Aexternal=True&name=ctest-vn-67273371', 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=8970de0f-bdd5-41b2-b52b...e18&router%3Aexternal=True&name=ctest-vn-67273371'
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=8970de0f-bdd5-41b2-b52b...e18&router%3Aexternal=True&name=ctest-vn-67273371', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGfRaJ3iU63G4QyPA6HDWGW6ZRPCHFOeqFTqACn..._60nspJhKWO6cT8EpwCRP98iAcaopxRWn_wIN8HQ91heDrVyQ'}, '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=8970de0f-bdd5-41b2-b52b...e18&router%3Aexternal=True&name=ctest-vn-67273371', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGfRaJ3iU63G4QyPA6HDWGW6ZRPCHFOeqFTqACn..._60nspJhKWO6cT8EpwCRP98iAcaopxRWn_wIN8HQ91heDrVyQ'}, '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=8970de0f-bdd5-41b2-b52b...e18&router%3Aexternal=True&name=ctest-vn-67273371', 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': 'gAAAAABmzxGfRaJ3iU63G4QyPA6HDWGW6ZRPCHFOeqFTqACn..._60nspJhKWO6cT8EpwCRP98iAcaopxRWn_wIN8HQ91heDrVyQ'}, '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=8970de0f-bdd5-41b2-b52b...e18&router%3Aexternal=True&name=ctest-vn-67273371'
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': 'gAAAAABmzxGfRaJ3iU63G4QyPA6HDWGW6ZRPCHFOeqFTqACn..._60nspJhKWO6cT8EpwCRP98iAcaopxRWn_wIN8HQ91heDrVyQ'}, '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.31:9696/v2.0/networks?tenant_id=89...e18&router%3Aexternal=True&name=ctest-vn-67273371', 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': 'gAAAAABmzxGfRaJ3iU63G4QyPA6HDWGW6ZRPCHFOeqFTqACn..._60nspJhKWO6cT8EpwCRP98iAcaopxRWn_wIN8HQ91heDrVyQ'}, '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 0x7fbacc52d470>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGfRaJ3iU63G4QyPA6HDWGW6ZRPCHFOeqFTqACn..._60nspJhKWO6cT8EpwCRP98iAcaopxRWn_wIN8HQ91heDrVyQ'}, '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.31:9696/v2.0/networks?tenant_id=89...e18&router%3Aexternal=True&name=ctest-vn-67273371', 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': 'gAAAAABmzxGfRaJ3iU63G4QyPA6HDWGW6ZRPCHFOeqFTqACn..._60nspJhKWO6cT8EpwCRP98iAcaopxRWn_wIN8HQ91heDrVyQ'}, '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.31:9696/v2.0/networks?tenant_id=8970de0f-bdd5-41b2-b52b-aef622d54e18&router%3Aexternal=True&name=ctest-vn-67273371: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8970de0f-bdd5-41b2-b52b-aef622d54e18&router%3Aexternal=True&name=ctest-vn-67273371 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc40f780>: 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 0x7fbacc40f780>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8970de0f-bdd5-41b2-b52b-aef622d54e18&router%3Aexternal=True&name=ctest-vn-67273371 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc40f780>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8970de0f-bdd5-41b2-b52b-aef622d54e18&router%3Aexternal=True&name=ctest-vn-67273371 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc40f780>: 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.31:9696/v2.0/networks?tenant_id=8970de0f-bdd5-41b2-b52b-aef622d54e18&router%3Aexternal=True&name=ctest-vn-67273371: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=8970de0f-bdd5-41b2-b52b-aef622d54e18&router%3Aexternal=True&name=ctest-vn-67273371 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc40f780>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.773 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
Wed Aug 28 12:01:40 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=0x7fbace42d7b8>, *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=0x7fbace42d7b8>
args = ()
kwargs = {}

/contrail-test/tcutils/util.py in wrapper(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...uite1,vcenter,vcenter_compute] id=0x7fbace42d7b8>, *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=0x7fbace42d7b8>
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=0x7fbace42d7b8>)
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-41403989'
inputs undefined
self = <scripts.vm_regression.test_vm_basic.TestBasicVM...uite1,vcenter,vcenter_compute] id=0x7fbace42d7b8>
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=0x7fbace42d7b8>, 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=0x7fbace42d7b8>, 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 = 'a646178e-1534-4d10-a22b-c063a3381f0f'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn2_metadata-41403989', option='orch', **kwargs={'project_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'})
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-41403989'
kwargs = {'project_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn2_metadata-41403989', project_id='a646178e-1534-4d10-a22b-c063a3381f0f', 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-41403989', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/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-41403989', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'})
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-41403989', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/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-41403989', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'})
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-41403989', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/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-41403989', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'})
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-41403989', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/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-41403989', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'})
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-41403989', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/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-41403989', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'})
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-41403989', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/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=a646178e-1534-4d10-a22b...%3Aexternal=True&name=ctest-vn2_metadata-41403989', body=None, headers=None, params={'name': b'ctest-vn2_metadata-41403989', 'router:external': True, 'tenant_id': b'a646178e-1534-4d10-a22b-c063a3381f0f'})
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=a646178e-1534-4d10-a22b...%3Aexternal=True&name=ctest-vn2_metadata-41403989', 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=a646178e-1534-4d10-a22b...%3Aexternal=True&name=ctest-vn2_metadata-41403989'
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=a646178e-1534-4d10-a22b...%3Aexternal=True&name=ctest-vn2_metadata-41403989', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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=a646178e-1534-4d10-a22b...%3Aexternal=True&name=ctest-vn2_metadata-41403989', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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=a646178e-1534-4d10-a22b...%3Aexternal=True&name=ctest-vn2_metadata-41403989', 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': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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=a646178e-1534-4d10-a22b...%3Aexternal=True&name=ctest-vn2_metadata-41403989'
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': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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.31:9696/v2.0/networks?tenant_id=a6...%3Aexternal=True&name=ctest-vn2_metadata-41403989', 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': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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 0x7fbacc2b52b0>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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.31:9696/v2.0/networks?tenant_id=a6...%3Aexternal=True&name=ctest-vn2_metadata-41403989', 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': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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.31:9696/v2.0/networks?tenant_id=a646178e-1534-4d10-a22b-c063a3381f0f&router%3Aexternal=True&name=ctest-vn2_metadata-41403989: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a646178e-1534-4d10-a22b-c063a3381f0f&router%3Aexternal=True&name=ctest-vn2_metadata-41403989 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc434898>: 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 0x7fbacc434898>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a646178e-1534-4d10-a22b-c063a3381f0f&router%3Aexternal=True&name=ctest-vn2_metadata-41403989 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc434898>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a646178e-1534-4d10-a22b-c063a3381f0f&router%3Aexternal=True&name=ctest-vn2_metadata-41403989 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc434898>: 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.31:9696/v2.0/networks?tenant_id=a646178e-1534-4d10-a22b-c063a3381f0f&router%3Aexternal=True&name=ctest-vn2_metadata-41403989: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a646178e-1534-4d10-a22b-c063a3381f0f&router%3Aexternal=True&name=ctest-vn2_metadata-41403989 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc434898>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.799 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
Wed Aug 28 12:01:41 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=0x7fbace42d978>, *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=0x7fbace42d978>
args = ()
kwargs = {}

/contrail-test/tcutils/util.py in wrapper(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...sanity,suite1,vcenter_compute] id=0x7fbace42d978>, *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=0x7fbace42d978>
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=0x7fbace42d978>)
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-08778897', 'ctest-ipam-33060640']

/contrail-test/common/base.py in create_vn(self=<scripts.vm_regression.test_vm_basic.TestBasicVM...sanity,suite1,vcenter_compute] id=0x7fbace42d978>, 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-08778897', 'ctest-ipam-33060640']})
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-08778897', 'ctest-ipam-33060640']}

/contrail-test/common/base.py in create_only_vn(cls=<class 'scripts.vm_regression.test_vm_basic.TestBasicVMVN'>, vn_name='ctest-vn-41911049', vn_subnets=['31.1.1.0/29', '31.1.2.0/29'], **kwargs={'ipam_fq_name': ['default-domain', 'ctest-TestBasicVMVN-08778897', 'ctest-ipam-33060640']})
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 = 'a646178e-1534-4d10-a22b-c063a3381f0f'

/contrail-test/fixtures/openstack.py in get_vn_obj_if_present(self=<openstack.OpenstackOrchestrator object>, vn_name='ctest-vn-41911049', option='orch', **kwargs={'project_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'})
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-41911049'
kwargs = {'project_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/contrail-test/fixtures/quantum_test.py in get_vn_obj_if_present(self=<quantum_test.QuantumHelper object>, vn_name='ctest-vn-41911049', project_id='a646178e-1534-4d10-a22b-c063a3381f0f', 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-41911049', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/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-41911049', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'})
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-41911049', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/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-41911049', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'})
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-41911049', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/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-41911049', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'})
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-41911049', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/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-41911049', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'})
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-41911049', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/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-41911049', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'})
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-41911049', 'router:external': True, 'tenant_id': 'a646178e-1534-4d10-a22b-c063a3381f0f'}

/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=a646178e-1534-4d10-a22b...f0f&router%3Aexternal=True&name=ctest-vn-41911049', body=None, headers=None, params={'name': b'ctest-vn-41911049', 'router:external': True, 'tenant_id': b'a646178e-1534-4d10-a22b-c063a3381f0f'})
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=a646178e-1534-4d10-a22b...f0f&router%3Aexternal=True&name=ctest-vn-41911049', 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=a646178e-1534-4d10-a22b...f0f&router%3Aexternal=True&name=ctest-vn-41911049'
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=a646178e-1534-4d10-a22b...f0f&router%3Aexternal=True&name=ctest-vn-41911049', 'GET'), **kwargs={'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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=a646178e-1534-4d10-a22b...f0f&router%3Aexternal=True&name=ctest-vn-41911049', 'GET')
kwargs = {'authenticated': True, 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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=a646178e-1534-4d10-a22b...f0f&router%3Aexternal=True&name=ctest-vn-41911049', 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': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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=a646178e-1534-4d10-a22b...f0f&router%3Aexternal=True&name=ctest-vn-41911049'
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': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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.31:9696/v2.0/networks?tenant_id=a6...f0f&router%3Aexternal=True&name=ctest-vn-41911049', 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': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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 0x7fbacc436d68>)
kwargs = {'allow_redirects': False, 'cert': (None, None), 'data': None, 'headers': {'Accept': 'application/json', 'User-Agent': 'python-neutronclient', 'X-Auth-Token': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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.31:9696/v2.0/networks?tenant_id=a6...f0f&router%3Aexternal=True&name=ctest-vn-41911049', 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': 'gAAAAABmzxGjMx5ugCLHwiVdtOZxW1sMPtek5etEcyintjvW...43XM5AFMRjsDQ6l3mdnCVDh2FubRO-vWXmFrw7JaYTZOf5oGU'}, '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.31:9696/v2.0/networks?tenant_id=a646178e-1534-4d10-a22b-c063a3381f0f&router%3Aexternal=True&name=ctest-vn-41911049: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a646178e-1534-4d10-a22b-c063a3381f0f&router%3Aexternal=True&name=ctest-vn-41911049 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc2ac860>: 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 0x7fbacc2ac860>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a646178e-1534-4d10-a22b-c063a3381f0f&router%3Aexternal=True&name=ctest-vn-41911049 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc2ac860>: 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.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a646178e-1534-4d10-a22b-c063a3381f0f&router%3Aexternal=True&name=ctest-vn-41911049 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc2ac860>: 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.31:9696/v2.0/networks?tenant_id=a646178e-1534-4d10-a22b-c063a3381f0f&router%3Aexternal=True&name=ctest-vn-41911049: HTTPConnectionPool(host='10.0.0.31', port=9696): Max retries exceeded with url: /v2.0/networks?tenant_id=a646178e-1534-4d10-a22b-c063a3381f0f&router%3Aexternal=True&name=ctest-vn-41911049 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbacc2ac860>: Failed to establish a new connection: [Errno 111] Connection refused',))

0.831 Log File
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.810
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