2026-09-01 11:28:24,610 - INFO - Domain Default found not creating
2026-09-01 11:28:24,783 - INFO - Project ctest-TestBasicPolicy-16449720 not found, creating it
2026-09-01 11:28:25,297 - INFO - Created Project:ctest-TestBasicPolicy-16449720, ID : 2209a15c-d2d5-4548-8de0-7c60a77aaa30
2026-09-01 11:28:26,913 - INFO - ================================================================================
2026-09-01 11:28:26,913 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-01 11:28:26,913 - 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-09-01 11:28:27,172 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with
2026-09-01 11:28:27,172 - INFO - Initial checks done. Running the testcase now
2026-09-01 11:28:27,172 - INFO -
2026-09-01 11:28:27,756 - DEBUG - Response for create_network : {'network': {'id': '4676f0a1-f762-4fec-b9b6-af3a761eb311', 'name': 'ctest-vn-42782299', 'tenant_id': '2209a15cd2d545488de07c60a77aaa30', 'project_id': '2209a15cd2d545488de07c60a77aaa30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16449720', 'ctest-vn-42782299'], 'port_security_enabled': True, 'description': ''}}
2026-09-01 11:28:27,939 - DEBUG - Response for create_subnet : {'subnet': {'id': '47f47929-fb9e-486a-bff4-4fe2ad67352a', 'name': '', 'tenant_id': '2209a15cd2d545488de07c60a77aaa30', 'network_id': '4676f0a1-f762-4fec-b9b6-af3a761eb311', 'ip_version': 4, 'cidr': '182.4.201.0/26', 'allocation_pools': [{'start': '182.4.201.2', 'end': '182.4.201.62'}], 'gateway_ip': '182.4.201.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.4.201.2', 'tags': [], 'project_id': '2209a15cd2d545488de07c60a77aaa30'}}
2026-09-01 11:28:27,959 - INFO - Created VN ctest-vn-42782299
2026-09-01 11:28:28,011 - DEBUG - VN ctest-vn-42782299 UUID is 4676f0a1-f762-4fec-b9b6-af3a761eb311
2026-09-01 11:28:28,321 - DEBUG - Response for create_network : {'network': {'id': '17d7fa83-8316-492b-980c-6c43084e323e', 'name': 'ctest-vn-80216587', 'tenant_id': '2209a15cd2d545488de07c60a77aaa30', 'project_id': '2209a15cd2d545488de07c60a77aaa30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16449720', 'ctest-vn-80216587'], 'port_security_enabled': True, 'description': ''}}
2026-09-01 11:28:28,501 - DEBUG - Response for create_subnet : {'subnet': {'id': '1229bac4-3558-42fb-8b1c-113893f13bc5', 'name': '', 'tenant_id': '2209a15cd2d545488de07c60a77aaa30', 'network_id': '17d7fa83-8316-492b-980c-6c43084e323e', 'ip_version': 4, 'cidr': '134.57.124.64/26', 'allocation_pools': [{'start': '134.57.124.66', 'end': '134.57.124.126'}], 'gateway_ip': '134.57.124.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.57.124.66', 'tags': [], 'project_id': '2209a15cd2d545488de07c60a77aaa30'}}
2026-09-01 11:28:28,525 - INFO - Created VN ctest-vn-80216587
2026-09-01 11:28:28,579 - DEBUG - VN ctest-vn-80216587 UUID is 17d7fa83-8316-492b-980c-6c43084e323e
2026-09-01 11:28:28,690 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16449720:ctest-vn-42782299, 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-16449720:ctest-vn-80216587, 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-09-01 11:28:29,004 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4676f0a1-f762-4fec-b9b6-af3a761eb311', 'name': 'ctest-vn-42782299', 'tenant_id': '2209a15cd2d545488de07c60a77aaa30', 'project_id': '2209a15cd2d545488de07c60a77aaa30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['47f47929-fb9e-486a-bff4-4fe2ad67352a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16449720', 'ctest-vn-42782299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16449720', 'ctest-policy-allow-all-89835709']], 'subnet_ipam': [{'subnet_cidr': '182.4.201.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-01 11:28:29,264 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '17d7fa83-8316-492b-980c-6c43084e323e', 'name': 'ctest-vn-80216587', 'tenant_id': '2209a15cd2d545488de07c60a77aaa30', 'project_id': '2209a15cd2d545488de07c60a77aaa30', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['1229bac4-3558-42fb-8b1c-113893f13bc5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16449720', 'ctest-vn-80216587'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16449720', 'ctest-policy-allow-all-89835709']], 'subnet_ipam': [{'subnet_cidr': '134.57.124.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-01 11:28:29,427 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-01 11:28:29,765 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-01 11:28:29,799 - DEBUG - Requesting: http://10.0.0.161:8082/domain/442e174e-83b4-4433-84ac-38bb7af9567a
2026-09-01 11:28:29,812 - DEBUG - Requesting: http://10.0.0.161:8082/project/2209a15c-d2d5-4548-8de0-7c60a77aaa30
2026-09-01 11:28:29,897 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/4676f0a1-f762-4fec-b9b6-af3a761eb311
2026-09-01 11:28:29,912 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/4676f0a1-f762-4fec-b9b6-af3a761eb311
2026-09-01 11:28:29,926 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/688f0c65-44bf-42cb-99d2-89c37fd28823
2026-09-01 11:28:29,937 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/688f0c65-44bf-42cb-99d2-89c37fd28823
2026-09-01 11:28:29,946 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/6959fa98-0eb3-4ad6-8ff2-e667e4b29c25
2026-09-01 11:28:29,954 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-01 11:28:29,954 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/4676f0a1-f762-4fec-b9b6-af3a761eb311
2026-09-01 11:28:29,967 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/688f0c65-44bf-42cb-99d2-89c37fd28823
2026-09-01 11:28:29,985 - INFO - Verified VN network id 12 for VN 4676f0a1-f762-4fec-b9b6-af3a761eb311
2026-09-01 11:28:29,985 - INFO - Verifications in API Server for VN ctest-vn-42782299 passed
2026-09-01 11:28:29,985 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/4676f0a1-f762-4fec-b9b6-af3a761eb311
2026-09-01 11:28:29,998 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/688f0c65-44bf-42cb-99d2-89c37fd28823
2026-09-01 11:28:30,008 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/688f0c65-44bf-42cb-99d2-89c37fd28823
2026-09-01 11:28:30,018 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/6959fa98-0eb3-4ad6-8ff2-e667e4b29c25
2026-09-01 11:28:30,033 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16449720:ctest-vn-42782299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16449720', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5077510208337629164', 'uuid-lslong': '13382076008402694929'}, 'enable': 'true', 'created': '2026-09-01T11:28:27', 'last-modified': '2026-09-01T11:28:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.058417'}
2026-09-01 11:28:30,041 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-01 11:28:30,041 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42782299 passed
2026-09-01 11:28:30,042 - DEBUG - ====Verifying policy data for ctest-vn-42782299 in API_Server ======
2026-09-01 11:28:30,042 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-01 11:28:30,049 - DEBUG - Requesting: http://10.0.0.161:8082/domain/442e174e-83b4-4433-84ac-38bb7af9567a
2026-09-01 11:28:30,062 - DEBUG - Requesting: http://10.0.0.161:8082/project/2209a15c-d2d5-4548-8de0-7c60a77aaa30
2026-09-01 11:28:30,145 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/4676f0a1-f762-4fec-b9b6-af3a761eb311
2026-09-01 11:28:30,157 - DEBUG - ==>Verifying data for policy with id: 68de4d1a-39b6-4e8b-9d77-afffdc0674bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-16449720', 'ctest-policy-allow-all-89835709']
2026-09-01 11:28:30,157 - INFO - VN ctest-vn-42782299 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-01 11:28:30,158 - DEBUG - Verifying the vn in opserver
2026-09-01 11:28:30,158 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16449720:ctest-vn-42782299 virtual network link through opserver 10.0.0.161
2026-09-01 11:28:30,158 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-01 11:28:30,479 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-01 11:28:30,535 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16449720:ctest-vn-42782299', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16449720:ctest-vn-42782299?flat'}
2026-09-01 11:28:30,535 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16449720:ctest-vn-42782299 is found in opserver
2026-09-01 11:28:30,545 - DEBUG - Do not have enough data to verify VN in agent
2026-09-01 11:28:30,551 - DEBUG - VRF ids for VN ctest-vn-42782299: {}
2026-09-01 11:28:30,551 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-01 11:28:30,558 - DEBUG - Requesting: http://10.0.0.161:8082/domain/442e174e-83b4-4433-84ac-38bb7af9567a
2026-09-01 11:28:30,569 - DEBUG - Requesting: http://10.0.0.161:8082/project/2209a15c-d2d5-4548-8de0-7c60a77aaa30
2026-09-01 11:28:30,651 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/17d7fa83-8316-492b-980c-6c43084e323e
2026-09-01 11:28:30,664 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/17d7fa83-8316-492b-980c-6c43084e323e
2026-09-01 11:28:30,676 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/54d48b9b-9ff1-4315-85c1-da8f91c2969c
2026-09-01 11:28:30,685 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/54d48b9b-9ff1-4315-85c1-da8f91c2969c
2026-09-01 11:28:30,694 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/89974984-f929-4a02-8217-ca9adcd238c8
2026-09-01 11:28:30,702 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-01 11:28:30,702 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/17d7fa83-8316-492b-980c-6c43084e323e
2026-09-01 11:28:30,713 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/54d48b9b-9ff1-4315-85c1-da8f91c2969c
2026-09-01 11:28:30,729 - INFO - Verified VN network id 13 for VN 17d7fa83-8316-492b-980c-6c43084e323e
2026-09-01 11:28:30,729 - INFO - Verifications in API Server for VN ctest-vn-80216587 passed
2026-09-01 11:28:30,729 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/17d7fa83-8316-492b-980c-6c43084e323e
2026-09-01 11:28:30,740 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/54d48b9b-9ff1-4315-85c1-da8f91c2969c
2026-09-01 11:28:30,748 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/54d48b9b-9ff1-4315-85c1-da8f91c2969c
2026-09-01 11:28:30,756 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/89974984-f929-4a02-8217-ca9adcd238c8
2026-09-01 11:28:30,771 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16449720:ctest-vn-80216587', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16449720', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1718117225612069163', 'uuid-lslong': '10956251028643525182'}, 'enable': 'true', 'created': '2026-09-01T11:28:28', 'last-modified': '2026-09-01T11:28:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.539054'}
2026-09-01 11:28:30,779 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-01 11:28:30,779 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80216587 passed
2026-09-01 11:28:30,779 - DEBUG - ====Verifying policy data for ctest-vn-80216587 in API_Server ======
2026-09-01 11:28:30,779 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-09-01 11:28:30,785 - DEBUG - Requesting: http://10.0.0.161:8082/domain/442e174e-83b4-4433-84ac-38bb7af9567a
2026-09-01 11:28:30,797 - DEBUG - Requesting: http://10.0.0.161:8082/project/2209a15c-d2d5-4548-8de0-7c60a77aaa30
2026-09-01 11:28:30,873 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/17d7fa83-8316-492b-980c-6c43084e323e
2026-09-01 11:28:30,883 - DEBUG - ==>Verifying data for policy with id: 68de4d1a-39b6-4e8b-9d77-afffdc0674bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-16449720', 'ctest-policy-allow-all-89835709']
2026-09-01 11:28:30,883 - INFO - VN ctest-vn-80216587 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-01 11:28:30,884 - DEBUG - Verifying the vn in opserver
2026-09-01 11:28:30,884 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16449720:ctest-vn-80216587 virtual network link through opserver 10.0.0.161
2026-09-01 11:28:30,884 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-09-01 11:28:30,894 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16449720:ctest-vn-80216587', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16449720:ctest-vn-80216587?flat'}
2026-09-01 11:28:30,894 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16449720:ctest-vn-80216587 is found in opserver
2026-09-01 11:28:30,906 - DEBUG - Do not have enough data to verify VN in agent
2026-09-01 11:28:30,910 - DEBUG - VRF ids for VN ctest-vn-80216587: {}
2026-09-01 11:28:30,977 - DEBUG - Services list from nova: [