2024-10-18 22:02:09,885 - INFO - Domain Default found not creating 2024-10-18 22:02:10,052 - INFO - Project ctest-AnalyticsBasicTestSanity-79331299 not found, creating it 2024-10-18 22:02:10,129 - ERROR - Exception while creating project Traceback (most recent call last): File "/contrail-test/common/isolated_creds.py", line 184, in create_tenant project.setUp() File "/contrail-test/fixtures/project_test.py", line 99, in setUp self.create() File "/contrail-test/fixtures/project_test.py", line 133, in create self._create_project() File "/contrail-test/fixtures/project_test.py", line 70, in _create_project self.project_obj = self.vnc_lib_fixture.project_read(id=self.uuid) File "/contrail-test/fixtures/vnc_api_test.py", line 238, in hook return act_attr(*args, **kwargs) File "/usr/lib/python3.6/site-packages/vnc_api/vnc_api.py", line 52, in wrapper return func(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/vnc_api/vnc_api.py", line 728, in _object_read response = self._request_server(OP_GET, uri, query_params) File "/usr/lib/python3.6/site-packages/vnc_api/vnc_api.py", line 1128, in _request_server retry_after_authn=retry_after_authn, retry_count=retry_count) File "/usr/lib/python3.6/site-packages/vnc_api/vnc_api.py", line 1181, in _request % (op, url, data, content)) vnc_api.exceptions.NoIdError: Unknown id: Error: oper 2 url /project/b81229e2-7fe7-48e8-a126-5459f0ee7855 body {'exclude_back_refs': True, 'exclude_children': True} response Unknown id: b81229e2-7fe7-48e8-a126-5459f0ee7855 2024-10-18 22:02:15,429 - INFO - ================================================================================ 2024-10-18 22:02:15,430 - INFO - STARTING TEST : test_verify_object_logs 2024-10-18 22:02:15,430 - INFO - TEST DESCRIPTION : Description: Test to validate object logs 1.Create vn/vm and verify object log tables updated with those vn, vm and routing-instance - fails otherwise Maintainer: sandipd@juniper.net 2024-10-18 22:02:15,570 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.20': '0'}} with 2024-10-18 22:02:15,570 - INFO - Initial checks done. Running the testcase now 2024-10-18 22:02:15,570 - INFO - 2024-10-18 22:02:16,136 - ERROR - NoIdError Python 3.6.8: /usr/bin/python3 Fri Oct 18 22:02:15 2024 A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred. /contrail-test/tcutils/wrappers.py in wrapper(self=, *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 = self = args = () kwargs = {} /contrail-test/scripts/analytics/test_analytics_basic.py in test_verify_object_logs(self=) 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-05390142' subnets undefined vn_subnets = ['139.9.102.0/26'] /usr/local/lib/python3.6/site-packages/testtools/testcase.py in useFixture(self=, fixture=) 754 # Gather_details worked, so raise the exception setUp 755 # encountered. 756 reraise(*exc_info) 757 else: 758 self.addCleanup(fixture.cleanUp) global reraise = exc_info = (, NoIdError('Error: oper 1 url /fqname-to-id body ...AnalyticsBasicTestSanity-79331299\'] not found',), ) /usr/local/lib/python3.6/site-packages/testtools/_compat3x.py in reraise(exc_class=, exc_obj=NoIdError('Error: oper 1 url /fqname-to-id body ...AnalyticsBasicTestSanity-79331299\'] not found',), exc_tb=, _marker=) 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 = NoIdError('Error: oper 1 url /fqname-to-id body ...AnalyticsBasicTestSanity-79331299\'] not found',) exc_obj.with_traceback = exc_tb = /usr/local/lib/python3.6/site-packages/testtools/testcase.py in useFixture(self=, fixture=) 729 """ 730 try: 731 fixture.setUp() 732 except MultipleExceptions as e: 733 if (fixtures is not None and fixture = fixture.setUp = > /contrail-test/fixtures/vn_test.py in setUp(self=) 447 def setUp(self): 448 super(VNFixture, self).setUp() 449 self.create() 450 451 def create(self): self = self.create = > /contrail-test/fixtures/vn_test.py in create(self=) 452 project_fqname = [self.domain_name, self.project_name] 453 self.project_obj = self.connections.vnc_lib_fixture.get_project_obj( 454 project_fqname) 455 if self.uuid: 456 return self.read() project_fqname = ['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299'] /contrail-test/fixtures/vnc_api_test.py in get_project_obj(self=, project_fqname=['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299']) 284 def get_project_obj(self, project_fqname=None): 285 if project_fqname: 286 return self.vnc_api_h.project_read(fq_name=project_fqname) 287 elif self.connections: 288 project_id = self.connections.project_id self = self.vnc_api_h = self.vnc_api_h.project_read = functools.partial(>, 'project') fq_name undefined project_fqname = ['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299'] /usr/lib/python3.6/site-packages/vnc_api/vnc_api.py in wrapper(self=, *args=('project',), **kwargs={'fq_name': ['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299']}) 50 retry_on_error=False) 51 self._parse_homepage(homepage) 52 return func(self, *args, **kwargs) 53 return wrapper 54 func = self = args = ('project',) kwargs = {'fq_name': ['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299']} /usr/lib/python3.6/site-packages/vnc_api/vnc_api.py in _object_read(self=, res_type='project', fq_name=['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299'], fq_name_str=None, id=None, ifmap_id=None, fields=None, exclude_back_refs=True, exclude_children=True) 699 700 (args_ok, result) = self._read_args_to_id( 701 res_type, fq_name, fq_name_str, id, ifmap_id) 702 if not args_ok: 703 return result res_type = 'project' fq_name = ['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299'] fq_name_str = None id = None ifmap_id = None /usr/lib/python3.6/site-packages/vnc_api/vnc_api.py in _read_args_to_id(self=, res_type='project', fq_name=['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299'], fq_name_str=None, id=None, ifmap_id=None) 1112 return (True, id) 1113 if fq_name: 1114 return (True, self.fq_name_to_id(res_type, fq_name)) 1115 if fq_name_str: 1116 return (True, self.fq_name_to_id(res_type, fq_name_str.split(':'))) self = self.fq_name_to_id = > res_type = 'project' fq_name = ['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299'] /usr/lib/python3.6/site-packages/vnc_api/vnc_api.py in wrapper(self=, *args=('project', ['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299']), **kwargs={}) 50 retry_on_error=False) 51 self._parse_homepage(homepage) 52 return func(self, *args, **kwargs) 53 return wrapper 54 func = self = args = ('project', ['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299']) kwargs = {} /usr/lib/python3.6/site-packages/vnc_api/vnc_api.py in fq_name_to_id(self=, obj_type='project', fq_name=['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299']) 1393 uri = self._action_uri['name-to-id'] 1394 try: 1395 content = self._request_server(OP_POST, uri, data=json_body) 1396 except HttpError as he: 1397 if he.status_code == 404: content undefined self = self._request_server = > global OP_POST = 1 uri = '/fqname-to-id' data undefined json_body = '{"type": "project", "fq_name": ["default-domain", "ctest-AnalyticsBasicTestSanity-79331299"]}' /usr/lib/python3.6/site-packages/vnc_api/vnc_api.py in _request_server(self=, op=1, url='/fqname-to-id', data='{"type": "project", "fq_name": ["default-domain", "ctest-AnalyticsBasicTestSanity-79331299"]}', retry_on_error=True, retry_after_authn=False, retry_count=30) 1126 return self._request( 1127 op, url, data=data, retry_on_error=retry_on_error, 1128 retry_after_authn=retry_after_authn, retry_count=retry_count) 1129 # end _request_server 1130 retry_after_authn = False retry_count = 30 /usr/lib/python3.6/site-packages/vnc_api/vnc_api.py in _request(self=, op=1, url='/fqname-to-id', data='{"type": "project", "fq_name": ["default-domain", "ctest-AnalyticsBasicTestSanity-79331299"]}', retry_on_error=True, retry_after_authn=False, retry_count=30) 1174 # Recursive call after authentication (max 1 level) 1175 content = self._request( 1176 op, url, data=data, retry_after_authn=True) 1177 1178 return content op = 1 url = '/fqname-to-id' data = '{"type": "project", "fq_name": ["default-domain", "ctest-AnalyticsBasicTestSanity-79331299"]}' retry_after_authn = False /usr/lib/python3.6/site-packages/vnc_api/vnc_api.py in _request(self=, op=1, url='/fqname-to-id', data='{"type": "project", "fq_name": ["default-domain", "ctest-AnalyticsBasicTestSanity-79331299"]}', retry_on_error=True, retry_after_authn=True, retry_count=30) 1179 elif status == 404: 1180 raise NoIdError('Error: oper %s url %s body %s response %s' 1181 % (op, url, data, content)) 1182 elif status == 403: 1183 raise PermissionDenied(content) op = 1 url = '/fqname-to-id' data = '{"type": "project", "fq_name": ["default-domain", "ctest-AnalyticsBasicTestSanity-79331299"]}' content = "Name ['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299'] not found" NoIdError: Unknown id: Error: oper 1 url /fqname-to-id body {"type": "project", "fq_name": ["default-domain", "ctest-AnalyticsBasicTestSanity-79331299"]} response Name ['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299'] not found __cause__ = None __class__ = __context__ = None __delattr__ = __dict__ = {'_unknown_id': 'Error: oper 1 url /fqname-to-id body {"type": "p...est-AnalyticsBasicTestSanity-79331299\'] not found'} __dir__ = __doc__ = None __eq__ = __format__ = __ge__ = __getattribute__ = __gt__ = __hash__ = __init__ = __init_subclass__ = __le__ = __lt__ = __module__ = 'vnc_api.exceptions' __ne__ = __new__ = __reduce__ = __reduce_ex__ = __repr__ = __setattr__ = __setstate__ = __sizeof__ = __str__ = __subclasshook__ = __suppress_context__ = False __traceback__ = __weakref__ = None _unknown_id = 'Error: oper 1 url /fqname-to-id body {"type": "p...est-AnalyticsBasicTestSanity-79331299\'] not found' args = ('Error: oper 1 url /fqname-to-id body {"type": "p...est-AnalyticsBasicTestSanity-79331299\'] not found',) with_traceback = 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 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 454, in create project_fqname) File "/contrail-test/fixtures/vnc_api_test.py", line 286, in get_project_obj return self.vnc_api_h.project_read(fq_name=project_fqname) File "/usr/lib/python3.6/site-packages/vnc_api/vnc_api.py", line 52, in wrapper return func(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/vnc_api/vnc_api.py", line 701, in _object_read res_type, fq_name, fq_name_str, id, ifmap_id) File "/usr/lib/python3.6/site-packages/vnc_api/vnc_api.py", line 1114, in _read_args_to_id return (True, self.fq_name_to_id(res_type, fq_name)) File "/usr/lib/python3.6/site-packages/vnc_api/vnc_api.py", line 52, in wrapper return func(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/vnc_api/vnc_api.py", line 1395, in fq_name_to_id content = self._request_server(OP_POST, uri, data=json_body) File "/usr/lib/python3.6/site-packages/vnc_api/vnc_api.py", line 1128, in _request_server retry_after_authn=retry_after_authn, retry_count=retry_count) File "/usr/lib/python3.6/site-packages/vnc_api/vnc_api.py", line 1176, in _request op, url, data=data, retry_after_authn=True) File "/usr/lib/python3.6/site-packages/vnc_api/vnc_api.py", line 1181, in _request % (op, url, data, content)) vnc_api.exceptions.NoIdError: Unknown id: Error: oper 1 url /fqname-to-id body {"type": "project", "fq_name": ["default-domain", "ctest-AnalyticsBasicTestSanity-79331299"]} response Name ['default-domain', 'ctest-AnalyticsBasicTestSanity-79331299'] not found 2024-10-18 22:02:16,142 - DEBUG - No XMPP flaps were noticed during the test 2024-10-18 22:02:16,143 - INFO -
2024-10-18 22:02:16,143 - INFO - END TEST : test_verify_object_logs : FAILED[0:00:01]
2024-10-18 22:02:16,143 - INFO - --------------------------------------------------------------------------------