2024-10-18 22:02:30,008 - INFO - Domain Default found not creating 2024-10-18 22:02:30,166 - INFO - Project ctest-TestBasicPolicyIpv4v6-38732525 not found, creating it 2024-10-18 22:02:30,254 - 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/79bfd43c-aee2-401b-90ad-85e3ef1c8933 body {'exclude_back_refs': True, 'exclude_children': True} response Unknown id: 79bfd43c-aee2-401b-90ad-85e3ef1c8933 2024-10-18 22:02:32,410 - INFO - ================================================================================ 2024-10-18 22:02:32,410 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-18 22:02:32,410 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-10-18 22:02:32,533 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.20': '0'}} with 2024-10-18 22:02:32,533 - INFO - Initial checks done. Running the testcase now 2024-10-18 22:02:32,533 - INFO - 2024-10-18 22:02:33,223 - ERROR - NoIdError Python 3.6.8: /usr/bin/python3 Fri Oct 18 22:02:33 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/policy/test_policy_basic.py in test_basic_policy_allow_deny(self=) 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 = self.create_vn = > /contrail-test/common/base.py in create_vn(self=, 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=, vn_name='ctest-vn-35072061', 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_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-TestBasicPolicyIpv4v6-38732525'] /contrail-test/fixtures/vnc_api_test.py in get_project_obj(self=, project_fqname=['default-domain', 'ctest-TestBasicPolicyIpv4v6-38732525']) 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-TestBasicPolicyIpv4v6-38732525'] /usr/lib/python3.6/site-packages/vnc_api/vnc_api.py in wrapper(self=, *args=('project',), **kwargs={'fq_name': ['default-domain', 'ctest-TestBasicPolicyIpv4v6-38732525']}) 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-TestBasicPolicyIpv4v6-38732525']} /usr/lib/python3.6/site-packages/vnc_api/vnc_api.py in _object_read(self=, res_type='project', fq_name=['default-domain', 'ctest-TestBasicPolicyIpv4v6-38732525'], 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-TestBasicPolicyIpv4v6-38732525'] 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-TestBasicPolicyIpv4v6-38732525'], 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-TestBasicPolicyIpv4v6-38732525'] /usr/lib/python3.6/site-packages/vnc_api/vnc_api.py in wrapper(self=, *args=('project', ['default-domain', 'ctest-TestBasicPolicyIpv4v6-38732525']), **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-TestBasicPolicyIpv4v6-38732525']) 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-TestBasicPolicyIpv4v6-38732525']) 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-TestBasicPolicyIpv4v6-38732525"]}' /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-TestBasicPolicyIpv4v6-38732525"]}', 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-TestBasicPolicyIpv4v6-38732525"]}', 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-TestBasicPolicyIpv4v6-38732525"]}' 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-TestBasicPolicyIpv4v6-38732525"]}', 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-TestBasicPolicyIpv4v6-38732525"]}' content = "Name ['default-domain', 'ctest-TestBasicPolicyIpv4v6-38732525'] not found" NoIdError: Unknown id: Error: oper 1 url /fqname-to-id body {"type": "project", "fq_name": ["default-domain", "ctest-TestBasicPolicyIpv4v6-38732525"]} response Name ['default-domain', 'ctest-TestBasicPolicyIpv4v6-38732525'] not found __cause__ = None __class__ = __context__ = None __delattr__ = __dict__ = {'_unknown_id': 'Error: oper 1 url /fqname-to-id body {"type": "p...\'ctest-TestBasicPolicyIpv4v6-38732525\'] 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...\'ctest-TestBasicPolicyIpv4v6-38732525\'] not found' args = ('Error: oper 1 url /fqname-to-id body {"type": "p...\'ctest-TestBasicPolicyIpv4v6-38732525\'] 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/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 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-TestBasicPolicyIpv4v6-38732525"]} response Name ['default-domain', 'ctest-TestBasicPolicyIpv4v6-38732525'] not found 2024-10-18 22:02:33,230 - DEBUG - No XMPP flaps were noticed during the test 2024-10-18 22:02:33,230 - INFO -
2024-10-18 22:02:33,230 - INFO - END TEST : test_basic_policy_allow_deny : FAILED[0:00:01]
2024-10-18 22:02:33,230 - INFO - --------------------------------------------------------------------------------