2026-04-29 19:07:21,931 - INFO - Domain Default found not creating
2026-04-29 19:07:22,107 - INFO - Project ctest-TestBasicPolicy-73987826 not found, creating it
2026-04-29 19:07:22,558 - INFO - Created Project:ctest-TestBasicPolicy-73987826, ID : cf9f4a82-230b-4194-8089-22775faa8887
2026-04-29 19:07:24,032 - INFO - ================================================================================
2026-04-29 19:07:24,032 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-29 19:07:24,032 - 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-29 19:07:24,286 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-04-29 19:07:24,286 - INFO - Initial checks done. Running the testcase now
2026-04-29 19:07:24,286 - INFO -
2026-04-29 19:07:24,834 - DEBUG - Response for create_network : {'network': {'id': 'cf558603-4d89-4fb1-9114-520c5210315d', 'name': 'ctest-vn-42641063', 'tenant_id': 'cf9f4a82230b4194808922775faa8887', 'project_id': 'cf9f4a82230b4194808922775faa8887', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73987826', 'ctest-vn-42641063'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 19:07:25,010 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f3ecf57-1708-4c03-8f1f-54d82ce2d585', 'name': '', 'tenant_id': 'cf9f4a82230b4194808922775faa8887', 'network_id': 'cf558603-4d89-4fb1-9114-520c5210315d', 'ip_version': 4, 'cidr': '103.98.21.64/26', 'allocation_pools': [{'start': '103.98.21.66', 'end': '103.98.21.126'}], 'gateway_ip': '103.98.21.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.98.21.66', 'tags': [], 'project_id': 'cf9f4a82230b4194808922775faa8887'}}
2026-04-29 19:07:25,028 - INFO - Created VN ctest-vn-42641063
2026-04-29 19:07:25,080 - DEBUG - VN ctest-vn-42641063 UUID is cf558603-4d89-4fb1-9114-520c5210315d
2026-04-29 19:07:25,399 - DEBUG - Response for create_network : {'network': {'id': 'a579236f-fa72-4725-a00a-d5d053b6ed68', 'name': 'ctest-vn-17527927', 'tenant_id': 'cf9f4a82230b4194808922775faa8887', 'project_id': 'cf9f4a82230b4194808922775faa8887', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73987826', 'ctest-vn-17527927'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 19:07:25,622 - DEBUG - Response for create_subnet : {'subnet': {'id': '96b6c8a9-bcae-4c64-ba65-6d337e0cb5ee', 'name': '', 'tenant_id': 'cf9f4a82230b4194808922775faa8887', 'network_id': 'a579236f-fa72-4725-a00a-d5d053b6ed68', 'ip_version': 4, 'cidr': '35.102.202.192/26', 'allocation_pools': [{'start': '35.102.202.194', 'end': '35.102.202.254'}], 'gateway_ip': '35.102.202.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.102.202.194', 'tags': [], 'project_id': 'cf9f4a82230b4194808922775faa8887'}}
2026-04-29 19:07:25,639 - INFO - Created VN ctest-vn-17527927
2026-04-29 19:07:25,692 - DEBUG - VN ctest-vn-17527927 UUID is a579236f-fa72-4725-a00a-d5d053b6ed68
2026-04-29 19:07:25,844 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73987826:ctest-vn-42641063, 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-73987826:ctest-vn-17527927, 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-29 19:07:26,138 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf558603-4d89-4fb1-9114-520c5210315d', 'name': 'ctest-vn-42641063', 'tenant_id': 'cf9f4a82230b4194808922775faa8887', 'project_id': 'cf9f4a82230b4194808922775faa8887', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3f3ecf57-1708-4c03-8f1f-54d82ce2d585'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73987826', 'ctest-vn-42641063'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73987826', 'ctest-policy-allow-all-35740806']], 'subnet_ipam': [{'subnet_cidr': '103.98.21.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 19:07:26,359 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a579236f-fa72-4725-a00a-d5d053b6ed68', 'name': 'ctest-vn-17527927', 'tenant_id': 'cf9f4a82230b4194808922775faa8887', 'project_id': 'cf9f4a82230b4194808922775faa8887', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['96b6c8a9-bcae-4c64-ba65-6d337e0cb5ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73987826', 'ctest-vn-17527927'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73987826', 'ctest-policy-allow-all-35740806']], 'subnet_ipam': [{'subnet_cidr': '35.102.202.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 19:07:26,528 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-29 19:07:26,823 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-29 19:07:26,856 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3eb7dd65-15c1-4633-ac5f-d5ec47edd8f8
2026-04-29 19:07:26,868 - DEBUG - Requesting: http://10.0.0.38:8082/project/cf9f4a82-230b-4194-8089-22775faa8887
2026-04-29 19:07:26,940 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf558603-4d89-4fb1-9114-520c5210315d
2026-04-29 19:07:26,951 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf558603-4d89-4fb1-9114-520c5210315d
2026-04-29 19:07:26,960 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e9d57a2-d22b-46f3-a128-995258e9ab02
2026-04-29 19:07:26,969 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e9d57a2-d22b-46f3-a128-995258e9ab02
2026-04-29 19:07:26,976 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/287dac40-439b-482e-af9c-83635f854887
2026-04-29 19:07:26,983 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 19:07:26,983 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf558603-4d89-4fb1-9114-520c5210315d
2026-04-29 19:07:26,992 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e9d57a2-d22b-46f3-a128-995258e9ab02
2026-04-29 19:07:27,007 - INFO - Verified VN network id 11 for VN cf558603-4d89-4fb1-9114-520c5210315d
2026-04-29 19:07:27,007 - INFO - Verifications in API Server for VN ctest-vn-42641063 passed
2026-04-29 19:07:27,007 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf558603-4d89-4fb1-9114-520c5210315d
2026-04-29 19:07:27,017 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e9d57a2-d22b-46f3-a128-995258e9ab02
2026-04-29 19:07:27,025 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e9d57a2-d22b-46f3-a128-995258e9ab02
2026-04-29 19:07:27,033 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/287dac40-439b-482e-af9c-83635f854887
2026-04-29 19:07:27,047 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73987826:ctest-vn-42641063', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73987826', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14939994687615356849', 'uuid-lslong': '10454070847903641949'}, 'enable': 'true', 'created': '2026-04-29T19:07:24', 'last-modified': '2026-04-29T19:07:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934439'}
2026-04-29 19:07:27,053 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 19:07:27,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42641063 passed
2026-04-29 19:07:27,053 - DEBUG - ====Verifying policy data for ctest-vn-42641063 in API_Server ======
2026-04-29 19:07:27,053 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-29 19:07:27,059 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3eb7dd65-15c1-4633-ac5f-d5ec47edd8f8
2026-04-29 19:07:27,071 - DEBUG - Requesting: http://10.0.0.38:8082/project/cf9f4a82-230b-4194-8089-22775faa8887
2026-04-29 19:07:27,141 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf558603-4d89-4fb1-9114-520c5210315d
2026-04-29 19:07:27,150 - DEBUG - ==>Verifying data for policy with id: 0de82c67-4ea6-48d7-8c12-bc13314a686b, fqn: ['default-domain', 'ctest-TestBasicPolicy-73987826', 'ctest-policy-allow-all-35740806']
2026-04-29 19:07:27,150 - INFO - VN ctest-vn-42641063 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 19:07:27,150 - DEBUG - Verifying the vn in opserver
2026-04-29 19:07:27,150 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73987826:ctest-vn-42641063 virtual network link through opserver 10.0.0.38
2026-04-29 19:07:27,150 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-29 19:07:27,443 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-29 19:07:27,505 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73987826:ctest-vn-42641063', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73987826:ctest-vn-42641063?flat'}
2026-04-29 19:07:27,505 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73987826:ctest-vn-42641063 is found in opserver
2026-04-29 19:07:27,514 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 19:07:27,519 - DEBUG - VRF ids for VN ctest-vn-42641063: {}
2026-04-29 19:07:27,519 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-29 19:07:27,524 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3eb7dd65-15c1-4633-ac5f-d5ec47edd8f8
2026-04-29 19:07:27,534 - DEBUG - Requesting: http://10.0.0.38:8082/project/cf9f4a82-230b-4194-8089-22775faa8887
2026-04-29 19:07:27,602 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a579236f-fa72-4725-a00a-d5d053b6ed68
2026-04-29 19:07:27,614 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a579236f-fa72-4725-a00a-d5d053b6ed68
2026-04-29 19:07:27,623 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/91208076-5822-4c76-a1de-c3a7da1d02f4
2026-04-29 19:07:27,630 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/91208076-5822-4c76-a1de-c3a7da1d02f4
2026-04-29 19:07:27,638 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a3623ce7-881a-4686-a487-adc19eb3e100
2026-04-29 19:07:27,645 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 19:07:27,645 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a579236f-fa72-4725-a00a-d5d053b6ed68
2026-04-29 19:07:27,654 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/91208076-5822-4c76-a1de-c3a7da1d02f4
2026-04-29 19:07:27,668 - INFO - Verified VN network id 12 for VN a579236f-fa72-4725-a00a-d5d053b6ed68
2026-04-29 19:07:27,668 - INFO - Verifications in API Server for VN ctest-vn-17527927 passed
2026-04-29 19:07:27,668 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a579236f-fa72-4725-a00a-d5d053b6ed68
2026-04-29 19:07:27,679 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/91208076-5822-4c76-a1de-c3a7da1d02f4
2026-04-29 19:07:27,686 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/91208076-5822-4c76-a1de-c3a7da1d02f4
2026-04-29 19:07:27,693 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a3623ce7-881a-4686-a487-adc19eb3e100
2026-04-29 19:07:27,705 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73987826:ctest-vn-17527927', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73987826', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11923600452290234149', 'uuid-lslong': '11532264886569987432'}, 'enable': 'true', 'created': '2026-04-29T19:07:25', 'last-modified': '2026-04-29T19:07:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.365446'}
2026-04-29 19:07:27,711 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 19:07:27,711 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17527927 passed
2026-04-29 19:07:27,711 - DEBUG - ====Verifying policy data for ctest-vn-17527927 in API_Server ======
2026-04-29 19:07:27,711 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-29 19:07:27,716 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3eb7dd65-15c1-4633-ac5f-d5ec47edd8f8
2026-04-29 19:07:27,727 - DEBUG - Requesting: http://10.0.0.38:8082/project/cf9f4a82-230b-4194-8089-22775faa8887
2026-04-29 19:07:27,810 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a579236f-fa72-4725-a00a-d5d053b6ed68
2026-04-29 19:07:27,820 - DEBUG - ==>Verifying data for policy with id: 0de82c67-4ea6-48d7-8c12-bc13314a686b, fqn: ['default-domain', 'ctest-TestBasicPolicy-73987826', 'ctest-policy-allow-all-35740806']
2026-04-29 19:07:27,820 - INFO - VN ctest-vn-17527927 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 19:07:27,820 - DEBUG - Verifying the vn in opserver
2026-04-29 19:07:27,820 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73987826:ctest-vn-17527927 virtual network link through opserver 10.0.0.38
2026-04-29 19:07:27,820 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-29 19:07:27,829 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73987826:ctest-vn-17527927', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73987826:ctest-vn-17527927?flat'}
2026-04-29 19:07:27,829 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73987826:ctest-vn-17527927 is found in opserver
2026-04-29 19:07:27,839 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 19:07:27,843 - DEBUG - VRF ids for VN ctest-vn-17527927: {}
2026-04-29 19:07:27,902 - DEBUG - Services list from nova: [