2026-10-29 18:51:37,291 - INFO - Domain Default found not creating
2026-10-29 18:51:37,517 - INFO - Project ctest-TestBasicPolicy-08777603 not found, creating it
2026-10-29 18:51:38,019 - INFO - Created Project:ctest-TestBasicPolicy-08777603, ID : 3e853fd9-e0b1-4dd1-816d-3f62ea102d09
2026-10-29 18:51:39,881 - INFO - ================================================================================
2026-10-29 18:51:39,881 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-10-29 18:51:39,881 - 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-29 18:51:40,166 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.254': '0'}} with
2026-10-29 18:51:40,166 - INFO - Initial checks done. Running the testcase now
2026-10-29 18:51:40,166 - INFO -
2026-10-29 18:51:40,836 - DEBUG - Response for create_network : {'network': {'id': '16e36263-1616-4d55-a0d0-2af3bd1b70c6', 'name': 'ctest-vn-51876795', 'tenant_id': '3e853fd9e0b14dd1816d3f62ea102d09', 'project_id': '3e853fd9e0b14dd1816d3f62ea102d09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08777603', 'ctest-vn-51876795'], 'port_security_enabled': True, 'description': ''}}
2026-10-29 18:51:41,038 - DEBUG - Response for create_subnet : {'subnet': {'id': '273b478a-eaf5-4d52-9a15-bc8461eea432', 'name': '', 'tenant_id': '3e853fd9e0b14dd1816d3f62ea102d09', 'network_id': '16e36263-1616-4d55-a0d0-2af3bd1b70c6', 'ip_version': 4, 'cidr': '223.205.152.192/26', 'allocation_pools': [{'start': '223.205.152.194', 'end': '223.205.152.254'}], 'gateway_ip': '223.205.152.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.205.152.194', 'tags': [], 'project_id': '3e853fd9e0b14dd1816d3f62ea102d09'}}
2026-10-29 18:51:41,060 - INFO - Created VN ctest-vn-51876795
2026-10-29 18:51:41,116 - DEBUG - VN ctest-vn-51876795 UUID is 16e36263-1616-4d55-a0d0-2af3bd1b70c6
2026-10-29 18:51:41,452 - DEBUG - Response for create_network : {'network': {'id': '03444700-2730-4d71-8554-339950b51a52', 'name': 'ctest-vn-38332392', 'tenant_id': '3e853fd9e0b14dd1816d3f62ea102d09', 'project_id': '3e853fd9e0b14dd1816d3f62ea102d09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08777603', 'ctest-vn-38332392'], 'port_security_enabled': True, 'description': ''}}
2026-10-29 18:51:41,674 - DEBUG - Response for create_subnet : {'subnet': {'id': '50188a82-ed47-4d37-a208-87f6f673a326', 'name': '', 'tenant_id': '3e853fd9e0b14dd1816d3f62ea102d09', 'network_id': '03444700-2730-4d71-8554-339950b51a52', 'ip_version': 4, 'cidr': '69.18.200.192/26', 'allocation_pools': [{'start': '69.18.200.194', 'end': '69.18.200.254'}], 'gateway_ip': '69.18.200.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.18.200.194', 'tags': [], 'project_id': '3e853fd9e0b14dd1816d3f62ea102d09'}}
2026-10-29 18:51:41,693 - INFO - Created VN ctest-vn-38332392
2026-10-29 18:51:41,748 - DEBUG - VN ctest-vn-38332392 UUID is 03444700-2730-4d71-8554-339950b51a52
2026-10-29 18:51:41,869 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08777603:ctest-vn-51876795, 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-08777603:ctest-vn-38332392, 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-29 18:51:42,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16e36263-1616-4d55-a0d0-2af3bd1b70c6', 'name': 'ctest-vn-51876795', 'tenant_id': '3e853fd9e0b14dd1816d3f62ea102d09', 'project_id': '3e853fd9e0b14dd1816d3f62ea102d09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['273b478a-eaf5-4d52-9a15-bc8461eea432'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08777603', 'ctest-vn-51876795'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08777603', 'ctest-policy-allow-all-95496947']], 'subnet_ipam': [{'subnet_cidr': '223.205.152.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-29 18:51:42,478 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03444700-2730-4d71-8554-339950b51a52', 'name': 'ctest-vn-38332392', 'tenant_id': '3e853fd9e0b14dd1816d3f62ea102d09', 'project_id': '3e853fd9e0b14dd1816d3f62ea102d09', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['50188a82-ed47-4d37-a208-87f6f673a326'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08777603', 'ctest-vn-38332392'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08777603', 'ctest-policy-allow-all-95496947']], 'subnet_ipam': [{'subnet_cidr': '69.18.200.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-10-29 18:51:42,648 - DEBUG - Requesting: http://10.0.0.251:8082/domains
2026-10-29 18:51:43,020 - DEBUG - Requesting: http://10.0.0.251:8082/domains
2026-10-29 18:51:43,052 - DEBUG - Requesting: http://10.0.0.251:8082/domain/e5597cc4-72ea-49d8-8940-9b4df571d52a
2026-10-29 18:51:43,067 - DEBUG - Requesting: http://10.0.0.251:8082/project/3e853fd9-e0b1-4dd1-816d-3f62ea102d09
2026-10-29 18:51:43,160 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/16e36263-1616-4d55-a0d0-2af3bd1b70c6
2026-10-29 18:51:43,179 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/16e36263-1616-4d55-a0d0-2af3bd1b70c6
2026-10-29 18:51:43,193 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/2f3c157e-db16-4f24-b438-f9d339cfb136
2026-10-29 18:51:43,209 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/2f3c157e-db16-4f24-b438-f9d339cfb136
2026-10-29 18:51:43,218 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/d9391054-1585-48e1-8cb1-f702f002f322
2026-10-29 18:51:43,229 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-29 18:51:43,229 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/16e36263-1616-4d55-a0d0-2af3bd1b70c6
2026-10-29 18:51:43,244 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/2f3c157e-db16-4f24-b438-f9d339cfb136
2026-10-29 18:51:43,265 - INFO - Verified VN network id 11 for VN 16e36263-1616-4d55-a0d0-2af3bd1b70c6
2026-10-29 18:51:43,265 - INFO - Verifications in API Server for VN ctest-vn-51876795 passed
2026-10-29 18:51:43,265 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/16e36263-1616-4d55-a0d0-2af3bd1b70c6
2026-10-29 18:51:43,278 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/2f3c157e-db16-4f24-b438-f9d339cfb136
2026-10-29 18:51:43,289 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/2f3c157e-db16-4f24-b438-f9d339cfb136
2026-10-29 18:51:43,301 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/d9391054-1585-48e1-8cb1-f702f002f322
2026-10-29 18:51:43,321 - DEBUG - Control-node 10.0.0.251 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08777603:ctest-vn-51876795', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08777603', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1649270066259578197', 'uuid-lslong': '11587809067562397894'}, 'enable': 'true', 'created': '2026-10-29T18:51:40', 'last-modified': '2026-10-29T18:51:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.132686'}
2026-10-29 18:51:43,332 - DEBUG - Route Targets: ['target:64512:8000005']
2026-10-29 18:51:43,333 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51876795 passed
2026-10-29 18:51:43,333 - DEBUG - ====Verifying policy data for ctest-vn-51876795 in API_Server ======
2026-10-29 18:51:43,333 - DEBUG - Requesting: http://10.0.0.251:8082/domains
2026-10-29 18:51:43,344 - DEBUG - Requesting: http://10.0.0.251:8082/domain/e5597cc4-72ea-49d8-8940-9b4df571d52a
2026-10-29 18:51:43,362 - DEBUG - Requesting: http://10.0.0.251:8082/project/3e853fd9-e0b1-4dd1-816d-3f62ea102d09
2026-10-29 18:51:43,453 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/16e36263-1616-4d55-a0d0-2af3bd1b70c6
2026-10-29 18:51:43,471 - DEBUG - ==>Verifying data for policy with id: a94175ed-ff00-458c-8e07-6c32ccd9a634, fqn: ['default-domain', 'ctest-TestBasicPolicy-08777603', 'ctest-policy-allow-all-95496947']
2026-10-29 18:51:43,471 - INFO - VN ctest-vn-51876795 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-29 18:51:43,471 - DEBUG - Verifying the vn in opserver
2026-10-29 18:51:43,471 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08777603:ctest-vn-51876795 virtual network link through opserver 10.0.0.251
2026-10-29 18:51:43,471 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks
2026-10-29 18:51:43,859 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks
2026-10-29 18:51:43,938 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08777603:ctest-vn-51876795', 'href': 'http://10.0.0.251:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08777603:ctest-vn-51876795?flat'}
2026-10-29 18:51:43,938 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08777603:ctest-vn-51876795 is found in opserver
2026-10-29 18:51:43,953 - DEBUG - Do not have enough data to verify VN in agent
2026-10-29 18:51:43,959 - DEBUG - VRF ids for VN ctest-vn-51876795: {}
2026-10-29 18:51:43,960 - DEBUG - Requesting: http://10.0.0.251:8082/domains
2026-10-29 18:51:43,967 - DEBUG - Requesting: http://10.0.0.251:8082/domain/e5597cc4-72ea-49d8-8940-9b4df571d52a
2026-10-29 18:51:43,983 - DEBUG - Requesting: http://10.0.0.251:8082/project/3e853fd9-e0b1-4dd1-816d-3f62ea102d09
2026-10-29 18:51:44,069 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/03444700-2730-4d71-8554-339950b51a52
2026-10-29 18:51:44,100 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/03444700-2730-4d71-8554-339950b51a52
2026-10-29 18:51:44,115 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/55257767-e55c-4e9e-949f-728143e80c79
2026-10-29 18:51:44,127 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/55257767-e55c-4e9e-949f-728143e80c79
2026-10-29 18:51:44,137 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/b646ac17-f3ef-4c48-bec6-6639b119bb6a
2026-10-29 18:51:44,145 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-29 18:51:44,145 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/03444700-2730-4d71-8554-339950b51a52
2026-10-29 18:51:44,157 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/55257767-e55c-4e9e-949f-728143e80c79
2026-10-29 18:51:44,177 - INFO - Verified VN network id 12 for VN 03444700-2730-4d71-8554-339950b51a52
2026-10-29 18:51:44,177 - INFO - Verifications in API Server for VN ctest-vn-38332392 passed
2026-10-29 18:51:44,177 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/03444700-2730-4d71-8554-339950b51a52
2026-10-29 18:51:44,189 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/55257767-e55c-4e9e-949f-728143e80c79
2026-10-29 18:51:44,201 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/55257767-e55c-4e9e-949f-728143e80c79
2026-10-29 18:51:44,211 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/b646ac17-f3ef-4c48-bec6-6639b119bb6a
2026-10-29 18:51:44,229 - DEBUG - Control-node 10.0.0.251 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08777603:ctest-vn-38332392', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08777603', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '235391146513157489', 'uuid-lslong': '9607360638665169490'}, 'enable': 'true', 'created': '2026-10-29T18:51:41', 'last-modified': '2026-10-29T18:51:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.785629'}
2026-10-29 18:51:44,238 - DEBUG - Route Targets: ['target:64512:8000006']
2026-10-29 18:51:44,239 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38332392 passed
2026-10-29 18:51:44,239 - DEBUG - ====Verifying policy data for ctest-vn-38332392 in API_Server ======
2026-10-29 18:51:44,239 - DEBUG - Requesting: http://10.0.0.251:8082/domains
2026-10-29 18:51:44,247 - DEBUG - Requesting: http://10.0.0.251:8082/domain/e5597cc4-72ea-49d8-8940-9b4df571d52a
2026-10-29 18:51:44,261 - DEBUG - Requesting: http://10.0.0.251:8082/project/3e853fd9-e0b1-4dd1-816d-3f62ea102d09
2026-10-29 18:51:44,342 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/03444700-2730-4d71-8554-339950b51a52
2026-10-29 18:51:44,356 - DEBUG - ==>Verifying data for policy with id: a94175ed-ff00-458c-8e07-6c32ccd9a634, fqn: ['default-domain', 'ctest-TestBasicPolicy-08777603', 'ctest-policy-allow-all-95496947']
2026-10-29 18:51:44,357 - INFO - VN ctest-vn-38332392 Policy verification: verify_vn_policy_in_api_server, status: True
2026-10-29 18:51:44,357 - DEBUG - Verifying the vn in opserver
2026-10-29 18:51:44,357 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08777603:ctest-vn-38332392 virtual network link through opserver 10.0.0.251
2026-10-29 18:51:44,357 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks
2026-10-29 18:51:44,371 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08777603:ctest-vn-38332392', 'href': 'http://10.0.0.251:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08777603:ctest-vn-38332392?flat'}
2026-10-29 18:51:44,371 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08777603:ctest-vn-38332392 is found in opserver
2026-10-29 18:51:44,383 - DEBUG - Do not have enough data to verify VN in agent
2026-10-29 18:51:44,388 - DEBUG - VRF ids for VN ctest-vn-38332392: {}
2026-10-29 18:51:44,467 - DEBUG - Services list from nova: [