2025-08-27 14:16:11,601 - INFO - Domain Default found not creating
2025-08-27 14:16:11,741 - INFO - Project ctest-TestBasicPolicyIpv4v6-81339210 not found, creating it
2025-08-27 14:16:12,169 - INFO - Created Project:ctest-TestBasicPolicyIpv4v6-81339210, ID : b0ced9a9-0a21-4774-ad65-2b761f4af8a1
2025-08-27 14:16:13,569 - INFO - ================================================================================
2025-08-27 14:16:13,569 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-27 14:16:13,569 - 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:13,693 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-08-27 14:16:13,693 - INFO - Initial checks done. Running the testcase now
2025-08-27 14:16:13,693 - INFO -
2025-08-27 14:16:14,214 - DEBUG - Response for create_network : {'network': {'id': '2ab290ed-26df-44e2-a827-daa5c61e429f', 'name': 'ctest-vn-53683669', 'tenant_id': 'b0ced9a90a214774ad652b761f4af8a1', 'project_id': 'b0ced9a90a214774ad652b761f4af8a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyIpv4v6-81339210', 'ctest-vn-53683669'], 'port_security_enabled': True, 'description': ''}}
2025-08-27 14:16:14,331 - ERROR - Neutron Exception while creating subnet for vn with id 2ab290ed-26df-44e2-a827-daa5c61e429f
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-a4057865-9b7e-4f58-aeeb-adecd7404b57']
2025-08-27 14:16:14,436 - ERROR - Neutron Exception while creating subnet for vn with id 2ab290ed-26df-44e2-a827-daa5c61e429f
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-a91174de-1a63-49af-b1d8-e52947d1132d']
2025-08-27 14:16:14,451 - INFO - Created VN ctest-vn-53683669
2025-08-27 14:16:14,503 - DEBUG - VN ctest-vn-53683669 UUID is 2ab290ed-26df-44e2-a827-daa5c61e429f
2025-08-27 14:16:14,787 - DEBUG - Response for create_network : {'network': {'id': '86c6bf93-5b37-4d6e-9537-39e260354b6a', 'name': 'ctest-vn-46050818', 'tenant_id': 'b0ced9a90a214774ad652b761f4af8a1', 'project_id': 'b0ced9a90a214774ad652b761f4af8a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyIpv4v6-81339210', 'ctest-vn-46050818'], 'port_security_enabled': True, 'description': ''}}
2025-08-27 14:16:14,913 - ERROR - Neutron Exception while creating subnet for vn with id 86c6bf93-5b37-4d6e-9537-39e260354b6a
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-31bfc15d-355b-4822-a144-fe3dd9c7c38c']
2025-08-27 14:16:15,022 - ERROR - Neutron Exception while creating subnet for vn with id 86c6bf93-5b37-4d6e-9537-39e260354b6a
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-bed56c63-db55-47ea-8751-625256059a49']
2025-08-27 14:16:15,037 - INFO - Created VN ctest-vn-46050818
2025-08-27 14:16:15,087 - DEBUG - VN ctest-vn-46050818 UUID is 86c6bf93-5b37-4d6e-9537-39e260354b6a
2025-08-27 14:16:15,211 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyIpv4v6-81339210:ctest-vn-53683669, 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-TestBasicPolicyIpv4v6-81339210:ctest-vn-46050818, 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, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyIpv4v6-81339210:ctest-vn-53683669, 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-TestBasicPolicyIpv4v6-81339210:ctest-vn-46050818, 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:15,532 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ab290ed-26df-44e2-a827-daa5c61e429f', 'name': 'ctest-vn-53683669', 'tenant_id': 'b0ced9a90a214774ad652b761f4af8a1', 'project_id': 'b0ced9a90a214774ad652b761f4af8a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyIpv4v6-81339210', 'ctest-vn-53683669'], 'policys': [['default-domain', 'ctest-TestBasicPolicyIpv4v6-81339210', 'ctest-policy-allow-all-10064163']], 'port_security_enabled': True, 'description': ''}}
2025-08-27 14:16:15,795 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86c6bf93-5b37-4d6e-9537-39e260354b6a', 'name': 'ctest-vn-46050818', 'tenant_id': 'b0ced9a90a214774ad652b761f4af8a1', 'project_id': 'b0ced9a90a214774ad652b761f4af8a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyIpv4v6-81339210', 'ctest-vn-46050818'], 'policys': [['default-domain', 'ctest-TestBasicPolicyIpv4v6-81339210', 'ctest-policy-allow-all-10064163']], 'port_security_enabled': True, 'description': ''}}
2025-08-27 14:16:15,947 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-27 14:16:16,243 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-27 14:16:16,271 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9130d1c2-5fd5-4a37-8697-96bb219a4e4c
2025-08-27 14:16:16,282 - DEBUG - Requesting: http://10.0.0.38:8082/project/b0ced9a9-0a21-4774-ad65-2b761f4af8a1
2025-08-27 14:16:16,354 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2ab290ed-26df-44e2-a827-daa5c61e429f
2025-08-27 14:16:16,626 - INFO - Deleted policy ctest-policy-allow-all-10064163
2025-08-27 14:16:16,627 - INFO - Deleting VN ctest-vn-46050818
2025-08-27 14:16:16,699 - DEBUG - Response for deleting network ()
2025-08-27 14:16:16,699 - INFO - Deleting VN ctest-vn-53683669
2025-08-27 14:16:16,776 - DEBUG - Response for deleting network ()
2025-08-27 14:16:16,899 - ERROR - KeyError
Python 3.9.21: /usr/bin/python3
Wed Aug 27 14:16:16 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=