2026-02-02 20:47:19,536 - INFO - Domain Default found not creating
2026-02-02 20:47:19,689 - INFO - Project ctest-TestBasicPolicy-34650148 not found, creating it
2026-02-02 20:47:20,116 - INFO - Created Project:ctest-TestBasicPolicy-34650148, ID : 3fd05329-977d-410e-b789-65230eb0e610
2026-02-02 20:47:21,550 - INFO - ================================================================================
2026-02-02 20:47:21,550 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-02 20:47:21,550 - 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-02 20:47:21,807 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2026-02-02 20:47:21,808 - INFO - Initial checks done. Running the testcase now
2026-02-02 20:47:21,808 - INFO -
2026-02-02 20:47:22,364 - DEBUG - Response for create_network : {'network': {'id': 'ff76e1ac-3cc4-49c1-97ea-fafa8e55a312', 'name': 'ctest-vn-83999984', 'tenant_id': '3fd05329977d410eb78965230eb0e610', 'project_id': '3fd05329977d410eb78965230eb0e610', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34650148', 'ctest-vn-83999984'], 'port_security_enabled': True, 'description': ''}}
2026-02-02 20:47:22,535 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf2a0c4b-fc65-452a-b16b-1eddd5c92331', 'name': '', 'tenant_id': '3fd05329977d410eb78965230eb0e610', 'network_id': 'ff76e1ac-3cc4-49c1-97ea-fafa8e55a312', 'ip_version': 4, 'cidr': '219.92.48.128/26', 'allocation_pools': [{'start': '219.92.48.130', 'end': '219.92.48.190'}], 'gateway_ip': '219.92.48.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.92.48.130', 'tags': [], 'project_id': '3fd05329977d410eb78965230eb0e610'}}
2026-02-02 20:47:22,550 - INFO - Created VN ctest-vn-83999984
2026-02-02 20:47:22,602 - DEBUG - VN ctest-vn-83999984 UUID is ff76e1ac-3cc4-49c1-97ea-fafa8e55a312
2026-02-02 20:47:22,919 - DEBUG - Response for create_network : {'network': {'id': '03e10539-0ab0-4d8f-b157-0ca55a1fe555', 'name': 'ctest-vn-52412741', 'tenant_id': '3fd05329977d410eb78965230eb0e610', 'project_id': '3fd05329977d410eb78965230eb0e610', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34650148', 'ctest-vn-52412741'], 'port_security_enabled': True, 'description': ''}}
2026-02-02 20:47:23,158 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa8abaae-21e2-495e-92dc-d7f15ed8d549', 'name': '', 'tenant_id': '3fd05329977d410eb78965230eb0e610', 'network_id': '03e10539-0ab0-4d8f-b157-0ca55a1fe555', 'ip_version': 4, 'cidr': '111.233.216.0/26', 'allocation_pools': [{'start': '111.233.216.2', 'end': '111.233.216.62'}], 'gateway_ip': '111.233.216.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.233.216.2', 'tags': [], 'project_id': '3fd05329977d410eb78965230eb0e610'}}
2026-02-02 20:47:23,177 - INFO - Created VN ctest-vn-52412741
2026-02-02 20:47:23,230 - DEBUG - VN ctest-vn-52412741 UUID is 03e10539-0ab0-4d8f-b157-0ca55a1fe555
2026-02-02 20:47:23,339 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34650148:ctest-vn-83999984, 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-34650148:ctest-vn-52412741, 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-02 20:47:23,626 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff76e1ac-3cc4-49c1-97ea-fafa8e55a312', 'name': 'ctest-vn-83999984', 'tenant_id': '3fd05329977d410eb78965230eb0e610', 'project_id': '3fd05329977d410eb78965230eb0e610', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf2a0c4b-fc65-452a-b16b-1eddd5c92331'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34650148', 'ctest-vn-83999984'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34650148', 'ctest-policy-allow-all-23969578']], 'subnet_ipam': [{'subnet_cidr': '219.92.48.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-02 20:47:23,909 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03e10539-0ab0-4d8f-b157-0ca55a1fe555', 'name': 'ctest-vn-52412741', 'tenant_id': '3fd05329977d410eb78965230eb0e610', 'project_id': '3fd05329977d410eb78965230eb0e610', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa8abaae-21e2-495e-92dc-d7f15ed8d549'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34650148', 'ctest-vn-52412741'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34650148', 'ctest-policy-allow-all-23969578']], 'subnet_ipam': [{'subnet_cidr': '111.233.216.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-02 20:47:24,054 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-02-02 20:47:24,367 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-02-02 20:47:24,396 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a5f59e24-7255-40a2-a2ee-76836a34dba4
2026-02-02 20:47:24,407 - DEBUG - Requesting: http://10.0.0.249:8082/project/3fd05329-977d-410e-b789-65230eb0e610
2026-02-02 20:47:24,481 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ff76e1ac-3cc4-49c1-97ea-fafa8e55a312
2026-02-02 20:47:24,491 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ff76e1ac-3cc4-49c1-97ea-fafa8e55a312
2026-02-02 20:47:24,499 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/57b92a92-3830-4780-bf14-8992893ecbe3
2026-02-02 20:47:24,506 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/57b92a92-3830-4780-bf14-8992893ecbe3
2026-02-02 20:47:24,513 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/1f4c1941-6e96-4195-a060-ed3afc7e8f42
2026-02-02 20:47:24,519 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-02 20:47:24,519 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ff76e1ac-3cc4-49c1-97ea-fafa8e55a312
2026-02-02 20:47:24,527 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/57b92a92-3830-4780-bf14-8992893ecbe3
2026-02-02 20:47:24,539 - INFO - Verified VN network id 12 for VN ff76e1ac-3cc4-49c1-97ea-fafa8e55a312
2026-02-02 20:47:24,539 - INFO - Verifications in API Server for VN ctest-vn-83999984 passed
2026-02-02 20:47:24,539 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ff76e1ac-3cc4-49c1-97ea-fafa8e55a312
2026-02-02 20:47:24,549 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/57b92a92-3830-4780-bf14-8992893ecbe3
2026-02-02 20:47:24,556 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/57b92a92-3830-4780-bf14-8992893ecbe3
2026-02-02 20:47:24,562 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/1f4c1941-6e96-4195-a060-ed3afc7e8f42
2026-02-02 20:47:24,574 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34650148:ctest-vn-83999984', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34650148', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18408148656793602497', 'uuid-lslong': '10946837798314156818'}, 'enable': 'true', 'created': '2026-02-02T20:47:22', 'last-modified': '2026-02-02T20:47:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965022'}
2026-02-02 20:47:24,580 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-02 20:47:24,580 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83999984 passed
2026-02-02 20:47:24,580 - DEBUG - ====Verifying policy data for ctest-vn-83999984 in API_Server ======
2026-02-02 20:47:24,580 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-02-02 20:47:24,585 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a5f59e24-7255-40a2-a2ee-76836a34dba4
2026-02-02 20:47:24,595 - DEBUG - Requesting: http://10.0.0.249:8082/project/3fd05329-977d-410e-b789-65230eb0e610
2026-02-02 20:47:24,663 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ff76e1ac-3cc4-49c1-97ea-fafa8e55a312
2026-02-02 20:47:24,672 - DEBUG - ==>Verifying data for policy with id: 06689ae8-5098-4b89-8fa5-71c52b2a1d2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-34650148', 'ctest-policy-allow-all-23969578']
2026-02-02 20:47:24,672 - INFO - VN ctest-vn-83999984 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-02 20:47:24,673 - DEBUG - Verifying the vn in opserver
2026-02-02 20:47:24,673 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34650148:ctest-vn-83999984 virtual network link through opserver 10.0.0.249
2026-02-02 20:47:24,673 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-02-02 20:47:24,970 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-02-02 20:47:25,039 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34650148:ctest-vn-83999984', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34650148:ctest-vn-83999984?flat'}
2026-02-02 20:47:25,039 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34650148:ctest-vn-83999984 is found in opserver
2026-02-02 20:47:25,048 - DEBUG - Do not have enough data to verify VN in agent
2026-02-02 20:47:25,052 - DEBUG - VRF ids for VN ctest-vn-83999984: {}
2026-02-02 20:47:25,052 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-02-02 20:47:25,058 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a5f59e24-7255-40a2-a2ee-76836a34dba4
2026-02-02 20:47:25,077 - DEBUG - Requesting: http://10.0.0.249:8082/project/3fd05329-977d-410e-b789-65230eb0e610
2026-02-02 20:47:25,154 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/03e10539-0ab0-4d8f-b157-0ca55a1fe555
2026-02-02 20:47:25,164 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/03e10539-0ab0-4d8f-b157-0ca55a1fe555
2026-02-02 20:47:25,172 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/14462025-57d7-43c8-8935-66cae4b06691
2026-02-02 20:47:25,179 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/14462025-57d7-43c8-8935-66cae4b06691
2026-02-02 20:47:25,185 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9968006c-b853-45e5-b3c9-9c4d07e8ba70
2026-02-02 20:47:25,192 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-02 20:47:25,192 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/03e10539-0ab0-4d8f-b157-0ca55a1fe555
2026-02-02 20:47:25,200 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/14462025-57d7-43c8-8935-66cae4b06691
2026-02-02 20:47:25,212 - INFO - Verified VN network id 13 for VN 03e10539-0ab0-4d8f-b157-0ca55a1fe555
2026-02-02 20:47:25,213 - INFO - Verifications in API Server for VN ctest-vn-52412741 passed
2026-02-02 20:47:25,213 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/03e10539-0ab0-4d8f-b157-0ca55a1fe555
2026-02-02 20:47:25,223 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/14462025-57d7-43c8-8935-66cae4b06691
2026-02-02 20:47:25,230 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/14462025-57d7-43c8-8935-66cae4b06691
2026-02-02 20:47:25,237 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9968006c-b853-45e5-b3c9-9c4d07e8ba70
2026-02-02 20:47:25,247 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34650148:ctest-vn-52412741', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34650148', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '279510394424282511', 'uuid-lslong': '12778696372008248661'}, 'enable': 'true', 'created': '2026-02-02T20:47:22', 'last-modified': '2026-02-02T20:47:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.411255'}
2026-02-02 20:47:25,252 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-02 20:47:25,252 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52412741 passed
2026-02-02 20:47:25,252 - DEBUG - ====Verifying policy data for ctest-vn-52412741 in API_Server ======
2026-02-02 20:47:25,252 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-02-02 20:47:25,257 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a5f59e24-7255-40a2-a2ee-76836a34dba4
2026-02-02 20:47:25,269 - DEBUG - Requesting: http://10.0.0.249:8082/project/3fd05329-977d-410e-b789-65230eb0e610
2026-02-02 20:47:25,337 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/03e10539-0ab0-4d8f-b157-0ca55a1fe555
2026-02-02 20:47:25,344 - DEBUG - ==>Verifying data for policy with id: 06689ae8-5098-4b89-8fa5-71c52b2a1d2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-34650148', 'ctest-policy-allow-all-23969578']
2026-02-02 20:47:25,344 - INFO - VN ctest-vn-52412741 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-02 20:47:25,344 - DEBUG - Verifying the vn in opserver
2026-02-02 20:47:25,344 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34650148:ctest-vn-52412741 virtual network link through opserver 10.0.0.249
2026-02-02 20:47:25,344 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-02-02 20:47:25,353 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34650148:ctest-vn-52412741', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34650148:ctest-vn-52412741?flat'}
2026-02-02 20:47:25,353 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34650148:ctest-vn-52412741 is found in opserver
2026-02-02 20:47:25,361 - DEBUG - Do not have enough data to verify VN in agent
2026-02-02 20:47:25,365 - DEBUG - VRF ids for VN ctest-vn-52412741: {}
2026-02-02 20:47:25,414 - DEBUG - Services list from nova: [