2026-10-20 13:45:12,884 - INFO - Domain Default found not creating
2026-10-20 13:45:13,082 - INFO - Project ctest-TestRbacBasic-95941409 not found, creating it
2026-10-20 13:45:13,549 - INFO - Created Project:ctest-TestRbacBasic-95941409, ID : 3f61b431-fff9-4306-8ad2-52e5128f5f0c
2026-10-20 13:45:17,865 - INFO - ================================================================================
2026-10-20 13:45:17,865 - INFO - STARTING TEST : test_perms2_owner
2026-10-20 13:45:17,865 - 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
2026-10-20 13:45:17,993 - DEBUG - Skipping xmpp flap check
2026-10-20 13:45:17,998 - INFO - Initial checks done. Running the testcase now
2026-10-20 13:45:17,998 - INFO -
2026-10-20 13:45:18,441 - INFO - Project ctest-TestRbacBasic-14685195 not found, creating it
2026-10-20 13:45:18,943 - INFO - Created Project:ctest-TestRbacBasic-14685195, ID : 475a6198-fcf6-4700-836f-71988180813c
2026-10-20 13:45:19,406 - INFO - Project ctest-TestRbacBasic-43868058 not found, creating it
2026-10-20 13:45:19,924 - INFO - Created Project:ctest-TestRbacBasic-43868058, ID : d7c176e4-28f9-4e5c-b80d-fd3a31a83424
2026-10-20 13:45:22,115 - DEBUG - Requesting: http://10.0.0.186:8082/api-access-list/787c2af4-0bcd-488a-9638-22216b23ef3c
2026-10-20 13:45:22,519 - DEBUG - Requesting: http://10.0.0.186:8082/api-access-list/787c2af4-0bcd-488a-9638-22216b23ef3c
2026-10-20 13:45:22,582 - DEBUG - API access-list (787c2af4-0bcd-488a-9638-22216b23ef3c) found in api server
2026-10-20 13:45:22,582 - INFO - API access-list 787c2af4-0bcd-488a-9638-22216b23ef3c verify on api server passed
2026-10-20 13:45:23,243 - INFO - Created VN ctest-TestRbacBasic-14685195-58150913, UUID :294339ca-18d4-44b3-814d-30db65904b2d
2026-10-20 13:45:23,514 - ERROR - Some exception while doing neutron net-list
Traceback (most recent call last):
File "/contrail-test/fixtures/quantum_test.py", line 288, in get_vn_obj_from_id
return self.obj.show_network(network=uuid)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 822, in show_network
return self.get(self.network_path % (network), params=_params)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 353, in get
return self.retry_request("GET", 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: The resource could not be found.
Neutron server returns request_ids: ['req-d82ebb24-e38e-46bb-b72d-0023acb6c0e7']
2026-10-20 13:45:23,545 - DEBUG - Requesting: http://10.0.0.186:8082/api-access-list/787c2af4-0bcd-488a-9638-22216b23ef3c
2026-10-20 13:45:23,551 - DEBUG - Response Code: 404
2026-10-20 13:45:23,551 - INFO - API access-list (787c2af4-0bcd-488a-9638-22216b23ef3c) got deleted in api server
2026-10-20 13:45:24,661 - INFO - Deleted project: ctest-TestRbacBasic-43868058, ID : d7c176e4-28f9-4e5c-b80d-fd3a31a83424
2026-10-20 13:45:24,903 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:27,047 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:29,171 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:31,359 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:33,519 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:35,667 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:37,811 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:39,959 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:42,107 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:44,327 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:46,471 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:48,615 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:50,771 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:52,923 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:55,067 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:57,219 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:45:59,367 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:01,515 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:03,663 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:05,811 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:07,959 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:10,107 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:12,263 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:14,411 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:16,563 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:18,723 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:20,883 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:23,031 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:25,179 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:27,299 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:29,447 - WARNING - Project ctest-TestRbacBasic-14685195 still has VNs [{'to': ['default-domain', 'ctest-TestRbacBasic-14685195', 'ctest-TestRbacBasic-14685195-58150913'], 'uuid': '294339ca-18d4-44b3-814d-30db65904b2d', 'href': 'http://10.0.0.186:8082/virtual-network/294339ca-18d4-44b3-814d-30db65904b2d'}] before deletion
2026-10-20 13:46:29,448 - WARNING - One or more references still present, will not delete the project ctest-TestRbacBasic-14685195
2026-10-20 13:46:29,587 - ERROR - ValueError
Python 3.9.25: /usr/bin/python3
Tue Oct 20 13:45:23 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=, *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 = (, ValueError('could not find ctest-TestRbacBasic-14685195-58150913 in orchestrator'), )
/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py in reraise(exc_class=, exc_obj=ValueError('could not find ctest-TestRbacBasic-14685195-58150913 in orchestrator'), exc_tb=, _marker=