| test_network_tags_crud[ci_sanity,sanity] | Failure | Details
Traceback (most recent call last):
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 176, in wrapper
raise TestFailed("\n ".join(errmsg))
tcutils.cores.TestFailed: Test failed: NotFound
Python 3.9.25: /usr/bin/python3
Fri Aug 14 09:20:32 2026
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-test/tcutils/wrappers.py in wrapper(self=<scripts.neutron.test_crud.TestCRUD.test_network_tags_crud[ci_sanity,sanity] id=0x7f159c25ad30>, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function = <function TestCRUD.test_network_tags_crud>
self = <scripts.neutron.test_crud.TestCRUD.test_network_tags_crud[ci_sanity,sanity] id=0x7f159c25ad30>
args = ()
kwargs = {}
/contrail-test/scripts/neutron/test_crud.py in test_network_tags_crud(self=<scripts.neutron.test_crud.TestCRUD.test_network_tags_crud[ci_sanity,sanity] id=0x7f159c25ad30>)
601
602 # set (replace-all)
603 c.replace_tag('networks', net_id, {'tags': ['a', 'b']})
604 assert tags() == {'a', 'b'}, 'replace_tag did not persist'
605
c = <neutronclient.v2_0.client.Client object>
c.replace_tag = <bound method Client.replace_tag of <neutronclient.v2_0.client.Client object>>
net_id = 'a30013a8-aac9-4746-8eb7-0eb52e1082e5'
/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in replace_tag(self=<neutronclient.v2_0.client.Client object>, resource_type='networks', resource_id='a30013a8-aac9-4746-8eb7-0eb52e1082e5', body={'tags': ['a', 'b']}, **_params={})
2096 def replace_tag(self, resource_type, resource_id, body, **_params):
2097 """Replace tags on the resource."""
2098 return self.put(self.tags_path % (resource_type, resource_id), body)
2099
2100 def remove_tag(self, resource_type, resource_id, tag, **_params):
self = <neutronclient.v2_0.client.Client object>
self.put = <bound method ClientBase.put of <neutronclient.v2_0.client.Client object>>
self.tags_path = '/%s/%s/tags'
resource_type = 'networks'
resource_id = 'a30013a8-aac9-4746-8eb7-0eb52e1082e5'
body = {'tags': ['a', 'b']}
/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in put(self=<neutronclient.v2_0.client.Client object>, action='/networks/a30013a8-aac9-4746-8eb7-0eb52e1082e5/tags', body={'tags': ['a', 'b']}, headers=None, params=None)
360
361 def put(self, action, body=None, headers=None, params=None):
362 return self.retry_request("PUT", action, body=body,
363 headers=headers, params=params)
364
self = <neutronclient.v2_0.client.Client object>
self.retry_request = <bound method ClientBase.retry_request of <neutronclient.v2_0.client.Client object>>
action = '/networks/a30013a8-aac9-4746-8eb7-0eb52e1082e5/tags'
body = {'tags': ['a', 'b']}
headers = None
params = None
/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in retry_request(self=<neutronclient.v2_0.client.Client object>, method='PUT', action='/networks/a30013a8-aac9-4746-8eb7-0eb52e1082e5/tags', body={'tags': ['a', 'b']}, headers=None, params=None)
328 for i in range(max_attempts):
329 try:
330 return self.do_request(method, action, body=body,
331 headers=headers, params=params)
332 except (exceptions.ConnectionFailed, ksa_exc.ConnectionError):
self = <neutronclient.v2_0.client.Client object>
self.do_request = <bound method ClientBase.do_request of <neutronclient.v2_0.client.Client object>>
method = 'PUT'
action = '/networks/a30013a8-aac9-4746-8eb7-0eb52e1082e5/tags'
body = {'tags': ['a', 'b']}
headers = None
params = None
/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in do_request(self=<neutronclient.v2_0.client.Client object>, method='PUT', action='/v2.0/networks/a30013a8-aac9-4746-8eb7-0eb52e1082e5/tags', body='{"tags": ["a", "b"]}', headers=None, params=None)
292 if not replybody:
293 replybody = resp.reason
294 self._handle_fault_response(status_code, replybody, resp)
295
296 def get_auth_info(self):
self = <neutronclient.v2_0.client.Client object>
self._handle_fault_response = <bound method ClientBase._handle_fault_response of <neutronclient.v2_0.client.Client object>>
status_code = 404
replybody = '{"NeutronError": {"type": "SubnetNotFound", "mes..."Subnet None could not be found.", "detail": ""}}'
resp = <Response [404]>
/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in _handle_fault_response(self=<neutronclient.v2_0.client.Client object>, status_code=404, response_body='{"NeutronError": {"type": "SubnetNotFound", "mes..."Subnet None could not be found.", "detail": ""}}', resp=<Response [404]>)
267 error_body = self._convert_into_with_meta(des_error_body, resp)
268 # Raise the appropriate exception
269 exception_handler_v20(status_code, error_body)
270
271 def do_request(self, method, action, body=None, headers=None, params=None):
global exception_handler_v20 = <function exception_handler_v20>
status_code = 404
error_body = {'NeutronError': {'type': 'SubnetNotFound', 'mes...'Subnet None could not be found.', 'detail': ''}}
/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py in exception_handler_v20(status_code=404, error_content={'NeutronError': {'type': 'SubnetNotFound', 'mes...'Subnet None could not be found.', 'detail': ''}})
89 client_exc = exceptions.NeutronClientException
90
91 raise client_exc(message=error_message,
92 status_code=status_code,
93 request_ids=request_ids)
client_exc = <class 'neutronclient.common.exceptions.NotFound'>
message undefined
error_message = 'Subnet None could not be found.'
status_code = 404
request_ids = ['req-0980197d-b80e-4deb-90d2-232172975aa3']
NotFound: Subnet None could not be found.
Neutron server returns request_ids: ['req-0980197d-b80e-4deb-90d2-232172975aa3']
__cause__ = None
__class__ = <class 'neutronclient.common.exceptions.NotFound'>
__context__ = None
__delattr__ = <method-wrapper '__delattr__' of NotFound object>
__dict__ = {'_error_string': "Subnet None could not be found.\nNeutron server r...ids: ['req-0980197d-b80e-4deb-90d2-232172975aa3']", 'message': "Subnet None could not be found.\nNeutron server r...ids: ['req-0980197d-b80e-4deb-90d2-232172975aa3']", 'request_ids': ['req-0980197d-b80e-4deb-90d2-232172975aa3'], 'status_code': 404}
__dir__ = <built-in method __dir__ of NotFound object>
__doc__ = None
__eq__ = <method-wrapper '__eq__' of NotFound object>
__format__ = <built-in method __format__ of NotFound object>
__ge__ = <method-wrapper '__ge__' of NotFound object>
__getattribute__ = <method-wrapper '__getattribute__' of NotFound object>
__gt__ = <method-wrapper '__gt__' of NotFound object>
__hash__ = <method-wrapper '__hash__' of NotFound object>
__init__ = <bound method NeutronClientException.__init__ of NotFound()>
__init_subclass__ = <built-in method __init_subclass__ of type object>
__le__ = <method-wrapper '__le__' of NotFound object>
__lt__ = <method-wrapper '__lt__' of NotFound object>
__module__ = 'neutronclient.common.exceptions'
__ne__ = <method-wrapper '__ne__' of NotFound object>
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of NotFound object>
__reduce_ex__ = <built-in method __reduce_ex__ of NotFound object>
__repr__ = <method-wrapper '__repr__' of NotFound object>
__setattr__ = <method-wrapper '__setattr__' of NotFound object>
__setstate__ = <built-in method __setstate__ of NotFound object>
__sizeof__ = <built-in method __sizeof__ of NotFound object>
__str__ = <bound method NeutronException.__str__ of NotFound()>
__subclasshook__ = <built-in method __subclasshook__ of type object>
__suppress_context__ = False
__traceback__ = <traceback object>
__weakref__ = None
_error_string = "Subnet None could not be found.\nNeutron server r...ids: ['req-0980197d-b80e-4deb-90d2-232172975aa3']"
args = ()
message = "Subnet None could not be found.\nNeutron server r...ids: ['req-0980197d-b80e-4deb-90d2-232172975aa3']"
req_ids_msg = 'Neutron server returns request_ids: %s'
request_ids = ['req-0980197d-b80e-4deb-90d2-232172975aa3']
status_code = 404
with_traceback = <built-in method with_traceback of NotFound object>
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/neutron/test_crud.py", line 603, in test_network_tags_crud
c.replace_tag('networks', net_id, {'tags': ['a', 'b']})
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 2098, in replace_tag
return self.put(self.tags_path % (resource_type, resource_id), body)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 362, in put
return self.retry_request("PUT", action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 330, in retry_request
return self.do_request(method, action, body=body,
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 294, in do_request
self._handle_fault_response(status_code, replybody, resp)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 269, in _handle_fault_response
exception_handler_v20(status_code, error_body)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 91, in exception_handler_v20
raise client_exc(message=error_message,
neutronclient.common.exceptions.NotFound: Subnet None could not be found.
Neutron server returns request_ids: ['req-0980197d-b80e-4deb-90d2-232172975aa3']
| 4.978 |
Log File
|