2026-11-08 21:09:05,017 - INFO - Domain Default found not creating 2026-11-08 21:09:05,212 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42735000 not found, creating it 2026-11-08 21:09:05,724 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42735000, ID : b85231a6-0eda-459a-a40a-94a8c6603946 2026-11-08 21:09:07,556 - INFO - ================================================================================ 2026-11-08 21:09:07,556 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-08 21:09:07,827 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-11-08 21:09:07,827 - INFO - Initial checks done. Running the testcase now 2026-11-08 21:09:07,827 - INFO - 2026-11-08 21:09:07,827 - INFO - ================================================================================ 2026-11-08 21:09:07,827 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-08 21:09:07,827 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2026-11-08 21:09:08,126 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-11-08 21:09:08,126 - INFO - Initial checks done. Running the testcase now 2026-11-08 21:09:08,126 - INFO - 2026-11-08 21:09:08,570 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42735000:ctest-vn4-73480132, 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-TestBasicPolicyNegativeIpv4v6-42735000:ctest-vn4-73480132, 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, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42735000:ctest-vn4-73480132, 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-TestBasicPolicyNegativeIpv4v6-42735000:ctest-vn4-73480132, 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-11-08 21:09:09,115 - DEBUG - Response for create_network : {'network': {'id': '8e49c7ea-2bb8-4fd4-a0e5-721d772812a4', 'name': 'ctest-vn4-73480132', 'tenant_id': 'b85231a60eda459aa40a94a8c6603946', 'project_id': 'b85231a60eda459aa40a94a8c6603946', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42735000', 'ctest-vn4-73480132'], 'port_security_enabled': True, 'description': ''}} 2026-11-08 21:09:09,378 - DEBUG - Response for create_subnet : {'subnet': {'id': '743979bf-4654-438d-b890-71c319661b95', 'name': '', 'tenant_id': 'b85231a60eda459aa40a94a8c6603946', 'network_id': '8e49c7ea-2bb8-4fd4-a0e5-721d772812a4', 'ip_version': 4, 'cidr': '218.158.196.192/26', 'allocation_pools': [{'start': '218.158.196.194', 'end': '218.158.196.254'}], 'gateway_ip': '218.158.196.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.158.196.194', 'tags': [], 'project_id': 'b85231a60eda459aa40a94a8c6603946'}} 2026-11-08 21:09:09,618 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6ee68a3-36c1-43e1-90c2-b8b1216f43b0', 'name': '', 'tenant_id': 'b85231a60eda459aa40a94a8c6603946', 'network_id': '8e49c7ea-2bb8-4fd4-a0e5-721d772812a4', 'ip_version': 6, 'cidr': '25c1:a04e:8077:c7ee:6f5c:c1b2::/96', 'allocation_pools': [{'start': '25c1:a04e:8077:c7ee:6f5c:c1b2:0:2', 'end': '25c1:a04e:8077:c7ee:6f5c:c1b2:ffff:fffe'}], 'gateway_ip': '25c1:a04e:8077:c7ee:6f5c:c1b2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25c1:a04e:8077:c7ee:6f5c:c1b2:0:2', 'tags': [], 'project_id': 'b85231a60eda459aa40a94a8c6603946'}} 2026-11-08 21:09:09,644 - INFO - Created VN ctest-vn4-73480132 2026-11-08 21:09:09,698 - DEBUG - VN ctest-vn4-73480132 UUID is 8e49c7ea-2bb8-4fd4-a0e5-721d772812a4 2026-11-08 21:09:09,928 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8e49c7ea-2bb8-4fd4-a0e5-721d772812a4', 'name': 'ctest-vn4-73480132', 'tenant_id': 'b85231a60eda459aa40a94a8c6603946', 'project_id': 'b85231a60eda459aa40a94a8c6603946', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['743979bf-4654-438d-b890-71c319661b95', 'a6ee68a3-36c1-43e1-90c2-b8b1216f43b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42735000', 'ctest-vn4-73480132'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42735000', 'ctest-policy1-67770611']], 'subnet_ipam': [{'subnet_cidr': '218.158.196.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25c1:a04e:8077:c7ee:6f5c:c1b2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-08 21:09:10,094 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-08 21:09:10,465 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-08 21:09:10,494 - DEBUG - Requesting: http://10.0.0.185:8082/domain/0448e5a9-7a6a-4f45-912f-ee98dbea47f3 2026-11-08 21:09:10,508 - DEBUG - Requesting: http://10.0.0.185:8082/project/b85231a6-0eda-459a-a40a-94a8c6603946 2026-11-08 21:09:10,583 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/8e49c7ea-2bb8-4fd4-a0e5-721d772812a4 2026-11-08 21:09:10,599 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/8e49c7ea-2bb8-4fd4-a0e5-721d772812a4 2026-11-08 21:09:10,614 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/e8c14b19-3afc-4df0-8a27-e8fe9377672c 2026-11-08 21:09:10,623 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/e8c14b19-3afc-4df0-8a27-e8fe9377672c 2026-11-08 21:09:10,631 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/5d55861a-a3b3-44e3-b03e-c1fcc8e7e502 2026-11-08 21:09:10,640 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-08 21:09:10,640 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/8e49c7ea-2bb8-4fd4-a0e5-721d772812a4 2026-11-08 21:09:10,654 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/e8c14b19-3afc-4df0-8a27-e8fe9377672c 2026-11-08 21:09:10,673 - INFO - Verified VN network id 12 for VN 8e49c7ea-2bb8-4fd4-a0e5-721d772812a4 2026-11-08 21:09:10,673 - INFO - Verifications in API Server for VN ctest-vn4-73480132 passed 2026-11-08 21:09:10,673 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/8e49c7ea-2bb8-4fd4-a0e5-721d772812a4 2026-11-08 21:09:10,686 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/e8c14b19-3afc-4df0-8a27-e8fe9377672c 2026-11-08 21:09:10,693 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/e8c14b19-3afc-4df0-8a27-e8fe9377672c 2026-11-08 21:09:10,701 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/5d55861a-a3b3-44e3-b03e-c1fcc8e7e502 2026-11-08 21:09:10,716 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42735000:ctest-vn4-73480132', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42735000', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10252945835255418836', 'uuid-lslong': '11593798286613942948'}, 'enable': 'true', 'created': '2026-11-08T21:09:09', 'last-modified': '2026-11-08T21:09:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.825527'} 2026-11-08 21:09:10,724 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-08 21:09:10,724 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-73480132 passed 2026-11-08 21:09:10,724 - DEBUG - ====Verifying policy data for ctest-vn4-73480132 in API_Server ====== 2026-11-08 21:09:10,724 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-08 21:09:10,730 - DEBUG - Requesting: http://10.0.0.185:8082/domain/0448e5a9-7a6a-4f45-912f-ee98dbea47f3 2026-11-08 21:09:10,742 - DEBUG - Requesting: http://10.0.0.185:8082/project/b85231a6-0eda-459a-a40a-94a8c6603946 2026-11-08 21:09:10,822 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/8e49c7ea-2bb8-4fd4-a0e5-721d772812a4 2026-11-08 21:09:10,833 - DEBUG - ==>Verifying data for policy with id: c2331926-4dc2-4db7-b9e5-ba9e81567f85, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42735000', 'ctest-policy1-67770611'] 2026-11-08 21:09:10,833 - INFO - VN ctest-vn4-73480132 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-08 21:09:10,834 - DEBUG - Verifying the vn in opserver 2026-11-08 21:09:10,834 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42735000:ctest-vn4-73480132 virtual network link through opserver 10.0.0.185 2026-11-08 21:09:10,834 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-11-08 21:09:11,208 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-11-08 21:09:11,266 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42735000:ctest-vn4-73480132', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42735000:ctest-vn4-73480132?flat'} 2026-11-08 21:09:11,266 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42735000:ctest-vn4-73480132 is found in opserver 2026-11-08 21:09:11,280 - DEBUG - Do not have enough data to verify VN in agent 2026-11-08 21:09:11,287 - DEBUG - VRF ids for VN ctest-vn4-73480132: {} 2026-11-08 21:09:11,288 - DEBUG - ====Verifying data for ctest-policy1-67770611 in API_Server ====== 2026-11-08 21:09:11,288 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-08 21:09:11,294 - DEBUG - Requesting: http://10.0.0.185:8082/domain/0448e5a9-7a6a-4f45-912f-ee98dbea47f3 2026-11-08 21:09:11,305 - DEBUG - Requesting: http://10.0.0.185:8082/project/b85231a6-0eda-459a-a40a-94a8c6603946 2026-11-08 21:09:11,384 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/c2331926-4dc2-4db7-b9e5-ba9e81567f85 2026-11-08 21:09:11,395 - INFO - Verified policy ctest-policy1-67770611 in API Server, Result: True 2026-11-08 21:09:11,395 - INFO - Done with setup and verification, moving onto test .. 2026-11-08 21:09:11,407 - INFO - Deleting VN ctest-vn4-73480132 2026-11-08 21:09:11,534 - DEBUG - Response for deleting network () 2026-11-08 21:09:11,534 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/e8c14b19-3afc-4df0-8a27-e8fe9377672c 2026-11-08 21:09:11,540 - DEBUG - Response Code: 404 2026-11-08 21:09:11,541 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-08 21:09:11,546 - DEBUG - Requesting: http://10.0.0.185:8082/domain/0448e5a9-7a6a-4f45-912f-ee98dbea47f3 2026-11-08 21:09:11,599 - DEBUG - Requesting: http://10.0.0.185:8082/project/b85231a6-0eda-459a-a40a-94a8c6603946 2026-11-08 21:09:11,674 - INFO - Validated that VN ctest-vn4-73480132 is not found in API Server 2026-11-08 21:09:11,686 - DEBUG - VN ctest-vn4-73480132 is not present in Agent 10.0.0.185 2026-11-08 21:09:11,686 - INFO - Validated that VN ctest-vn4-73480132 is not in any agent 2026-11-08 21:09:11,704 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-73480132 info 2026-11-08 21:09:11,733 - INFO - Deleted policy ctest-policy1-67770611 2026-11-08 21:09:11,894 - DEBUG - policy ctest-policy1-67770611 is not found in API Server 2026-11-08 21:09:12,164 - DEBUG - No XMPP flaps were noticed during the test