2026-08-20 16:27:29,824 - INFO - Domain Default found not creating
2026-08-20 16:27:29,995 - INFO - Project ctest-TestBasicPolicy-15273638 not found, creating it
2026-08-20 16:27:30,481 - INFO - Created Project:ctest-TestBasicPolicy-15273638, ID : a6b61433-c259-4c07-a7f9-27531e7695b3
2026-08-20 16:27:32,186 - INFO - ================================================================================
2026-08-20 16:27:32,186 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-20 16:27:32,186 - 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-08-20 16:27:32,447 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with
2026-08-20 16:27:32,447 - INFO - Initial checks done. Running the testcase now
2026-08-20 16:27:32,447 - INFO -
2026-08-20 16:27:33,091 - DEBUG - Response for create_network : {'network': {'id': '00a4043f-07c1-41c0-9485-0b3afa86580e', 'name': 'ctest-vn-48229355', 'tenant_id': 'a6b61433c2594c07a7f927531e7695b3', 'project_id': 'a6b61433c2594c07a7f927531e7695b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15273638', 'ctest-vn-48229355'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 16:27:33,320 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b466c6e9-63af-43e0-aa2b-cd8cf252acc4', 'name': '', 'tenant_id': 'a6b61433c2594c07a7f927531e7695b3', 'network_id': '00a4043f-07c1-41c0-9485-0b3afa86580e', 'ip_version': 4, 'cidr': '188.224.164.0/26', 'allocation_pools': [{'start': '188.224.164.2', 'end': '188.224.164.62'}], 'gateway_ip': '188.224.164.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '188.224.164.2', 'tags': [], 'project_id': 'a6b61433c2594c07a7f927531e7695b3'}}
2026-08-20 16:27:33,338 - INFO - Created VN ctest-vn-48229355
2026-08-20 16:27:33,392 - DEBUG - VN ctest-vn-48229355 UUID is 00a4043f-07c1-41c0-9485-0b3afa86580e
2026-08-20 16:27:33,751 - DEBUG - Response for create_network : {'network': {'id': 'e3d3dd83-8405-4416-bfdd-9e27d80334d2', 'name': 'ctest-vn-87956503', 'tenant_id': 'a6b61433c2594c07a7f927531e7695b3', 'project_id': 'a6b61433c2594c07a7f927531e7695b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15273638', 'ctest-vn-87956503'], 'port_security_enabled': True, 'description': ''}}
2026-08-20 16:27:33,977 - DEBUG - Response for create_subnet : {'subnet': {'id': '279d7255-a5c9-40f9-a5df-69017e6d0558', 'name': '', 'tenant_id': 'a6b61433c2594c07a7f927531e7695b3', 'network_id': 'e3d3dd83-8405-4416-bfdd-9e27d80334d2', 'ip_version': 4, 'cidr': '92.41.81.128/26', 'allocation_pools': [{'start': '92.41.81.130', 'end': '92.41.81.190'}], 'gateway_ip': '92.41.81.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.41.81.130', 'tags': [], 'project_id': 'a6b61433c2594c07a7f927531e7695b3'}}
2026-08-20 16:27:33,995 - INFO - Created VN ctest-vn-87956503
2026-08-20 16:27:34,048 - DEBUG - VN ctest-vn-87956503 UUID is e3d3dd83-8405-4416-bfdd-9e27d80334d2
2026-08-20 16:27:34,168 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15273638:ctest-vn-48229355, 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-15273638:ctest-vn-87956503, 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-08-20 16:27:34,493 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00a4043f-07c1-41c0-9485-0b3afa86580e', 'name': 'ctest-vn-48229355', 'tenant_id': 'a6b61433c2594c07a7f927531e7695b3', 'project_id': 'a6b61433c2594c07a7f927531e7695b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b466c6e9-63af-43e0-aa2b-cd8cf252acc4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15273638', 'ctest-vn-48229355'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15273638', 'ctest-policy-allow-all-08709107']], 'subnet_ipam': [{'subnet_cidr': '188.224.164.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 16:27:34,727 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e3d3dd83-8405-4416-bfdd-9e27d80334d2', 'name': 'ctest-vn-87956503', 'tenant_id': 'a6b61433c2594c07a7f927531e7695b3', 'project_id': 'a6b61433c2594c07a7f927531e7695b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['279d7255-a5c9-40f9-a5df-69017e6d0558'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15273638', 'ctest-vn-87956503'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15273638', 'ctest-policy-allow-all-08709107']], 'subnet_ipam': [{'subnet_cidr': '92.41.81.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-20 16:27:34,892 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-20 16:27:35,270 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-20 16:27:35,300 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1cf4e91a-aa38-4f35-bffb-95c957c3cdb8
2026-08-20 16:27:35,314 - DEBUG - Requesting: http://10.0.0.38:8082/project/a6b61433-c259-4c07-a7f9-27531e7695b3
2026-08-20 16:27:35,395 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00a4043f-07c1-41c0-9485-0b3afa86580e
2026-08-20 16:27:35,408 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00a4043f-07c1-41c0-9485-0b3afa86580e
2026-08-20 16:27:35,418 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bb5a5031-0a43-4be7-90ce-2b1b318f5d7b
2026-08-20 16:27:35,427 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bb5a5031-0a43-4be7-90ce-2b1b318f5d7b
2026-08-20 16:27:35,436 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d1764402-1bbe-4f43-8135-a10fc878a1b3
2026-08-20 16:27:35,444 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 16:27:35,444 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00a4043f-07c1-41c0-9485-0b3afa86580e
2026-08-20 16:27:35,452 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bb5a5031-0a43-4be7-90ce-2b1b318f5d7b
2026-08-20 16:27:35,467 - INFO - Verified VN network id 11 for VN 00a4043f-07c1-41c0-9485-0b3afa86580e
2026-08-20 16:27:35,467 - INFO - Verifications in API Server for VN ctest-vn-48229355 passed
2026-08-20 16:27:35,467 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00a4043f-07c1-41c0-9485-0b3afa86580e
2026-08-20 16:27:35,475 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bb5a5031-0a43-4be7-90ce-2b1b318f5d7b
2026-08-20 16:27:35,482 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bb5a5031-0a43-4be7-90ce-2b1b318f5d7b
2026-08-20 16:27:35,490 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d1764402-1bbe-4f43-8135-a10fc878a1b3
2026-08-20 16:27:35,503 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15273638:ctest-vn-48229355', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15273638', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '46166564940104128', 'uuid-lslong': '10701972437454968846'}, 'enable': 'true', 'created': '2026-08-20T16:27:33', 'last-modified': '2026-08-20T16:27:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.050653'}
2026-08-20 16:27:35,512 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-20 16:27:35,512 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48229355 passed
2026-08-20 16:27:35,513 - DEBUG - ====Verifying policy data for ctest-vn-48229355 in API_Server ======
2026-08-20 16:27:35,513 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-20 16:27:35,519 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1cf4e91a-aa38-4f35-bffb-95c957c3cdb8
2026-08-20 16:27:35,530 - DEBUG - Requesting: http://10.0.0.38:8082/project/a6b61433-c259-4c07-a7f9-27531e7695b3
2026-08-20 16:27:35,608 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/00a4043f-07c1-41c0-9485-0b3afa86580e
2026-08-20 16:27:35,617 - DEBUG - ==>Verifying data for policy with id: 6a23f48b-b142-4990-96f3-f66590661f85, fqn: ['default-domain', 'ctest-TestBasicPolicy-15273638', 'ctest-policy-allow-all-08709107']
2026-08-20 16:27:35,618 - INFO - VN ctest-vn-48229355 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 16:27:35,618 - DEBUG - Verifying the vn in opserver
2026-08-20 16:27:35,618 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15273638:ctest-vn-48229355 virtual network link through opserver 10.0.0.38
2026-08-20 16:27:35,618 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-20 16:27:35,995 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-20 16:27:36,051 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15273638:ctest-vn-48229355', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15273638:ctest-vn-48229355?flat'}
2026-08-20 16:27:36,051 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15273638:ctest-vn-48229355 is found in opserver
2026-08-20 16:27:36,063 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 16:27:36,068 - DEBUG - VRF ids for VN ctest-vn-48229355: {}
2026-08-20 16:27:36,068 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-20 16:27:36,076 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1cf4e91a-aa38-4f35-bffb-95c957c3cdb8
2026-08-20 16:27:36,087 - DEBUG - Requesting: http://10.0.0.38:8082/project/a6b61433-c259-4c07-a7f9-27531e7695b3
2026-08-20 16:27:36,167 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e3d3dd83-8405-4416-bfdd-9e27d80334d2
2026-08-20 16:27:36,179 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e3d3dd83-8405-4416-bfdd-9e27d80334d2
2026-08-20 16:27:36,202 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e0985232-03e6-44ac-a21b-a2f0dc9e9197
2026-08-20 16:27:36,210 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e0985232-03e6-44ac-a21b-a2f0dc9e9197
2026-08-20 16:27:36,218 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ae79e616-2f56-485f-bb00-bbf3fdf0d89d
2026-08-20 16:27:36,226 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 16:27:36,226 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e3d3dd83-8405-4416-bfdd-9e27d80334d2
2026-08-20 16:27:36,235 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e0985232-03e6-44ac-a21b-a2f0dc9e9197
2026-08-20 16:27:36,253 - INFO - Verified VN network id 12 for VN e3d3dd83-8405-4416-bfdd-9e27d80334d2
2026-08-20 16:27:36,253 - INFO - Verifications in API Server for VN ctest-vn-87956503 passed
2026-08-20 16:27:36,253 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e3d3dd83-8405-4416-bfdd-9e27d80334d2
2026-08-20 16:27:36,262 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e0985232-03e6-44ac-a21b-a2f0dc9e9197
2026-08-20 16:27:36,271 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e0985232-03e6-44ac-a21b-a2f0dc9e9197
2026-08-20 16:27:36,279 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ae79e616-2f56-485f-bb00-bbf3fdf0d89d
2026-08-20 16:27:36,290 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15273638:ctest-vn-87956503', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15273638', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16416708623620981782', 'uuid-lslong': '13825380325062292690'}, 'enable': 'true', 'created': '2026-08-20T16:27:33', 'last-modified': '2026-08-20T16:27:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.591164'}
2026-08-20 16:27:36,298 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-20 16:27:36,298 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87956503 passed
2026-08-20 16:27:36,298 - DEBUG - ====Verifying policy data for ctest-vn-87956503 in API_Server ======
2026-08-20 16:27:36,298 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-08-20 16:27:36,304 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1cf4e91a-aa38-4f35-bffb-95c957c3cdb8
2026-08-20 16:27:36,315 - DEBUG - Requesting: http://10.0.0.38:8082/project/a6b61433-c259-4c07-a7f9-27531e7695b3
2026-08-20 16:27:36,410 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e3d3dd83-8405-4416-bfdd-9e27d80334d2
2026-08-20 16:27:36,420 - DEBUG - ==>Verifying data for policy with id: 6a23f48b-b142-4990-96f3-f66590661f85, fqn: ['default-domain', 'ctest-TestBasicPolicy-15273638', 'ctest-policy-allow-all-08709107']
2026-08-20 16:27:36,420 - INFO - VN ctest-vn-87956503 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-20 16:27:36,420 - DEBUG - Verifying the vn in opserver
2026-08-20 16:27:36,420 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15273638:ctest-vn-87956503 virtual network link through opserver 10.0.0.38
2026-08-20 16:27:36,420 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-08-20 16:27:36,431 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15273638:ctest-vn-87956503', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15273638:ctest-vn-87956503?flat'}
2026-08-20 16:27:36,431 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15273638:ctest-vn-87956503 is found in opserver
2026-08-20 16:27:36,444 - DEBUG - Do not have enough data to verify VN in agent
2026-08-20 16:27:36,450 - DEBUG - VRF ids for VN ctest-vn-87956503: {}
2026-08-20 16:27:36,508 - DEBUG - Services list from nova: [