2026-02-16 18:05:53,670 - INFO - Domain Default found not creating
2026-02-16 18:05:53,823 - INFO - Project ctest-TestBasicPolicy-67050979 not found, creating it
2026-02-16 18:05:54,302 - INFO - Created Project:ctest-TestBasicPolicy-67050979, ID : 5b8859f2-ff5e-4bd2-a427-6704d87afd5a
2026-02-16 18:05:55,826 - INFO - ================================================================================
2026-02-16 18:05:55,826 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-16 18:05:55,826 - 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-16 18:05:56,083 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-02-16 18:05:56,083 - INFO - Initial checks done. Running the testcase now
2026-02-16 18:05:56,084 - INFO -
2026-02-16 18:05:56,608 - DEBUG - Response for create_network : {'network': {'id': '75cf3e1a-8fba-420e-a2c0-3d0aa533e3e8', 'name': 'ctest-vn-81368306', 'tenant_id': '5b8859f2ff5e4bd2a4276704d87afd5a', 'project_id': '5b8859f2ff5e4bd2a4276704d87afd5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67050979', 'ctest-vn-81368306'], 'port_security_enabled': True, 'description': ''}}
2026-02-16 18:05:56,800 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8eeef6e-0d10-42c2-89ce-c3a20eba35d5', 'name': '', 'tenant_id': '5b8859f2ff5e4bd2a4276704d87afd5a', 'network_id': '75cf3e1a-8fba-420e-a2c0-3d0aa533e3e8', 'ip_version': 4, 'cidr': '192.36.178.128/26', 'allocation_pools': [{'start': '192.36.178.130', 'end': '192.36.178.190'}], 'gateway_ip': '192.36.178.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.36.178.130', 'tags': [], 'project_id': '5b8859f2ff5e4bd2a4276704d87afd5a'}}
2026-02-16 18:05:56,817 - INFO - Created VN ctest-vn-81368306
2026-02-16 18:05:56,867 - DEBUG - VN ctest-vn-81368306 UUID is 75cf3e1a-8fba-420e-a2c0-3d0aa533e3e8
2026-02-16 18:05:57,191 - DEBUG - Response for create_network : {'network': {'id': 'e437cfe1-2379-4dd1-af5c-b573f49d87eb', 'name': 'ctest-vn-96334359', 'tenant_id': '5b8859f2ff5e4bd2a4276704d87afd5a', 'project_id': '5b8859f2ff5e4bd2a4276704d87afd5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67050979', 'ctest-vn-96334359'], 'port_security_enabled': True, 'description': ''}}
2026-02-16 18:05:57,347 - DEBUG - Response for create_subnet : {'subnet': {'id': '21d421ab-55da-447f-bff4-7837dfabfbb9', 'name': '', 'tenant_id': '5b8859f2ff5e4bd2a4276704d87afd5a', 'network_id': 'e437cfe1-2379-4dd1-af5c-b573f49d87eb', 'ip_version': 4, 'cidr': '95.127.138.128/26', 'allocation_pools': [{'start': '95.127.138.130', 'end': '95.127.138.190'}], 'gateway_ip': '95.127.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.127.138.130', 'tags': [], 'project_id': '5b8859f2ff5e4bd2a4276704d87afd5a'}}
2026-02-16 18:05:57,363 - INFO - Created VN ctest-vn-96334359
2026-02-16 18:05:57,415 - DEBUG - VN ctest-vn-96334359 UUID is e437cfe1-2379-4dd1-af5c-b573f49d87eb
2026-02-16 18:05:57,563 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67050979:ctest-vn-81368306, 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-67050979:ctest-vn-96334359, 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-16 18:05:57,857 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '75cf3e1a-8fba-420e-a2c0-3d0aa533e3e8', 'name': 'ctest-vn-81368306', 'tenant_id': '5b8859f2ff5e4bd2a4276704d87afd5a', 'project_id': '5b8859f2ff5e4bd2a4276704d87afd5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b8eeef6e-0d10-42c2-89ce-c3a20eba35d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67050979', 'ctest-vn-81368306'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67050979', 'ctest-policy-allow-all-98756794']], 'subnet_ipam': [{'subnet_cidr': '192.36.178.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-16 18:05:58,080 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e437cfe1-2379-4dd1-af5c-b573f49d87eb', 'name': 'ctest-vn-96334359', 'tenant_id': '5b8859f2ff5e4bd2a4276704d87afd5a', 'project_id': '5b8859f2ff5e4bd2a4276704d87afd5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['21d421ab-55da-447f-bff4-7837dfabfbb9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67050979', 'ctest-vn-96334359'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67050979', 'ctest-policy-allow-all-98756794']], 'subnet_ipam': [{'subnet_cidr': '95.127.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-16 18:05:58,239 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-16 18:05:58,534 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-16 18:05:58,563 - DEBUG - Requesting: http://10.0.0.38:8082/domain/90a73f68-5f97-4dd2-8cb5-2c19c0687ec7
2026-02-16 18:05:58,574 - DEBUG - Requesting: http://10.0.0.38:8082/project/5b8859f2-ff5e-4bd2-a427-6704d87afd5a
2026-02-16 18:05:58,644 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/75cf3e1a-8fba-420e-a2c0-3d0aa533e3e8
2026-02-16 18:05:58,654 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/75cf3e1a-8fba-420e-a2c0-3d0aa533e3e8
2026-02-16 18:05:58,663 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1b6d7500-5079-4c2f-832d-48e5ce5f6548
2026-02-16 18:05:58,669 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1b6d7500-5079-4c2f-832d-48e5ce5f6548
2026-02-16 18:05:58,675 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b45293b0-76bc-4914-ae27-9b0520f00203
2026-02-16 18:05:58,681 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-16 18:05:58,681 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/75cf3e1a-8fba-420e-a2c0-3d0aa533e3e8
2026-02-16 18:05:58,689 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1b6d7500-5079-4c2f-832d-48e5ce5f6548
2026-02-16 18:05:58,703 - INFO - Verified VN network id 11 for VN 75cf3e1a-8fba-420e-a2c0-3d0aa533e3e8
2026-02-16 18:05:58,703 - INFO - Verifications in API Server for VN ctest-vn-81368306 passed
2026-02-16 18:05:58,703 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/75cf3e1a-8fba-420e-a2c0-3d0aa533e3e8
2026-02-16 18:05:58,711 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1b6d7500-5079-4c2f-832d-48e5ce5f6548
2026-02-16 18:05:58,718 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1b6d7500-5079-4c2f-832d-48e5ce5f6548
2026-02-16 18:05:58,724 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b45293b0-76bc-4914-ae27-9b0520f00203
2026-02-16 18:05:58,734 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67050979:ctest-vn-81368306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67050979', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8489072106418094606', 'uuid-lslong': '11727440545603380200'}, 'enable': 'true', 'created': '2026-02-16T18:05:56', 'last-modified': '2026-02-16T18:05:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.903002'}
2026-02-16 18:05:58,739 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-16 18:05:58,739 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81368306 passed
2026-02-16 18:05:58,739 - DEBUG - ====Verifying policy data for ctest-vn-81368306 in API_Server ======
2026-02-16 18:05:58,739 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-16 18:05:58,744 - DEBUG - Requesting: http://10.0.0.38:8082/domain/90a73f68-5f97-4dd2-8cb5-2c19c0687ec7
2026-02-16 18:05:58,755 - DEBUG - Requesting: http://10.0.0.38:8082/project/5b8859f2-ff5e-4bd2-a427-6704d87afd5a
2026-02-16 18:05:58,827 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/75cf3e1a-8fba-420e-a2c0-3d0aa533e3e8
2026-02-16 18:05:58,835 - DEBUG - ==>Verifying data for policy with id: ff1c63ea-edba-4aff-a0e9-afeafe2f9d8b, fqn: ['default-domain', 'ctest-TestBasicPolicy-67050979', 'ctest-policy-allow-all-98756794']
2026-02-16 18:05:58,835 - INFO - VN ctest-vn-81368306 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-16 18:05:58,835 - DEBUG - Verifying the vn in opserver
2026-02-16 18:05:58,835 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67050979:ctest-vn-81368306 virtual network link through opserver 10.0.0.38
2026-02-16 18:05:58,835 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-16 18:05:59,139 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-16 18:05:59,197 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67050979:ctest-vn-81368306', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67050979:ctest-vn-81368306?flat'}
2026-02-16 18:05:59,197 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67050979:ctest-vn-81368306 is found in opserver
2026-02-16 18:05:59,206 - DEBUG - Do not have enough data to verify VN in agent
2026-02-16 18:05:59,210 - DEBUG - VRF ids for VN ctest-vn-81368306: {}
2026-02-16 18:05:59,210 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-16 18:05:59,215 - DEBUG - Requesting: http://10.0.0.38:8082/domain/90a73f68-5f97-4dd2-8cb5-2c19c0687ec7
2026-02-16 18:05:59,225 - DEBUG - Requesting: http://10.0.0.38:8082/project/5b8859f2-ff5e-4bd2-a427-6704d87afd5a
2026-02-16 18:05:59,296 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e437cfe1-2379-4dd1-af5c-b573f49d87eb
2026-02-16 18:05:59,306 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e437cfe1-2379-4dd1-af5c-b573f49d87eb
2026-02-16 18:05:59,315 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a1c0193d-0388-47b6-9b17-6bd785fd1596
2026-02-16 18:05:59,322 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a1c0193d-0388-47b6-9b17-6bd785fd1596
2026-02-16 18:05:59,329 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/61cdfccc-e978-4230-bb40-88228261fd7e
2026-02-16 18:05:59,335 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-16 18:05:59,335 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e437cfe1-2379-4dd1-af5c-b573f49d87eb
2026-02-16 18:05:59,344 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a1c0193d-0388-47b6-9b17-6bd785fd1596
2026-02-16 18:05:59,358 - INFO - Verified VN network id 12 for VN e437cfe1-2379-4dd1-af5c-b573f49d87eb
2026-02-16 18:05:59,358 - INFO - Verifications in API Server for VN ctest-vn-96334359 passed
2026-02-16 18:05:59,358 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e437cfe1-2379-4dd1-af5c-b573f49d87eb
2026-02-16 18:05:59,367 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a1c0193d-0388-47b6-9b17-6bd785fd1596
2026-02-16 18:05:59,374 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a1c0193d-0388-47b6-9b17-6bd785fd1596
2026-02-16 18:05:59,381 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/61cdfccc-e978-4230-bb40-88228261fd7e
2026-02-16 18:05:59,391 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67050979:ctest-vn-96334359', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67050979', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16444841130236399057', 'uuid-lslong': '12636174164124600299'}, 'enable': 'true', 'created': '2026-02-16T18:05:57', 'last-modified': '2026-02-16T18:05:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.335681'}
2026-02-16 18:05:59,398 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-16 18:05:59,398 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96334359 passed
2026-02-16 18:05:59,398 - DEBUG - ====Verifying policy data for ctest-vn-96334359 in API_Server ======
2026-02-16 18:05:59,398 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-02-16 18:05:59,404 - DEBUG - Requesting: http://10.0.0.38:8082/domain/90a73f68-5f97-4dd2-8cb5-2c19c0687ec7
2026-02-16 18:05:59,415 - DEBUG - Requesting: http://10.0.0.38:8082/project/5b8859f2-ff5e-4bd2-a427-6704d87afd5a
2026-02-16 18:05:59,483 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e437cfe1-2379-4dd1-af5c-b573f49d87eb
2026-02-16 18:05:59,494 - DEBUG - ==>Verifying data for policy with id: ff1c63ea-edba-4aff-a0e9-afeafe2f9d8b, fqn: ['default-domain', 'ctest-TestBasicPolicy-67050979', 'ctest-policy-allow-all-98756794']
2026-02-16 18:05:59,494 - INFO - VN ctest-vn-96334359 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-16 18:05:59,495 - DEBUG - Verifying the vn in opserver
2026-02-16 18:05:59,495 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67050979:ctest-vn-96334359 virtual network link through opserver 10.0.0.38
2026-02-16 18:05:59,495 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-02-16 18:05:59,504 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67050979:ctest-vn-96334359', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67050979:ctest-vn-96334359?flat'}
2026-02-16 18:05:59,505 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67050979:ctest-vn-96334359 is found in opserver
2026-02-16 18:05:59,513 - DEBUG - Do not have enough data to verify VN in agent
2026-02-16 18:05:59,517 - DEBUG - VRF ids for VN ctest-vn-96334359: {}
2026-02-16 18:05:59,571 - DEBUG - Services list from nova: [