2026-04-23 10:06:48,531 - INFO - Domain Default found not creating
2026-04-23 10:06:48,719 - INFO - Project ctest-TestBasicPolicy-55502809 not found, creating it
2026-04-23 10:06:49,208 - INFO - Created Project:ctest-TestBasicPolicy-55502809, ID : 01a3ae56-1d37-4893-ac55-77cefa6e2de4
2026-04-23 10:06:50,884 - INFO - ================================================================================
2026-04-23 10:06:50,884 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-23 10:06:50,884 - 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
2026-04-23 10:06:51,144 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-04-23 10:06:51,144 - INFO - Initial checks done. Running the testcase now
2026-04-23 10:06:51,144 - INFO -
2026-04-23 10:06:51,753 - DEBUG - Response for create_network : {'network': {'id': 'c528a8f3-1d6d-499d-88bb-7f1380071153', 'name': 'ctest-vn-26589306', 'tenant_id': '01a3ae561d374893ac5577cefa6e2de4', 'project_id': '01a3ae561d374893ac5577cefa6e2de4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55502809', 'ctest-vn-26589306'], 'port_security_enabled': True, 'description': ''}}
2026-04-23 10:06:51,956 - DEBUG - Response for create_subnet : {'subnet': {'id': '1691be08-a11d-4f03-9cf2-35bce673ce1d', 'name': '', 'tenant_id': '01a3ae561d374893ac5577cefa6e2de4', 'network_id': 'c528a8f3-1d6d-499d-88bb-7f1380071153', 'ip_version': 4, 'cidr': '43.217.101.0/26', 'allocation_pools': [{'start': '43.217.101.2', 'end': '43.217.101.62'}], 'gateway_ip': '43.217.101.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.217.101.2', 'tags': [], 'project_id': '01a3ae561d374893ac5577cefa6e2de4'}}
2026-04-23 10:06:51,976 - INFO - Created VN ctest-vn-26589306
2026-04-23 10:06:52,029 - DEBUG - VN ctest-vn-26589306 UUID is c528a8f3-1d6d-499d-88bb-7f1380071153
2026-04-23 10:06:52,328 - DEBUG - Response for create_network : {'network': {'id': 'bbe763c7-25f4-4a0b-9a05-7864a88c30d8', 'name': 'ctest-vn-20750238', 'tenant_id': '01a3ae561d374893ac5577cefa6e2de4', 'project_id': '01a3ae561d374893ac5577cefa6e2de4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55502809', 'ctest-vn-20750238'], 'port_security_enabled': True, 'description': ''}}
2026-04-23 10:06:52,480 - DEBUG - Response for create_subnet : {'subnet': {'id': '6473367f-da61-42d0-b174-42473efc3fca', 'name': '', 'tenant_id': '01a3ae561d374893ac5577cefa6e2de4', 'network_id': 'bbe763c7-25f4-4a0b-9a05-7864a88c30d8', 'ip_version': 4, 'cidr': '15.34.124.128/26', 'allocation_pools': [{'start': '15.34.124.130', 'end': '15.34.124.190'}], 'gateway_ip': '15.34.124.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.34.124.130', 'tags': [], 'project_id': '01a3ae561d374893ac5577cefa6e2de4'}}
2026-04-23 10:06:52,498 - INFO - Created VN ctest-vn-20750238
2026-04-23 10:06:52,549 - DEBUG - VN ctest-vn-20750238 UUID is bbe763c7-25f4-4a0b-9a05-7864a88c30d8
2026-04-23 10:06:52,666 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55502809:ctest-vn-26589306, 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-55502809:ctest-vn-20750238, 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]
2026-04-23 10:06:52,966 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c528a8f3-1d6d-499d-88bb-7f1380071153', 'name': 'ctest-vn-26589306', 'tenant_id': '01a3ae561d374893ac5577cefa6e2de4', 'project_id': '01a3ae561d374893ac5577cefa6e2de4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1691be08-a11d-4f03-9cf2-35bce673ce1d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55502809', 'ctest-vn-26589306'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55502809', 'ctest-policy-allow-all-07994914']], 'subnet_ipam': [{'subnet_cidr': '43.217.101.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-23 10:06:53,193 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bbe763c7-25f4-4a0b-9a05-7864a88c30d8', 'name': 'ctest-vn-20750238', 'tenant_id': '01a3ae561d374893ac5577cefa6e2de4', 'project_id': '01a3ae561d374893ac5577cefa6e2de4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6473367f-da61-42d0-b174-42473efc3fca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55502809', 'ctest-vn-20750238'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55502809', 'ctest-policy-allow-all-07994914']], 'subnet_ipam': [{'subnet_cidr': '15.34.124.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-23 10:06:53,361 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-23 10:06:53,696 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-23 10:06:53,732 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab236e5f-d3ba-4764-a304-9509264402e0
2026-04-23 10:06:53,746 - DEBUG - Requesting: http://10.0.0.38:8082/project/01a3ae56-1d37-4893-ac55-77cefa6e2de4
2026-04-23 10:06:53,825 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c528a8f3-1d6d-499d-88bb-7f1380071153
2026-04-23 10:06:53,842 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c528a8f3-1d6d-499d-88bb-7f1380071153
2026-04-23 10:06:53,853 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df90ec7e-88a8-4787-9573-ea6a1f9c3903
2026-04-23 10:06:53,861 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df90ec7e-88a8-4787-9573-ea6a1f9c3903
2026-04-23 10:06:53,869 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f1338a7e-bc6a-44b0-97a5-406576d9196a
2026-04-23 10:06:53,877 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-23 10:06:53,877 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c528a8f3-1d6d-499d-88bb-7f1380071153
2026-04-23 10:06:53,886 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df90ec7e-88a8-4787-9573-ea6a1f9c3903
2026-04-23 10:06:53,900 - INFO - Verified VN network id 11 for VN c528a8f3-1d6d-499d-88bb-7f1380071153
2026-04-23 10:06:53,901 - INFO - Verifications in API Server for VN ctest-vn-26589306 passed
2026-04-23 10:06:53,901 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c528a8f3-1d6d-499d-88bb-7f1380071153
2026-04-23 10:06:53,911 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df90ec7e-88a8-4787-9573-ea6a1f9c3903
2026-04-23 10:06:53,919 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/df90ec7e-88a8-4787-9573-ea6a1f9c3903
2026-04-23 10:06:53,927 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f1338a7e-bc6a-44b0-97a5-406576d9196a
2026-04-23 10:06:53,940 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55502809:ctest-vn-26589306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55502809', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14206790786664450461', 'uuid-lslong': '9852608331532144979'}, 'enable': 'true', 'created': '2026-04-23T10:06:51', 'last-modified': '2026-04-23T10:06:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.003736'}
2026-04-23 10:06:53,948 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-23 10:06:53,948 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26589306 passed
2026-04-23 10:06:53,948 - DEBUG - ====Verifying policy data for ctest-vn-26589306 in API_Server ======
2026-04-23 10:06:53,948 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-23 10:06:53,954 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab236e5f-d3ba-4764-a304-9509264402e0
2026-04-23 10:06:53,966 - DEBUG - Requesting: http://10.0.0.38:8082/project/01a3ae56-1d37-4893-ac55-77cefa6e2de4
2026-04-23 10:06:54,037 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c528a8f3-1d6d-499d-88bb-7f1380071153
2026-04-23 10:06:54,060 - DEBUG - ==>Verifying data for policy with id: 63a836a9-83cd-489a-8a19-e4b14d04a275, fqn: ['default-domain', 'ctest-TestBasicPolicy-55502809', 'ctest-policy-allow-all-07994914']
2026-04-23 10:06:54,060 - INFO - VN ctest-vn-26589306 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-23 10:06:54,060 - DEBUG - Verifying the vn in opserver
2026-04-23 10:06:54,060 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55502809:ctest-vn-26589306 virtual network link through opserver 10.0.0.38
2026-04-23 10:06:54,060 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-23 10:06:54,399 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-23 10:06:54,470 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55502809:ctest-vn-26589306', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55502809:ctest-vn-26589306?flat'}
2026-04-23 10:06:54,470 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55502809:ctest-vn-26589306 is found in opserver
2026-04-23 10:06:54,481 - DEBUG - Do not have enough data to verify VN in agent
2026-04-23 10:06:54,486 - DEBUG - VRF ids for VN ctest-vn-26589306: {}
2026-04-23 10:06:54,486 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-23 10:06:54,492 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab236e5f-d3ba-4764-a304-9509264402e0
2026-04-23 10:06:54,504 - DEBUG - Requesting: http://10.0.0.38:8082/project/01a3ae56-1d37-4893-ac55-77cefa6e2de4
2026-04-23 10:06:54,578 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bbe763c7-25f4-4a0b-9a05-7864a88c30d8
2026-04-23 10:06:54,592 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bbe763c7-25f4-4a0b-9a05-7864a88c30d8
2026-04-23 10:06:54,603 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26357d34-3efd-49b7-ac1c-5c52fd87c145
2026-04-23 10:06:54,611 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26357d34-3efd-49b7-ac1c-5c52fd87c145
2026-04-23 10:06:54,619 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83b2d073-a87c-46a8-8503-23f38f29bbca
2026-04-23 10:06:54,626 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-23 10:06:54,626 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bbe763c7-25f4-4a0b-9a05-7864a88c30d8
2026-04-23 10:06:54,636 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26357d34-3efd-49b7-ac1c-5c52fd87c145
2026-04-23 10:06:54,652 - INFO - Verified VN network id 12 for VN bbe763c7-25f4-4a0b-9a05-7864a88c30d8
2026-04-23 10:06:54,652 - INFO - Verifications in API Server for VN ctest-vn-20750238 passed
2026-04-23 10:06:54,652 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bbe763c7-25f4-4a0b-9a05-7864a88c30d8
2026-04-23 10:06:54,662 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26357d34-3efd-49b7-ac1c-5c52fd87c145
2026-04-23 10:06:54,670 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26357d34-3efd-49b7-ac1c-5c52fd87c145
2026-04-23 10:06:54,677 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83b2d073-a87c-46a8-8503-23f38f29bbca
2026-04-23 10:06:54,691 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55502809:ctest-vn-20750238', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55502809', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13539900511699094027', 'uuid-lslong': '11098409230444277976'}, 'enable': 'true', 'created': '2026-04-23T10:06:52', 'last-modified': '2026-04-23T10:06:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.518797'}
2026-04-23 10:06:54,698 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-23 10:06:54,698 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20750238 passed
2026-04-23 10:06:54,698 - DEBUG - ====Verifying policy data for ctest-vn-20750238 in API_Server ======
2026-04-23 10:06:54,699 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-23 10:06:54,706 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab236e5f-d3ba-4764-a304-9509264402e0
2026-04-23 10:06:54,720 - DEBUG - Requesting: http://10.0.0.38:8082/project/01a3ae56-1d37-4893-ac55-77cefa6e2de4
2026-04-23 10:06:54,792 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bbe763c7-25f4-4a0b-9a05-7864a88c30d8
2026-04-23 10:06:54,804 - DEBUG - ==>Verifying data for policy with id: 63a836a9-83cd-489a-8a19-e4b14d04a275, fqn: ['default-domain', 'ctest-TestBasicPolicy-55502809', 'ctest-policy-allow-all-07994914']
2026-04-23 10:06:54,804 - INFO - VN ctest-vn-20750238 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-23 10:06:54,804 - DEBUG - Verifying the vn in opserver
2026-04-23 10:06:54,804 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55502809:ctest-vn-20750238 virtual network link through opserver 10.0.0.38
2026-04-23 10:06:54,804 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-23 10:06:54,815 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55502809:ctest-vn-20750238', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55502809:ctest-vn-20750238?flat'}
2026-04-23 10:06:54,816 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55502809:ctest-vn-20750238 is found in opserver
2026-04-23 10:06:54,827 - DEBUG - Do not have enough data to verify VN in agent
2026-04-23 10:06:54,832 - DEBUG - VRF ids for VN ctest-vn-20750238: {}
2026-04-23 10:06:54,894 - DEBUG - Services list from nova: [