2025-08-27 14:16:23,173 - INFO - Domain Default found not creating
2025-08-27 14:16:23,323 - INFO - Project ctest-TestBasicPolicy-69815288 not found, creating it
2025-08-27 14:16:23,785 - INFO - Created Project:ctest-TestBasicPolicy-69815288, ID : 0c65bd56-f689-4f6b-921b-6cc94b08e6d9
2025-08-27 14:16:25,185 - INFO - ================================================================================
2025-08-27 14:16:25,185 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-27 14:16:25,185 - 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
2025-08-27 14:16:25,313 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-08-27 14:16:25,313 - INFO - Initial checks done. Running the testcase now
2025-08-27 14:16:25,313 - INFO -
2025-08-27 14:16:26,125 - DEBUG - Response for create_network : {'network': {'id': 'e5bc6742-5980-4305-9529-321de336073c', 'name': 'ctest-vn-79384376', 'tenant_id': '0c65bd56f6894f6b921b6cc94b08e6d9', 'project_id': '0c65bd56f6894f6b921b6cc94b08e6d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69815288', 'ctest-vn-79384376'], 'port_security_enabled': True, 'description': ''}}
2025-08-27 14:16:26,810 - ERROR - Neutron Exception while creating subnet for vn with id e5bc6742-5980-4305-9529-321de336073c
Traceback (most recent call last):
File "/contrail-test/fixtures/quantum_test.py", line 128, in create_subnet
subnet_rsp = self.obj.create_subnet({'subnet': subnet_req})
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 848, in create_subnet
return self.post(self.subnets_path, body=body)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 358, in post
return self.do_request("POST", 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.InternalServerError: The server has either erred or is incapable of performing the requested operation.
Neutron server returns request_ids: ['req-9048ca04-a61d-4643-ae60-b6bbb7178704']
2025-08-27 14:16:26,847 - INFO - Created VN ctest-vn-79384376
2025-08-27 14:16:26,907 - DEBUG - VN ctest-vn-79384376 UUID is e5bc6742-5980-4305-9529-321de336073c
2025-08-27 14:16:27,271 - DEBUG - Response for create_network : {'network': {'id': '6c6b3f1f-a43b-46d7-acf8-b0e6487c3dc7', 'name': 'ctest-vn-38566452', 'tenant_id': '0c65bd56f6894f6b921b6cc94b08e6d9', 'project_id': '0c65bd56f6894f6b921b6cc94b08e6d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69815288', 'ctest-vn-38566452'], 'port_security_enabled': True, 'description': ''}}
2025-08-27 14:16:27,406 - ERROR - Neutron Exception while creating subnet for vn with id 6c6b3f1f-a43b-46d7-acf8-b0e6487c3dc7
Traceback (most recent call last):
File "/contrail-test/fixtures/quantum_test.py", line 128, in create_subnet
subnet_rsp = self.obj.create_subnet({'subnet': subnet_req})
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 848, in create_subnet
return self.post(self.subnets_path, body=body)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 358, in post
return self.do_request("POST", 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.InternalServerError: The server has either erred or is incapable of performing the requested operation.
Neutron server returns request_ids: ['req-55a0445f-fd27-4689-8b62-d4427ae3ed4f']
2025-08-27 14:16:27,426 - INFO - Created VN ctest-vn-38566452
2025-08-27 14:16:27,479 - DEBUG - VN ctest-vn-38566452 UUID is 6c6b3f1f-a43b-46d7-acf8-b0e6487c3dc7
2025-08-27 14:16:27,603 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69815288:ctest-vn-79384376, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69815288:ctest-vn-38566452, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-08-27 14:16:27,898 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e5bc6742-5980-4305-9529-321de336073c', 'name': 'ctest-vn-79384376', 'tenant_id': '0c65bd56f6894f6b921b6cc94b08e6d9', 'project_id': '0c65bd56f6894f6b921b6cc94b08e6d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69815288', 'ctest-vn-79384376'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69815288', 'ctest-policy-allow-all-35653820']], 'port_security_enabled': True, 'description': ''}}
2025-08-27 14:16:28,127 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c6b3f1f-a43b-46d7-acf8-b0e6487c3dc7', 'name': 'ctest-vn-38566452', 'tenant_id': '0c65bd56f6894f6b921b6cc94b08e6d9', 'project_id': '0c65bd56f6894f6b921b6cc94b08e6d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69815288', 'ctest-vn-38566452'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69815288', 'ctest-policy-allow-all-35653820']], 'port_security_enabled': True, 'description': ''}}
2025-08-27 14:16:28,283 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-27 14:16:28,582 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-27 14:16:28,610 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9130d1c2-5fd5-4a37-8697-96bb219a4e4c
2025-08-27 14:16:28,622 - DEBUG - Requesting: http://10.0.0.38:8082/project/0c65bd56-f689-4f6b-921b-6cc94b08e6d9
2025-08-27 14:16:28,693 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e5bc6742-5980-4305-9529-321de336073c
2025-08-27 14:16:28,942 - INFO - Deleted policy ctest-policy-allow-all-35653820
2025-08-27 14:16:28,942 - INFO - Deleting VN ctest-vn-38566452
2025-08-27 14:16:29,010 - DEBUG - Response for deleting network ()
2025-08-27 14:16:29,010 - INFO - Deleting VN ctest-vn-79384376
2025-08-27 14:16:29,090 - DEBUG - Response for deleting network ()
2025-08-27 14:16:29,207 - ERROR - KeyError
Python 3.9.21: /usr/bin/python3
Wed Aug 27 14:16:28 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=