2026-04-27 02:31:19,268 - INFO - Domain Default found not creating
2026-04-27 02:31:19,465 - INFO - Project ctest-TestBasicPolicy-18407155 not found, creating it
2026-04-27 02:31:19,988 - INFO - Created Project:ctest-TestBasicPolicy-18407155, ID : 55c86cc0-f3db-43df-a9ae-3bac0cd24419
2026-04-27 02:31:21,624 - INFO - ================================================================================
2026-04-27 02:31:21,625 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-27 02:31:21,625 - 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-27 02:31:21,894 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-04-27 02:31:21,894 - INFO - Initial checks done. Running the testcase now
2026-04-27 02:31:21,894 - INFO -
2026-04-27 02:31:22,465 - DEBUG - Response for create_network : {'network': {'id': 'cdab599a-dfda-4874-ab7a-40ee13dd3368', 'name': 'ctest-vn-63912316', 'tenant_id': '55c86cc0f3db43dfa9ae3bac0cd24419', 'project_id': '55c86cc0f3db43dfa9ae3bac0cd24419', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18407155', 'ctest-vn-63912316'], 'port_security_enabled': True, 'description': ''}}
2026-04-27 02:31:22,624 - DEBUG - Response for create_subnet : {'subnet': {'id': '94a49f8c-6346-4087-980b-8cffe2e48361', 'name': '', 'tenant_id': '55c86cc0f3db43dfa9ae3bac0cd24419', 'network_id': 'cdab599a-dfda-4874-ab7a-40ee13dd3368', 'ip_version': 4, 'cidr': '114.246.95.0/26', 'allocation_pools': [{'start': '114.246.95.2', 'end': '114.246.95.62'}], 'gateway_ip': '114.246.95.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.246.95.2', 'tags': [], 'project_id': '55c86cc0f3db43dfa9ae3bac0cd24419'}}
2026-04-27 02:31:22,647 - INFO - Created VN ctest-vn-63912316
2026-04-27 02:31:22,704 - DEBUG - VN ctest-vn-63912316 UUID is cdab599a-dfda-4874-ab7a-40ee13dd3368
2026-04-27 02:31:22,998 - DEBUG - Response for create_network : {'network': {'id': 'bf88b685-d865-4424-82f1-1663f32d67e9', 'name': 'ctest-vn-22898624', 'tenant_id': '55c86cc0f3db43dfa9ae3bac0cd24419', 'project_id': '55c86cc0f3db43dfa9ae3bac0cd24419', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18407155', 'ctest-vn-22898624'], 'port_security_enabled': True, 'description': ''}}
2026-04-27 02:31:23,197 - DEBUG - Response for create_subnet : {'subnet': {'id': '65364f4e-b6f9-46c4-9e87-ad7ba98e17d2', 'name': '', 'tenant_id': '55c86cc0f3db43dfa9ae3bac0cd24419', 'network_id': 'bf88b685-d865-4424-82f1-1663f32d67e9', 'ip_version': 4, 'cidr': '73.217.178.128/26', 'allocation_pools': [{'start': '73.217.178.130', 'end': '73.217.178.190'}], 'gateway_ip': '73.217.178.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.217.178.130', 'tags': [], 'project_id': '55c86cc0f3db43dfa9ae3bac0cd24419'}}
2026-04-27 02:31:23,218 - INFO - Created VN ctest-vn-22898624
2026-04-27 02:31:23,271 - DEBUG - VN ctest-vn-22898624 UUID is bf88b685-d865-4424-82f1-1663f32d67e9
2026-04-27 02:31:23,387 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-18407155:ctest-vn-63912316, 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-18407155:ctest-vn-22898624, 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-27 02:31:23,686 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cdab599a-dfda-4874-ab7a-40ee13dd3368', 'name': 'ctest-vn-63912316', 'tenant_id': '55c86cc0f3db43dfa9ae3bac0cd24419', 'project_id': '55c86cc0f3db43dfa9ae3bac0cd24419', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94a49f8c-6346-4087-980b-8cffe2e48361'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18407155', 'ctest-vn-63912316'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18407155', 'ctest-policy-allow-all-46437953']], 'subnet_ipam': [{'subnet_cidr': '114.246.95.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-27 02:31:23,916 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bf88b685-d865-4424-82f1-1663f32d67e9', 'name': 'ctest-vn-22898624', 'tenant_id': '55c86cc0f3db43dfa9ae3bac0cd24419', 'project_id': '55c86cc0f3db43dfa9ae3bac0cd24419', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65364f4e-b6f9-46c4-9e87-ad7ba98e17d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-18407155', 'ctest-vn-22898624'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-18407155', 'ctest-policy-allow-all-46437953']], 'subnet_ipam': [{'subnet_cidr': '73.217.178.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-27 02:31:24,075 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-27 02:31:24,413 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-27 02:31:24,448 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6ef95ec9-b962-4488-9cea-6cb40a0a8a91
2026-04-27 02:31:24,461 - DEBUG - Requesting: http://10.0.0.38:8082/project/55c86cc0-f3db-43df-a9ae-3bac0cd24419
2026-04-27 02:31:24,538 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cdab599a-dfda-4874-ab7a-40ee13dd3368
2026-04-27 02:31:24,550 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cdab599a-dfda-4874-ab7a-40ee13dd3368
2026-04-27 02:31:24,562 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/768bec46-193c-4920-8b0e-54373b2cdd4c
2026-04-27 02:31:24,569 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/768bec46-193c-4920-8b0e-54373b2cdd4c
2026-04-27 02:31:24,577 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7402d075-f6a4-4f44-b665-4437716a1b52
2026-04-27 02:31:24,585 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-27 02:31:24,585 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cdab599a-dfda-4874-ab7a-40ee13dd3368
2026-04-27 02:31:24,595 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/768bec46-193c-4920-8b0e-54373b2cdd4c
2026-04-27 02:31:24,610 - INFO - Verified VN network id 11 for VN cdab599a-dfda-4874-ab7a-40ee13dd3368
2026-04-27 02:31:24,610 - INFO - Verifications in API Server for VN ctest-vn-63912316 passed
2026-04-27 02:31:24,611 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cdab599a-dfda-4874-ab7a-40ee13dd3368
2026-04-27 02:31:24,626 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/768bec46-193c-4920-8b0e-54373b2cdd4c
2026-04-27 02:31:24,634 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/768bec46-193c-4920-8b0e-54373b2cdd4c
2026-04-27 02:31:24,644 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7402d075-f6a4-4f44-b665-4437716a1b52
2026-04-27 02:31:24,657 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18407155:ctest-vn-63912316', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18407155', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14820037520508209268', 'uuid-lslong': '12356259918924034920'}, 'enable': 'true', 'created': '2026-04-27T02:31:22', 'last-modified': '2026-04-27T02:31:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.994977'}
2026-04-27 02:31:24,666 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-27 02:31:24,666 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63912316 passed
2026-04-27 02:31:24,666 - DEBUG - ====Verifying policy data for ctest-vn-63912316 in API_Server ======
2026-04-27 02:31:24,666 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-27 02:31:24,672 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6ef95ec9-b962-4488-9cea-6cb40a0a8a91
2026-04-27 02:31:24,685 - DEBUG - Requesting: http://10.0.0.38:8082/project/55c86cc0-f3db-43df-a9ae-3bac0cd24419
2026-04-27 02:31:24,761 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cdab599a-dfda-4874-ab7a-40ee13dd3368
2026-04-27 02:31:24,772 - DEBUG - ==>Verifying data for policy with id: 24f41f97-c79d-465c-8068-f5d5504ff18c, fqn: ['default-domain', 'ctest-TestBasicPolicy-18407155', 'ctest-policy-allow-all-46437953']
2026-04-27 02:31:24,772 - INFO - VN ctest-vn-63912316 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-27 02:31:24,772 - DEBUG - Verifying the vn in opserver
2026-04-27 02:31:24,772 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18407155:ctest-vn-63912316 virtual network link through opserver 10.0.0.38
2026-04-27 02:31:24,772 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-27 02:31:25,074 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-27 02:31:25,161 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18407155:ctest-vn-63912316', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18407155:ctest-vn-63912316?flat'}
2026-04-27 02:31:25,161 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18407155:ctest-vn-63912316 is found in opserver
2026-04-27 02:31:25,171 - DEBUG - Do not have enough data to verify VN in agent
2026-04-27 02:31:25,177 - DEBUG - VRF ids for VN ctest-vn-63912316: {}
2026-04-27 02:31:25,177 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-27 02:31:25,185 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6ef95ec9-b962-4488-9cea-6cb40a0a8a91
2026-04-27 02:31:25,200 - DEBUG - Requesting: http://10.0.0.38:8082/project/55c86cc0-f3db-43df-a9ae-3bac0cd24419
2026-04-27 02:31:25,276 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bf88b685-d865-4424-82f1-1663f32d67e9
2026-04-27 02:31:25,288 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bf88b685-d865-4424-82f1-1663f32d67e9
2026-04-27 02:31:25,298 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86291037-fe67-4b6f-8df4-fb4821d839b3
2026-04-27 02:31:25,306 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86291037-fe67-4b6f-8df4-fb4821d839b3
2026-04-27 02:31:25,314 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3f4f959e-131f-495b-8620-2f62af0a9625
2026-04-27 02:31:25,322 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-27 02:31:25,322 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bf88b685-d865-4424-82f1-1663f32d67e9
2026-04-27 02:31:25,332 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86291037-fe67-4b6f-8df4-fb4821d839b3
2026-04-27 02:31:25,348 - INFO - Verified VN network id 12 for VN bf88b685-d865-4424-82f1-1663f32d67e9
2026-04-27 02:31:25,348 - INFO - Verifications in API Server for VN ctest-vn-22898624 passed
2026-04-27 02:31:25,348 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bf88b685-d865-4424-82f1-1663f32d67e9
2026-04-27 02:31:25,357 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86291037-fe67-4b6f-8df4-fb4821d839b3
2026-04-27 02:31:25,365 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86291037-fe67-4b6f-8df4-fb4821d839b3
2026-04-27 02:31:25,376 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3f4f959e-131f-495b-8620-2f62af0a9625
2026-04-27 02:31:25,389 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-18407155:ctest-vn-22898624', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-18407155', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13801481744054305828', 'uuid-lslong': '9435347312855312361'}, 'enable': 'true', 'created': '2026-04-27T02:31:22', 'last-modified': '2026-04-27T02:31:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.494628'}
2026-04-27 02:31:25,395 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-27 02:31:25,395 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22898624 passed
2026-04-27 02:31:25,396 - DEBUG - ====Verifying policy data for ctest-vn-22898624 in API_Server ======
2026-04-27 02:31:25,396 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-27 02:31:25,401 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6ef95ec9-b962-4488-9cea-6cb40a0a8a91
2026-04-27 02:31:25,411 - DEBUG - Requesting: http://10.0.0.38:8082/project/55c86cc0-f3db-43df-a9ae-3bac0cd24419
2026-04-27 02:31:25,483 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bf88b685-d865-4424-82f1-1663f32d67e9
2026-04-27 02:31:25,495 - DEBUG - ==>Verifying data for policy with id: 24f41f97-c79d-465c-8068-f5d5504ff18c, fqn: ['default-domain', 'ctest-TestBasicPolicy-18407155', 'ctest-policy-allow-all-46437953']
2026-04-27 02:31:25,495 - INFO - VN ctest-vn-22898624 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-27 02:31:25,495 - DEBUG - Verifying the vn in opserver
2026-04-27 02:31:25,495 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-18407155:ctest-vn-22898624 virtual network link through opserver 10.0.0.38
2026-04-27 02:31:25,495 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-27 02:31:25,506 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-18407155:ctest-vn-22898624', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-18407155:ctest-vn-22898624?flat'}
2026-04-27 02:31:25,506 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-18407155:ctest-vn-22898624 is found in opserver
2026-04-27 02:31:25,516 - DEBUG - Do not have enough data to verify VN in agent
2026-04-27 02:31:25,522 - DEBUG - VRF ids for VN ctest-vn-22898624: {}
2026-04-27 02:31:25,582 - DEBUG - Services list from nova: [