2026-04-20 02:07:30,145 - INFO - Domain Default found not creating
2026-04-20 02:07:30,291 - INFO - Project ctest-TestBasicPolicy-42059610 not found, creating it
2026-04-20 02:07:30,710 - INFO - Created Project:ctest-TestBasicPolicy-42059610, ID : e4da5c92-1f1b-4380-9d51-031ec780faf1
2026-04-20 02:07:32,087 - INFO - ================================================================================
2026-04-20 02:07:32,087 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-20 02:07:32,087 - 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-20 02:07:32,340 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with
2026-04-20 02:07:32,340 - INFO - Initial checks done. Running the testcase now
2026-04-20 02:07:32,340 - INFO -
2026-04-20 02:07:32,857 - DEBUG - Response for create_network : {'network': {'id': '677c9b8b-bf15-45c8-a910-8cf3d85183fc', 'name': 'ctest-vn-45369298', 'tenant_id': 'e4da5c921f1b43809d51031ec780faf1', 'project_id': 'e4da5c921f1b43809d51031ec780faf1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42059610', 'ctest-vn-45369298'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 02:07:33,045 - DEBUG - Response for create_subnet : {'subnet': {'id': '40e9edd2-2178-488a-9084-20f956fc9570', 'name': '', 'tenant_id': 'e4da5c921f1b43809d51031ec780faf1', 'network_id': '677c9b8b-bf15-45c8-a910-8cf3d85183fc', 'ip_version': 4, 'cidr': '124.38.254.0/26', 'allocation_pools': [{'start': '124.38.254.2', 'end': '124.38.254.62'}], 'gateway_ip': '124.38.254.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.38.254.2', 'tags': [], 'project_id': 'e4da5c921f1b43809d51031ec780faf1'}}
2026-04-20 02:07:33,061 - INFO - Created VN ctest-vn-45369298
2026-04-20 02:07:33,115 - DEBUG - VN ctest-vn-45369298 UUID is 677c9b8b-bf15-45c8-a910-8cf3d85183fc
2026-04-20 02:07:33,406 - DEBUG - Response for create_network : {'network': {'id': '00a40eec-7644-48ab-b2ce-7680d4823cc6', 'name': 'ctest-vn-20743724', 'tenant_id': 'e4da5c921f1b43809d51031ec780faf1', 'project_id': 'e4da5c921f1b43809d51031ec780faf1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42059610', 'ctest-vn-20743724'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 02:07:33,604 - DEBUG - Response for create_subnet : {'subnet': {'id': '19ee31a3-839e-4e74-9742-599d763b2a3f', 'name': '', 'tenant_id': 'e4da5c921f1b43809d51031ec780faf1', 'network_id': '00a40eec-7644-48ab-b2ce-7680d4823cc6', 'ip_version': 4, 'cidr': '78.74.210.128/26', 'allocation_pools': [{'start': '78.74.210.130', 'end': '78.74.210.190'}], 'gateway_ip': '78.74.210.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.74.210.130', 'tags': [], 'project_id': 'e4da5c921f1b43809d51031ec780faf1'}}
2026-04-20 02:07:33,618 - INFO - Created VN ctest-vn-20743724
2026-04-20 02:07:33,667 - DEBUG - VN ctest-vn-20743724 UUID is 00a40eec-7644-48ab-b2ce-7680d4823cc6
2026-04-20 02:07:33,807 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42059610:ctest-vn-45369298, 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-42059610:ctest-vn-20743724, 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-20 02:07:34,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '677c9b8b-bf15-45c8-a910-8cf3d85183fc', 'name': 'ctest-vn-45369298', 'tenant_id': 'e4da5c921f1b43809d51031ec780faf1', 'project_id': 'e4da5c921f1b43809d51031ec780faf1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40e9edd2-2178-488a-9084-20f956fc9570'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42059610', 'ctest-vn-45369298'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42059610', 'ctest-policy-allow-all-74727563']], 'subnet_ipam': [{'subnet_cidr': '124.38.254.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 02:07:34,297 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00a40eec-7644-48ab-b2ce-7680d4823cc6', 'name': 'ctest-vn-20743724', 'tenant_id': 'e4da5c921f1b43809d51031ec780faf1', 'project_id': 'e4da5c921f1b43809d51031ec780faf1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19ee31a3-839e-4e74-9742-599d763b2a3f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42059610', 'ctest-vn-20743724'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42059610', 'ctest-policy-allow-all-74727563']], 'subnet_ipam': [{'subnet_cidr': '78.74.210.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 02:07:34,455 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-04-20 02:07:34,745 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-04-20 02:07:34,772 - DEBUG - Requesting: http://10.0.0.41:8082/domain/8dbe7c18-3fac-4f6b-8993-d8c652ef417b
2026-04-20 02:07:34,782 - DEBUG - Requesting: http://10.0.0.41:8082/project/e4da5c92-1f1b-4380-9d51-031ec780faf1
2026-04-20 02:07:34,851 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/677c9b8b-bf15-45c8-a910-8cf3d85183fc
2026-04-20 02:07:34,860 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/677c9b8b-bf15-45c8-a910-8cf3d85183fc
2026-04-20 02:07:34,867 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0d6dfb28-5568-4300-a6cc-f19741ac9d13
2026-04-20 02:07:34,872 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0d6dfb28-5568-4300-a6cc-f19741ac9d13
2026-04-20 02:07:34,877 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/3edb0c56-a70c-4735-ac07-8f8e13437bb9
2026-04-20 02:07:34,881 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 02:07:34,881 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/677c9b8b-bf15-45c8-a910-8cf3d85183fc
2026-04-20 02:07:34,888 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0d6dfb28-5568-4300-a6cc-f19741ac9d13
2026-04-20 02:07:34,898 - INFO - Verified VN network id 12 for VN 677c9b8b-bf15-45c8-a910-8cf3d85183fc
2026-04-20 02:07:34,898 - INFO - Verifications in API Server for VN ctest-vn-45369298 passed
2026-04-20 02:07:34,899 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/677c9b8b-bf15-45c8-a910-8cf3d85183fc
2026-04-20 02:07:34,905 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0d6dfb28-5568-4300-a6cc-f19741ac9d13
2026-04-20 02:07:34,910 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/0d6dfb28-5568-4300-a6cc-f19741ac9d13
2026-04-20 02:07:34,915 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/3edb0c56-a70c-4735-ac07-8f8e13437bb9
2026-04-20 02:07:34,923 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42059610:ctest-vn-45369298', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42059610', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7457006107527300552', 'uuid-lslong': '12182391970971354108'}, 'enable': 'true', 'created': '2026-04-20T02:07:32', 'last-modified': '2026-04-20T02:07:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.859216'}
2026-04-20 02:07:34,928 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 02:07:34,928 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45369298 passed
2026-04-20 02:07:34,929 - DEBUG - ====Verifying policy data for ctest-vn-45369298 in API_Server ======
2026-04-20 02:07:34,929 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-04-20 02:07:34,932 - DEBUG - Requesting: http://10.0.0.41:8082/domain/8dbe7c18-3fac-4f6b-8993-d8c652ef417b
2026-04-20 02:07:34,941 - DEBUG - Requesting: http://10.0.0.41:8082/project/e4da5c92-1f1b-4380-9d51-031ec780faf1
2026-04-20 02:07:35,005 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/677c9b8b-bf15-45c8-a910-8cf3d85183fc
2026-04-20 02:07:35,013 - DEBUG - ==>Verifying data for policy with id: db6370b7-6b8d-476d-9612-a6cba42dea83, fqn: ['default-domain', 'ctest-TestBasicPolicy-42059610', 'ctest-policy-allow-all-74727563']
2026-04-20 02:07:35,013 - INFO - VN ctest-vn-45369298 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 02:07:35,013 - DEBUG - Verifying the vn in opserver
2026-04-20 02:07:35,013 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42059610:ctest-vn-45369298 virtual network link through opserver 10.0.0.41
2026-04-20 02:07:35,013 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-04-20 02:07:35,303 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-04-20 02:07:35,359 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42059610:ctest-vn-45369298', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42059610:ctest-vn-45369298?flat'}
2026-04-20 02:07:35,359 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42059610:ctest-vn-45369298 is found in opserver
2026-04-20 02:07:35,367 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 02:07:35,371 - DEBUG - VRF ids for VN ctest-vn-45369298: {}
2026-04-20 02:07:35,371 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-04-20 02:07:35,376 - DEBUG - Requesting: http://10.0.0.41:8082/domain/8dbe7c18-3fac-4f6b-8993-d8c652ef417b
2026-04-20 02:07:35,385 - DEBUG - Requesting: http://10.0.0.41:8082/project/e4da5c92-1f1b-4380-9d51-031ec780faf1
2026-04-20 02:07:35,450 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/00a40eec-7644-48ab-b2ce-7680d4823cc6
2026-04-20 02:07:35,460 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/00a40eec-7644-48ab-b2ce-7680d4823cc6
2026-04-20 02:07:35,467 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/08acfcb7-b1b6-48d1-9176-93bcb5785336
2026-04-20 02:07:35,472 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/08acfcb7-b1b6-48d1-9176-93bcb5785336
2026-04-20 02:07:35,477 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c0442b69-20d6-4d01-8291-148ae955deaf
2026-04-20 02:07:35,482 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 02:07:35,482 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/00a40eec-7644-48ab-b2ce-7680d4823cc6
2026-04-20 02:07:35,489 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/08acfcb7-b1b6-48d1-9176-93bcb5785336
2026-04-20 02:07:35,498 - INFO - Verified VN network id 13 for VN 00a40eec-7644-48ab-b2ce-7680d4823cc6
2026-04-20 02:07:35,498 - INFO - Verifications in API Server for VN ctest-vn-20743724 passed
2026-04-20 02:07:35,498 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/00a40eec-7644-48ab-b2ce-7680d4823cc6
2026-04-20 02:07:35,505 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/08acfcb7-b1b6-48d1-9176-93bcb5785336
2026-04-20 02:07:35,511 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/08acfcb7-b1b6-48d1-9176-93bcb5785336
2026-04-20 02:07:35,516 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c0442b69-20d6-4d01-8291-148ae955deaf
2026-04-20 02:07:35,526 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42059610:ctest-vn-20743724', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42059610', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '46178304939804843', 'uuid-lslong': '12884365879646764230'}, 'enable': 'true', 'created': '2026-04-20T02:07:33', 'last-modified': '2026-04-20T02:07:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.250115'}
2026-04-20 02:07:35,531 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 02:07:35,531 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20743724 passed
2026-04-20 02:07:35,531 - DEBUG - ====Verifying policy data for ctest-vn-20743724 in API_Server ======
2026-04-20 02:07:35,531 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-04-20 02:07:35,536 - DEBUG - Requesting: http://10.0.0.41:8082/domain/8dbe7c18-3fac-4f6b-8993-d8c652ef417b
2026-04-20 02:07:35,544 - DEBUG - Requesting: http://10.0.0.41:8082/project/e4da5c92-1f1b-4380-9d51-031ec780faf1
2026-04-20 02:07:35,612 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/00a40eec-7644-48ab-b2ce-7680d4823cc6
2026-04-20 02:07:35,620 - DEBUG - ==>Verifying data for policy with id: db6370b7-6b8d-476d-9612-a6cba42dea83, fqn: ['default-domain', 'ctest-TestBasicPolicy-42059610', 'ctest-policy-allow-all-74727563']
2026-04-20 02:07:35,620 - INFO - VN ctest-vn-20743724 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 02:07:35,620 - DEBUG - Verifying the vn in opserver
2026-04-20 02:07:35,620 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42059610:ctest-vn-20743724 virtual network link through opserver 10.0.0.41
2026-04-20 02:07:35,620 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-04-20 02:07:35,628 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42059610:ctest-vn-20743724', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42059610:ctest-vn-20743724?flat'}
2026-04-20 02:07:35,628 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42059610:ctest-vn-20743724 is found in opserver
2026-04-20 02:07:35,636 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 02:07:35,641 - DEBUG - VRF ids for VN ctest-vn-20743724: {}
2026-04-20 02:07:35,692 - DEBUG - Services list from nova: [