2026-02-24 20:49:58,115 - INFO - Domain Default found not creating
2026-02-24 20:49:58,494 - INFO - Project ctest-TestBasicPolicy-41465100 not found, creating it
2026-02-24 20:49:59,015 - INFO - Created Project:ctest-TestBasicPolicy-41465100, ID : 7c5f5fa1-486b-4ddc-95d6-0520c45cad61
2026-02-24 20:50:01,193 - INFO - ================================================================================
2026-02-24 20:50:01,193 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-24 20:50:01,193 - 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-02-24 20:50:01,510 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-02-24 20:50:01,510 - INFO - Initial checks done. Running the testcase now
2026-02-24 20:50:01,510 - INFO -
2026-02-24 20:50:02,227 - DEBUG - Response for create_network : {'network': {'id': 'bf52577a-14bd-400d-9b98-92132ec0d771', 'name': 'ctest-vn-73659963', 'tenant_id': '7c5f5fa1486b4ddc95d60520c45cad61', 'project_id': '7c5f5fa1486b4ddc95d60520c45cad61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41465100', 'ctest-vn-73659963'], 'port_security_enabled': True, 'description': ''}}
2026-02-24 20:50:02,464 - DEBUG - Response for create_subnet : {'subnet': {'id': '360fffa6-59f8-4686-9c76-38caa32e047a', 'name': '', 'tenant_id': '7c5f5fa1486b4ddc95d60520c45cad61', 'network_id': 'bf52577a-14bd-400d-9b98-92132ec0d771', 'ip_version': 4, 'cidr': '168.142.8.0/26', 'allocation_pools': [{'start': '168.142.8.2', 'end': '168.142.8.62'}], 'gateway_ip': '168.142.8.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.142.8.2', 'tags': [], 'project_id': '7c5f5fa1486b4ddc95d60520c45cad61'}}
2026-02-24 20:50:02,484 - INFO - Created VN ctest-vn-73659963
2026-02-24 20:50:02,539 - DEBUG - VN ctest-vn-73659963 UUID is bf52577a-14bd-400d-9b98-92132ec0d771
2026-02-24 20:50:02,989 - DEBUG - Response for create_network : {'network': {'id': 'b8eb9dfd-8b6b-4e69-8b25-77227268218c', 'name': 'ctest-vn-70651377', 'tenant_id': '7c5f5fa1486b4ddc95d60520c45cad61', 'project_id': '7c5f5fa1486b4ddc95d60520c45cad61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41465100', 'ctest-vn-70651377'], 'port_security_enabled': True, 'description': ''}}
2026-02-24 20:50:03,233 - DEBUG - Response for create_subnet : {'subnet': {'id': '41ab2efa-0318-4b0d-bf39-b22148ec79e2', 'name': '', 'tenant_id': '7c5f5fa1486b4ddc95d60520c45cad61', 'network_id': 'b8eb9dfd-8b6b-4e69-8b25-77227268218c', 'ip_version': 4, 'cidr': '36.56.29.192/26', 'allocation_pools': [{'start': '36.56.29.194', 'end': '36.56.29.254'}], 'gateway_ip': '36.56.29.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.56.29.194', 'tags': [], 'project_id': '7c5f5fa1486b4ddc95d60520c45cad61'}}
2026-02-24 20:50:03,263 - INFO - Created VN ctest-vn-70651377
2026-02-24 20:50:03,323 - DEBUG - VN ctest-vn-70651377 UUID is b8eb9dfd-8b6b-4e69-8b25-77227268218c
2026-02-24 20:50:03,518 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41465100:ctest-vn-73659963, 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-41465100:ctest-vn-70651377, 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-02-24 20:50:03,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf52577a-14bd-400d-9b98-92132ec0d771', 'name': 'ctest-vn-73659963', 'tenant_id': '7c5f5fa1486b4ddc95d60520c45cad61', 'project_id': '7c5f5fa1486b4ddc95d60520c45cad61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['360fffa6-59f8-4686-9c76-38caa32e047a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41465100', 'ctest-vn-73659963'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41465100', 'ctest-policy-allow-all-62540644']], 'subnet_ipam': [{'subnet_cidr': '168.142.8.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-24 20:50:04,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8eb9dfd-8b6b-4e69-8b25-77227268218c', 'name': 'ctest-vn-70651377', 'tenant_id': '7c5f5fa1486b4ddc95d60520c45cad61', 'project_id': '7c5f5fa1486b4ddc95d60520c45cad61', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41ab2efa-0318-4b0d-bf39-b22148ec79e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41465100', 'ctest-vn-70651377'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41465100', 'ctest-policy-allow-all-62540644']], 'subnet_ipam': [{'subnet_cidr': '36.56.29.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-24 20:50:04,458 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-24 20:50:04,776 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-24 20:50:04,877 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f9d9fe61-ff01-47a7-a23b-acd006b411c2
2026-02-24 20:50:04,915 - DEBUG - Requesting: http://10.0.0.22:8082/project/7c5f5fa1-486b-4ddc-95d6-0520c45cad61
2026-02-24 20:50:04,997 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bf52577a-14bd-400d-9b98-92132ec0d771
2026-02-24 20:50:05,019 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bf52577a-14bd-400d-9b98-92132ec0d771
2026-02-24 20:50:05,041 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4e1e2157-9155-44a6-b0bb-cfd0e14c47ec
2026-02-24 20:50:05,055 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4e1e2157-9155-44a6-b0bb-cfd0e14c47ec
2026-02-24 20:50:05,068 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/afba68f3-8a1b-4ccd-af55-e6a55e58cc08
2026-02-24 20:50:05,081 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-24 20:50:05,081 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bf52577a-14bd-400d-9b98-92132ec0d771
2026-02-24 20:50:05,105 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4e1e2157-9155-44a6-b0bb-cfd0e14c47ec
2026-02-24 20:50:05,145 - INFO - Verified VN network id 11 for VN bf52577a-14bd-400d-9b98-92132ec0d771
2026-02-24 20:50:05,145 - INFO - Verifications in API Server for VN ctest-vn-73659963 passed
2026-02-24 20:50:05,145 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bf52577a-14bd-400d-9b98-92132ec0d771
2026-02-24 20:50:05,173 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4e1e2157-9155-44a6-b0bb-cfd0e14c47ec
2026-02-24 20:50:05,192 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4e1e2157-9155-44a6-b0bb-cfd0e14c47ec
2026-02-24 20:50:05,213 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/afba68f3-8a1b-4ccd-af55-e6a55e58cc08
2026-02-24 20:50:05,249 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41465100:ctest-vn-73659963', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41465100', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13786177591180083213', 'uuid-lslong': '11211871883425273713'}, 'enable': 'true', 'created': '2026-02-24T20:50:02', 'last-modified': '2026-02-24T20:50:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.369181'}
2026-02-24 20:50:05,265 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-24 20:50:05,266 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73659963 passed
2026-02-24 20:50:05,266 - DEBUG - ====Verifying policy data for ctest-vn-73659963 in API_Server ======
2026-02-24 20:50:05,267 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-24 20:50:05,281 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f9d9fe61-ff01-47a7-a23b-acd006b411c2
2026-02-24 20:50:05,315 - DEBUG - Requesting: http://10.0.0.22:8082/project/7c5f5fa1-486b-4ddc-95d6-0520c45cad61
2026-02-24 20:50:05,433 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bf52577a-14bd-400d-9b98-92132ec0d771
2026-02-24 20:50:05,458 - DEBUG - ==>Verifying data for policy with id: 546ba785-b050-4f2e-b48b-4d6a526feb7c, fqn: ['default-domain', 'ctest-TestBasicPolicy-41465100', 'ctest-policy-allow-all-62540644']
2026-02-24 20:50:05,458 - INFO - VN ctest-vn-73659963 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-24 20:50:05,458 - DEBUG - Verifying the vn in opserver
2026-02-24 20:50:05,458 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41465100:ctest-vn-73659963 virtual network link through opserver 10.0.0.22
2026-02-24 20:50:05,459 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-24 20:50:05,803 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-24 20:50:05,920 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41465100:ctest-vn-73659963', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41465100:ctest-vn-73659963?flat'}
2026-02-24 20:50:05,920 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41465100:ctest-vn-73659963 is found in opserver
2026-02-24 20:50:05,934 - DEBUG - Do not have enough data to verify VN in agent
2026-02-24 20:50:05,942 - DEBUG - VRF ids for VN ctest-vn-73659963: {}
2026-02-24 20:50:05,942 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-24 20:50:05,951 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f9d9fe61-ff01-47a7-a23b-acd006b411c2
2026-02-24 20:50:05,966 - DEBUG - Requesting: http://10.0.0.22:8082/project/7c5f5fa1-486b-4ddc-95d6-0520c45cad61
2026-02-24 20:50:06,069 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8eb9dfd-8b6b-4e69-8b25-77227268218c
2026-02-24 20:50:06,085 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8eb9dfd-8b6b-4e69-8b25-77227268218c
2026-02-24 20:50:06,095 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1fa1726c-582d-441f-8a20-a38de2544109
2026-02-24 20:50:06,106 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1fa1726c-582d-441f-8a20-a38de2544109
2026-02-24 20:50:06,114 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d245fcf5-4aee-4b7c-b6ee-75eee77df591
2026-02-24 20:50:06,121 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-24 20:50:06,121 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8eb9dfd-8b6b-4e69-8b25-77227268218c
2026-02-24 20:50:06,131 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1fa1726c-582d-441f-8a20-a38de2544109
2026-02-24 20:50:06,146 - INFO - Verified VN network id 12 for VN b8eb9dfd-8b6b-4e69-8b25-77227268218c
2026-02-24 20:50:06,146 - INFO - Verifications in API Server for VN ctest-vn-70651377 passed
2026-02-24 20:50:06,146 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8eb9dfd-8b6b-4e69-8b25-77227268218c
2026-02-24 20:50:06,157 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1fa1726c-582d-441f-8a20-a38de2544109
2026-02-24 20:50:06,165 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1fa1726c-582d-441f-8a20-a38de2544109
2026-02-24 20:50:06,173 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d245fcf5-4aee-4b7c-b6ee-75eee77df591
2026-02-24 20:50:06,185 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41465100:ctest-vn-70651377', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41465100', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13324917634797096553', 'uuid-lslong': '10026551135242297740'}, 'enable': 'true', 'created': '2026-02-24T20:50:02', 'last-modified': '2026-02-24T20:50:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.966015'}
2026-02-24 20:50:06,192 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-24 20:50:06,192 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70651377 passed
2026-02-24 20:50:06,192 - DEBUG - ====Verifying policy data for ctest-vn-70651377 in API_Server ======
2026-02-24 20:50:06,192 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-24 20:50:06,199 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f9d9fe61-ff01-47a7-a23b-acd006b411c2
2026-02-24 20:50:06,210 - DEBUG - Requesting: http://10.0.0.22:8082/project/7c5f5fa1-486b-4ddc-95d6-0520c45cad61
2026-02-24 20:50:06,294 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b8eb9dfd-8b6b-4e69-8b25-77227268218c
2026-02-24 20:50:06,305 - DEBUG - ==>Verifying data for policy with id: 546ba785-b050-4f2e-b48b-4d6a526feb7c, fqn: ['default-domain', 'ctest-TestBasicPolicy-41465100', 'ctest-policy-allow-all-62540644']
2026-02-24 20:50:06,305 - INFO - VN ctest-vn-70651377 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-24 20:50:06,305 - DEBUG - Verifying the vn in opserver
2026-02-24 20:50:06,305 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41465100:ctest-vn-70651377 virtual network link through opserver 10.0.0.22
2026-02-24 20:50:06,305 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-24 20:50:06,315 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41465100:ctest-vn-70651377', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41465100:ctest-vn-70651377?flat'}
2026-02-24 20:50:06,315 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41465100:ctest-vn-70651377 is found in opserver
2026-02-24 20:50:06,334 - DEBUG - Do not have enough data to verify VN in agent
2026-02-24 20:50:06,342 - DEBUG - VRF ids for VN ctest-vn-70651377: {}
2026-02-24 20:50:06,477 - DEBUG - Services list from nova: [