2026-06-22 02:23:50,301 - INFO - Domain Default found not creating
2026-06-22 02:23:50,430 - INFO - Project ctest-TestBasicPolicy-23913403 not found, creating it
2026-06-22 02:23:50,903 - INFO - Created Project:ctest-TestBasicPolicy-23913403, ID : a7c3e3e4-2b17-4402-9afa-238e3b225b8f
2026-06-22 02:23:52,328 - INFO - ================================================================================
2026-06-22 02:23:52,329 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-06-22 02:23:52,329 - 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-22 02:23:52,582 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with
2026-06-22 02:23:52,582 - INFO - Initial checks done. Running the testcase now
2026-06-22 02:23:52,582 - INFO -
2026-06-22 02:23:53,127 - DEBUG - Response for create_network : {'network': {'id': 'ce45a1bf-5b5b-4022-9c5f-29399a240922', 'name': 'ctest-vn-88118065', 'tenant_id': 'a7c3e3e42b1744029afa238e3b225b8f', 'project_id': 'a7c3e3e42b1744029afa238e3b225b8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23913403', 'ctest-vn-88118065'], 'port_security_enabled': True, 'description': ''}}
2026-06-22 02:23:53,331 - DEBUG - Response for create_subnet : {'subnet': {'id': '821c767a-067c-43a0-84c8-5352dbd2e026', 'name': '', 'tenant_id': 'a7c3e3e42b1744029afa238e3b225b8f', 'network_id': 'ce45a1bf-5b5b-4022-9c5f-29399a240922', 'ip_version': 4, 'cidr': '164.210.43.128/26', 'allocation_pools': [{'start': '164.210.43.130', 'end': '164.210.43.190'}], 'gateway_ip': '164.210.43.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.210.43.130', 'tags': [], 'project_id': 'a7c3e3e42b1744029afa238e3b225b8f'}}
2026-06-22 02:23:53,344 - INFO - Created VN ctest-vn-88118065
2026-06-22 02:23:53,396 - DEBUG - VN ctest-vn-88118065 UUID is ce45a1bf-5b5b-4022-9c5f-29399a240922
2026-06-22 02:23:53,694 - DEBUG - Response for create_network : {'network': {'id': '58e74c95-f641-43ab-907a-bf7a18c3cfd8', 'name': 'ctest-vn-37502180', 'tenant_id': 'a7c3e3e42b1744029afa238e3b225b8f', 'project_id': 'a7c3e3e42b1744029afa238e3b225b8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23913403', 'ctest-vn-37502180'], 'port_security_enabled': True, 'description': ''}}
2026-06-22 02:23:53,838 - DEBUG - Response for create_subnet : {'subnet': {'id': '4696b4e9-778d-46b1-9e78-18ec6d29c448', 'name': '', 'tenant_id': 'a7c3e3e42b1744029afa238e3b225b8f', 'network_id': '58e74c95-f641-43ab-907a-bf7a18c3cfd8', 'ip_version': 4, 'cidr': '84.205.48.0/26', 'allocation_pools': [{'start': '84.205.48.2', 'end': '84.205.48.62'}], 'gateway_ip': '84.205.48.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.205.48.2', 'tags': [], 'project_id': 'a7c3e3e42b1744029afa238e3b225b8f'}}
2026-06-22 02:23:53,850 - INFO - Created VN ctest-vn-37502180
2026-06-22 02:23:53,900 - DEBUG - VN ctest-vn-37502180 UUID is 58e74c95-f641-43ab-907a-bf7a18c3cfd8
2026-06-22 02:23:54,040 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23913403:ctest-vn-88118065, 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-23913403:ctest-vn-37502180, 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-22 02:23:54,451 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce45a1bf-5b5b-4022-9c5f-29399a240922', 'name': 'ctest-vn-88118065', 'tenant_id': 'a7c3e3e42b1744029afa238e3b225b8f', 'project_id': 'a7c3e3e42b1744029afa238e3b225b8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['821c767a-067c-43a0-84c8-5352dbd2e026'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23913403', 'ctest-vn-88118065'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23913403', 'ctest-policy-allow-all-45498720']], 'subnet_ipam': [{'subnet_cidr': '164.210.43.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-22 02:23:54,651 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58e74c95-f641-43ab-907a-bf7a18c3cfd8', 'name': 'ctest-vn-37502180', 'tenant_id': 'a7c3e3e42b1744029afa238e3b225b8f', 'project_id': 'a7c3e3e42b1744029afa238e3b225b8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4696b4e9-778d-46b1-9e78-18ec6d29c448'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23913403', 'ctest-vn-37502180'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23913403', 'ctest-policy-allow-all-45498720']], 'subnet_ipam': [{'subnet_cidr': '84.205.48.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-06-22 02:23:54,768 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-22 02:23:55,092 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-22 02:23:55,116 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ff98a3e8-93bd-42aa-b9d2-63f4bd374238
2026-06-22 02:23:55,126 - DEBUG - Requesting: http://10.0.0.50:8082/project/a7c3e3e4-2b17-4402-9afa-238e3b225b8f
2026-06-22 02:23:55,193 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ce45a1bf-5b5b-4022-9c5f-29399a240922
2026-06-22 02:23:55,204 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ce45a1bf-5b5b-4022-9c5f-29399a240922
2026-06-22 02:23:55,213 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55b8dd0c-8f8a-4d43-b454-7cd8b4294f2b
2026-06-22 02:23:55,220 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55b8dd0c-8f8a-4d43-b454-7cd8b4294f2b
2026-06-22 02:23:55,225 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2a20dc0f-40d9-4964-9041-3074dcb2232c
2026-06-22 02:23:55,230 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-22 02:23:55,230 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ce45a1bf-5b5b-4022-9c5f-29399a240922
2026-06-22 02:23:55,237 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55b8dd0c-8f8a-4d43-b454-7cd8b4294f2b
2026-06-22 02:23:55,247 - INFO - Verified VN network id 12 for VN ce45a1bf-5b5b-4022-9c5f-29399a240922
2026-06-22 02:23:55,247 - INFO - Verifications in API Server for VN ctest-vn-88118065 passed
2026-06-22 02:23:55,247 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ce45a1bf-5b5b-4022-9c5f-29399a240922
2026-06-22 02:23:55,256 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55b8dd0c-8f8a-4d43-b454-7cd8b4294f2b
2026-06-22 02:23:55,263 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/55b8dd0c-8f8a-4d43-b454-7cd8b4294f2b
2026-06-22 02:23:55,271 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2a20dc0f-40d9-4964-9041-3074dcb2232c
2026-06-22 02:23:55,281 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23913403:ctest-vn-88118065', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23913403', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14863463988449722402', 'uuid-lslong': '11267770120080197922'}, 'enable': 'true', 'created': '2026-06-22T02:23:53', 'last-modified': '2026-06-22T02:23:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.885668'}
2026-06-22 02:23:55,286 - DEBUG - Route Targets: ['target:64512:8000004']
2026-06-22 02:23:55,287 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88118065 passed
2026-06-22 02:23:55,287 - DEBUG - ====Verifying policy data for ctest-vn-88118065 in API_Server ======
2026-06-22 02:23:55,287 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-22 02:23:55,293 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ff98a3e8-93bd-42aa-b9d2-63f4bd374238
2026-06-22 02:23:55,304 - DEBUG - Requesting: http://10.0.0.50:8082/project/a7c3e3e4-2b17-4402-9afa-238e3b225b8f
2026-06-22 02:23:55,374 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ce45a1bf-5b5b-4022-9c5f-29399a240922
2026-06-22 02:23:55,383 - DEBUG - ==>Verifying data for policy with id: a4d47240-6989-491c-a5d9-e2285c6bbd68, fqn: ['default-domain', 'ctest-TestBasicPolicy-23913403', 'ctest-policy-allow-all-45498720']
2026-06-22 02:23:55,383 - INFO - VN ctest-vn-88118065 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-22 02:23:55,383 - DEBUG - Verifying the vn in opserver
2026-06-22 02:23:55,383 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23913403:ctest-vn-88118065 virtual network link through opserver 10.0.0.50
2026-06-22 02:23:55,383 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-22 02:23:55,698 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-22 02:23:55,745 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23913403:ctest-vn-88118065', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23913403:ctest-vn-88118065?flat'}
2026-06-22 02:23:55,745 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23913403:ctest-vn-88118065 is found in opserver
2026-06-22 02:23:55,754 - DEBUG - Do not have enough data to verify VN in agent
2026-06-22 02:23:55,758 - DEBUG - VRF ids for VN ctest-vn-88118065: {}
2026-06-22 02:23:55,758 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-22 02:23:55,763 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ff98a3e8-93bd-42aa-b9d2-63f4bd374238
2026-06-22 02:23:55,772 - DEBUG - Requesting: http://10.0.0.50:8082/project/a7c3e3e4-2b17-4402-9afa-238e3b225b8f
2026-06-22 02:23:55,840 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58e74c95-f641-43ab-907a-bf7a18c3cfd8
2026-06-22 02:23:55,850 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58e74c95-f641-43ab-907a-bf7a18c3cfd8
2026-06-22 02:23:55,857 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0b6fa8f7-0cee-4ee8-bef2-9afe7325a09e
2026-06-22 02:23:55,862 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0b6fa8f7-0cee-4ee8-bef2-9afe7325a09e
2026-06-22 02:23:55,868 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8399e587-0f1c-4031-b44c-58028a39ed7c
2026-06-22 02:23:55,873 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-22 02:23:55,873 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58e74c95-f641-43ab-907a-bf7a18c3cfd8
2026-06-22 02:23:55,880 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0b6fa8f7-0cee-4ee8-bef2-9afe7325a09e
2026-06-22 02:23:55,890 - INFO - Verified VN network id 13 for VN 58e74c95-f641-43ab-907a-bf7a18c3cfd8
2026-06-22 02:23:55,890 - INFO - Verifications in API Server for VN ctest-vn-37502180 passed
2026-06-22 02:23:55,890 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58e74c95-f641-43ab-907a-bf7a18c3cfd8
2026-06-22 02:23:55,898 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0b6fa8f7-0cee-4ee8-bef2-9afe7325a09e
2026-06-22 02:23:55,902 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0b6fa8f7-0cee-4ee8-bef2-9afe7325a09e
2026-06-22 02:23:55,908 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8399e587-0f1c-4031-b44c-58028a39ed7c
2026-06-22 02:23:55,917 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23913403:ctest-vn-37502180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23913403', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6406173201923130283', 'uuid-lslong': '10410844019742724056'}, 'enable': 'true', 'created': '2026-06-22T02:23:53', 'last-modified': '2026-06-22T02:23:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.279764'}
2026-06-22 02:23:55,921 - DEBUG - Route Targets: ['target:64512:8000005']
2026-06-22 02:23:55,922 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37502180 passed
2026-06-22 02:23:55,922 - DEBUG - ====Verifying policy data for ctest-vn-37502180 in API_Server ======
2026-06-22 02:23:55,922 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-06-22 02:23:55,925 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ff98a3e8-93bd-42aa-b9d2-63f4bd374238
2026-06-22 02:23:55,933 - DEBUG - Requesting: http://10.0.0.50:8082/project/a7c3e3e4-2b17-4402-9afa-238e3b225b8f
2026-06-22 02:23:55,998 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58e74c95-f641-43ab-907a-bf7a18c3cfd8
2026-06-22 02:23:56,005 - DEBUG - ==>Verifying data for policy with id: a4d47240-6989-491c-a5d9-e2285c6bbd68, fqn: ['default-domain', 'ctest-TestBasicPolicy-23913403', 'ctest-policy-allow-all-45498720']
2026-06-22 02:23:56,005 - INFO - VN ctest-vn-37502180 Policy verification: verify_vn_policy_in_api_server, status: True
2026-06-22 02:23:56,005 - DEBUG - Verifying the vn in opserver
2026-06-22 02:23:56,005 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23913403:ctest-vn-37502180 virtual network link through opserver 10.0.0.50
2026-06-22 02:23:56,005 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-06-22 02:23:56,013 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23913403:ctest-vn-37502180', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23913403:ctest-vn-37502180?flat'}
2026-06-22 02:23:56,013 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23913403:ctest-vn-37502180 is found in opserver
2026-06-22 02:23:56,021 - DEBUG - Do not have enough data to verify VN in agent
2026-06-22 02:23:56,025 - DEBUG - VRF ids for VN ctest-vn-37502180: {}
2026-06-22 02:23:56,077 - DEBUG - Services list from nova: [