2026-06-16 21:32:03,453 - INFO - Domain Default found not creating
2026-06-16 21:32:03,592 - INFO - Project ctest-TestBasicPolicy-98025354 not found, creating it
2026-06-16 21:32:04,059 - INFO - Created Project:ctest-TestBasicPolicy-98025354, ID : 52b3207a-9a64-4ac7-b562-7140f575bd1c
2026-06-16 21:32:05,484 - INFO - ================================================================================
2026-06-16 21:32:05,484 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-16 21:32:05,484 - 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-06-16 21:32:05,736 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2026-06-16 21:32:05,736 - INFO - Initial checks done. Running the testcase now
2026-06-16 21:32:05,736 - INFO -
2026-06-16 21:32:06,272 - DEBUG - Response for create_network : {'network': {'id': 'bdc8f011-4a97-4b3e-bfde-be7636efbd44', 'name': 'ctest-vn-92577450', 'tenant_id': '52b3207a9a644ac7b5627140f575bd1c', 'project_id': '52b3207a9a644ac7b5627140f575bd1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98025354', 'ctest-vn-92577450'], 'port_security_enabled': True, 'description': ''}}
2026-06-16 21:32:06,454 - DEBUG - Response for create_subnet : {'subnet': {'id': '7dcd4e98-a795-489e-988d-527fee723576', 'name': '', 'tenant_id': '52b3207a9a644ac7b5627140f575bd1c', 'network_id': 'bdc8f011-4a97-4b3e-bfde-be7636efbd44', 'ip_version': 4, 'cidr': '206.226.171.0/26', 'allocation_pools': [{'start': '206.226.171.2', 'end': '206.226.171.62'}], 'gateway_ip': '206.226.171.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.226.171.2', 'tags': [], 'project_id': '52b3207a9a644ac7b5627140f575bd1c'}}
2026-06-16 21:32:06,473 - INFO - Created VN ctest-vn-92577450
2026-06-16 21:32:06,523 - DEBUG - VN ctest-vn-92577450 UUID is bdc8f011-4a97-4b3e-bfde-be7636efbd44
2026-06-16 21:32:06,829 - DEBUG - Response for create_network : {'network': {'id': '163c8d76-8afb-4cc0-81f7-a68b83967572', 'name': 'ctest-vn-49203376', 'tenant_id': '52b3207a9a644ac7b5627140f575bd1c', 'project_id': '52b3207a9a644ac7b5627140f575bd1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98025354', 'ctest-vn-49203376'], 'port_security_enabled': True, 'description': ''}}
2026-06-16 21:32:06,970 - DEBUG - Response for create_subnet : {'subnet': {'id': '79c63ead-a5c6-45e8-8525-c96f7c8f8b26', 'name': '', 'tenant_id': '52b3207a9a644ac7b5627140f575bd1c', 'network_id': '163c8d76-8afb-4cc0-81f7-a68b83967572', 'ip_version': 4, 'cidr': '200.240.203.0/26', 'allocation_pools': [{'start': '200.240.203.2', 'end': '200.240.203.62'}], 'gateway_ip': '200.240.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.240.203.2', 'tags': [], 'project_id': '52b3207a9a644ac7b5627140f575bd1c'}}
2026-06-16 21:32:06,985 - INFO - Created VN ctest-vn-49203376
2026-06-16 21:32:07,035 - DEBUG - VN ctest-vn-49203376 UUID is 163c8d76-8afb-4cc0-81f7-a68b83967572
2026-06-16 21:32:07,175 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98025354:ctest-vn-92577450, 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-98025354:ctest-vn-49203376, 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-06-16 21:32:07,468 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdc8f011-4a97-4b3e-bfde-be7636efbd44', 'name': 'ctest-vn-92577450', 'tenant_id': '52b3207a9a644ac7b5627140f575bd1c', 'project_id': '52b3207a9a644ac7b5627140f575bd1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7dcd4e98-a795-489e-988d-527fee723576'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98025354', 'ctest-vn-92577450'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98025354', 'ctest-policy-allow-all-50289197']], 'subnet_ipam': [{'subnet_cidr': '206.226.171.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-16 21:32:07,685 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '163c8d76-8afb-4cc0-81f7-a68b83967572', 'name': 'ctest-vn-49203376', 'tenant_id': '52b3207a9a644ac7b5627140f575bd1c', 'project_id': '52b3207a9a644ac7b5627140f575bd1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79c63ead-a5c6-45e8-8525-c96f7c8f8b26'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98025354', 'ctest-vn-49203376'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98025354', 'ctest-policy-allow-all-50289197']], 'subnet_ipam': [{'subnet_cidr': '200.240.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-16 21:32:07,863 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-06-16 21:32:08,181 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-06-16 21:32:08,205 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ab18d03-1622-41ab-b02f-1fa297dbb326
2026-06-16 21:32:08,215 - DEBUG - Requesting: http://10.0.0.249:8082/project/52b3207a-9a64-4ac7-b562-7140f575bd1c
2026-06-16 21:32:08,285 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bdc8f011-4a97-4b3e-bfde-be7636efbd44
2026-06-16 21:32:08,294 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bdc8f011-4a97-4b3e-bfde-be7636efbd44
2026-06-16 21:32:08,302 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e8765a94-4541-40dc-af9f-a5defe3a3a2d
2026-06-16 21:32:08,308 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e8765a94-4541-40dc-af9f-a5defe3a3a2d
2026-06-16 21:32:08,313 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/633fe7f7-fc3d-496d-91b6-97d9179179eb
2026-06-16 21:32:08,319 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-16 21:32:08,319 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bdc8f011-4a97-4b3e-bfde-be7636efbd44
2026-06-16 21:32:08,327 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e8765a94-4541-40dc-af9f-a5defe3a3a2d
2026-06-16 21:32:08,339 - INFO - Verified VN network id 11 for VN bdc8f011-4a97-4b3e-bfde-be7636efbd44
2026-06-16 21:32:08,339 - INFO - Verifications in API Server for VN ctest-vn-92577450 passed
2026-06-16 21:32:08,339 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bdc8f011-4a97-4b3e-bfde-be7636efbd44
2026-06-16 21:32:08,348 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e8765a94-4541-40dc-af9f-a5defe3a3a2d
2026-06-16 21:32:08,354 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e8765a94-4541-40dc-af9f-a5defe3a3a2d
2026-06-16 21:32:08,360 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/633fe7f7-fc3d-496d-91b6-97d9179179eb
2026-06-16 21:32:08,370 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98025354:ctest-vn-92577450', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98025354', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13675444225567050558', 'uuid-lslong': '13825697321011100996'}, 'enable': 'true', 'created': '2026-06-16T21:32:06', 'last-modified': '2026-06-16T21:32:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927011'}
2026-06-16 21:32:08,375 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-16 21:32:08,375 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92577450 passed
2026-06-16 21:32:08,375 - DEBUG - ====Verifying policy data for ctest-vn-92577450 in API_Server ======
2026-06-16 21:32:08,375 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-06-16 21:32:08,381 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ab18d03-1622-41ab-b02f-1fa297dbb326
2026-06-16 21:32:08,390 - DEBUG - Requesting: http://10.0.0.249:8082/project/52b3207a-9a64-4ac7-b562-7140f575bd1c
2026-06-16 21:32:08,466 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bdc8f011-4a97-4b3e-bfde-be7636efbd44
2026-06-16 21:32:08,478 - DEBUG - ==>Verifying data for policy with id: 27a6f481-165c-48ef-bbd4-a2a3e2a244c6, fqn: ['default-domain', 'ctest-TestBasicPolicy-98025354', 'ctest-policy-allow-all-50289197']
2026-06-16 21:32:08,478 - INFO - VN ctest-vn-92577450 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-16 21:32:08,478 - DEBUG - Verifying the vn in opserver
2026-06-16 21:32:08,478 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98025354:ctest-vn-92577450 virtual network link through opserver 10.0.0.249
2026-06-16 21:32:08,478 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-06-16 21:32:08,799 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-06-16 21:32:08,843 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98025354:ctest-vn-92577450', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98025354:ctest-vn-92577450?flat'}
2026-06-16 21:32:08,843 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98025354:ctest-vn-92577450 is found in opserver
2026-06-16 21:32:08,853 - DEBUG - Do not have enough data to verify VN in agent
2026-06-16 21:32:08,858 - DEBUG - VRF ids for VN ctest-vn-92577450: {}
2026-06-16 21:32:08,858 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-06-16 21:32:08,862 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ab18d03-1622-41ab-b02f-1fa297dbb326
2026-06-16 21:32:08,872 - DEBUG - Requesting: http://10.0.0.249:8082/project/52b3207a-9a64-4ac7-b562-7140f575bd1c
2026-06-16 21:32:08,945 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/163c8d76-8afb-4cc0-81f7-a68b83967572
2026-06-16 21:32:08,955 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/163c8d76-8afb-4cc0-81f7-a68b83967572
2026-06-16 21:32:08,965 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/468ed4b5-bf1b-431e-964b-0a9d97d1b5a2
2026-06-16 21:32:08,971 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/468ed4b5-bf1b-431e-964b-0a9d97d1b5a2
2026-06-16 21:32:08,977 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/e2ac9fb1-589e-4e45-a506-ab931fe622b8
2026-06-16 21:32:08,982 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-16 21:32:08,982 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/163c8d76-8afb-4cc0-81f7-a68b83967572
2026-06-16 21:32:08,989 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/468ed4b5-bf1b-431e-964b-0a9d97d1b5a2
2026-06-16 21:32:08,999 - INFO - Verified VN network id 12 for VN 163c8d76-8afb-4cc0-81f7-a68b83967572
2026-06-16 21:32:09,000 - INFO - Verifications in API Server for VN ctest-vn-49203376 passed
2026-06-16 21:32:09,000 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/163c8d76-8afb-4cc0-81f7-a68b83967572
2026-06-16 21:32:09,007 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/468ed4b5-bf1b-431e-964b-0a9d97d1b5a2
2026-06-16 21:32:09,013 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/468ed4b5-bf1b-431e-964b-0a9d97d1b5a2
2026-06-16 21:32:09,019 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/e2ac9fb1-589e-4e45-a506-ab931fe622b8
2026-06-16 21:32:09,028 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98025354:ctest-vn-49203376', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98025354', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1602311107714436288', 'uuid-lslong': '9365137068278576498'}, 'enable': 'true', 'created': '2026-06-16T21:32:06', 'last-modified': '2026-06-16T21:32:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.362169'}
2026-06-16 21:32:09,032 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-16 21:32:09,032 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49203376 passed
2026-06-16 21:32:09,033 - DEBUG - ====Verifying policy data for ctest-vn-49203376 in API_Server ======
2026-06-16 21:32:09,033 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-06-16 21:32:09,040 - DEBUG - Requesting: http://10.0.0.249:8082/domain/5ab18d03-1622-41ab-b02f-1fa297dbb326
2026-06-16 21:32:09,048 - DEBUG - Requesting: http://10.0.0.249:8082/project/52b3207a-9a64-4ac7-b562-7140f575bd1c
2026-06-16 21:32:09,118 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/163c8d76-8afb-4cc0-81f7-a68b83967572
2026-06-16 21:32:09,126 - DEBUG - ==>Verifying data for policy with id: 27a6f481-165c-48ef-bbd4-a2a3e2a244c6, fqn: ['default-domain', 'ctest-TestBasicPolicy-98025354', 'ctest-policy-allow-all-50289197']
2026-06-16 21:32:09,126 - INFO - VN ctest-vn-49203376 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-16 21:32:09,126 - DEBUG - Verifying the vn in opserver
2026-06-16 21:32:09,126 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98025354:ctest-vn-49203376 virtual network link through opserver 10.0.0.249
2026-06-16 21:32:09,126 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-06-16 21:32:09,134 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98025354:ctest-vn-49203376', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98025354:ctest-vn-49203376?flat'}
2026-06-16 21:32:09,134 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98025354:ctest-vn-49203376 is found in opserver
2026-06-16 21:32:09,142 - DEBUG - Do not have enough data to verify VN in agent
2026-06-16 21:32:09,145 - DEBUG - VRF ids for VN ctest-vn-49203376: {}
2026-06-16 21:32:09,198 - DEBUG - Services list from nova: [