2025-08-13 14:56:03,804 - INFO - Domain Default found not creating
2025-08-13 14:56:03,949 - INFO - Project ctest-TestBasicPolicy-26409638 not found, creating it
2025-08-13 14:56:04,399 - INFO - Created Project:ctest-TestBasicPolicy-26409638, ID : 89ca418a-1eae-4220-b526-f7cf81ec811e
2025-08-13 14:56:05,899 - INFO - ================================================================================
2025-08-13 14:56:05,899 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-13 14:56:05,900 - 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-13 14:56:06,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2025-08-13 14:56:06,160 - INFO - Initial checks done. Running the testcase now
2025-08-13 14:56:06,160 - INFO -
2025-08-13 14:56:06,699 - DEBUG - Response for create_network : {'network': {'id': 'c9a034be-5cfa-430b-a987-a00537d77f2d', 'name': 'ctest-vn-19180105', 'tenant_id': '89ca418a1eae4220b526f7cf81ec811e', 'project_id': '89ca418a1eae4220b526f7cf81ec811e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26409638', 'ctest-vn-19180105'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 14:56:06,859 - DEBUG - Response for create_subnet : {'subnet': {'id': '615d69c9-63ad-4430-b511-5eacd41e96b5', 'name': '', 'tenant_id': '89ca418a1eae4220b526f7cf81ec811e', 'network_id': 'c9a034be-5cfa-430b-a987-a00537d77f2d', 'ip_version': 4, 'cidr': '89.189.204.128/26', 'allocation_pools': [{'start': '89.189.204.130', 'end': '89.189.204.190'}], 'gateway_ip': '89.189.204.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.189.204.130', 'tags': [], 'project_id': '89ca418a1eae4220b526f7cf81ec811e'}}
2025-08-13 14:56:06,879 - INFO - Created VN ctest-vn-19180105
2025-08-13 14:56:06,934 - DEBUG - VN ctest-vn-19180105 UUID is c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:07,241 - DEBUG - Response for create_network : {'network': {'id': '31f55223-8720-45e1-aa0a-029f14166857', 'name': 'ctest-vn-03987140', 'tenant_id': '89ca418a1eae4220b526f7cf81ec811e', 'project_id': '89ca418a1eae4220b526f7cf81ec811e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26409638', 'ctest-vn-03987140'], 'port_security_enabled': True, 'description': ''}}
2025-08-13 14:56:07,427 - DEBUG - Response for create_subnet : {'subnet': {'id': '57c72be0-c245-4ec7-839a-58e170328d7e', 'name': '', 'tenant_id': '89ca418a1eae4220b526f7cf81ec811e', 'network_id': '31f55223-8720-45e1-aa0a-029f14166857', 'ip_version': 4, 'cidr': '89.160.180.0/26', 'allocation_pools': [{'start': '89.160.180.2', 'end': '89.160.180.62'}], 'gateway_ip': '89.160.180.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.160.180.2', 'tags': [], 'project_id': '89ca418a1eae4220b526f7cf81ec811e'}}
2025-08-13 14:56:07,449 - INFO - Created VN ctest-vn-03987140
2025-08-13 14:56:07,506 - DEBUG - VN ctest-vn-03987140 UUID is 31f55223-8720-45e1-aa0a-029f14166857
2025-08-13 14:56:07,629 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26409638:ctest-vn-19180105, 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-26409638:ctest-vn-03987140, 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-13 14:56:07,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9a034be-5cfa-430b-a987-a00537d77f2d', 'name': 'ctest-vn-19180105', 'tenant_id': '89ca418a1eae4220b526f7cf81ec811e', 'project_id': '89ca418a1eae4220b526f7cf81ec811e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['615d69c9-63ad-4430-b511-5eacd41e96b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26409638', 'ctest-vn-19180105'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26409638', 'ctest-policy-allow-all-09074762']], 'subnet_ipam': [{'subnet_cidr': '89.189.204.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 14:56:08,107 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31f55223-8720-45e1-aa0a-029f14166857', 'name': 'ctest-vn-03987140', 'tenant_id': '89ca418a1eae4220b526f7cf81ec811e', 'project_id': '89ca418a1eae4220b526f7cf81ec811e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57c72be0-c245-4ec7-839a-58e170328d7e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26409638', 'ctest-vn-03987140'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26409638', 'ctest-policy-allow-all-09074762']], 'subnet_ipam': [{'subnet_cidr': '89.160.180.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-13 14:56:08,230 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:56:08,539 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:56:08,566 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:56:08,580 - DEBUG - Requesting: http://10.0.0.27:8082/project/89ca418a-1eae-4220-b526-f7cf81ec811e
2025-08-13 14:56:08,666 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:08,679 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:08,690 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:08,699 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:08,707 - DEBUG - Route Targets: []
2025-08-13 14:56:08,707 - DEBUG - RT names not yet present for VN ctest-vn-19180105
2025-08-13 14:56:13,708 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:56:13,715 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:56:13,728 - DEBUG - Requesting: http://10.0.0.27:8082/project/89ca418a-1eae-4220-b526-f7cf81ec811e
2025-08-13 14:56:13,806 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:13,817 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:13,827 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:13,834 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:13,841 - DEBUG - Route Targets: []
2025-08-13 14:56:13,841 - DEBUG - RT names not yet present for VN ctest-vn-19180105
2025-08-13 14:56:18,842 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:56:18,849 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:56:18,862 - DEBUG - Requesting: http://10.0.0.27:8082/project/89ca418a-1eae-4220-b526-f7cf81ec811e
2025-08-13 14:56:18,931 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:18,942 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:18,952 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:18,960 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:18,966 - DEBUG - Route Targets: []
2025-08-13 14:56:18,967 - DEBUG - RT names not yet present for VN ctest-vn-19180105
2025-08-13 14:56:23,967 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:56:23,974 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:56:23,987 - DEBUG - Requesting: http://10.0.0.27:8082/project/89ca418a-1eae-4220-b526-f7cf81ec811e
2025-08-13 14:56:24,056 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:24,066 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:24,076 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:24,083 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:24,090 - DEBUG - Route Targets: []
2025-08-13 14:56:24,090 - DEBUG - RT names not yet present for VN ctest-vn-19180105
2025-08-13 14:56:29,091 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:56:29,099 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:56:29,111 - DEBUG - Requesting: http://10.0.0.27:8082/project/89ca418a-1eae-4220-b526-f7cf81ec811e
2025-08-13 14:56:29,181 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:29,195 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:29,209 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:29,219 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:29,228 - DEBUG - Route Targets: []
2025-08-13 14:56:29,228 - DEBUG - RT names not yet present for VN ctest-vn-19180105
2025-08-13 14:56:34,229 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:56:34,236 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:56:34,248 - DEBUG - Requesting: http://10.0.0.27:8082/project/89ca418a-1eae-4220-b526-f7cf81ec811e
2025-08-13 14:56:34,320 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:34,332 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:34,342 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:34,350 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:34,356 - DEBUG - Route Targets: []
2025-08-13 14:56:34,356 - DEBUG - RT names not yet present for VN ctest-vn-19180105
2025-08-13 14:56:39,357 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:56:39,364 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:56:39,377 - DEBUG - Requesting: http://10.0.0.27:8082/project/89ca418a-1eae-4220-b526-f7cf81ec811e
2025-08-13 14:56:39,448 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:39,460 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:39,472 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:39,480 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:39,487 - DEBUG - Route Targets: []
2025-08-13 14:56:39,487 - DEBUG - RT names not yet present for VN ctest-vn-19180105
2025-08-13 14:56:44,489 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:56:44,496 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:56:44,508 - DEBUG - Requesting: http://10.0.0.27:8082/project/89ca418a-1eae-4220-b526-f7cf81ec811e
2025-08-13 14:56:44,579 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:44,589 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:44,599 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:44,606 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:44,612 - DEBUG - Route Targets: []
2025-08-13 14:56:44,612 - DEBUG - RT names not yet present for VN ctest-vn-19180105
2025-08-13 14:56:49,613 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:56:49,620 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:56:49,631 - DEBUG - Requesting: http://10.0.0.27:8082/project/89ca418a-1eae-4220-b526-f7cf81ec811e
2025-08-13 14:56:49,702 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:49,713 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:49,724 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:49,732 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:49,740 - DEBUG - Route Targets: []
2025-08-13 14:56:49,740 - DEBUG - RT names not yet present for VN ctest-vn-19180105
2025-08-13 14:56:54,741 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:56:54,748 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:56:54,762 - DEBUG - Requesting: http://10.0.0.27:8082/project/89ca418a-1eae-4220-b526-f7cf81ec811e
2025-08-13 14:56:54,836 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:54,847 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:54,858 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:54,865 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:54,871 - DEBUG - Route Targets: []
2025-08-13 14:56:54,871 - DEBUG - RT names not yet present for VN ctest-vn-19180105
2025-08-13 14:56:59,872 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-08-13 14:56:59,880 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f3f7903d-7ed4-4776-b147-e6e40853bf2f
2025-08-13 14:56:59,895 - DEBUG - Requesting: http://10.0.0.27:8082/project/89ca418a-1eae-4220-b526-f7cf81ec811e
2025-08-13 14:56:59,970 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:59,981 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c9a034be-5cfa-430b-a987-a00537d77f2d
2025-08-13 14:56:59,991 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:56:59,999 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/54cdf094-9c10-4674-b4d2-6acda26b594f
2025-08-13 14:57:00,007 - DEBUG - Route Targets: []
2025-08-13 14:57:00,007 - DEBUG - RT names not yet present for VN ctest-vn-19180105
2025-08-13 14:57:00,007 - ERROR - One or more verifications in API Server for VN ctest-vn-19180105 failed
2025-08-13 14:57:00,275 - INFO - Deleted policy ctest-policy-allow-all-09074762
2025-08-13 14:57:00,276 - INFO - Deleting VN ctest-vn-03987140
2025-08-13 14:57:00,367 - DEBUG - Response for deleting network ()
2025-08-13 14:57:00,367 - INFO - Deleting VN ctest-vn-19180105
2025-08-13 14:57:00,490 - DEBUG - Response for deleting network ()
2025-08-13 14:57:00,738 - ERROR - AssertionError
Python 3.6.8: /usr/bin/python3
Wed Aug 13 14:57:00 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=