2026-11-05 15:58:29,763 - INFO - Domain Default found not creating
2026-11-05 15:58:29,930 - INFO - Project ctest-TestBasicPolicy-18045475 not found, creating it
2026-11-05 15:58:30,400 - INFO - Created Project:ctest-TestBasicPolicy-18045475, ID : db7cc14c-9ac2-4f56-a138-4e508b5578e7
2026-11-05 15:58:32,138 - INFO - ================================================================================
2026-11-05 15:58:32,138 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-05 15:58:32,138 - 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-11-05 15:58:32,399 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with
2026-11-05 15:58:32,399 - INFO - Initial checks done. Running the testcase now
2026-11-05 15:58:32,399 - INFO -
2026-11-05 15:58:33,015 - DEBUG - Response for create_network : {'network': {'id': 'efd0b512-fc3e-417a-870a-a6f0b42a78c5', 'name': 'ctest-vn-52363738', 'tenant_id': 'db7cc14c9ac24f56a1384e508b5578e7', 'project_id': 'db7cc14c9ac24f56a1384e508b5578e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18045475', 'ctest-vn-52363738'], 'port_security_enabled': True, 'description': ''}}
2026-11-05 15:58:33,190 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c06764f-430f-4aa0-b1ad-052e3bb0ef50', 'name': '', 'tenant_id': 'db7cc14c9ac24f56a1384e508b5578e7', 'network_id': 'efd0b512-fc3e-417a-870a-a6f0b42a78c5', 'ip_version': 4, 'cidr': '71.198.78.64/26', 'allocation_pools': [{'start': '71.198.78.66', 'end': '71.198.78.126'}], 'gateway_ip': '71.198.78.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.198.78.66', 'tags': [], 'project_id': 'db7cc14c9ac24f56a1384e508b5578e7'}}
2026-11-05 15:58:33,206 - INFO - Created VN ctest-vn-52363738
2026-11-05 15:58:33,257 - DEBUG - VN ctest-vn-52363738 UUID is efd0b512-fc3e-417a-870a-a6f0b42a78c5
2026-11-05 15:58:33,585 - DEBUG - Response for create_network : {'network': {'id': '2f3d7132-33fd-438a-b719-7bce356a6bbb', 'name': 'ctest-vn-22434710', 'tenant_id': 'db7cc14c9ac24f56a1384e508b5578e7', 'project_id': 'db7cc14c9ac24f56a1384e508b5578e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18045475', 'ctest-vn-22434710'], 'port_security_enabled': True, 'description': ''}}
2026-11-05 15:58:33,786 - DEBUG - Response for create_subnet : {'subnet': {'id': '5cd20637-eaf3-4e7b-a6dd-f2fe022e038d', 'name': '', 'tenant_id': 'db7cc14c9ac24f56a1384e508b5578e7', 'network_id': '2f3d7132-33fd-438a-b719-7bce356a6bbb', 'ip_version': 4, 'cidr': '52.46.15.64/26', 'allocation_pools': [{'start': '52.46.15.66', 'end': '52.46.15.126'}], 'gateway_ip': '52.46.15.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.46.15.66', 'tags': [], 'project_id': 'db7cc14c9ac24f56a1384e508b5578e7'}}
2026-11-05 15:58:33,801 - INFO - Created VN ctest-vn-22434710
2026-11-05 15:58:33,857 - DEBUG - VN ctest-vn-22434710 UUID is 2f3d7132-33fd-438a-b719-7bce356a6bbb
2026-11-05 15:58:34,005 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18045475:ctest-vn-52363738, 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-18045475:ctest-vn-22434710, 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-11-05 15:58:34,373 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'efd0b512-fc3e-417a-870a-a6f0b42a78c5', 'name': 'ctest-vn-52363738', 'tenant_id': 'db7cc14c9ac24f56a1384e508b5578e7', 'project_id': 'db7cc14c9ac24f56a1384e508b5578e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['8c06764f-430f-4aa0-b1ad-052e3bb0ef50'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18045475', 'ctest-vn-52363738'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18045475', 'ctest-policy-allow-all-65204897']], 'subnet_ipam': [{'subnet_cidr': '71.198.78.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-05 15:58:34,619 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f3d7132-33fd-438a-b719-7bce356a6bbb', 'name': 'ctest-vn-22434710', 'tenant_id': 'db7cc14c9ac24f56a1384e508b5578e7', 'project_id': 'db7cc14c9ac24f56a1384e508b5578e7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5cd20637-eaf3-4e7b-a6dd-f2fe022e038d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18045475', 'ctest-vn-22434710'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18045475', 'ctest-policy-allow-all-65204897']], 'subnet_ipam': [{'subnet_cidr': '52.46.15.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-05 15:58:34,789 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-05 15:58:35,150 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-05 15:58:35,178 - DEBUG - Requesting: http://10.0.0.161:8082/domain/c4ef23e1-032f-44cc-ad5a-c4ee94ff7d5b
2026-11-05 15:58:35,190 - DEBUG - Requesting: http://10.0.0.161:8082/project/db7cc14c-9ac2-4f56-a138-4e508b5578e7
2026-11-05 15:58:35,264 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/efd0b512-fc3e-417a-870a-a6f0b42a78c5
2026-11-05 15:58:35,276 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/efd0b512-fc3e-417a-870a-a6f0b42a78c5
2026-11-05 15:58:35,286 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/0668d654-1305-4691-8b11-007cf09d8dcf
2026-11-05 15:58:35,294 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/0668d654-1305-4691-8b11-007cf09d8dcf
2026-11-05 15:58:35,301 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/4dd3fa9f-8f05-4e2e-9383-77d33841f457
2026-11-05 15:58:35,308 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-05 15:58:35,308 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/efd0b512-fc3e-417a-870a-a6f0b42a78c5
2026-11-05 15:58:35,317 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/0668d654-1305-4691-8b11-007cf09d8dcf
2026-11-05 15:58:35,331 - INFO - Verified VN network id 12 for VN efd0b512-fc3e-417a-870a-a6f0b42a78c5
2026-11-05 15:58:35,331 - INFO - Verifications in API Server for VN ctest-vn-52363738 passed
2026-11-05 15:58:35,331 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/efd0b512-fc3e-417a-870a-a6f0b42a78c5
2026-11-05 15:58:35,340 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/0668d654-1305-4691-8b11-007cf09d8dcf
2026-11-05 15:58:35,346 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/0668d654-1305-4691-8b11-007cf09d8dcf
2026-11-05 15:58:35,354 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/4dd3fa9f-8f05-4e2e-9383-77d33841f457
2026-11-05 15:58:35,368 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18045475:ctest-vn-52363738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18045475', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17280510863366570362', 'uuid-lslong': '9730773497632422085'}, 'enable': 'true', 'created': '2026-11-05T15:58:32', 'last-modified': '2026-11-05T15:58:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.028253'}
2026-11-05 15:58:35,376 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-05 15:58:35,376 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52363738 passed
2026-11-05 15:58:35,376 - DEBUG - ====Verifying policy data for ctest-vn-52363738 in API_Server ======
2026-11-05 15:58:35,376 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-05 15:58:35,382 - DEBUG - Requesting: http://10.0.0.161:8082/domain/c4ef23e1-032f-44cc-ad5a-c4ee94ff7d5b
2026-11-05 15:58:35,392 - DEBUG - Requesting: http://10.0.0.161:8082/project/db7cc14c-9ac2-4f56-a138-4e508b5578e7
2026-11-05 15:58:35,465 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/efd0b512-fc3e-417a-870a-a6f0b42a78c5
2026-11-05 15:58:35,474 - DEBUG - ==>Verifying data for policy with id: 7c3a5ae2-a3b9-4fda-9cb8-921640ef4bbd, fqn: ['default-domain', 'ctest-TestBasicPolicy-18045475', 'ctest-policy-allow-all-65204897']
2026-11-05 15:58:35,474 - INFO - VN ctest-vn-52363738 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-05 15:58:35,474 - DEBUG - Verifying the vn in opserver
2026-11-05 15:58:35,474 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18045475:ctest-vn-52363738 virtual network link through opserver 10.0.0.161
2026-11-05 15:58:35,474 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-11-05 15:58:35,833 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-11-05 15:58:35,884 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18045475:ctest-vn-52363738', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18045475:ctest-vn-52363738?flat'}
2026-11-05 15:58:35,884 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18045475:ctest-vn-52363738 is found in opserver
2026-11-05 15:58:35,894 - DEBUG - Do not have enough data to verify VN in agent
2026-11-05 15:58:35,898 - DEBUG - VRF ids for VN ctest-vn-52363738: {}
2026-11-05 15:58:35,898 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-05 15:58:35,903 - DEBUG - Requesting: http://10.0.0.161:8082/domain/c4ef23e1-032f-44cc-ad5a-c4ee94ff7d5b
2026-11-05 15:58:35,912 - DEBUG - Requesting: http://10.0.0.161:8082/project/db7cc14c-9ac2-4f56-a138-4e508b5578e7
2026-11-05 15:58:35,982 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2f3d7132-33fd-438a-b719-7bce356a6bbb
2026-11-05 15:58:35,992 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2f3d7132-33fd-438a-b719-7bce356a6bbb
2026-11-05 15:58:36,001 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3e0b2121-1ce3-466b-af2a-0c61a0c5af65
2026-11-05 15:58:36,009 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3e0b2121-1ce3-466b-af2a-0c61a0c5af65
2026-11-05 15:58:36,015 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/0cda40aa-c9c3-4337-88fe-3349c93d05b5
2026-11-05 15:58:36,022 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-05 15:58:36,022 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2f3d7132-33fd-438a-b719-7bce356a6bbb
2026-11-05 15:58:36,032 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3e0b2121-1ce3-466b-af2a-0c61a0c5af65
2026-11-05 15:58:36,047 - INFO - Verified VN network id 13 for VN 2f3d7132-33fd-438a-b719-7bce356a6bbb
2026-11-05 15:58:36,047 - INFO - Verifications in API Server for VN ctest-vn-22434710 passed
2026-11-05 15:58:36,048 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2f3d7132-33fd-438a-b719-7bce356a6bbb
2026-11-05 15:58:36,058 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3e0b2121-1ce3-466b-af2a-0c61a0c5af65
2026-11-05 15:58:36,065 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3e0b2121-1ce3-466b-af2a-0c61a0c5af65
2026-11-05 15:58:36,072 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/0cda40aa-c9c3-4337-88fe-3349c93d05b5
2026-11-05 15:58:36,083 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18045475:ctest-vn-22434710', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18045475', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3404001353796502410', 'uuid-lslong': '13193712708948224955'}, 'enable': 'true', 'created': '2026-11-05T15:58:33', 'last-modified': '2026-11-05T15:58:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.497348'}
2026-11-05 15:58:36,090 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-05 15:58:36,090 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22434710 passed
2026-11-05 15:58:36,090 - DEBUG - ====Verifying policy data for ctest-vn-22434710 in API_Server ======
2026-11-05 15:58:36,090 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2026-11-05 15:58:36,095 - DEBUG - Requesting: http://10.0.0.161:8082/domain/c4ef23e1-032f-44cc-ad5a-c4ee94ff7d5b
2026-11-05 15:58:36,107 - DEBUG - Requesting: http://10.0.0.161:8082/project/db7cc14c-9ac2-4f56-a138-4e508b5578e7
2026-11-05 15:58:36,182 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2f3d7132-33fd-438a-b719-7bce356a6bbb
2026-11-05 15:58:36,191 - DEBUG - ==>Verifying data for policy with id: 7c3a5ae2-a3b9-4fda-9cb8-921640ef4bbd, fqn: ['default-domain', 'ctest-TestBasicPolicy-18045475', 'ctest-policy-allow-all-65204897']
2026-11-05 15:58:36,191 - INFO - VN ctest-vn-22434710 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-05 15:58:36,191 - DEBUG - Verifying the vn in opserver
2026-11-05 15:58:36,191 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18045475:ctest-vn-22434710 virtual network link through opserver 10.0.0.161
2026-11-05 15:58:36,191 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2026-11-05 15:58:36,200 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18045475:ctest-vn-22434710', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18045475:ctest-vn-22434710?flat'}
2026-11-05 15:58:36,200 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18045475:ctest-vn-22434710 is found in opserver
2026-11-05 15:58:36,209 - DEBUG - Do not have enough data to verify VN in agent
2026-11-05 15:58:36,213 - DEBUG - VRF ids for VN ctest-vn-22434710: {}
2026-11-05 15:58:36,267 - DEBUG - Services list from nova: [