2026-10-23 14:21:26,821 - INFO - Domain Default found not creating 2026-10-23 14:21:27,104 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-60974751 not found, creating it 2026-10-23 14:21:27,802 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-60974751, ID : 20b9fa7c-1336-4442-af00-74f5e90bcd7a 2026-10-23 14:21:29,836 - INFO - ================================================================================ 2026-10-23 14:21:29,836 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-23 14:21:30,119 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-10-23 14:21:30,119 - INFO - Initial checks done. Running the testcase now 2026-10-23 14:21:30,119 - INFO - 2026-10-23 14:21:30,119 - INFO - ================================================================================ 2026-10-23 14:21:30,119 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-23 14:21:30,119 - 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-10-23 14:21:30,427 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-10-23 14:21:30,427 - INFO - Initial checks done. Running the testcase now 2026-10-23 14:21:30,427 - INFO - 2026-10-23 14:21:30,952 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60974751:ctest-vn4-28700199, 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-60974751:ctest-vn4-28700199, 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-60974751:ctest-vn4-28700199, 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-60974751:ctest-vn4-28700199, 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-10-23 14:21:31,540 - DEBUG - Response for create_network : {'network': {'id': '34e14286-8974-4f4e-9ba3-eeafedb6a115', 'name': 'ctest-vn4-28700199', 'tenant_id': '20b9fa7c13364442af0074f5e90bcd7a', 'project_id': '20b9fa7c13364442af0074f5e90bcd7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60974751', 'ctest-vn4-28700199'], 'port_security_enabled': True, 'description': ''}} 2026-10-23 14:21:31,719 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bbb3d73-c8f0-4f26-91df-55341796200c', 'name': '', 'tenant_id': '20b9fa7c13364442af0074f5e90bcd7a', 'network_id': '34e14286-8974-4f4e-9ba3-eeafedb6a115', 'ip_version': 4, 'cidr': '168.197.176.192/26', 'allocation_pools': [{'start': '168.197.176.194', 'end': '168.197.176.254'}], 'gateway_ip': '168.197.176.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.197.176.194', 'tags': [], 'project_id': '20b9fa7c13364442af0074f5e90bcd7a'}} 2026-10-23 14:21:31,895 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a238f0c-68e1-4ae3-a8ad-b65d089dcd67', 'name': '', 'tenant_id': '20b9fa7c13364442af0074f5e90bcd7a', 'network_id': '34e14286-8974-4f4e-9ba3-eeafedb6a115', 'ip_version': 6, 'cidr': '2b56:64ca:a5bf:c093:9aa3:e038::/96', 'allocation_pools': [{'start': '2b56:64ca:a5bf:c093:9aa3:e038:0:2', 'end': '2b56:64ca:a5bf:c093:9aa3:e038:ffff:fffe'}], 'gateway_ip': '2b56:64ca:a5bf:c093:9aa3:e038:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b56:64ca:a5bf:c093:9aa3:e038:0:2', 'tags': [], 'project_id': '20b9fa7c13364442af0074f5e90bcd7a'}} 2026-10-23 14:21:31,921 - INFO - Created VN ctest-vn4-28700199 2026-10-23 14:21:31,982 - DEBUG - VN ctest-vn4-28700199 UUID is 34e14286-8974-4f4e-9ba3-eeafedb6a115 2026-10-23 14:21:32,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34e14286-8974-4f4e-9ba3-eeafedb6a115', 'name': 'ctest-vn4-28700199', 'tenant_id': '20b9fa7c13364442af0074f5e90bcd7a', 'project_id': '20b9fa7c13364442af0074f5e90bcd7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['1bbb3d73-c8f0-4f26-91df-55341796200c', '7a238f0c-68e1-4ae3-a8ad-b65d089dcd67'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60974751', 'ctest-vn4-28700199'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60974751', 'ctest-policy1-15649972']], 'subnet_ipam': [{'subnet_cidr': '168.197.176.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b56:64ca:a5bf:c093:9aa3:e038::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-23 14:21:32,409 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-23 14:21:32,835 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-23 14:21:32,879 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4189e7ba-60c7-4312-b19e-84ffbbe2755a 2026-10-23 14:21:32,895 - DEBUG - Requesting: http://10.0.0.38:8082/project/20b9fa7c-1336-4442-af00-74f5e90bcd7a 2026-10-23 14:21:32,980 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34e14286-8974-4f4e-9ba3-eeafedb6a115 2026-10-23 14:21:33,000 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34e14286-8974-4f4e-9ba3-eeafedb6a115 2026-10-23 14:21:33,012 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31c00bef-6133-4055-953e-29913a8d8a04 2026-10-23 14:21:33,021 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31c00bef-6133-4055-953e-29913a8d8a04 2026-10-23 14:21:33,030 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/97fc8ad0-81e4-4f75-b452-90c0c78e7a0c 2026-10-23 14:21:33,039 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-23 14:21:33,039 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34e14286-8974-4f4e-9ba3-eeafedb6a115 2026-10-23 14:21:33,052 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31c00bef-6133-4055-953e-29913a8d8a04 2026-10-23 14:21:33,072 - INFO - Verified VN network id 11 for VN 34e14286-8974-4f4e-9ba3-eeafedb6a115 2026-10-23 14:21:33,073 - INFO - Verifications in API Server for VN ctest-vn4-28700199 passed 2026-10-23 14:21:33,073 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34e14286-8974-4f4e-9ba3-eeafedb6a115 2026-10-23 14:21:33,085 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31c00bef-6133-4055-953e-29913a8d8a04 2026-10-23 14:21:33,095 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31c00bef-6133-4055-953e-29913a8d8a04 2026-10-23 14:21:33,103 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/97fc8ad0-81e4-4f75-b452-90c0c78e7a0c 2026-10-23 14:21:33,120 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60974751:ctest-vn4-28700199', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60974751', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3810399905331302222', 'uuid-lslong': '11215069936457523477'}, 'enable': 'true', 'created': '2026-10-23T14:21:31', 'last-modified': '2026-10-23T14:21:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.912711'} 2026-10-23 14:21:33,129 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-23 14:21:33,129 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28700199 passed 2026-10-23 14:21:33,130 - DEBUG - ====Verifying policy data for ctest-vn4-28700199 in API_Server ====== 2026-10-23 14:21:33,130 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-23 14:21:33,136 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4189e7ba-60c7-4312-b19e-84ffbbe2755a 2026-10-23 14:21:33,148 - DEBUG - Requesting: http://10.0.0.38:8082/project/20b9fa7c-1336-4442-af00-74f5e90bcd7a 2026-10-23 14:21:33,229 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/34e14286-8974-4f4e-9ba3-eeafedb6a115 2026-10-23 14:21:33,243 - DEBUG - ==>Verifying data for policy with id: adce13be-3751-425d-a5c8-95df680dc931, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60974751', 'ctest-policy1-15649972'] 2026-10-23 14:21:33,243 - INFO - VN ctest-vn4-28700199 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-23 14:21:33,243 - DEBUG - Verifying the vn in opserver 2026-10-23 14:21:33,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60974751:ctest-vn4-28700199 virtual network link through opserver 10.0.0.38 2026-10-23 14:21:33,243 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-23 14:21:33,661 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-23 14:21:33,749 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60974751:ctest-vn4-28700199', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60974751:ctest-vn4-28700199?flat'} 2026-10-23 14:21:33,749 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60974751:ctest-vn4-28700199 is found in opserver 2026-10-23 14:21:33,768 - DEBUG - Do not have enough data to verify VN in agent 2026-10-23 14:21:33,776 - DEBUG - VRF ids for VN ctest-vn4-28700199: {} 2026-10-23 14:21:33,777 - DEBUG - ====Verifying data for ctest-policy1-15649972 in API_Server ====== 2026-10-23 14:21:33,777 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-23 14:21:33,785 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4189e7ba-60c7-4312-b19e-84ffbbe2755a 2026-10-23 14:21:33,802 - DEBUG - Requesting: http://10.0.0.38:8082/project/20b9fa7c-1336-4442-af00-74f5e90bcd7a 2026-10-23 14:21:33,890 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/adce13be-3751-425d-a5c8-95df680dc931 2026-10-23 14:21:33,909 - INFO - Verified policy ctest-policy1-15649972 in API Server, Result: True 2026-10-23 14:21:33,909 - INFO - Done with setup and verification, moving onto test .. 2026-10-23 14:21:33,925 - INFO - Deleting VN ctest-vn4-28700199 2026-10-23 14:21:34,082 - DEBUG - Response for deleting network () 2026-10-23 14:21:34,083 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/31c00bef-6133-4055-953e-29913a8d8a04 2026-10-23 14:21:34,089 - DEBUG - Response Code: 404 2026-10-23 14:21:34,089 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-23 14:21:34,095 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4189e7ba-60c7-4312-b19e-84ffbbe2755a 2026-10-23 14:21:34,151 - DEBUG - Requesting: http://10.0.0.38:8082/project/20b9fa7c-1336-4442-af00-74f5e90bcd7a 2026-10-23 14:21:34,231 - INFO - Validated that VN ctest-vn4-28700199 is not found in API Server 2026-10-23 14:21:34,248 - DEBUG - VN ctest-vn4-28700199 is not present in Agent 10.0.0.38 2026-10-23 14:21:34,248 - INFO - Validated that VN ctest-vn4-28700199 is not in any agent 2026-10-23 14:21:34,271 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28700199 info 2026-10-23 14:21:34,301 - INFO - Deleted policy ctest-policy1-15649972 2026-10-23 14:21:34,477 - DEBUG - policy ctest-policy1-15649972 is not found in API Server 2026-10-23 14:21:34,753 - DEBUG - No XMPP flaps were noticed during the test
2026-10-23 14:21:34,753 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-23 14:21:34,754 - INFO - -------------------------------------------------------------------------------- 2026-10-23 14:21:35,064 - DEBUG - No XMPP flaps were noticed during the test
2026-10-23 14:21:35,064 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2026-10-23 14:21:35,064 - INFO - -------------------------------------------------------------------------------- 2026-10-23 14:21:35,899 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-60974751, ID : 20b9fa7c-1336-4442-af00-74f5e90bcd7a