2026-06-11 21:13:22,076 - INFO - Domain Default found not creating
2026-06-11 21:13:22,223 - INFO - Project ctest-TestBasicPolicy-14548452 not found, creating it
2026-06-11 21:13:22,667 - INFO - Created Project:ctest-TestBasicPolicy-14548452, ID : f1231329-237d-4ef5-ac7f-93ba705331ca
2026-06-11 21:13:24,138 - INFO - ================================================================================
2026-06-11 21:13:24,138 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-11 21:13:24,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-06-11 21:13:24,392 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2026-06-11 21:13:24,392 - INFO - Initial checks done. Running the testcase now
2026-06-11 21:13:24,392 - INFO -
2026-06-11 21:13:24,942 - DEBUG - Response for create_network : {'network': {'id': '22628885-b12f-4eb3-b132-3da7c4b4ad29', 'name': 'ctest-vn-70109668', 'tenant_id': 'f1231329237d4ef5ac7f93ba705331ca', 'project_id': 'f1231329237d4ef5ac7f93ba705331ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14548452', 'ctest-vn-70109668'], 'port_security_enabled': True, 'description': ''}}
2026-06-11 21:13:25,116 - DEBUG - Response for create_subnet : {'subnet': {'id': '4cf4967b-7a34-45dc-bb22-2ad38c07d974', 'name': '', 'tenant_id': 'f1231329237d4ef5ac7f93ba705331ca', 'network_id': '22628885-b12f-4eb3-b132-3da7c4b4ad29', 'ip_version': 4, 'cidr': '25.75.181.128/26', 'allocation_pools': [{'start': '25.75.181.130', 'end': '25.75.181.190'}], 'gateway_ip': '25.75.181.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.75.181.130', 'tags': [], 'project_id': 'f1231329237d4ef5ac7f93ba705331ca'}}
2026-06-11 21:13:25,132 - INFO - Created VN ctest-vn-70109668
2026-06-11 21:13:25,181 - DEBUG - VN ctest-vn-70109668 UUID is 22628885-b12f-4eb3-b132-3da7c4b4ad29
2026-06-11 21:13:25,485 - DEBUG - Response for create_network : {'network': {'id': '896acf86-7a2f-40ac-8ba5-b3fd424b8231', 'name': 'ctest-vn-55881114', 'tenant_id': 'f1231329237d4ef5ac7f93ba705331ca', 'project_id': 'f1231329237d4ef5ac7f93ba705331ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14548452', 'ctest-vn-55881114'], 'port_security_enabled': True, 'description': ''}}
2026-06-11 21:13:25,653 - DEBUG - Response for create_subnet : {'subnet': {'id': '3612fb55-c67d-4691-87bc-8ef001e33377', 'name': '', 'tenant_id': 'f1231329237d4ef5ac7f93ba705331ca', 'network_id': '896acf86-7a2f-40ac-8ba5-b3fd424b8231', 'ip_version': 4, 'cidr': '206.250.176.192/26', 'allocation_pools': [{'start': '206.250.176.194', 'end': '206.250.176.254'}], 'gateway_ip': '206.250.176.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.250.176.194', 'tags': [], 'project_id': 'f1231329237d4ef5ac7f93ba705331ca'}}
2026-06-11 21:13:25,667 - INFO - Created VN ctest-vn-55881114
2026-06-11 21:13:25,717 - DEBUG - VN ctest-vn-55881114 UUID is 896acf86-7a2f-40ac-8ba5-b3fd424b8231
2026-06-11 21:13:25,857 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14548452:ctest-vn-70109668, 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-14548452:ctest-vn-55881114, 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-11 21:13:26,156 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '22628885-b12f-4eb3-b132-3da7c4b4ad29', 'name': 'ctest-vn-70109668', 'tenant_id': 'f1231329237d4ef5ac7f93ba705331ca', 'project_id': 'f1231329237d4ef5ac7f93ba705331ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4cf4967b-7a34-45dc-bb22-2ad38c07d974'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14548452', 'ctest-vn-70109668'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14548452', 'ctest-policy-allow-all-17665500']], 'subnet_ipam': [{'subnet_cidr': '25.75.181.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-11 21:13:26,384 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '896acf86-7a2f-40ac-8ba5-b3fd424b8231', 'name': 'ctest-vn-55881114', 'tenant_id': 'f1231329237d4ef5ac7f93ba705331ca', 'project_id': 'f1231329237d4ef5ac7f93ba705331ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3612fb55-c67d-4691-87bc-8ef001e33377'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14548452', 'ctest-vn-55881114'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14548452', 'ctest-policy-allow-all-17665500']], 'subnet_ipam': [{'subnet_cidr': '206.250.176.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-11 21:13:26,545 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-11 21:13:26,879 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-11 21:13:26,903 - DEBUG - Requesting: http://10.0.0.33:8082/domain/362ff1bb-7609-4f69-9818-847ce94f1b7c
2026-06-11 21:13:26,917 - DEBUG - Requesting: http://10.0.0.33:8082/project/f1231329-237d-4ef5-ac7f-93ba705331ca
2026-06-11 21:13:26,992 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/22628885-b12f-4eb3-b132-3da7c4b4ad29
2026-06-11 21:13:27,004 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/22628885-b12f-4eb3-b132-3da7c4b4ad29
2026-06-11 21:13:27,013 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b043be03-cad2-4465-92c4-eb4f6b40fcd7
2026-06-11 21:13:27,019 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b043be03-cad2-4465-92c4-eb4f6b40fcd7
2026-06-11 21:13:27,025 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0b6cd942-9b77-4d66-9252-242429f95555
2026-06-11 21:13:27,031 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-11 21:13:27,031 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/22628885-b12f-4eb3-b132-3da7c4b4ad29
2026-06-11 21:13:27,038 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b043be03-cad2-4465-92c4-eb4f6b40fcd7
2026-06-11 21:13:27,051 - INFO - Verified VN network id 11 for VN 22628885-b12f-4eb3-b132-3da7c4b4ad29
2026-06-11 21:13:27,051 - INFO - Verifications in API Server for VN ctest-vn-70109668 passed
2026-06-11 21:13:27,051 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/22628885-b12f-4eb3-b132-3da7c4b4ad29
2026-06-11 21:13:27,058 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b043be03-cad2-4465-92c4-eb4f6b40fcd7
2026-06-11 21:13:27,064 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b043be03-cad2-4465-92c4-eb4f6b40fcd7
2026-06-11 21:13:27,070 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0b6cd942-9b77-4d66-9252-242429f95555
2026-06-11 21:13:27,080 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14548452:ctest-vn-70109668', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14548452', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2477692852791889587', 'uuid-lslong': '12768335684317785385'}, 'enable': 'true', 'created': '2026-06-11T21:13:24', 'last-modified': '2026-06-11T21:13:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.941704'}
2026-06-11 21:13:27,085 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-11 21:13:27,085 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70109668 passed
2026-06-11 21:13:27,085 - DEBUG - ====Verifying policy data for ctest-vn-70109668 in API_Server ======
2026-06-11 21:13:27,086 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-11 21:13:27,090 - DEBUG - Requesting: http://10.0.0.33:8082/domain/362ff1bb-7609-4f69-9818-847ce94f1b7c
2026-06-11 21:13:27,100 - DEBUG - Requesting: http://10.0.0.33:8082/project/f1231329-237d-4ef5-ac7f-93ba705331ca
2026-06-11 21:13:27,171 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/22628885-b12f-4eb3-b132-3da7c4b4ad29
2026-06-11 21:13:27,180 - DEBUG - ==>Verifying data for policy with id: cd355a76-1d0e-4c8d-8a9e-69829314fbf3, fqn: ['default-domain', 'ctest-TestBasicPolicy-14548452', 'ctest-policy-allow-all-17665500']
2026-06-11 21:13:27,180 - INFO - VN ctest-vn-70109668 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-11 21:13:27,180 - DEBUG - Verifying the vn in opserver
2026-06-11 21:13:27,180 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14548452:ctest-vn-70109668 virtual network link through opserver 10.0.0.33
2026-06-11 21:13:27,180 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-11 21:13:27,503 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-11 21:13:27,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14548452:ctest-vn-70109668', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14548452:ctest-vn-70109668?flat'}
2026-06-11 21:13:27,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14548452:ctest-vn-70109668 is found in opserver
2026-06-11 21:13:27,562 - DEBUG - Do not have enough data to verify VN in agent
2026-06-11 21:13:27,566 - DEBUG - VRF ids for VN ctest-vn-70109668: {}
2026-06-11 21:13:27,566 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-11 21:13:27,571 - DEBUG - Requesting: http://10.0.0.33:8082/domain/362ff1bb-7609-4f69-9818-847ce94f1b7c
2026-06-11 21:13:27,583 - DEBUG - Requesting: http://10.0.0.33:8082/project/f1231329-237d-4ef5-ac7f-93ba705331ca
2026-06-11 21:13:27,650 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/896acf86-7a2f-40ac-8ba5-b3fd424b8231
2026-06-11 21:13:27,661 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/896acf86-7a2f-40ac-8ba5-b3fd424b8231
2026-06-11 21:13:27,670 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/281cc91c-c31b-4895-bfb8-a7c0aed15ae4
2026-06-11 21:13:27,676 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/281cc91c-c31b-4895-bfb8-a7c0aed15ae4
2026-06-11 21:13:27,682 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/df9a3dd0-7bcf-4962-b3d6-4aaea97bf5b8
2026-06-11 21:13:27,688 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-11 21:13:27,688 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/896acf86-7a2f-40ac-8ba5-b3fd424b8231
2026-06-11 21:13:27,697 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/281cc91c-c31b-4895-bfb8-a7c0aed15ae4
2026-06-11 21:13:27,711 - INFO - Verified VN network id 12 for VN 896acf86-7a2f-40ac-8ba5-b3fd424b8231
2026-06-11 21:13:27,712 - INFO - Verifications in API Server for VN ctest-vn-55881114 passed
2026-06-11 21:13:27,712 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/896acf86-7a2f-40ac-8ba5-b3fd424b8231
2026-06-11 21:13:27,720 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/281cc91c-c31b-4895-bfb8-a7c0aed15ae4
2026-06-11 21:13:27,726 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/281cc91c-c31b-4895-bfb8-a7c0aed15ae4
2026-06-11 21:13:27,732 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/df9a3dd0-7bcf-4962-b3d6-4aaea97bf5b8
2026-06-11 21:13:27,743 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14548452:ctest-vn-55881114', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14548452', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9901954907209941164', 'uuid-lslong': '10062646842749583921'}, 'enable': 'true', 'created': '2026-06-11T21:13:25', 'last-modified': '2026-06-11T21:13:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.382784'}
2026-06-11 21:13:27,750 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-11 21:13:27,750 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55881114 passed
2026-06-11 21:13:27,750 - DEBUG - ====Verifying policy data for ctest-vn-55881114 in API_Server ======
2026-06-11 21:13:27,750 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-06-11 21:13:27,755 - DEBUG - Requesting: http://10.0.0.33:8082/domain/362ff1bb-7609-4f69-9818-847ce94f1b7c
2026-06-11 21:13:27,765 - DEBUG - Requesting: http://10.0.0.33:8082/project/f1231329-237d-4ef5-ac7f-93ba705331ca
2026-06-11 21:13:27,834 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/896acf86-7a2f-40ac-8ba5-b3fd424b8231
2026-06-11 21:13:27,843 - DEBUG - ==>Verifying data for policy with id: cd355a76-1d0e-4c8d-8a9e-69829314fbf3, fqn: ['default-domain', 'ctest-TestBasicPolicy-14548452', 'ctest-policy-allow-all-17665500']
2026-06-11 21:13:27,843 - INFO - VN ctest-vn-55881114 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-11 21:13:27,843 - DEBUG - Verifying the vn in opserver
2026-06-11 21:13:27,843 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14548452:ctest-vn-55881114 virtual network link through opserver 10.0.0.33
2026-06-11 21:13:27,843 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-06-11 21:13:27,851 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14548452:ctest-vn-55881114', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14548452:ctest-vn-55881114?flat'}
2026-06-11 21:13:27,851 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14548452:ctest-vn-55881114 is found in opserver
2026-06-11 21:13:27,860 - DEBUG - Do not have enough data to verify VN in agent
2026-06-11 21:13:27,865 - DEBUG - VRF ids for VN ctest-vn-55881114: {}
2026-06-11 21:13:27,916 - DEBUG - Services list from nova: [