2026-05-15 17:18:27,992 - INFO - Domain Default found not creating
2026-05-15 17:18:28,165 - INFO - Project ctest-TestBasicPolicy-90819461 not found, creating it
2026-05-15 17:18:28,625 - INFO - Created Project:ctest-TestBasicPolicy-90819461, ID : 519898f6-2b50-40f7-a152-0a5fd903c80b
2026-05-15 17:18:30,143 - INFO - ================================================================================
2026-05-15 17:18:30,143 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-15 17:18:30,143 - 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-05-15 17:18:30,402 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-05-15 17:18:30,403 - INFO - Initial checks done. Running the testcase now
2026-05-15 17:18:30,403 - INFO -
2026-05-15 17:18:31,014 - DEBUG - Response for create_network : {'network': {'id': 'e01da7e9-e22f-4390-919e-3a379de481c3', 'name': 'ctest-vn-76516090', 'tenant_id': '519898f62b5040f7a1520a5fd903c80b', 'project_id': '519898f62b5040f7a1520a5fd903c80b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90819461', 'ctest-vn-76516090'], 'port_security_enabled': True, 'description': ''}}
2026-05-15 17:18:31,210 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aac429e2-6344-4d9b-80b1-5f1a93f921ee', 'name': '', 'tenant_id': '519898f62b5040f7a1520a5fd903c80b', 'network_id': 'e01da7e9-e22f-4390-919e-3a379de481c3', 'ip_version': 4, 'cidr': '156.82.68.0/26', 'allocation_pools': [{'start': '156.82.68.2', 'end': '156.82.68.62'}], 'gateway_ip': '156.82.68.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.82.68.2', 'tags': [], 'project_id': '519898f62b5040f7a1520a5fd903c80b'}}
2026-05-15 17:18:31,231 - INFO - Created VN ctest-vn-76516090
2026-05-15 17:18:31,284 - DEBUG - VN ctest-vn-76516090 UUID is e01da7e9-e22f-4390-919e-3a379de481c3
2026-05-15 17:18:31,610 - DEBUG - Response for create_network : {'network': {'id': 'fc234920-fc88-40c7-96ea-5b65699dc52e', 'name': 'ctest-vn-64218563', 'tenant_id': '519898f62b5040f7a1520a5fd903c80b', 'project_id': '519898f62b5040f7a1520a5fd903c80b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90819461', 'ctest-vn-64218563'], 'port_security_enabled': True, 'description': ''}}
2026-05-15 17:18:31,832 - DEBUG - Response for create_subnet : {'subnet': {'id': '8bf835e0-42b2-4ed2-92b6-91151bc7b1e1', 'name': '', 'tenant_id': '519898f62b5040f7a1520a5fd903c80b', 'network_id': 'fc234920-fc88-40c7-96ea-5b65699dc52e', 'ip_version': 4, 'cidr': '15.232.103.64/26', 'allocation_pools': [{'start': '15.232.103.66', 'end': '15.232.103.126'}], 'gateway_ip': '15.232.103.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.232.103.66', 'tags': [], 'project_id': '519898f62b5040f7a1520a5fd903c80b'}}
2026-05-15 17:18:31,856 - INFO - Created VN ctest-vn-64218563
2026-05-15 17:18:31,912 - DEBUG - VN ctest-vn-64218563 UUID is fc234920-fc88-40c7-96ea-5b65699dc52e
2026-05-15 17:18:32,028 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90819461:ctest-vn-76516090, 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-90819461:ctest-vn-64218563, 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-05-15 17:18:32,332 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e01da7e9-e22f-4390-919e-3a379de481c3', 'name': 'ctest-vn-76516090', 'tenant_id': '519898f62b5040f7a1520a5fd903c80b', 'project_id': '519898f62b5040f7a1520a5fd903c80b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aac429e2-6344-4d9b-80b1-5f1a93f921ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90819461', 'ctest-vn-76516090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90819461', 'ctest-policy-allow-all-75748054']], 'subnet_ipam': [{'subnet_cidr': '156.82.68.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-15 17:18:32,583 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc234920-fc88-40c7-96ea-5b65699dc52e', 'name': 'ctest-vn-64218563', 'tenant_id': '519898f62b5040f7a1520a5fd903c80b', 'project_id': '519898f62b5040f7a1520a5fd903c80b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8bf835e0-42b2-4ed2-92b6-91151bc7b1e1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90819461', 'ctest-vn-64218563'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90819461', 'ctest-policy-allow-all-75748054']], 'subnet_ipam': [{'subnet_cidr': '15.232.103.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-15 17:18:32,752 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-15 17:18:33,049 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-15 17:18:33,080 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d588f08d-cdb0-40d7-b549-a238c31426c0
2026-05-15 17:18:33,095 - DEBUG - Requesting: http://10.0.0.22:8082/project/519898f6-2b50-40f7-a152-0a5fd903c80b
2026-05-15 17:18:33,172 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e01da7e9-e22f-4390-919e-3a379de481c3
2026-05-15 17:18:33,186 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e01da7e9-e22f-4390-919e-3a379de481c3
2026-05-15 17:18:33,198 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/188f8eb9-d521-4c65-8380-45c47f7b7797
2026-05-15 17:18:33,206 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/188f8eb9-d521-4c65-8380-45c47f7b7797
2026-05-15 17:18:33,213 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/849af748-e24f-4a88-b5dc-4ff3c23e37c6
2026-05-15 17:18:33,220 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-15 17:18:33,220 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e01da7e9-e22f-4390-919e-3a379de481c3
2026-05-15 17:18:33,229 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/188f8eb9-d521-4c65-8380-45c47f7b7797
2026-05-15 17:18:33,244 - INFO - Verified VN network id 11 for VN e01da7e9-e22f-4390-919e-3a379de481c3
2026-05-15 17:18:33,245 - INFO - Verifications in API Server for VN ctest-vn-76516090 passed
2026-05-15 17:18:33,245 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e01da7e9-e22f-4390-919e-3a379de481c3
2026-05-15 17:18:33,256 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/188f8eb9-d521-4c65-8380-45c47f7b7797
2026-05-15 17:18:33,262 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/188f8eb9-d521-4c65-8380-45c47f7b7797
2026-05-15 17:18:33,270 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/849af748-e24f-4a88-b5dc-4ff3c23e37c6
2026-05-15 17:18:33,282 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90819461:ctest-vn-76516090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90819461', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16149248461784433552', 'uuid-lslong': '10492888192366444995'}, 'enable': 'true', 'created': '2026-05-15T17:18:30', 'last-modified': '2026-05-15T17:18:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974170'}
2026-05-15 17:18:33,289 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-15 17:18:33,289 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76516090 passed
2026-05-15 17:18:33,290 - DEBUG - ====Verifying policy data for ctest-vn-76516090 in API_Server ======
2026-05-15 17:18:33,290 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-15 17:18:33,296 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d588f08d-cdb0-40d7-b549-a238c31426c0
2026-05-15 17:18:33,307 - DEBUG - Requesting: http://10.0.0.22:8082/project/519898f6-2b50-40f7-a152-0a5fd903c80b
2026-05-15 17:18:33,378 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e01da7e9-e22f-4390-919e-3a379de481c3
2026-05-15 17:18:33,388 - DEBUG - ==>Verifying data for policy with id: bec05702-ed70-4546-ba0e-4f7a65fb58af, fqn: ['default-domain', 'ctest-TestBasicPolicy-90819461', 'ctest-policy-allow-all-75748054']
2026-05-15 17:18:33,388 - INFO - VN ctest-vn-76516090 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-15 17:18:33,388 - DEBUG - Verifying the vn in opserver
2026-05-15 17:18:33,388 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90819461:ctest-vn-76516090 virtual network link through opserver 10.0.0.22
2026-05-15 17:18:33,388 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-15 17:18:33,686 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-15 17:18:33,750 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90819461:ctest-vn-76516090', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90819461:ctest-vn-76516090?flat'}
2026-05-15 17:18:33,751 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90819461:ctest-vn-76516090 is found in opserver
2026-05-15 17:18:33,760 - DEBUG - Do not have enough data to verify VN in agent
2026-05-15 17:18:33,765 - DEBUG - VRF ids for VN ctest-vn-76516090: {}
2026-05-15 17:18:33,765 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-15 17:18:33,770 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d588f08d-cdb0-40d7-b549-a238c31426c0
2026-05-15 17:18:33,780 - DEBUG - Requesting: http://10.0.0.22:8082/project/519898f6-2b50-40f7-a152-0a5fd903c80b
2026-05-15 17:18:33,866 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc234920-fc88-40c7-96ea-5b65699dc52e
2026-05-15 17:18:33,878 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc234920-fc88-40c7-96ea-5b65699dc52e
2026-05-15 17:18:33,887 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/781b8fca-0b64-4a44-8e88-cb34525039b3
2026-05-15 17:18:33,894 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/781b8fca-0b64-4a44-8e88-cb34525039b3
2026-05-15 17:18:33,900 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e8fc477e-b462-47fc-997d-14596d200a7f
2026-05-15 17:18:33,908 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-15 17:18:33,908 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc234920-fc88-40c7-96ea-5b65699dc52e
2026-05-15 17:18:33,916 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/781b8fca-0b64-4a44-8e88-cb34525039b3
2026-05-15 17:18:33,931 - INFO - Verified VN network id 12 for VN fc234920-fc88-40c7-96ea-5b65699dc52e
2026-05-15 17:18:33,932 - INFO - Verifications in API Server for VN ctest-vn-64218563 passed
2026-05-15 17:18:33,932 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc234920-fc88-40c7-96ea-5b65699dc52e
2026-05-15 17:18:33,942 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/781b8fca-0b64-4a44-8e88-cb34525039b3
2026-05-15 17:18:33,950 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/781b8fca-0b64-4a44-8e88-cb34525039b3
2026-05-15 17:18:33,957 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e8fc477e-b462-47fc-997d-14596d200a7f
2026-05-15 17:18:33,968 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90819461:ctest-vn-64218563', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90819461', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18168445727767281863', 'uuid-lslong': '10874604741361255726'}, 'enable': 'true', 'created': '2026-05-15T17:18:31', 'last-modified': '2026-05-15T17:18:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.414147'}
2026-05-15 17:18:33,977 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-15 17:18:33,977 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64218563 passed
2026-05-15 17:18:33,977 - DEBUG - ====Verifying policy data for ctest-vn-64218563 in API_Server ======
2026-05-15 17:18:33,977 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-05-15 17:18:33,983 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d588f08d-cdb0-40d7-b549-a238c31426c0
2026-05-15 17:18:33,993 - DEBUG - Requesting: http://10.0.0.22:8082/project/519898f6-2b50-40f7-a152-0a5fd903c80b
2026-05-15 17:18:34,066 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/fc234920-fc88-40c7-96ea-5b65699dc52e
2026-05-15 17:18:34,075 - DEBUG - ==>Verifying data for policy with id: bec05702-ed70-4546-ba0e-4f7a65fb58af, fqn: ['default-domain', 'ctest-TestBasicPolicy-90819461', 'ctest-policy-allow-all-75748054']
2026-05-15 17:18:34,075 - INFO - VN ctest-vn-64218563 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-15 17:18:34,075 - DEBUG - Verifying the vn in opserver
2026-05-15 17:18:34,075 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90819461:ctest-vn-64218563 virtual network link through opserver 10.0.0.22
2026-05-15 17:18:34,075 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-05-15 17:18:34,084 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90819461:ctest-vn-64218563', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90819461:ctest-vn-64218563?flat'}
2026-05-15 17:18:34,085 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90819461:ctest-vn-64218563 is found in opserver
2026-05-15 17:18:34,094 - DEBUG - Do not have enough data to verify VN in agent
2026-05-15 17:18:34,099 - DEBUG - VRF ids for VN ctest-vn-64218563: {}
2026-05-15 17:18:34,173 - DEBUG - Services list from nova: [