2025-08-24 07:44:31,143 - INFO - Domain Default found not creating
2025-08-24 07:44:31,317 - INFO - Project ctest-TestBasicPolicy-60400672 not found, creating it
2025-08-24 07:44:31,807 - INFO - Created Project:ctest-TestBasicPolicy-60400672, ID : 387fd30a-7bd5-4d7b-bda5-d0915e65244f
2025-08-24 07:44:33,230 - INFO - ================================================================================
2025-08-24 07:44:33,230 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-24 07:44:33,230 - 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-24 07:44:33,359 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-24 07:44:33,360 - INFO - Initial checks done. Running the testcase now
2025-08-24 07:44:33,360 - INFO -
2025-08-24 07:44:33,939 - DEBUG - Response for create_network : {'network': {'id': '1c3c6d2c-e6e8-45a0-aaae-fa5ba7abae75', 'name': 'ctest-vn-88374604', 'tenant_id': '387fd30a7bd54d7bbda5d0915e65244f', 'project_id': '387fd30a7bd54d7bbda5d0915e65244f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60400672', 'ctest-vn-88374604'], 'port_security_enabled': True, 'description': ''}}
2025-08-24 07:44:34,083 - ERROR - Neutron Exception while creating subnet for vn with id 1c3c6d2c-e6e8-45a0-aaae-fa5ba7abae75
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-bc0d53f6-11bb-4bf9-896f-15c24367a0e3']
2025-08-24 07:44:34,098 - INFO - Created VN ctest-vn-88374604
2025-08-24 07:44:34,156 - DEBUG - VN ctest-vn-88374604 UUID is 1c3c6d2c-e6e8-45a0-aaae-fa5ba7abae75
2025-08-24 07:44:34,522 - DEBUG - Response for create_network : {'network': {'id': 'cec7938f-ff0c-4175-b164-4059c85f28ec', 'name': 'ctest-vn-54183187', 'tenant_id': '387fd30a7bd54d7bbda5d0915e65244f', 'project_id': '387fd30a7bd54d7bbda5d0915e65244f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60400672', 'ctest-vn-54183187'], 'port_security_enabled': True, 'description': ''}}
2025-08-24 07:44:34,685 - ERROR - Neutron Exception while creating subnet for vn with id cec7938f-ff0c-4175-b164-4059c85f28ec
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-b3178b3f-6eca-4087-8169-b5c2d08ed74d']
2025-08-24 07:44:34,703 - INFO - Created VN ctest-vn-54183187
2025-08-24 07:44:34,760 - DEBUG - VN ctest-vn-54183187 UUID is cec7938f-ff0c-4175-b164-4059c85f28ec
2025-08-24 07:44:34,896 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60400672:ctest-vn-88374604, 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-60400672:ctest-vn-54183187, 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-24 07:44:35,196 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c3c6d2c-e6e8-45a0-aaae-fa5ba7abae75', 'name': 'ctest-vn-88374604', 'tenant_id': '387fd30a7bd54d7bbda5d0915e65244f', 'project_id': '387fd30a7bd54d7bbda5d0915e65244f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60400672', 'ctest-vn-88374604'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60400672', 'ctest-policy-allow-all-04689859']], 'port_security_enabled': True, 'description': ''}}
2025-08-24 07:44:35,424 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cec7938f-ff0c-4175-b164-4059c85f28ec', 'name': 'ctest-vn-54183187', 'tenant_id': '387fd30a7bd54d7bbda5d0915e65244f', 'project_id': '387fd30a7bd54d7bbda5d0915e65244f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60400672', 'ctest-vn-54183187'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60400672', 'ctest-policy-allow-all-04689859']], 'port_security_enabled': True, 'description': ''}}
2025-08-24 07:44:35,584 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-24 07:44:35,884 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-24 07:44:35,912 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1310f3c6-22a8-49c4-8a87-a032ff68bb5b
2025-08-24 07:44:35,926 - DEBUG - Requesting: http://10.0.0.254:8082/project/387fd30a-7bd5-4d7b-bda5-d0915e65244f
2025-08-24 07:44:36,003 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1c3c6d2c-e6e8-45a0-aaae-fa5ba7abae75
2025-08-24 07:44:36,306 - INFO - Deleted policy ctest-policy-allow-all-04689859
2025-08-24 07:44:36,306 - INFO - Deleting VN ctest-vn-54183187
2025-08-24 07:44:36,391 - DEBUG - Response for deleting network ()
2025-08-24 07:44:36,391 - INFO - Deleting VN ctest-vn-88374604
2025-08-24 07:44:36,470 - DEBUG - Response for deleting network ()
2025-08-24 07:44:36,592 - ERROR - KeyError
Python 3.6.8: /usr/bin/python3
Sun Aug 24 07:44:36 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=