2026-03-13 16:58:58,281 - INFO - Domain Default found not creating
2026-03-13 16:58:58,489 - INFO - Project ctest-TestBasicPolicy-46973285 not found, creating it
2026-03-13 16:58:59,000 - INFO - Created Project:ctest-TestBasicPolicy-46973285, ID : 4976fe37-8ac7-4661-b7e4-368d77ac130d
2026-03-13 16:59:00,711 - INFO - ================================================================================
2026-03-13 16:59:00,711 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-13 16:59:00,711 - 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-03-13 16:59:00,982 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with
2026-03-13 16:59:00,982 - INFO - Initial checks done. Running the testcase now
2026-03-13 16:59:00,983 - INFO -
2026-03-13 16:59:01,614 - DEBUG - Response for create_network : {'network': {'id': '79e4e5ad-c9d0-4308-970a-1c58294eea3a', 'name': 'ctest-vn-36511054', 'tenant_id': '4976fe378ac74661b7e4368d77ac130d', 'project_id': '4976fe378ac74661b7e4368d77ac130d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46973285', 'ctest-vn-36511054'], 'port_security_enabled': True, 'description': ''}}
2026-03-13 16:59:01,851 - DEBUG - Response for create_subnet : {'subnet': {'id': '20e478e6-f8e7-4de9-b3f5-8cf6ff61f276', 'name': '', 'tenant_id': '4976fe378ac74661b7e4368d77ac130d', 'network_id': '79e4e5ad-c9d0-4308-970a-1c58294eea3a', 'ip_version': 4, 'cidr': '132.179.97.128/26', 'allocation_pools': [{'start': '132.179.97.130', 'end': '132.179.97.190'}], 'gateway_ip': '132.179.97.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.179.97.130', 'tags': [], 'project_id': '4976fe378ac74661b7e4368d77ac130d'}}
2026-03-13 16:59:01,873 - INFO - Created VN ctest-vn-36511054
2026-03-13 16:59:01,928 - DEBUG - VN ctest-vn-36511054 UUID is 79e4e5ad-c9d0-4308-970a-1c58294eea3a
2026-03-13 16:59:02,253 - DEBUG - Response for create_network : {'network': {'id': '47099973-852e-4721-a7eb-ad3b9299b484', 'name': 'ctest-vn-61005728', 'tenant_id': '4976fe378ac74661b7e4368d77ac130d', 'project_id': '4976fe378ac74661b7e4368d77ac130d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46973285', 'ctest-vn-61005728'], 'port_security_enabled': True, 'description': ''}}
2026-03-13 16:59:02,427 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b657c50-cf53-4712-863a-26d4ae00e882', 'name': '', 'tenant_id': '4976fe378ac74661b7e4368d77ac130d', 'network_id': '47099973-852e-4721-a7eb-ad3b9299b484', 'ip_version': 4, 'cidr': '223.110.165.0/26', 'allocation_pools': [{'start': '223.110.165.2', 'end': '223.110.165.62'}], 'gateway_ip': '223.110.165.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.110.165.2', 'tags': [], 'project_id': '4976fe378ac74661b7e4368d77ac130d'}}
2026-03-13 16:59:02,449 - INFO - Created VN ctest-vn-61005728
2026-03-13 16:59:02,504 - DEBUG - VN ctest-vn-61005728 UUID is 47099973-852e-4721-a7eb-ad3b9299b484
2026-03-13 16:59:02,622 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46973285:ctest-vn-36511054, 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-46973285:ctest-vn-61005728, 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-03-13 16:59:02,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '79e4e5ad-c9d0-4308-970a-1c58294eea3a', 'name': 'ctest-vn-36511054', 'tenant_id': '4976fe378ac74661b7e4368d77ac130d', 'project_id': '4976fe378ac74661b7e4368d77ac130d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20e478e6-f8e7-4de9-b3f5-8cf6ff61f276'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46973285', 'ctest-vn-36511054'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46973285', 'ctest-policy-allow-all-51666423']], 'subnet_ipam': [{'subnet_cidr': '132.179.97.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-13 16:59:03,185 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47099973-852e-4721-a7eb-ad3b9299b484', 'name': 'ctest-vn-61005728', 'tenant_id': '4976fe378ac74661b7e4368d77ac130d', 'project_id': '4976fe378ac74661b7e4368d77ac130d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3b657c50-cf53-4712-863a-26d4ae00e882'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46973285', 'ctest-vn-61005728'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46973285', 'ctest-policy-allow-all-51666423']], 'subnet_ipam': [{'subnet_cidr': '223.110.165.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-13 16:59:03,316 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-13 16:59:03,651 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-13 16:59:03,691 - DEBUG - Requesting: http://10.0.0.249:8082/domain/d29060aa-f28b-49a6-91a7-56c7bf313547
2026-03-13 16:59:03,740 - DEBUG - Requesting: http://10.0.0.249:8082/project/4976fe37-8ac7-4661-b7e4-368d77ac130d
2026-03-13 16:59:03,820 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/79e4e5ad-c9d0-4308-970a-1c58294eea3a
2026-03-13 16:59:03,831 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/79e4e5ad-c9d0-4308-970a-1c58294eea3a
2026-03-13 16:59:03,840 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/51f5f1ea-a9c5-42d5-8438-2c02e3abcf6f
2026-03-13 16:59:03,848 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/51f5f1ea-a9c5-42d5-8438-2c02e3abcf6f
2026-03-13 16:59:03,855 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7be2a7c4-30d8-43ba-af0e-098c09b5a283
2026-03-13 16:59:03,862 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-13 16:59:03,862 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/79e4e5ad-c9d0-4308-970a-1c58294eea3a
2026-03-13 16:59:03,871 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/51f5f1ea-a9c5-42d5-8438-2c02e3abcf6f
2026-03-13 16:59:03,886 - INFO - Verified VN network id 11 for VN 79e4e5ad-c9d0-4308-970a-1c58294eea3a
2026-03-13 16:59:03,886 - INFO - Verifications in API Server for VN ctest-vn-36511054 passed
2026-03-13 16:59:03,886 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/79e4e5ad-c9d0-4308-970a-1c58294eea3a
2026-03-13 16:59:03,895 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/51f5f1ea-a9c5-42d5-8438-2c02e3abcf6f
2026-03-13 16:59:03,902 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/51f5f1ea-a9c5-42d5-8438-2c02e3abcf6f
2026-03-13 16:59:03,909 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/7be2a7c4-30d8-43ba-af0e-098c09b5a283
2026-03-13 16:59:03,923 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46973285:ctest-vn-36511054', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46973285', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8783397707857281800', 'uuid-lslong': '10883542614469962298'}, 'enable': 'true', 'created': '2026-03-13T16:59:01', 'last-modified': '2026-03-13T16:59:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.015083'}
2026-03-13 16:59:03,931 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-13 16:59:03,931 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36511054 passed
2026-03-13 16:59:03,931 - DEBUG - ====Verifying policy data for ctest-vn-36511054 in API_Server ======
2026-03-13 16:59:03,931 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-13 16:59:03,937 - DEBUG - Requesting: http://10.0.0.249:8082/domain/d29060aa-f28b-49a6-91a7-56c7bf313547
2026-03-13 16:59:03,948 - DEBUG - Requesting: http://10.0.0.249:8082/project/4976fe37-8ac7-4661-b7e4-368d77ac130d
2026-03-13 16:59:04,023 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/79e4e5ad-c9d0-4308-970a-1c58294eea3a
2026-03-13 16:59:04,035 - DEBUG - ==>Verifying data for policy with id: 3cf545eb-a0d6-4396-adb1-a66e65a3df02, fqn: ['default-domain', 'ctest-TestBasicPolicy-46973285', 'ctest-policy-allow-all-51666423']
2026-03-13 16:59:04,035 - INFO - VN ctest-vn-36511054 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-13 16:59:04,036 - DEBUG - Verifying the vn in opserver
2026-03-13 16:59:04,036 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46973285:ctest-vn-36511054 virtual network link through opserver 10.0.0.249
2026-03-13 16:59:04,036 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-03-13 16:59:04,353 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-03-13 16:59:04,430 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46973285:ctest-vn-36511054', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46973285:ctest-vn-36511054?flat'}
2026-03-13 16:59:04,430 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46973285:ctest-vn-36511054 is found in opserver
2026-03-13 16:59:04,444 - DEBUG - Do not have enough data to verify VN in agent
2026-03-13 16:59:04,450 - DEBUG - VRF ids for VN ctest-vn-36511054: {}
2026-03-13 16:59:04,450 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-13 16:59:04,457 - DEBUG - Requesting: http://10.0.0.249:8082/domain/d29060aa-f28b-49a6-91a7-56c7bf313547
2026-03-13 16:59:04,471 - DEBUG - Requesting: http://10.0.0.249:8082/project/4976fe37-8ac7-4661-b7e4-368d77ac130d
2026-03-13 16:59:04,546 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47099973-852e-4721-a7eb-ad3b9299b484
2026-03-13 16:59:04,559 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47099973-852e-4721-a7eb-ad3b9299b484
2026-03-13 16:59:04,569 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e243f008-ae6a-4011-a8f9-361a3da905b9
2026-03-13 16:59:04,577 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e243f008-ae6a-4011-a8f9-361a3da905b9
2026-03-13 16:59:04,584 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b4d51e31-0c77-41f6-9ac7-26f904d8aacc
2026-03-13 16:59:04,591 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-13 16:59:04,591 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47099973-852e-4721-a7eb-ad3b9299b484
2026-03-13 16:59:04,603 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e243f008-ae6a-4011-a8f9-361a3da905b9
2026-03-13 16:59:04,618 - INFO - Verified VN network id 12 for VN 47099973-852e-4721-a7eb-ad3b9299b484
2026-03-13 16:59:04,618 - INFO - Verifications in API Server for VN ctest-vn-61005728 passed
2026-03-13 16:59:04,618 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47099973-852e-4721-a7eb-ad3b9299b484
2026-03-13 16:59:04,629 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e243f008-ae6a-4011-a8f9-361a3da905b9
2026-03-13 16:59:04,636 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e243f008-ae6a-4011-a8f9-361a3da905b9
2026-03-13 16:59:04,646 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b4d51e31-0c77-41f6-9ac7-26f904d8aacc
2026-03-13 16:59:04,660 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46973285:ctest-vn-61005728', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46973285', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5118791172917970721', 'uuid-lslong': '12099955295235191940'}, 'enable': 'true', 'created': '2026-03-13T16:59:02', 'last-modified': '2026-03-13T16:59:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.510765'}
2026-03-13 16:59:04,667 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-13 16:59:04,667 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61005728 passed
2026-03-13 16:59:04,668 - DEBUG - ====Verifying policy data for ctest-vn-61005728 in API_Server ======
2026-03-13 16:59:04,668 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-03-13 16:59:04,677 - DEBUG - Requesting: http://10.0.0.249:8082/domain/d29060aa-f28b-49a6-91a7-56c7bf313547
2026-03-13 16:59:04,689 - DEBUG - Requesting: http://10.0.0.249:8082/project/4976fe37-8ac7-4661-b7e4-368d77ac130d
2026-03-13 16:59:04,762 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/47099973-852e-4721-a7eb-ad3b9299b484
2026-03-13 16:59:04,772 - DEBUG - ==>Verifying data for policy with id: 3cf545eb-a0d6-4396-adb1-a66e65a3df02, fqn: ['default-domain', 'ctest-TestBasicPolicy-46973285', 'ctest-policy-allow-all-51666423']
2026-03-13 16:59:04,772 - INFO - VN ctest-vn-61005728 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-13 16:59:04,772 - DEBUG - Verifying the vn in opserver
2026-03-13 16:59:04,772 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46973285:ctest-vn-61005728 virtual network link through opserver 10.0.0.249
2026-03-13 16:59:04,773 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-03-13 16:59:04,782 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46973285:ctest-vn-61005728', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46973285:ctest-vn-61005728?flat'}
2026-03-13 16:59:04,782 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46973285:ctest-vn-61005728 is found in opserver
2026-03-13 16:59:04,791 - DEBUG - Do not have enough data to verify VN in agent
2026-03-13 16:59:04,796 - DEBUG - VRF ids for VN ctest-vn-61005728: {}
2026-03-13 16:59:04,857 - DEBUG - Services list from nova: [