2025-08-27 14:18:18,730 - INFO - Domain Default found not creating
2025-08-27 14:18:18,872 - INFO - Project ctest-TestRbacBasic-21739495 not found, creating it
2025-08-27 14:18:19,305 - INFO - Created Project:ctest-TestRbacBasic-21739495, ID : 5cf6431b-2a83-481a-b10d-3a1ace16c407
2025-08-27 14:18:22,557 - INFO - ================================================================================
2025-08-27 14:18:22,557 - INFO - STARTING TEST : test_perms2_owner
2025-08-27 14:18:22,557 - INFO - TEST DESCRIPTION :
Validate perms2 tenant ownership
steps:
1. Create Project1 and Project2
2. Add user1 as role1 under project1 and project2
3. create domain acl rule 'VirtualNetwork.* role1:CRUD'
4. create VN1 under Project1
4. create VN2 under Project2
5. user1 shouldnt be able to read VN1 using project2 creds
6. admin should be able to read VN1 though he isnt member of the project
7. Network list with respective project creds should list corresponding VNs
8. Change ownership of VN1 to Project2
9. user1 should now be able to read VN1 using Project2 creds
10. Network list with Project2 creds should list both VNs,
Project1 creds should list VN1 alone, admin should list both VNs
2025-08-27 14:18:22,675 - DEBUG - Skipping xmpp flap check
2025-08-27 14:18:22,679 - INFO - Initial checks done. Running the testcase now
2025-08-27 14:18:22,679 - INFO -
2025-08-27 14:18:23,024 - INFO - Project ctest-TestRbacBasic-66220669 not found, creating it
2025-08-27 14:18:23,453 - INFO - Created Project:ctest-TestRbacBasic-66220669, ID : ce961f0d-6b05-4038-a926-97d0b79bce72
2025-08-27 14:18:23,786 - INFO - Project ctest-TestRbacBasic-80596882 not found, creating it
2025-08-27 14:18:24,209 - INFO - Created Project:ctest-TestRbacBasic-80596882, ID : b6cd8378-9f62-4a7d-a64c-3f314cb43222
2025-08-27 14:18:25,987 - DEBUG - Requesting: http://10.0.0.38:8082/api-access-list/a06096ff-5745-473f-b8d8-3443124546a4
2025-08-27 14:18:26,300 - DEBUG - Requesting: http://10.0.0.38:8082/api-access-list/a06096ff-5745-473f-b8d8-3443124546a4
2025-08-27 14:18:26,350 - DEBUG - API access-list (a06096ff-5745-473f-b8d8-3443124546a4) found in api server
2025-08-27 14:18:26,350 - INFO - API access-list a06096ff-5745-473f-b8d8-3443124546a4 verify on api server passed
2025-08-27 14:18:26,879 - INFO - Created VN ctest-TestRbacBasic-66220669-75279116, UUID :715124d0-5844-4ab0-9bd5-b4d5baf25200
2025-08-27 14:18:27,069 - DEBUG - Requesting: http://10.0.0.38:8082/api-access-list/a06096ff-5745-473f-b8d8-3443124546a4
2025-08-27 14:18:27,074 - DEBUG - Response Code: 404
2025-08-27 14:18:27,074 - INFO - API access-list (a06096ff-5745-473f-b8d8-3443124546a4) got deleted in api server
2025-08-27 14:18:27,901 - INFO - Deleted project: ctest-TestRbacBasic-80596882, ID : b6cd8378-9f62-4a7d-a64c-3f314cb43222
2025-08-27 14:18:28,027 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:30,159 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:32,295 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:34,431 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:36,567 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:38,707 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:40,839 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:42,971 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:45,107 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:47,239 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:49,371 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:51,503 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:53,635 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:55,767 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:18:57,895 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:00,023 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:02,155 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:04,287 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:06,419 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:08,551 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:10,695 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:12,831 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:14,963 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:17,095 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:19,227 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:21,359 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:23,487 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:25,647 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:27,775 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:29,907 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:32,035 - WARNING - Project ctest-TestRbacBasic-66220669 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-66220669', 'ctest-TestRbacBasic-66220669-75279116'], 'uuid': '715124d0-5844-4ab0-9bd5-b4d5baf25200', 'href': 'http://10.0.0.38:8082/virtual-network/715124d0-5844-4ab0-9bd5-b4d5baf25200'}] before deletion
2025-08-27 14:19:32,035 - WARNING - One or more references still present, will not delete the project ctest-TestRbacBasic-66220669
2025-08-27 14:19:32,151 - ERROR - HttpError
Python 3.9.21: /usr/bin/python3
Wed Aug 27 14:18:27 2025
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={})
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 =
self =
args = ()
kwargs = {}
/contrail-test/serial_scripts/rbac/test_rbac_basic.py in test_perms2_owner(self=)
223 ]
224 domain_rbac = self.create_rbac_acl(rules=vn_rules, parent_type='domain')
225 vn = self.create_vn(connections=u1_p1_conn, verify=False)
226 assert vn, 'VN creation failed'
227 vn2 = self.create_vn(connections=u1_p2_conn, verify=False)
vn undefined
self =
self.create_vn = >
connections undefined
u1_p1_conn =
verify undefined
/contrail-test/serial_scripts/rbac/base.py in create_vn(self=, connections=, verify=False, option='contrail', **kwargs={})
214 def create_vn(self, connections=None, verify=True, option='contrail', **kwargs):
215 connections = connections or self.connections
216 vn_fixture = self.create_fixture(VNFixture, connections=connections,
217 option=option, **kwargs)
218 if vn_fixture and verify:
vn_fixture undefined
self =
self.create_fixture = >
global VNFixture =
connections =
option = 'contrail'
kwargs = {}
/contrail-test/serial_scripts/rbac/base.py in create_fixture(self=, fixturecls=, **kwargs={'connections': , 'option': 'contrail'})
352 def create_fixture(self, fixturecls, **kwargs):
353 try:
354 return self.useFixture(fixturecls(**kwargs))
355 except (PermissionDenied, neutron_forbidden):
356 return None
self =
self.useFixture = >
fixturecls =
kwargs = {'connections': , 'option': 'contrail'}
/usr/local/lib/python3.9/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 = (, HttpError(500, "'NoneType' object is not iterable"), )
/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py in reraise(exc_class=, exc_obj=HttpError(500, "'NoneType' object is not iterable"), exc_tb=, _marker=