2025-11-17 13:39:14,644 - INFO - Domain Default found not creating
2025-11-17 13:39:14,794 - INFO - Project ctest-TestBasicPolicy-83754086 not found, creating it
2025-11-17 13:39:15,225 - INFO - Created Project:ctest-TestBasicPolicy-83754086, ID : 9657e1d7-481d-4863-802d-f9bf51075664
2025-11-17 13:39:16,758 - INFO - ================================================================================
2025-11-17 13:39:16,758 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-17 13:39:16,758 - 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
2025-11-17 13:39:17,011 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-17 13:39:17,012 - INFO - Initial checks done. Running the testcase now
2025-11-17 13:39:17,012 - INFO -
2025-11-17 13:39:17,551 - DEBUG - Response for create_network : {'network': {'id': 'd696a7a7-6e8c-4099-b6ed-286590ae869b', 'name': 'ctest-vn-76794570', 'tenant_id': '9657e1d7481d4863802df9bf51075664', 'project_id': '9657e1d7481d4863802df9bf51075664', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83754086', 'ctest-vn-76794570'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 13:39:17,721 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b36320ba-5968-434a-bdc0-82f6663535b0', 'name': '', 'tenant_id': '9657e1d7481d4863802df9bf51075664', 'network_id': 'd696a7a7-6e8c-4099-b6ed-286590ae869b', 'ip_version': 4, 'cidr': '41.114.48.192/26', 'allocation_pools': [{'start': '41.114.48.194', 'end': '41.114.48.254'}], 'gateway_ip': '41.114.48.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.114.48.194', 'tags': [], 'project_id': '9657e1d7481d4863802df9bf51075664'}}
2025-11-17 13:39:17,736 - INFO - Created VN ctest-vn-76794570
2025-11-17 13:39:17,786 - DEBUG - VN ctest-vn-76794570 UUID is d696a7a7-6e8c-4099-b6ed-286590ae869b
2025-11-17 13:39:18,101 - DEBUG - Response for create_network : {'network': {'id': '4645fbdf-5899-4638-8040-29a52249c58e', 'name': 'ctest-vn-87688643', 'tenant_id': '9657e1d7481d4863802df9bf51075664', 'project_id': '9657e1d7481d4863802df9bf51075664', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83754086', 'ctest-vn-87688643'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 13:39:18,243 - DEBUG - Response for create_subnet : {'subnet': {'id': '9930caa1-0514-4f0c-85ed-f1529630ae47', 'name': '', 'tenant_id': '9657e1d7481d4863802df9bf51075664', 'network_id': '4645fbdf-5899-4638-8040-29a52249c58e', 'ip_version': 4, 'cidr': '2.124.54.192/26', 'allocation_pools': [{'start': '2.124.54.194', 'end': '2.124.54.254'}], 'gateway_ip': '2.124.54.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.124.54.194', 'tags': [], 'project_id': '9657e1d7481d4863802df9bf51075664'}}
2025-11-17 13:39:18,259 - INFO - Created VN ctest-vn-87688643
2025-11-17 13:39:18,310 - DEBUG - VN ctest-vn-87688643 UUID is 4645fbdf-5899-4638-8040-29a52249c58e
2025-11-17 13:39:18,454 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83754086:ctest-vn-76794570, 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-83754086:ctest-vn-87688643, 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]
2025-11-17 13:39:18,746 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd696a7a7-6e8c-4099-b6ed-286590ae869b', 'name': 'ctest-vn-76794570', 'tenant_id': '9657e1d7481d4863802df9bf51075664', 'project_id': '9657e1d7481d4863802df9bf51075664', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b36320ba-5968-434a-bdc0-82f6663535b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83754086', 'ctest-vn-76794570'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83754086', 'ctest-policy-allow-all-80801033']], 'subnet_ipam': [{'subnet_cidr': '41.114.48.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 13:39:18,972 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4645fbdf-5899-4638-8040-29a52249c58e', 'name': 'ctest-vn-87688643', 'tenant_id': '9657e1d7481d4863802df9bf51075664', 'project_id': '9657e1d7481d4863802df9bf51075664', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9930caa1-0514-4f0c-85ed-f1529630ae47'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83754086', 'ctest-vn-87688643'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83754086', 'ctest-policy-allow-all-80801033']], 'subnet_ipam': [{'subnet_cidr': '2.124.54.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 13:39:19,142 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 13:39:19,477 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 13:39:19,504 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c58d073e-9327-469b-ad4d-9a6ab2d466a4
2025-11-17 13:39:19,518 - DEBUG - Requesting: http://10.0.0.50:8082/project/9657e1d7-481d-4863-802d-f9bf51075664
2025-11-17 13:39:19,589 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d696a7a7-6e8c-4099-b6ed-286590ae869b
2025-11-17 13:39:19,600 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d696a7a7-6e8c-4099-b6ed-286590ae869b
2025-11-17 13:39:19,609 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e41272b9-b60a-483f-8968-67c521777641
2025-11-17 13:39:19,616 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e41272b9-b60a-483f-8968-67c521777641
2025-11-17 13:39:19,622 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f2dad04e-ad37-4ef7-ba78-0d47c3b1a5b5
2025-11-17 13:39:19,628 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 13:39:19,628 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d696a7a7-6e8c-4099-b6ed-286590ae869b
2025-11-17 13:39:19,640 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e41272b9-b60a-483f-8968-67c521777641
2025-11-17 13:39:19,655 - INFO - Verified VN network id 11 for VN d696a7a7-6e8c-4099-b6ed-286590ae869b
2025-11-17 13:39:19,655 - INFO - Verifications in API Server for VN ctest-vn-76794570 passed
2025-11-17 13:39:19,655 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d696a7a7-6e8c-4099-b6ed-286590ae869b
2025-11-17 13:39:19,664 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e41272b9-b60a-483f-8968-67c521777641
2025-11-17 13:39:19,671 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e41272b9-b60a-483f-8968-67c521777641
2025-11-17 13:39:19,678 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f2dad04e-ad37-4ef7-ba78-0d47c3b1a5b5
2025-11-17 13:39:19,691 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83754086:ctest-vn-76794570', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83754086', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15462730708179239065', 'uuid-lslong': '13181236101067474587'}, 'enable': 'true', 'created': '2025-11-17T13:39:17', 'last-modified': '2025-11-17T13:39:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964479'}
2025-11-17 13:39:19,697 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 13:39:19,697 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76794570 passed
2025-11-17 13:39:19,697 - DEBUG - ====Verifying policy data for ctest-vn-76794570 in API_Server ======
2025-11-17 13:39:19,697 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 13:39:19,702 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c58d073e-9327-469b-ad4d-9a6ab2d466a4
2025-11-17 13:39:19,713 - DEBUG - Requesting: http://10.0.0.50:8082/project/9657e1d7-481d-4863-802d-f9bf51075664
2025-11-17 13:39:19,783 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d696a7a7-6e8c-4099-b6ed-286590ae869b
2025-11-17 13:39:19,791 - DEBUG - ==>Verifying data for policy with id: 4babff2f-49bf-4c19-9913-d84dd3562ebe, fqn: ['default-domain', 'ctest-TestBasicPolicy-83754086', 'ctest-policy-allow-all-80801033']
2025-11-17 13:39:19,791 - INFO - VN ctest-vn-76794570 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 13:39:19,792 - DEBUG - Verifying the vn in opserver
2025-11-17 13:39:19,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83754086:ctest-vn-76794570 virtual network link through opserver 10.0.0.50
2025-11-17 13:39:19,792 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-17 13:39:20,112 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-17 13:39:20,166 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83754086:ctest-vn-76794570', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83754086:ctest-vn-76794570?flat'}
2025-11-17 13:39:20,166 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83754086:ctest-vn-76794570 is found in opserver
2025-11-17 13:39:20,175 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 13:39:20,180 - DEBUG - VRF ids for VN ctest-vn-76794570: {}
2025-11-17 13:39:20,180 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 13:39:20,186 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c58d073e-9327-469b-ad4d-9a6ab2d466a4
2025-11-17 13:39:20,198 - DEBUG - Requesting: http://10.0.0.50:8082/project/9657e1d7-481d-4863-802d-f9bf51075664
2025-11-17 13:39:20,267 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4645fbdf-5899-4638-8040-29a52249c58e
2025-11-17 13:39:20,278 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4645fbdf-5899-4638-8040-29a52249c58e
2025-11-17 13:39:20,287 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e2ccc56-c3d7-44d8-b80f-15a4b9a1d13e
2025-11-17 13:39:20,294 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e2ccc56-c3d7-44d8-b80f-15a4b9a1d13e
2025-11-17 13:39:20,300 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ac484d1a-638e-429a-8dee-9075782b2d2f
2025-11-17 13:39:20,307 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 13:39:20,307 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4645fbdf-5899-4638-8040-29a52249c58e
2025-11-17 13:39:20,315 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e2ccc56-c3d7-44d8-b80f-15a4b9a1d13e
2025-11-17 13:39:20,328 - INFO - Verified VN network id 12 for VN 4645fbdf-5899-4638-8040-29a52249c58e
2025-11-17 13:39:20,328 - INFO - Verifications in API Server for VN ctest-vn-87688643 passed
2025-11-17 13:39:20,329 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4645fbdf-5899-4638-8040-29a52249c58e
2025-11-17 13:39:20,338 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e2ccc56-c3d7-44d8-b80f-15a4b9a1d13e
2025-11-17 13:39:20,344 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0e2ccc56-c3d7-44d8-b80f-15a4b9a1d13e
2025-11-17 13:39:20,351 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ac484d1a-638e-429a-8dee-9075782b2d2f
2025-11-17 13:39:20,362 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83754086:ctest-vn-87688643', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83754086', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5063730292730709560', 'uuid-lslong': '9241432224585860494'}, 'enable': 'true', 'created': '2025-11-17T13:39:18', 'last-modified': '2025-11-17T13:39:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.414494'}
2025-11-17 13:39:20,367 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 13:39:20,367 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87688643 passed
2025-11-17 13:39:20,368 - DEBUG - ====Verifying policy data for ctest-vn-87688643 in API_Server ======
2025-11-17 13:39:20,368 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 13:39:20,375 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c58d073e-9327-469b-ad4d-9a6ab2d466a4
2025-11-17 13:39:20,384 - DEBUG - Requesting: http://10.0.0.50:8082/project/9657e1d7-481d-4863-802d-f9bf51075664
2025-11-17 13:39:20,455 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4645fbdf-5899-4638-8040-29a52249c58e
2025-11-17 13:39:20,472 - DEBUG - ==>Verifying data for policy with id: 4babff2f-49bf-4c19-9913-d84dd3562ebe, fqn: ['default-domain', 'ctest-TestBasicPolicy-83754086', 'ctest-policy-allow-all-80801033']
2025-11-17 13:39:20,472 - INFO - VN ctest-vn-87688643 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 13:39:20,472 - DEBUG - Verifying the vn in opserver
2025-11-17 13:39:20,472 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83754086:ctest-vn-87688643 virtual network link through opserver 10.0.0.50
2025-11-17 13:39:20,472 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-17 13:39:20,482 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83754086:ctest-vn-87688643', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83754086:ctest-vn-87688643?flat'}
2025-11-17 13:39:20,482 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83754086:ctest-vn-87688643 is found in opserver
2025-11-17 13:39:20,493 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 13:39:20,502 - DEBUG - VRF ids for VN ctest-vn-87688643: {}
2025-11-17 13:39:20,580 - DEBUG - Services list from nova: [