2026-09-04 11:48:33,433 - INFO - Domain Default found not creating
2026-09-04 11:48:33,560 - INFO - Project ctest-TestBasicPolicy-20928534 not found, creating it
2026-09-04 11:48:33,991 - INFO - Created Project:ctest-TestBasicPolicy-20928534, ID : 2501bf63-0e7c-4822-bec4-994f0fe24645
2026-09-04 11:48:35,436 - INFO - ================================================================================
2026-09-04 11:48:35,436 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-04 11:48:35,436 - 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-09-04 11:48:35,702 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-09-04 11:48:35,702 - INFO - Initial checks done. Running the testcase now
2026-09-04 11:48:35,702 - INFO -
2026-09-04 11:48:36,276 - DEBUG - Response for create_network : {'network': {'id': '748d6b78-fda7-4af0-a1a0-4d91d160dc66', 'name': 'ctest-vn-46913747', 'tenant_id': '2501bf630e7c4822bec4994f0fe24645', 'project_id': '2501bf630e7c4822bec4994f0fe24645', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20928534', 'ctest-vn-46913747'], 'port_security_enabled': True, 'description': ''}}
2026-09-04 11:48:36,475 - DEBUG - Response for create_subnet : {'subnet': {'id': '67cc34a9-bf39-4bd0-9847-69e31ecf5ecb', 'name': '', 'tenant_id': '2501bf630e7c4822bec4994f0fe24645', 'network_id': '748d6b78-fda7-4af0-a1a0-4d91d160dc66', 'ip_version': 4, 'cidr': '122.73.83.192/26', 'allocation_pools': [{'start': '122.73.83.194', 'end': '122.73.83.254'}], 'gateway_ip': '122.73.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.73.83.194', 'tags': [], 'project_id': '2501bf630e7c4822bec4994f0fe24645'}}
2026-09-04 11:48:36,491 - INFO - Created VN ctest-vn-46913747
2026-09-04 11:48:36,548 - DEBUG - VN ctest-vn-46913747 UUID is 748d6b78-fda7-4af0-a1a0-4d91d160dc66
2026-09-04 11:48:36,859 - DEBUG - Response for create_network : {'network': {'id': 'c7d94ef4-cde8-4461-8f82-cafdd29fe9fe', 'name': 'ctest-vn-44333682', 'tenant_id': '2501bf630e7c4822bec4994f0fe24645', 'project_id': '2501bf630e7c4822bec4994f0fe24645', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20928534', 'ctest-vn-44333682'], 'port_security_enabled': True, 'description': ''}}
2026-09-04 11:48:37,029 - DEBUG - Response for create_subnet : {'subnet': {'id': '335898b6-d21e-4872-84f0-8b14764bf206', 'name': '', 'tenant_id': '2501bf630e7c4822bec4994f0fe24645', 'network_id': 'c7d94ef4-cde8-4461-8f82-cafdd29fe9fe', 'ip_version': 4, 'cidr': '116.51.226.128/26', 'allocation_pools': [{'start': '116.51.226.130', 'end': '116.51.226.190'}], 'gateway_ip': '116.51.226.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.51.226.130', 'tags': [], 'project_id': '2501bf630e7c4822bec4994f0fe24645'}}
2026-09-04 11:48:37,043 - INFO - Created VN ctest-vn-44333682
2026-09-04 11:48:37,092 - DEBUG - VN ctest-vn-44333682 UUID is c7d94ef4-cde8-4461-8f82-cafdd29fe9fe
2026-09-04 11:48:37,236 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20928534:ctest-vn-46913747, 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-20928534:ctest-vn-44333682, 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-09-04 11:48:37,536 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '748d6b78-fda7-4af0-a1a0-4d91d160dc66', 'name': 'ctest-vn-46913747', 'tenant_id': '2501bf630e7c4822bec4994f0fe24645', 'project_id': '2501bf630e7c4822bec4994f0fe24645', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['67cc34a9-bf39-4bd0-9847-69e31ecf5ecb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20928534', 'ctest-vn-46913747'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20928534', 'ctest-policy-allow-all-34648215']], 'subnet_ipam': [{'subnet_cidr': '122.73.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-04 11:48:37,761 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c7d94ef4-cde8-4461-8f82-cafdd29fe9fe', 'name': 'ctest-vn-44333682', 'tenant_id': '2501bf630e7c4822bec4994f0fe24645', 'project_id': '2501bf630e7c4822bec4994f0fe24645', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['335898b6-d21e-4872-84f0-8b14764bf206'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20928534', 'ctest-vn-44333682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20928534', 'ctest-policy-allow-all-34648215']], 'subnet_ipam': [{'subnet_cidr': '116.51.226.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-04 11:48:37,924 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-04 11:48:38,243 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-04 11:48:38,267 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d792a2cb-d4da-49a8-b625-6075735d0b96
2026-09-04 11:48:38,277 - DEBUG - Requesting: http://10.0.0.38:8082/project/2501bf63-0e7c-4822-bec4-994f0fe24645
2026-09-04 11:48:38,350 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/748d6b78-fda7-4af0-a1a0-4d91d160dc66
2026-09-04 11:48:38,360 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/748d6b78-fda7-4af0-a1a0-4d91d160dc66
2026-09-04 11:48:38,367 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7476cb35-d345-4112-a85d-6623792b0707
2026-09-04 11:48:38,372 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7476cb35-d345-4112-a85d-6623792b0707
2026-09-04 11:48:38,377 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c6828588-4ec2-4374-a303-c32c533d5886
2026-09-04 11:48:38,382 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-04 11:48:38,382 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/748d6b78-fda7-4af0-a1a0-4d91d160dc66
2026-09-04 11:48:38,388 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7476cb35-d345-4112-a85d-6623792b0707
2026-09-04 11:48:38,398 - INFO - Verified VN network id 12 for VN 748d6b78-fda7-4af0-a1a0-4d91d160dc66
2026-09-04 11:48:38,398 - INFO - Verifications in API Server for VN ctest-vn-46913747 passed
2026-09-04 11:48:38,398 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/748d6b78-fda7-4af0-a1a0-4d91d160dc66
2026-09-04 11:48:38,405 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7476cb35-d345-4112-a85d-6623792b0707
2026-09-04 11:48:38,409 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7476cb35-d345-4112-a85d-6623792b0707
2026-09-04 11:48:38,414 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c6828588-4ec2-4374-a303-c32c533d5886
2026-09-04 11:48:38,425 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20928534:ctest-vn-46913747', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20928534', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8398487047511689968', 'uuid-lslong': '11646393925058485350'}, 'enable': 'true', 'created': '2026-09-04T11:48:36', 'last-modified': '2026-09-04T11:48:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.909994'}
2026-09-04 11:48:38,430 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-04 11:48:38,430 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46913747 passed
2026-09-04 11:48:38,430 - DEBUG - ====Verifying policy data for ctest-vn-46913747 in API_Server ======
2026-09-04 11:48:38,430 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-04 11:48:38,434 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d792a2cb-d4da-49a8-b625-6075735d0b96
2026-09-04 11:48:38,443 - DEBUG - Requesting: http://10.0.0.38:8082/project/2501bf63-0e7c-4822-bec4-994f0fe24645
2026-09-04 11:48:38,514 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/748d6b78-fda7-4af0-a1a0-4d91d160dc66
2026-09-04 11:48:38,523 - DEBUG - ==>Verifying data for policy with id: 86724451-635e-47a1-8343-0205e62255ee, fqn: ['default-domain', 'ctest-TestBasicPolicy-20928534', 'ctest-policy-allow-all-34648215']
2026-09-04 11:48:38,523 - INFO - VN ctest-vn-46913747 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-04 11:48:38,523 - DEBUG - Verifying the vn in opserver
2026-09-04 11:48:38,523 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20928534:ctest-vn-46913747 virtual network link through opserver 10.0.0.38
2026-09-04 11:48:38,523 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-04 11:48:38,845 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-04 11:48:38,890 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20928534:ctest-vn-46913747', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20928534:ctest-vn-46913747?flat'}
2026-09-04 11:48:38,890 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20928534:ctest-vn-46913747 is found in opserver
2026-09-04 11:48:38,899 - DEBUG - Do not have enough data to verify VN in agent
2026-09-04 11:48:38,903 - DEBUG - VRF ids for VN ctest-vn-46913747: {}
2026-09-04 11:48:38,903 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-04 11:48:38,908 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d792a2cb-d4da-49a8-b625-6075735d0b96
2026-09-04 11:48:38,917 - DEBUG - Requesting: http://10.0.0.38:8082/project/2501bf63-0e7c-4822-bec4-994f0fe24645
2026-09-04 11:48:38,989 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c7d94ef4-cde8-4461-8f82-cafdd29fe9fe
2026-09-04 11:48:39,000 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c7d94ef4-cde8-4461-8f82-cafdd29fe9fe
2026-09-04 11:48:39,008 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/13c722ac-95f7-4170-8cd7-76bed4d831e9
2026-09-04 11:48:39,014 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/13c722ac-95f7-4170-8cd7-76bed4d831e9
2026-09-04 11:48:39,019 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9b58463d-24ad-4f1f-8f8c-8dc0aa6d2ee4
2026-09-04 11:48:39,024 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-04 11:48:39,024 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c7d94ef4-cde8-4461-8f82-cafdd29fe9fe
2026-09-04 11:48:39,030 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/13c722ac-95f7-4170-8cd7-76bed4d831e9
2026-09-04 11:48:39,042 - INFO - Verified VN network id 13 for VN c7d94ef4-cde8-4461-8f82-cafdd29fe9fe
2026-09-04 11:48:39,042 - INFO - Verifications in API Server for VN ctest-vn-44333682 passed
2026-09-04 11:48:39,042 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c7d94ef4-cde8-4461-8f82-cafdd29fe9fe
2026-09-04 11:48:39,049 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/13c722ac-95f7-4170-8cd7-76bed4d831e9
2026-09-04 11:48:39,054 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/13c722ac-95f7-4170-8cd7-76bed4d831e9
2026-09-04 11:48:39,059 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9b58463d-24ad-4f1f-8f8c-8dc0aa6d2ee4
2026-09-04 11:48:39,068 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20928534:ctest-vn-44333682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20928534', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14400628096827409505', 'uuid-lslong': '10341050885905312254'}, 'enable': 'true', 'created': '2026-09-04T11:48:36', 'last-modified': '2026-09-04T11:48:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.325464'}
2026-09-04 11:48:39,074 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-04 11:48:39,074 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44333682 passed
2026-09-04 11:48:39,074 - DEBUG - ====Verifying policy data for ctest-vn-44333682 in API_Server ======
2026-09-04 11:48:39,074 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-09-04 11:48:39,078 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d792a2cb-d4da-49a8-b625-6075735d0b96
2026-09-04 11:48:39,088 - DEBUG - Requesting: http://10.0.0.38:8082/project/2501bf63-0e7c-4822-bec4-994f0fe24645
2026-09-04 11:48:39,157 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c7d94ef4-cde8-4461-8f82-cafdd29fe9fe
2026-09-04 11:48:39,167 - DEBUG - ==>Verifying data for policy with id: 86724451-635e-47a1-8343-0205e62255ee, fqn: ['default-domain', 'ctest-TestBasicPolicy-20928534', 'ctest-policy-allow-all-34648215']
2026-09-04 11:48:39,167 - INFO - VN ctest-vn-44333682 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-04 11:48:39,167 - DEBUG - Verifying the vn in opserver
2026-09-04 11:48:39,167 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20928534:ctest-vn-44333682 virtual network link through opserver 10.0.0.38
2026-09-04 11:48:39,167 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-09-04 11:48:39,176 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20928534:ctest-vn-44333682', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20928534:ctest-vn-44333682?flat'}
2026-09-04 11:48:39,176 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20928534:ctest-vn-44333682 is found in opserver
2026-09-04 11:48:39,185 - DEBUG - Do not have enough data to verify VN in agent
2026-09-04 11:48:39,190 - DEBUG - VRF ids for VN ctest-vn-44333682: {}
2026-09-04 11:48:39,250 - DEBUG - Services list from nova: [