2026-10-22 11:08:30,197 - INFO - Domain Default found not creating
2026-10-22 11:08:30,384 - INFO - Project ctest-TestBasicPolicy-38143998 not found, creating it
2026-10-22 11:08:30,870 - INFO - Created Project:ctest-TestBasicPolicy-38143998, ID : e49be736-c1d9-4d44-a9f1-f28494e19fd8
2026-10-22 11:08:32,595 - INFO - ================================================================================
2026-10-22 11:08:32,595 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-22 11:08:32,595 - 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-10-22 11:08:32,859 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-10-22 11:08:32,859 - INFO - Initial checks done. Running the testcase now
2026-10-22 11:08:32,859 - INFO -
2026-10-22 11:08:33,479 - DEBUG - Response for create_network : {'network': {'id': 'fdf3d3c0-6d18-46df-bdee-0ef26a0511f2', 'name': 'ctest-vn-71377864', 'tenant_id': 'e49be736c1d94d44a9f1f28494e19fd8', 'project_id': 'e49be736c1d94d44a9f1f28494e19fd8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38143998', 'ctest-vn-71377864'], 'port_security_enabled': True, 'description': ''}}
2026-10-22 11:08:33,662 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8cb1ac4-f85b-44ba-9983-bfdb9831d706', 'name': '', 'tenant_id': 'e49be736c1d94d44a9f1f28494e19fd8', 'network_id': 'fdf3d3c0-6d18-46df-bdee-0ef26a0511f2', 'ip_version': 4, 'cidr': '129.143.142.64/26', 'allocation_pools': [{'start': '129.143.142.66', 'end': '129.143.142.126'}], 'gateway_ip': '129.143.142.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.143.142.66', 'tags': [], 'project_id': 'e49be736c1d94d44a9f1f28494e19fd8'}}
2026-10-22 11:08:33,678 - INFO - Created VN ctest-vn-71377864
2026-10-22 11:08:33,728 - DEBUG - VN ctest-vn-71377864 UUID is fdf3d3c0-6d18-46df-bdee-0ef26a0511f2
2026-10-22 11:08:34,052 - DEBUG - Response for create_network : {'network': {'id': '7381c83a-b10f-410b-aebc-13d9aa949a96', 'name': 'ctest-vn-31328099', 'tenant_id': 'e49be736c1d94d44a9f1f28494e19fd8', 'project_id': 'e49be736c1d94d44a9f1f28494e19fd8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38143998', 'ctest-vn-31328099'], 'port_security_enabled': True, 'description': ''}}
2026-10-22 11:08:34,250 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a64d78f-8929-4336-b579-388ba793d80a', 'name': '', 'tenant_id': 'e49be736c1d94d44a9f1f28494e19fd8', 'network_id': '7381c83a-b10f-410b-aebc-13d9aa949a96', 'ip_version': 4, 'cidr': '165.41.213.192/26', 'allocation_pools': [{'start': '165.41.213.194', 'end': '165.41.213.254'}], 'gateway_ip': '165.41.213.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.41.213.194', 'tags': [], 'project_id': 'e49be736c1d94d44a9f1f28494e19fd8'}}
2026-10-22 11:08:34,266 - INFO - Created VN ctest-vn-31328099
2026-10-22 11:08:34,316 - DEBUG - VN ctest-vn-31328099 UUID is 7381c83a-b10f-410b-aebc-13d9aa949a96
2026-10-22 11:08:34,468 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38143998:ctest-vn-71377864, 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-38143998:ctest-vn-31328099, 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-10-22 11:08:34,757 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fdf3d3c0-6d18-46df-bdee-0ef26a0511f2', 'name': 'ctest-vn-71377864', 'tenant_id': 'e49be736c1d94d44a9f1f28494e19fd8', 'project_id': 'e49be736c1d94d44a9f1f28494e19fd8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e8cb1ac4-f85b-44ba-9983-bfdb9831d706'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38143998', 'ctest-vn-71377864'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38143998', 'ctest-policy-allow-all-35041772']], 'subnet_ipam': [{'subnet_cidr': '129.143.142.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-22 11:08:35,003 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7381c83a-b10f-410b-aebc-13d9aa949a96', 'name': 'ctest-vn-31328099', 'tenant_id': 'e49be736c1d94d44a9f1f28494e19fd8', 'project_id': 'e49be736c1d94d44a9f1f28494e19fd8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['4a64d78f-8929-4336-b579-388ba793d80a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38143998', 'ctest-vn-31328099'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38143998', 'ctest-policy-allow-all-35041772']], 'subnet_ipam': [{'subnet_cidr': '165.41.213.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-22 11:08:35,169 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-10-22 11:08:35,533 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-10-22 11:08:35,559 - DEBUG - Requesting: http://10.0.0.50:8082/domain/409e4379-f588-4ff7-920d-6ed27f22b0e9
2026-10-22 11:08:35,570 - DEBUG - Requesting: http://10.0.0.50:8082/project/e49be736-c1d9-4d44-a9f1-f28494e19fd8
2026-10-22 11:08:35,645 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fdf3d3c0-6d18-46df-bdee-0ef26a0511f2
2026-10-22 11:08:35,657 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fdf3d3c0-6d18-46df-bdee-0ef26a0511f2
2026-10-22 11:08:35,666 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/35758518-bb8e-4af6-9ae2-f88ff5edc232
2026-10-22 11:08:35,673 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/35758518-bb8e-4af6-9ae2-f88ff5edc232
2026-10-22 11:08:35,680 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0bf48004-7299-4c84-90ee-c03bb291d70d
2026-10-22 11:08:35,686 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-22 11:08:35,686 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fdf3d3c0-6d18-46df-bdee-0ef26a0511f2
2026-10-22 11:08:35,696 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/35758518-bb8e-4af6-9ae2-f88ff5edc232
2026-10-22 11:08:35,710 - INFO - Verified VN network id 12 for VN fdf3d3c0-6d18-46df-bdee-0ef26a0511f2
2026-10-22 11:08:35,710 - INFO - Verifications in API Server for VN ctest-vn-71377864 passed
2026-10-22 11:08:35,710 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fdf3d3c0-6d18-46df-bdee-0ef26a0511f2
2026-10-22 11:08:35,719 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/35758518-bb8e-4af6-9ae2-f88ff5edc232
2026-10-22 11:08:35,726 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/35758518-bb8e-4af6-9ae2-f88ff5edc232
2026-10-22 11:08:35,733 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0bf48004-7299-4c84-90ee-c03bb291d70d
2026-10-22 11:08:35,746 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38143998:ctest-vn-71377864', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38143998', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18299202534353946335', 'uuid-lslong': '13685892751949107698'}, 'enable': 'true', 'created': '2026-10-22T11:08:33', 'last-modified': '2026-10-22T11:08:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000028'}
2026-10-22 11:08:35,754 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-22 11:08:35,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71377864 passed
2026-10-22 11:08:35,754 - DEBUG - ====Verifying policy data for ctest-vn-71377864 in API_Server ======
2026-10-22 11:08:35,755 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-10-22 11:08:35,760 - DEBUG - Requesting: http://10.0.0.50:8082/domain/409e4379-f588-4ff7-920d-6ed27f22b0e9
2026-10-22 11:08:35,770 - DEBUG - Requesting: http://10.0.0.50:8082/project/e49be736-c1d9-4d44-a9f1-f28494e19fd8
2026-10-22 11:08:35,848 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fdf3d3c0-6d18-46df-bdee-0ef26a0511f2
2026-10-22 11:08:35,860 - DEBUG - ==>Verifying data for policy with id: 9de3bd20-0b14-4303-afcc-43e17d5449c0, fqn: ['default-domain', 'ctest-TestBasicPolicy-38143998', 'ctest-policy-allow-all-35041772']
2026-10-22 11:08:35,860 - INFO - VN ctest-vn-71377864 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-22 11:08:35,860 - DEBUG - Verifying the vn in opserver
2026-10-22 11:08:35,860 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38143998:ctest-vn-71377864 virtual network link through opserver 10.0.0.50
2026-10-22 11:08:35,860 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-10-22 11:08:36,229 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-10-22 11:08:36,288 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38143998:ctest-vn-71377864', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38143998:ctest-vn-71377864?flat'}
2026-10-22 11:08:36,288 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38143998:ctest-vn-71377864 is found in opserver
2026-10-22 11:08:36,298 - DEBUG - Do not have enough data to verify VN in agent
2026-10-22 11:08:36,303 - DEBUG - VRF ids for VN ctest-vn-71377864: {}
2026-10-22 11:08:36,303 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-10-22 11:08:36,309 - DEBUG - Requesting: http://10.0.0.50:8082/domain/409e4379-f588-4ff7-920d-6ed27f22b0e9
2026-10-22 11:08:36,322 - DEBUG - Requesting: http://10.0.0.50:8082/project/e49be736-c1d9-4d44-a9f1-f28494e19fd8
2026-10-22 11:08:36,403 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7381c83a-b10f-410b-aebc-13d9aa949a96
2026-10-22 11:08:36,417 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7381c83a-b10f-410b-aebc-13d9aa949a96
2026-10-22 11:08:36,428 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ffe401df-bf6f-47a0-b2ca-0904be340946
2026-10-22 11:08:36,436 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ffe401df-bf6f-47a0-b2ca-0904be340946
2026-10-22 11:08:36,444 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6ee7378b-5756-4f69-82fa-e66d4041cc24
2026-10-22 11:08:36,451 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-22 11:08:36,451 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7381c83a-b10f-410b-aebc-13d9aa949a96
2026-10-22 11:08:36,461 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ffe401df-bf6f-47a0-b2ca-0904be340946
2026-10-22 11:08:36,480 - INFO - Verified VN network id 13 for VN 7381c83a-b10f-410b-aebc-13d9aa949a96
2026-10-22 11:08:36,480 - INFO - Verifications in API Server for VN ctest-vn-31328099 passed
2026-10-22 11:08:36,480 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7381c83a-b10f-410b-aebc-13d9aa949a96
2026-10-22 11:08:36,492 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ffe401df-bf6f-47a0-b2ca-0904be340946
2026-10-22 11:08:36,500 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ffe401df-bf6f-47a0-b2ca-0904be340946
2026-10-22 11:08:36,508 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6ee7378b-5756-4f69-82fa-e66d4041cc24
2026-10-22 11:08:36,521 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38143998:ctest-vn-31328099', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38143998', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8323153740761612555', 'uuid-lslong': '12590960483811760790'}, 'enable': 'true', 'created': '2026-10-22T11:08:34', 'last-modified': '2026-10-22T11:08:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.547377'}
2026-10-22 11:08:36,528 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-22 11:08:36,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31328099 passed
2026-10-22 11:08:36,528 - DEBUG - ====Verifying policy data for ctest-vn-31328099 in API_Server ======
2026-10-22 11:08:36,528 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-10-22 11:08:36,533 - DEBUG - Requesting: http://10.0.0.50:8082/domain/409e4379-f588-4ff7-920d-6ed27f22b0e9
2026-10-22 11:08:36,544 - DEBUG - Requesting: http://10.0.0.50:8082/project/e49be736-c1d9-4d44-a9f1-f28494e19fd8
2026-10-22 11:08:36,615 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7381c83a-b10f-410b-aebc-13d9aa949a96
2026-10-22 11:08:36,625 - DEBUG - ==>Verifying data for policy with id: 9de3bd20-0b14-4303-afcc-43e17d5449c0, fqn: ['default-domain', 'ctest-TestBasicPolicy-38143998', 'ctest-policy-allow-all-35041772']
2026-10-22 11:08:36,625 - INFO - VN ctest-vn-31328099 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-22 11:08:36,625 - DEBUG - Verifying the vn in opserver
2026-10-22 11:08:36,625 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38143998:ctest-vn-31328099 virtual network link through opserver 10.0.0.50
2026-10-22 11:08:36,625 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-10-22 11:08:36,636 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38143998:ctest-vn-31328099', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38143998:ctest-vn-31328099?flat'}
2026-10-22 11:08:36,637 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38143998:ctest-vn-31328099 is found in opserver
2026-10-22 11:08:36,647 - DEBUG - Do not have enough data to verify VN in agent
2026-10-22 11:08:36,653 - DEBUG - VRF ids for VN ctest-vn-31328099: {}
2026-10-22 11:08:36,711 - DEBUG - Services list from nova: [