2026-10-27 17:35:31,473 - INFO - Domain Default found not creating 2026-10-27 17:35:31,677 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-53576326 not found, creating it 2026-10-27 17:35:32,204 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-53576326, ID : 97d126db-a8e5-4604-a470-f5539aa72f4d 2026-10-27 17:35:34,045 - INFO - ================================================================================ 2026-10-27 17:35:34,045 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-27 17:35:34,305 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.14': '0'}} with 2026-10-27 17:35:34,306 - INFO - Initial checks done. Running the testcase now 2026-10-27 17:35:34,306 - INFO - 2026-10-27 17:35:34,306 - INFO - ================================================================================ 2026-10-27 17:35:34,306 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-27 17:35:34,306 - 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-27 17:35:34,597 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.14': '0'}} with 2026-10-27 17:35:34,597 - INFO - Initial checks done. Running the testcase now 2026-10-27 17:35:34,597 - INFO - 2026-10-27 17:35:35,049 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53576326:ctest-vn4-70714186, 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-53576326:ctest-vn4-70714186, 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-53576326:ctest-vn4-70714186, 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-53576326:ctest-vn4-70714186, 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-27 17:35:35,680 - DEBUG - Response for create_network : {'network': {'id': 'e7ff957a-a009-417e-8751-931b66c103b1', 'name': 'ctest-vn4-70714186', 'tenant_id': '97d126dba8e54604a470f5539aa72f4d', 'project_id': '97d126dba8e54604a470f5539aa72f4d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53576326', 'ctest-vn4-70714186'], 'port_security_enabled': True, 'description': ''}} 2026-10-27 17:35:35,908 - DEBUG - Response for create_subnet : {'subnet': {'id': '50222c37-9229-4081-9292-647833ffb7a5', 'name': '', 'tenant_id': '97d126dba8e54604a470f5539aa72f4d', 'network_id': 'e7ff957a-a009-417e-8751-931b66c103b1', 'ip_version': 4, 'cidr': '22.177.126.64/26', 'allocation_pools': [{'start': '22.177.126.66', 'end': '22.177.126.126'}], 'gateway_ip': '22.177.126.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.177.126.66', 'tags': [], 'project_id': '97d126dba8e54604a470f5539aa72f4d'}} 2026-10-27 17:35:36,116 - DEBUG - Response for create_subnet : {'subnet': {'id': '2096e74d-6f7e-4e56-8c8c-a74925d4b913', 'name': '', 'tenant_id': '97d126dba8e54604a470f5539aa72f4d', 'network_id': 'e7ff957a-a009-417e-8751-931b66c103b1', 'ip_version': 6, 'cidr': '2a74:6507:38db:2089:4dc0:a50::/96', 'allocation_pools': [{'start': '2a74:6507:38db:2089:4dc0:a50:0:2', 'end': '2a74:6507:38db:2089:4dc0:a50:ffff:fffe'}], 'gateway_ip': '2a74:6507:38db:2089:4dc0:a50:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a74:6507:38db:2089:4dc0:a50:0:2', 'tags': [], 'project_id': '97d126dba8e54604a470f5539aa72f4d'}} 2026-10-27 17:35:36,151 - INFO - Created VN ctest-vn4-70714186 2026-10-27 17:35:36,206 - DEBUG - VN ctest-vn4-70714186 UUID is e7ff957a-a009-417e-8751-931b66c103b1 2026-10-27 17:35:36,423 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e7ff957a-a009-417e-8751-931b66c103b1', 'name': 'ctest-vn4-70714186', 'tenant_id': '97d126dba8e54604a470f5539aa72f4d', 'project_id': '97d126dba8e54604a470f5539aa72f4d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['50222c37-9229-4081-9292-647833ffb7a5', '2096e74d-6f7e-4e56-8c8c-a74925d4b913'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53576326', 'ctest-vn4-70714186'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53576326', 'ctest-policy1-21136975']], 'subnet_ipam': [{'subnet_cidr': '22.177.126.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a74:6507:38db:2089:4dc0:a50::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-27 17:35:36,591 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-10-27 17:35:36,960 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-10-27 17:35:36,989 - DEBUG - Requesting: http://10.0.0.189:8082/domain/15de4347-3b38-4739-a685-c53508fd382a 2026-10-27 17:35:37,003 - DEBUG - Requesting: http://10.0.0.189:8082/project/97d126db-a8e5-4604-a470-f5539aa72f4d 2026-10-27 17:35:37,085 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/e7ff957a-a009-417e-8751-931b66c103b1 2026-10-27 17:35:37,099 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/e7ff957a-a009-417e-8751-931b66c103b1 2026-10-27 17:35:37,110 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/63303fbc-fa92-4f70-a67f-b317ad00c467 2026-10-27 17:35:37,119 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/63303fbc-fa92-4f70-a67f-b317ad00c467 2026-10-27 17:35:37,128 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/d496e28b-7c9f-43a1-b3fd-be3c63836662 2026-10-27 17:35:37,135 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-27 17:35:37,135 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/e7ff957a-a009-417e-8751-931b66c103b1 2026-10-27 17:35:37,146 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/63303fbc-fa92-4f70-a67f-b317ad00c467 2026-10-27 17:35:37,163 - INFO - Verified VN network id 10 for VN e7ff957a-a009-417e-8751-931b66c103b1 2026-10-27 17:35:37,163 - INFO - Verifications in API Server for VN ctest-vn4-70714186 passed 2026-10-27 17:35:37,163 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/e7ff957a-a009-417e-8751-931b66c103b1 2026-10-27 17:35:37,177 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/63303fbc-fa92-4f70-a67f-b317ad00c467 2026-10-27 17:35:37,186 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/63303fbc-fa92-4f70-a67f-b317ad00c467 2026-10-27 17:35:37,194 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/d496e28b-7c9f-43a1-b3fd-be3c63836662 2026-10-27 17:35:37,208 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53576326:ctest-vn4-70714186', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-53576326', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16717244695726080382', 'uuid-lslong': '9750736414131159985'}, 'enable': 'true', 'created': '2026-10-27T17:35:35', 'last-modified': '2026-10-27T17:35:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.821224'} 2026-10-27 17:35:37,216 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-27 17:35:37,216 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70714186 passed 2026-10-27 17:35:37,216 - DEBUG - ====Verifying policy data for ctest-vn4-70714186 in API_Server ====== 2026-10-27 17:35:37,217 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-10-27 17:35:37,224 - DEBUG - Requesting: http://10.0.0.189:8082/domain/15de4347-3b38-4739-a685-c53508fd382a 2026-10-27 17:35:37,240 - DEBUG - Requesting: http://10.0.0.189:8082/project/97d126db-a8e5-4604-a470-f5539aa72f4d 2026-10-27 17:35:37,323 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/e7ff957a-a009-417e-8751-931b66c103b1 2026-10-27 17:35:37,335 - DEBUG - ==>Verifying data for policy with id: d1005261-7533-4831-be4e-b3c52a06b070, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53576326', 'ctest-policy1-21136975'] 2026-10-27 17:35:37,335 - INFO - VN ctest-vn4-70714186 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-27 17:35:37,335 - DEBUG - Verifying the vn in opserver 2026-10-27 17:35:37,335 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53576326:ctest-vn4-70714186 virtual network link through opserver 10.0.0.189 2026-10-27 17:35:37,336 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-10-27 17:35:37,704 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-10-27 17:35:37,758 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53576326:ctest-vn4-70714186', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53576326:ctest-vn4-70714186?flat'} 2026-10-27 17:35:37,758 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53576326:ctest-vn4-70714186 is found in opserver 2026-10-27 17:35:37,773 - DEBUG - Do not have enough data to verify VN in agent 2026-10-27 17:35:37,780 - DEBUG - VRF ids for VN ctest-vn4-70714186: {} 2026-10-27 17:35:37,780 - DEBUG - ====Verifying data for ctest-policy1-21136975 in API_Server ====== 2026-10-27 17:35:37,780 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-10-27 17:35:37,789 - DEBUG - Requesting: http://10.0.0.189:8082/domain/15de4347-3b38-4739-a685-c53508fd382a 2026-10-27 17:35:37,804 - DEBUG - Requesting: http://10.0.0.189:8082/project/97d126db-a8e5-4604-a470-f5539aa72f4d 2026-10-27 17:35:37,883 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/d1005261-7533-4831-be4e-b3c52a06b070 2026-10-27 17:35:37,894 - INFO - Verified policy ctest-policy1-21136975 in API Server, Result: True 2026-10-27 17:35:37,894 - INFO - Done with setup and verification, moving onto test .. 2026-10-27 17:35:37,905 - INFO - Deleting VN ctest-vn4-70714186 2026-10-27 17:35:38,071 - DEBUG - Response for deleting network () 2026-10-27 17:35:38,071 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/63303fbc-fa92-4f70-a67f-b317ad00c467 2026-10-27 17:35:38,078 - DEBUG - Response Code: 404 2026-10-27 17:35:38,078 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-10-27 17:35:38,085 - DEBUG - Requesting: http://10.0.0.189:8082/domain/15de4347-3b38-4739-a685-c53508fd382a 2026-10-27 17:35:38,141 - DEBUG - Requesting: http://10.0.0.189:8082/project/97d126db-a8e5-4604-a470-f5539aa72f4d 2026-10-27 17:35:38,219 - INFO - Validated that VN ctest-vn4-70714186 is not found in API Server 2026-10-27 17:35:38,231 - DEBUG - VN ctest-vn4-70714186 is not present in Agent 10.0.0.189 2026-10-27 17:35:38,231 - INFO - Validated that VN ctest-vn4-70714186 is not in any agent 2026-10-27 17:35:38,246 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70714186 info 2026-10-27 17:35:38,274 - INFO - Deleted policy ctest-policy1-21136975 2026-10-27 17:35:38,450 - DEBUG - policy ctest-policy1-21136975 is not found in API Server 2026-10-27 17:35:38,720 - DEBUG - No XMPP flaps were noticed during the test