2026-11-07 07:58:16,038 - INFO - Domain Default found not creating
2026-11-07 07:58:16,210 - INFO - Project ctest-TestBasicPolicy-68039023 not found, creating it
2026-11-07 07:58:16,668 - INFO - Created Project:ctest-TestBasicPolicy-68039023, ID : 58b906e1-8b4e-4205-90fd-cb9c48c3d96d
2026-11-07 07:58:18,228 - INFO - ================================================================================
2026-11-07 07:58:18,228 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-07 07:58:18,228 - 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-07 07:58:18,484 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with
2026-11-07 07:58:18,484 - INFO - Initial checks done. Running the testcase now
2026-11-07 07:58:18,484 - INFO -
2026-11-07 07:58:19,065 - DEBUG - Response for create_network : {'network': {'id': 'd66ba127-7d53-4805-92eb-f0f8ed154333', 'name': 'ctest-vn-29197534', 'tenant_id': '58b906e18b4e420590fdcb9c48c3d96d', 'project_id': '58b906e18b4e420590fdcb9c48c3d96d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68039023', 'ctest-vn-29197534'], 'port_security_enabled': True, 'description': ''}}
2026-11-07 07:58:19,295 - DEBUG - Response for create_subnet : {'subnet': {'id': '71c28f63-0ec4-4e6c-a854-66ab04a13830', 'name': '', 'tenant_id': '58b906e18b4e420590fdcb9c48c3d96d', 'network_id': 'd66ba127-7d53-4805-92eb-f0f8ed154333', 'ip_version': 4, 'cidr': '81.5.42.64/26', 'allocation_pools': [{'start': '81.5.42.66', 'end': '81.5.42.126'}], 'gateway_ip': '81.5.42.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.5.42.66', 'tags': [], 'project_id': '58b906e18b4e420590fdcb9c48c3d96d'}}
2026-11-07 07:58:19,311 - INFO - Created VN ctest-vn-29197534
2026-11-07 07:58:19,365 - DEBUG - VN ctest-vn-29197534 UUID is d66ba127-7d53-4805-92eb-f0f8ed154333
2026-11-07 07:58:19,687 - DEBUG - Response for create_network : {'network': {'id': 'af666788-a9ee-4aa6-a7eb-3548592b12a5', 'name': 'ctest-vn-29303926', 'tenant_id': '58b906e18b4e420590fdcb9c48c3d96d', 'project_id': '58b906e18b4e420590fdcb9c48c3d96d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68039023', 'ctest-vn-29303926'], 'port_security_enabled': True, 'description': ''}}
2026-11-07 07:58:19,838 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc2d539e-3add-4630-8ce9-75e1fe6e4ea6', 'name': '', 'tenant_id': '58b906e18b4e420590fdcb9c48c3d96d', 'network_id': 'af666788-a9ee-4aa6-a7eb-3548592b12a5', 'ip_version': 4, 'cidr': '168.78.3.0/26', 'allocation_pools': [{'start': '168.78.3.2', 'end': '168.78.3.62'}], 'gateway_ip': '168.78.3.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.78.3.2', 'tags': [], 'project_id': '58b906e18b4e420590fdcb9c48c3d96d'}}
2026-11-07 07:58:19,857 - INFO - Created VN ctest-vn-29303926
2026-11-07 07:58:19,909 - DEBUG - VN ctest-vn-29303926 UUID is af666788-a9ee-4aa6-a7eb-3548592b12a5
2026-11-07 07:58:20,022 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68039023:ctest-vn-29197534, 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-68039023:ctest-vn-29303926, 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-07 07:58:20,319 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd66ba127-7d53-4805-92eb-f0f8ed154333', 'name': 'ctest-vn-29197534', 'tenant_id': '58b906e18b4e420590fdcb9c48c3d96d', 'project_id': '58b906e18b4e420590fdcb9c48c3d96d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['71c28f63-0ec4-4e6c-a854-66ab04a13830'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68039023', 'ctest-vn-29197534'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68039023', 'ctest-policy-allow-all-12364402']], 'subnet_ipam': [{'subnet_cidr': '81.5.42.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-07 07:58:20,541 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af666788-a9ee-4aa6-a7eb-3548592b12a5', 'name': 'ctest-vn-29303926', 'tenant_id': '58b906e18b4e420590fdcb9c48c3d96d', 'project_id': '58b906e18b4e420590fdcb9c48c3d96d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['cc2d539e-3add-4630-8ce9-75e1fe6e4ea6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68039023', 'ctest-vn-29303926'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68039023', 'ctest-policy-allow-all-12364402']], 'subnet_ipam': [{'subnet_cidr': '168.78.3.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-07 07:58:20,705 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-07 07:58:21,075 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-07 07:58:21,104 - DEBUG - Requesting: http://10.0.0.177:8082/domain/a4d11c16-de49-4410-9823-ffdd8e9512cd
2026-11-07 07:58:21,119 - DEBUG - Requesting: http://10.0.0.177:8082/project/58b906e1-8b4e-4205-90fd-cb9c48c3d96d
2026-11-07 07:58:21,196 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d66ba127-7d53-4805-92eb-f0f8ed154333
2026-11-07 07:58:21,207 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d66ba127-7d53-4805-92eb-f0f8ed154333
2026-11-07 07:58:21,215 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/2609de9a-4a97-4d4d-9ede-371c27399ae1
2026-11-07 07:58:21,224 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/2609de9a-4a97-4d4d-9ede-371c27399ae1
2026-11-07 07:58:21,230 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/c7846628-e58b-499e-8cc6-34f3e8ecfafb
2026-11-07 07:58:21,237 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-07 07:58:21,237 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d66ba127-7d53-4805-92eb-f0f8ed154333
2026-11-07 07:58:21,246 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/2609de9a-4a97-4d4d-9ede-371c27399ae1
2026-11-07 07:58:21,260 - INFO - Verified VN network id 12 for VN d66ba127-7d53-4805-92eb-f0f8ed154333
2026-11-07 07:58:21,260 - INFO - Verifications in API Server for VN ctest-vn-29197534 passed
2026-11-07 07:58:21,260 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d66ba127-7d53-4805-92eb-f0f8ed154333
2026-11-07 07:58:21,269 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/2609de9a-4a97-4d4d-9ede-371c27399ae1
2026-11-07 07:58:21,275 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/2609de9a-4a97-4d4d-9ede-371c27399ae1
2026-11-07 07:58:21,283 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/c7846628-e58b-499e-8cc6-34f3e8ecfafb
2026-11-07 07:58:21,294 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68039023:ctest-vn-29197534', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68039023', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15450620137603024901', 'uuid-lslong': '10586820300984632115'}, 'enable': 'true', 'created': '2026-11-07T07:58:19', 'last-modified': '2026-11-07T07:58:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000669'}
2026-11-07 07:58:21,302 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-07 07:58:21,302 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29197534 passed
2026-11-07 07:58:21,302 - DEBUG - ====Verifying policy data for ctest-vn-29197534 in API_Server ======
2026-11-07 07:58:21,302 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-07 07:58:21,307 - DEBUG - Requesting: http://10.0.0.177:8082/domain/a4d11c16-de49-4410-9823-ffdd8e9512cd
2026-11-07 07:58:21,318 - DEBUG - Requesting: http://10.0.0.177:8082/project/58b906e1-8b4e-4205-90fd-cb9c48c3d96d
2026-11-07 07:58:21,390 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d66ba127-7d53-4805-92eb-f0f8ed154333
2026-11-07 07:58:21,399 - DEBUG - ==>Verifying data for policy with id: 54462898-7959-4dae-921e-64e0535c3874, fqn: ['default-domain', 'ctest-TestBasicPolicy-68039023', 'ctest-policy-allow-all-12364402']
2026-11-07 07:58:21,399 - INFO - VN ctest-vn-29197534 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-07 07:58:21,399 - DEBUG - Verifying the vn in opserver
2026-11-07 07:58:21,399 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68039023:ctest-vn-29197534 virtual network link through opserver 10.0.0.177
2026-11-07 07:58:21,400 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-11-07 07:58:21,718 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-11-07 07:58:21,771 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68039023:ctest-vn-29197534', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68039023:ctest-vn-29197534?flat'}
2026-11-07 07:58:21,771 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68039023:ctest-vn-29197534 is found in opserver
2026-11-07 07:58:21,781 - DEBUG - Do not have enough data to verify VN in agent
2026-11-07 07:58:21,786 - DEBUG - VRF ids for VN ctest-vn-29197534: {}
2026-11-07 07:58:21,786 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-07 07:58:21,792 - DEBUG - Requesting: http://10.0.0.177:8082/domain/a4d11c16-de49-4410-9823-ffdd8e9512cd
2026-11-07 07:58:21,804 - DEBUG - Requesting: http://10.0.0.177:8082/project/58b906e1-8b4e-4205-90fd-cb9c48c3d96d
2026-11-07 07:58:21,876 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/af666788-a9ee-4aa6-a7eb-3548592b12a5
2026-11-07 07:58:21,887 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/af666788-a9ee-4aa6-a7eb-3548592b12a5
2026-11-07 07:58:21,896 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7f15f909-8b18-443c-bdff-3c82b244b173
2026-11-07 07:58:21,903 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7f15f909-8b18-443c-bdff-3c82b244b173
2026-11-07 07:58:21,910 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/87f921c6-a282-4198-b267-257fef8126e8
2026-11-07 07:58:21,916 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-07 07:58:21,916 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/af666788-a9ee-4aa6-a7eb-3548592b12a5
2026-11-07 07:58:21,924 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7f15f909-8b18-443c-bdff-3c82b244b173
2026-11-07 07:58:21,947 - INFO - Verified VN network id 13 for VN af666788-a9ee-4aa6-a7eb-3548592b12a5
2026-11-07 07:58:21,947 - INFO - Verifications in API Server for VN ctest-vn-29303926 passed
2026-11-07 07:58:21,947 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/af666788-a9ee-4aa6-a7eb-3548592b12a5
2026-11-07 07:58:21,957 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7f15f909-8b18-443c-bdff-3c82b244b173
2026-11-07 07:58:21,964 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/7f15f909-8b18-443c-bdff-3c82b244b173
2026-11-07 07:58:21,971 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/87f921c6-a282-4198-b267-257fef8126e8
2026-11-07 07:58:21,983 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68039023:ctest-vn-29303926', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68039023', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12638903240926055078', 'uuid-lslong': '12099823408710881957'}, 'enable': 'true', 'created': '2026-11-07T07:58:19', 'last-modified': '2026-11-07T07:58:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.460639'}
2026-11-07 07:58:21,989 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-07 07:58:21,989 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29303926 passed
2026-11-07 07:58:21,989 - DEBUG - ====Verifying policy data for ctest-vn-29303926 in API_Server ======
2026-11-07 07:58:21,989 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-11-07 07:58:21,995 - DEBUG - Requesting: http://10.0.0.177:8082/domain/a4d11c16-de49-4410-9823-ffdd8e9512cd
2026-11-07 07:58:22,005 - DEBUG - Requesting: http://10.0.0.177:8082/project/58b906e1-8b4e-4205-90fd-cb9c48c3d96d
2026-11-07 07:58:22,075 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/af666788-a9ee-4aa6-a7eb-3548592b12a5
2026-11-07 07:58:22,086 - DEBUG - ==>Verifying data for policy with id: 54462898-7959-4dae-921e-64e0535c3874, fqn: ['default-domain', 'ctest-TestBasicPolicy-68039023', 'ctest-policy-allow-all-12364402']
2026-11-07 07:58:22,086 - INFO - VN ctest-vn-29303926 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-07 07:58:22,086 - DEBUG - Verifying the vn in opserver
2026-11-07 07:58:22,086 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68039023:ctest-vn-29303926 virtual network link through opserver 10.0.0.177
2026-11-07 07:58:22,086 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-11-07 07:58:22,095 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68039023:ctest-vn-29303926', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68039023:ctest-vn-29303926?flat'}
2026-11-07 07:58:22,095 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68039023:ctest-vn-29303926 is found in opserver
2026-11-07 07:58:22,106 - DEBUG - Do not have enough data to verify VN in agent
2026-11-07 07:58:22,111 - DEBUG - VRF ids for VN ctest-vn-29303926: {}
2026-11-07 07:58:22,170 - DEBUG - Services list from nova: [