2025-08-07 16:38:58,211 - INFO - Domain Default found not creating
2025-08-07 16:38:58,577 - INFO - Project ctest-TestBasicPolicyIpv4v6-98812577 not found, creating it
2025-08-07 16:38:59,442 - INFO - Created Project:ctest-TestBasicPolicyIpv4v6-98812577, ID : d0f78462-1445-4745-881d-d57a39c77ace
2025-08-07 16:39:01,670 - INFO - ================================================================================
2025-08-07 16:39:01,670 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-07 16:39:01,670 - 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-07 16:39:01,874 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2025-08-07 16:39:01,875 - INFO - Initial checks done. Running the testcase now
2025-08-07 16:39:01,875 - INFO -
2025-08-07 16:39:02,661 - DEBUG - Response for create_network : {'network': {'id': '12f67c4a-4919-4f2e-864a-a49e06823a4d', 'name': 'ctest-vn-28084912', 'tenant_id': 'd0f7846214454745881dd57a39c77ace', 'project_id': 'd0f7846214454745881dd57a39c77ace', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyIpv4v6-98812577', 'ctest-vn-28084912'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 16:39:02,825 - ERROR - Neutron Exception while creating subnet for vn with id 12f67c4a-4919-4f2e-864a-a49e06823a4d
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.6/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.6/site-packages/neutronclient/v2_0/client.py", line 359, in post
headers=headers, params=params)
File "/usr/local/lib/python3.6/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.6/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.6/site-packages/neutronclient/v2_0/client.py", line 93, in exception_handler_v20
request_ids=request_ids)
neutronclient.common.exceptions.InternalServerError: The server has either erred or is incapable of performing the requested operation.
Neutron server returns request_ids: ['req-1ce191b8-bfb4-4063-b500-6c0df425cd26']
2025-08-07 16:39:02,989 - ERROR - Neutron Exception while creating subnet for vn with id 12f67c4a-4919-4f2e-864a-a49e06823a4d
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.6/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.6/site-packages/neutronclient/v2_0/client.py", line 359, in post
headers=headers, params=params)
File "/usr/local/lib/python3.6/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.6/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.6/site-packages/neutronclient/v2_0/client.py", line 93, in exception_handler_v20
request_ids=request_ids)
neutronclient.common.exceptions.InternalServerError: The server has either erred or is incapable of performing the requested operation.
Neutron server returns request_ids: ['req-cc9f71a5-40d3-43b4-ae73-e43cc6a49c16']
2025-08-07 16:39:03,022 - INFO - Created VN ctest-vn-28084912
2025-08-07 16:39:03,087 - DEBUG - VN ctest-vn-28084912 UUID is 12f67c4a-4919-4f2e-864a-a49e06823a4d
2025-08-07 16:39:03,584 - DEBUG - Response for create_network : {'network': {'id': '4f261aaa-f491-4e35-9b91-aa77d6a892ac', 'name': 'ctest-vn-24546111', 'tenant_id': 'd0f7846214454745881dd57a39c77ace', 'project_id': 'd0f7846214454745881dd57a39c77ace', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyIpv4v6-98812577', 'ctest-vn-24546111'], 'port_security_enabled': True, 'description': ''}}
2025-08-07 16:39:03,799 - ERROR - Neutron Exception while creating subnet for vn with id 4f261aaa-f491-4e35-9b91-aa77d6a892ac
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.6/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.6/site-packages/neutronclient/v2_0/client.py", line 359, in post
headers=headers, params=params)
File "/usr/local/lib/python3.6/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.6/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.6/site-packages/neutronclient/v2_0/client.py", line 93, in exception_handler_v20
request_ids=request_ids)
neutronclient.common.exceptions.InternalServerError: The server has either erred or is incapable of performing the requested operation.
Neutron server returns request_ids: ['req-9cd6790a-4640-424c-9345-2d4adbdc35f4']
2025-08-07 16:39:04,003 - ERROR - Neutron Exception while creating subnet for vn with id 4f261aaa-f491-4e35-9b91-aa77d6a892ac
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.6/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.6/site-packages/neutronclient/v2_0/client.py", line 359, in post
headers=headers, params=params)
File "/usr/local/lib/python3.6/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.6/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.6/site-packages/neutronclient/v2_0/client.py", line 93, in exception_handler_v20
request_ids=request_ids)
neutronclient.common.exceptions.InternalServerError: The server has either erred or is incapable of performing the requested operation.
Neutron server returns request_ids: ['req-08d507ef-ab8f-4358-9f5b-7dfc44e9adf6']
2025-08-07 16:39:04,036 - INFO - Created VN ctest-vn-24546111
2025-08-07 16:39:04,099 - DEBUG - VN ctest-vn-24546111 UUID is 4f261aaa-f491-4e35-9b91-aa77d6a892ac
2025-08-07 16:39:04,229 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyIpv4v6-98812577:ctest-vn-28084912, 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-98812577:ctest-vn-24546111, 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-98812577:ctest-vn-28084912, 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-98812577:ctest-vn-24546111, 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-07 16:39:04,841 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12f67c4a-4919-4f2e-864a-a49e06823a4d', 'name': 'ctest-vn-28084912', 'tenant_id': 'd0f7846214454745881dd57a39c77ace', 'project_id': 'd0f7846214454745881dd57a39c77ace', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyIpv4v6-98812577', 'ctest-vn-28084912'], 'policys': [['default-domain', 'ctest-TestBasicPolicyIpv4v6-98812577', 'ctest-policy-allow-all-95231583']], 'port_security_enabled': True, 'description': ''}}
2025-08-07 16:39:05,209 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f261aaa-f491-4e35-9b91-aa77d6a892ac', 'name': 'ctest-vn-24546111', 'tenant_id': 'd0f7846214454745881dd57a39c77ace', 'project_id': 'd0f7846214454745881dd57a39c77ace', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyIpv4v6-98812577', 'ctest-vn-24546111'], 'policys': [['default-domain', 'ctest-TestBasicPolicyIpv4v6-98812577', 'ctest-policy-allow-all-95231583']], 'port_security_enabled': True, 'description': ''}}
2025-08-07 16:39:05,391 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-07 16:39:05,727 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-07 16:39:05,787 - DEBUG - Requesting: http://10.0.0.249:8082/domain/18d875f7-79a7-4d7d-b759-3a18e081cd7a
2025-08-07 16:39:05,830 - DEBUG - Requesting: http://10.0.0.249:8082/project/d0f78462-1445-4745-881d-d57a39c77ace
2025-08-07 16:39:05,918 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/12f67c4a-4919-4f2e-864a-a49e06823a4d
2025-08-07 16:39:06,289 - INFO - Deleted policy ctest-policy-allow-all-95231583
2025-08-07 16:39:06,289 - INFO - Deleting VN ctest-vn-24546111
2025-08-07 16:39:06,357 - DEBUG - Response for deleting network ()
2025-08-07 16:39:06,357 - INFO - Deleting VN ctest-vn-28084912
2025-08-07 16:39:06,426 - DEBUG - Response for deleting network ()
2025-08-07 16:39:06,565 - ERROR - KeyError
Python 3.6.8: /usr/bin/python3
Thu Aug 7 16:39:05 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=