2026-04-30 02:28:16,327 - INFO - Domain Default found not creating
2026-04-30 02:28:16,527 - INFO - Project ctest-TestBasicPolicy-93643168 not found, creating it
2026-04-30 02:28:17,018 - INFO - Created Project:ctest-TestBasicPolicy-93643168, ID : 1b5cbb10-0179-4848-95d4-83cf82665920
2026-04-30 02:28:18,533 - INFO - ================================================================================
2026-04-30 02:28:18,533 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-30 02:28:18,533 - 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-04-30 02:28:18,789 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.25': '0'}} with
2026-04-30 02:28:18,789 - INFO - Initial checks done. Running the testcase now
2026-04-30 02:28:18,789 - INFO -
2026-04-30 02:28:19,879 - DEBUG - Response for create_network : {'network': {'id': '47769f9c-e22a-4f09-a80f-c7355d4d4668', 'name': 'ctest-vn-90024578', 'tenant_id': '1b5cbb100179484895d483cf82665920', 'project_id': '1b5cbb100179484895d483cf82665920', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93643168', 'ctest-vn-90024578'], 'port_security_enabled': True, 'description': ''}}
2026-04-30 02:28:20,069 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c64abca6-3d8c-44fc-89e2-02d6c82b8d8c', 'name': '', 'tenant_id': '1b5cbb100179484895d483cf82665920', 'network_id': '47769f9c-e22a-4f09-a80f-c7355d4d4668', 'ip_version': 4, 'cidr': '215.195.105.0/26', 'allocation_pools': [{'start': '215.195.105.2', 'end': '215.195.105.62'}], 'gateway_ip': '215.195.105.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.195.105.2', 'tags': [], 'project_id': '1b5cbb100179484895d483cf82665920'}}
2026-04-30 02:28:20,087 - INFO - Created VN ctest-vn-90024578
2026-04-30 02:28:20,139 - DEBUG - VN ctest-vn-90024578 UUID is 47769f9c-e22a-4f09-a80f-c7355d4d4668
2026-04-30 02:28:20,419 - DEBUG - Response for create_network : {'network': {'id': '1c7ac81a-d40a-4c13-968c-d3b702cc1c1a', 'name': 'ctest-vn-07065684', 'tenant_id': '1b5cbb100179484895d483cf82665920', 'project_id': '1b5cbb100179484895d483cf82665920', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93643168', 'ctest-vn-07065684'], 'port_security_enabled': True, 'description': ''}}
2026-04-30 02:28:20,609 - DEBUG - Response for create_subnet : {'subnet': {'id': '84d450d1-a2f5-469a-81ee-e7c4e929aad2', 'name': '', 'tenant_id': '1b5cbb100179484895d483cf82665920', 'network_id': '1c7ac81a-d40a-4c13-968c-d3b702cc1c1a', 'ip_version': 4, 'cidr': '203.191.111.192/26', 'allocation_pools': [{'start': '203.191.111.194', 'end': '203.191.111.254'}], 'gateway_ip': '203.191.111.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.191.111.194', 'tags': [], 'project_id': '1b5cbb100179484895d483cf82665920'}}
2026-04-30 02:28:20,633 - INFO - Created VN ctest-vn-07065684
2026-04-30 02:28:20,683 - DEBUG - VN ctest-vn-07065684 UUID is 1c7ac81a-d40a-4c13-968c-d3b702cc1c1a
2026-04-30 02:28:20,808 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93643168:ctest-vn-90024578, 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-93643168:ctest-vn-07065684, 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-04-30 02:28:21,130 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47769f9c-e22a-4f09-a80f-c7355d4d4668', 'name': 'ctest-vn-90024578', 'tenant_id': '1b5cbb100179484895d483cf82665920', 'project_id': '1b5cbb100179484895d483cf82665920', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c64abca6-3d8c-44fc-89e2-02d6c82b8d8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93643168', 'ctest-vn-90024578'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93643168', 'ctest-policy-allow-all-77015477']], 'subnet_ipam': [{'subnet_cidr': '215.195.105.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-30 02:28:21,351 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c7ac81a-d40a-4c13-968c-d3b702cc1c1a', 'name': 'ctest-vn-07065684', 'tenant_id': '1b5cbb100179484895d483cf82665920', 'project_id': '1b5cbb100179484895d483cf82665920', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84d450d1-a2f5-469a-81ee-e7c4e929aad2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93643168', 'ctest-vn-07065684'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93643168', 'ctest-policy-allow-all-77015477']], 'subnet_ipam': [{'subnet_cidr': '203.191.111.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-30 02:28:21,520 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-30 02:28:21,810 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-30 02:28:21,840 - DEBUG - Requesting: http://10.0.0.249:8082/domain/de2f5240-b67f-4502-96ee-15aed842570a
2026-04-30 02:28:21,853 - DEBUG - Requesting: http://10.0.0.249:8082/project/1b5cbb10-0179-4848-95d4-83cf82665920
2026-04-30 02:28:21,920 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47769f9c-e22a-4f09-a80f-c7355d4d4668
2026-04-30 02:28:21,930 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47769f9c-e22a-4f09-a80f-c7355d4d4668
2026-04-30 02:28:21,938 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/eed0be64-257e-4ea9-86dd-8d15924720c7
2026-04-30 02:28:21,946 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/eed0be64-257e-4ea9-86dd-8d15924720c7
2026-04-30 02:28:21,953 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b972c6a3-1208-4281-b8c5-f1ec60810744
2026-04-30 02:28:21,958 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-30 02:28:21,958 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47769f9c-e22a-4f09-a80f-c7355d4d4668
2026-04-30 02:28:21,967 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/eed0be64-257e-4ea9-86dd-8d15924720c7
2026-04-30 02:28:21,980 - INFO - Verified VN network id 11 for VN 47769f9c-e22a-4f09-a80f-c7355d4d4668
2026-04-30 02:28:21,981 - INFO - Verifications in API Server for VN ctest-vn-90024578 passed
2026-04-30 02:28:21,981 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47769f9c-e22a-4f09-a80f-c7355d4d4668
2026-04-30 02:28:21,989 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/eed0be64-257e-4ea9-86dd-8d15924720c7
2026-04-30 02:28:21,995 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/eed0be64-257e-4ea9-86dd-8d15924720c7
2026-04-30 02:28:22,002 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b972c6a3-1208-4281-b8c5-f1ec60810744
2026-04-30 02:28:22,012 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93643168:ctest-vn-90024578', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93643168', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5149478720102878985', 'uuid-lslong': '12110116955035092584'}, 'enable': 'true', 'created': '2026-04-30T02:28:19', 'last-modified': '2026-04-30T02:28:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.919547'}
2026-04-30 02:28:22,018 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-30 02:28:22,018 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90024578 passed
2026-04-30 02:28:22,018 - DEBUG - ====Verifying policy data for ctest-vn-90024578 in API_Server ======
2026-04-30 02:28:22,018 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-30 02:28:22,023 - DEBUG - Requesting: http://10.0.0.249:8082/domain/de2f5240-b67f-4502-96ee-15aed842570a
2026-04-30 02:28:22,034 - DEBUG - Requesting: http://10.0.0.249:8082/project/1b5cbb10-0179-4848-95d4-83cf82665920
2026-04-30 02:28:22,100 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47769f9c-e22a-4f09-a80f-c7355d4d4668
2026-04-30 02:28:22,110 - DEBUG - ==>Verifying data for policy with id: 4dc4a7a4-7c62-442e-a436-ebdb7f94233d, fqn: ['default-domain', 'ctest-TestBasicPolicy-93643168', 'ctest-policy-allow-all-77015477']
2026-04-30 02:28:22,110 - INFO - VN ctest-vn-90024578 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-30 02:28:22,110 - DEBUG - Verifying the vn in opserver
2026-04-30 02:28:22,110 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93643168:ctest-vn-90024578 virtual network link through opserver 10.0.0.249
2026-04-30 02:28:22,111 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-30 02:28:22,403 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-30 02:28:22,461 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93643168:ctest-vn-90024578', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93643168:ctest-vn-90024578?flat'}
2026-04-30 02:28:22,461 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93643168:ctest-vn-90024578 is found in opserver
2026-04-30 02:28:22,472 - DEBUG - Do not have enough data to verify VN in agent
2026-04-30 02:28:22,477 - DEBUG - VRF ids for VN ctest-vn-90024578: {}
2026-04-30 02:28:22,478 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-30 02:28:22,485 - DEBUG - Requesting: http://10.0.0.249:8082/domain/de2f5240-b67f-4502-96ee-15aed842570a
2026-04-30 02:28:22,498 - DEBUG - Requesting: http://10.0.0.249:8082/project/1b5cbb10-0179-4848-95d4-83cf82665920
2026-04-30 02:28:22,582 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1c7ac81a-d40a-4c13-968c-d3b702cc1c1a
2026-04-30 02:28:22,596 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1c7ac81a-d40a-4c13-968c-d3b702cc1c1a
2026-04-30 02:28:22,607 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9cc021a8-28e5-4635-a5f5-dad9765f247b
2026-04-30 02:28:22,615 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9cc021a8-28e5-4635-a5f5-dad9765f247b
2026-04-30 02:28:22,622 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7e620325-bc45-462a-94c5-55012e3e6cc7
2026-04-30 02:28:22,630 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-30 02:28:22,630 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1c7ac81a-d40a-4c13-968c-d3b702cc1c1a
2026-04-30 02:28:22,640 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9cc021a8-28e5-4635-a5f5-dad9765f247b
2026-04-30 02:28:22,655 - INFO - Verified VN network id 12 for VN 1c7ac81a-d40a-4c13-968c-d3b702cc1c1a
2026-04-30 02:28:22,655 - INFO - Verifications in API Server for VN ctest-vn-07065684 passed
2026-04-30 02:28:22,655 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1c7ac81a-d40a-4c13-968c-d3b702cc1c1a
2026-04-30 02:28:22,665 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9cc021a8-28e5-4635-a5f5-dad9765f247b
2026-04-30 02:28:22,672 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/9cc021a8-28e5-4635-a5f5-dad9765f247b
2026-04-30 02:28:22,679 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7e620325-bc45-462a-94c5-55012e3e6cc7
2026-04-30 02:28:22,692 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93643168:ctest-vn-07065684', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93643168', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2052172597772831763', 'uuid-lslong': '10848278385408089114'}, 'enable': 'true', 'created': '2026-04-30T02:28:20', 'last-modified': '2026-04-30T02:28:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.362991'}
2026-04-30 02:28:22,700 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-30 02:28:22,700 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07065684 passed
2026-04-30 02:28:22,700 - DEBUG - ====Verifying policy data for ctest-vn-07065684 in API_Server ======
2026-04-30 02:28:22,700 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-30 02:28:22,707 - DEBUG - Requesting: http://10.0.0.249:8082/domain/de2f5240-b67f-4502-96ee-15aed842570a
2026-04-30 02:28:22,720 - DEBUG - Requesting: http://10.0.0.249:8082/project/1b5cbb10-0179-4848-95d4-83cf82665920
2026-04-30 02:28:22,796 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1c7ac81a-d40a-4c13-968c-d3b702cc1c1a
2026-04-30 02:28:22,807 - DEBUG - ==>Verifying data for policy with id: 4dc4a7a4-7c62-442e-a436-ebdb7f94233d, fqn: ['default-domain', 'ctest-TestBasicPolicy-93643168', 'ctest-policy-allow-all-77015477']
2026-04-30 02:28:22,807 - INFO - VN ctest-vn-07065684 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-30 02:28:22,807 - DEBUG - Verifying the vn in opserver
2026-04-30 02:28:22,807 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93643168:ctest-vn-07065684 virtual network link through opserver 10.0.0.249
2026-04-30 02:28:22,807 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-30 02:28:22,817 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93643168:ctest-vn-07065684', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93643168:ctest-vn-07065684?flat'}
2026-04-30 02:28:22,817 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93643168:ctest-vn-07065684 is found in opserver
2026-04-30 02:28:22,828 - DEBUG - Do not have enough data to verify VN in agent
2026-04-30 02:28:22,834 - DEBUG - VRF ids for VN ctest-vn-07065684: {}
2026-04-30 02:28:22,895 - DEBUG - Services list from nova: [