2026-10-30 02:53:37,685 - INFO - Domain Default found not creating 2026-10-30 02:53:37,809 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87045875 not found, creating it 2026-10-30 02:53:38,259 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87045875, ID : 26cda494-cde9-4f2b-ac71-0810539d1f77 2026-10-30 02:53:39,657 - INFO - ================================================================================ 2026-10-30 02:53:39,657 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-30 02:53:39,916 - DEBUG - Nothing to compare xmpp stats {'10.0.0.248': {'10.20.0.25': '0'}} with 2026-10-30 02:53:39,916 - INFO - Initial checks done. Running the testcase now 2026-10-30 02:53:39,916 - INFO - 2026-10-30 02:53:39,916 - INFO - ================================================================================ 2026-10-30 02:53:39,916 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-30 02:53:39,916 - 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-30 02:53:40,210 - DEBUG - Nothing to compare xmpp stats {'10.0.0.248': {'10.20.0.25': '0'}} with 2026-10-30 02:53:40,211 - INFO - Initial checks done. Running the testcase now 2026-10-30 02:53:40,211 - INFO - 2026-10-30 02:53:40,571 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87045875:ctest-vn4-91084774, 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-87045875:ctest-vn4-91084774, 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-87045875:ctest-vn4-91084774, 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-87045875:ctest-vn4-91084774, 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-30 02:53:41,074 - DEBUG - Response for create_network : {'network': {'id': '483c0743-179b-4440-8a61-f25b3455e23c', 'name': 'ctest-vn4-91084774', 'tenant_id': '26cda494cde94f2bac710810539d1f77', 'project_id': '26cda494cde94f2bac710810539d1f77', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87045875', 'ctest-vn4-91084774'], 'port_security_enabled': True, 'description': ''}} 2026-10-30 02:53:41,258 - DEBUG - Response for create_subnet : {'subnet': {'id': '75df666a-7e49-456e-a00a-3c3d32fd9e11', 'name': '', 'tenant_id': '26cda494cde94f2bac710810539d1f77', 'network_id': '483c0743-179b-4440-8a61-f25b3455e23c', 'ip_version': 4, 'cidr': '143.115.198.0/26', 'allocation_pools': [{'start': '143.115.198.2', 'end': '143.115.198.62'}], 'gateway_ip': '143.115.198.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.115.198.2', 'tags': [], 'project_id': '26cda494cde94f2bac710810539d1f77'}} 2026-10-30 02:53:41,450 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d7aa1b5-0ee4-4500-b6b9-c1995785aced', 'name': '', 'tenant_id': '26cda494cde94f2bac710810539d1f77', 'network_id': '483c0743-179b-4440-8a61-f25b3455e23c', 'ip_version': 6, 'cidr': '2fb0:241:4438:3ff4:40a9:4677::/96', 'allocation_pools': [{'start': '2fb0:241:4438:3ff4:40a9:4677:0:2', 'end': '2fb0:241:4438:3ff4:40a9:4677:ffff:fffe'}], 'gateway_ip': '2fb0:241:4438:3ff4:40a9:4677:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2fb0:241:4438:3ff4:40a9:4677:0:2', 'tags': [], 'project_id': '26cda494cde94f2bac710810539d1f77'}} 2026-10-30 02:53:41,464 - INFO - Created VN ctest-vn4-91084774 2026-10-30 02:53:41,515 - DEBUG - VN ctest-vn4-91084774 UUID is 483c0743-179b-4440-8a61-f25b3455e23c 2026-10-30 02:53:41,682 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '483c0743-179b-4440-8a61-f25b3455e23c', 'name': 'ctest-vn4-91084774', 'tenant_id': '26cda494cde94f2bac710810539d1f77', 'project_id': '26cda494cde94f2bac710810539d1f77', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['75df666a-7e49-456e-a00a-3c3d32fd9e11', '6d7aa1b5-0ee4-4500-b6b9-c1995785aced'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87045875', 'ctest-vn4-91084774'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87045875', 'ctest-policy1-78569698']], 'subnet_ipam': [{'subnet_cidr': '143.115.198.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2fb0:241:4438:3ff4:40a9:4677::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-30 02:53:41,843 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-10-30 02:53:42,156 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-10-30 02:53:42,178 - DEBUG - Requesting: http://10.0.0.248:8082/domain/fd578f58-c644-4f46-ad45-390e615dedb1 2026-10-30 02:53:42,188 - DEBUG - Requesting: http://10.0.0.248:8082/project/26cda494-cde9-4f2b-ac71-0810539d1f77 2026-10-30 02:53:42,256 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/483c0743-179b-4440-8a61-f25b3455e23c 2026-10-30 02:53:42,267 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/483c0743-179b-4440-8a61-f25b3455e23c 2026-10-30 02:53:42,280 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/18429319-5868-4fed-8c29-35f8b6ce1e0b 2026-10-30 02:53:42,285 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/18429319-5868-4fed-8c29-35f8b6ce1e0b 2026-10-30 02:53:42,290 - DEBUG - Requesting: http://10.0.0.248:8082/route-target/d1843cff-5513-493d-84d3-9f893f1c56d8 2026-10-30 02:53:42,295 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-30 02:53:42,295 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/483c0743-179b-4440-8a61-f25b3455e23c 2026-10-30 02:53:42,302 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/18429319-5868-4fed-8c29-35f8b6ce1e0b 2026-10-30 02:53:42,313 - INFO - Verified VN network id 12 for VN 483c0743-179b-4440-8a61-f25b3455e23c 2026-10-30 02:53:42,313 - INFO - Verifications in API Server for VN ctest-vn4-91084774 passed 2026-10-30 02:53:42,313 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/483c0743-179b-4440-8a61-f25b3455e23c 2026-10-30 02:53:42,320 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/18429319-5868-4fed-8c29-35f8b6ce1e0b 2026-10-30 02:53:42,325 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/18429319-5868-4fed-8c29-35f8b6ce1e0b 2026-10-30 02:53:42,330 - DEBUG - Requesting: http://10.0.0.248:8082/route-target/d1843cff-5513-493d-84d3-9f893f1c56d8 2026-10-30 02:53:42,342 - DEBUG - Control-node 10.0.0.248 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87045875:ctest-vn4-91084774', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87045875', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5205043254073705536', 'uuid-lslong': '9971517523508978236'}, 'enable': 'true', 'created': '2026-10-30T02:53:41', 'last-modified': '2026-10-30T02:53:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687898'} 2026-10-30 02:53:42,348 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-30 02:53:42,348 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-91084774 passed 2026-10-30 02:53:42,348 - DEBUG - ====Verifying policy data for ctest-vn4-91084774 in API_Server ====== 2026-10-30 02:53:42,348 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-10-30 02:53:42,353 - DEBUG - Requesting: http://10.0.0.248:8082/domain/fd578f58-c644-4f46-ad45-390e615dedb1 2026-10-30 02:53:42,363 - DEBUG - Requesting: http://10.0.0.248:8082/project/26cda494-cde9-4f2b-ac71-0810539d1f77 2026-10-30 02:53:42,435 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/483c0743-179b-4440-8a61-f25b3455e23c 2026-10-30 02:53:42,443 - DEBUG - ==>Verifying data for policy with id: 4d9af3cd-8499-471f-bc16-a3574eab7599, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87045875', 'ctest-policy1-78569698'] 2026-10-30 02:53:42,443 - INFO - VN ctest-vn4-91084774 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-30 02:53:42,443 - DEBUG - Verifying the vn in opserver 2026-10-30 02:53:42,443 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87045875:ctest-vn4-91084774 virtual network link through opserver 10.0.0.248 2026-10-30 02:53:42,443 - DEBUG - Requesting: http://10.0.0.248:8081/analytics/uves/virtual-networks 2026-10-30 02:53:42,762 - DEBUG - Requesting: http://10.0.0.248:8081/analytics/uves/virtual-networks 2026-10-30 02:53:42,806 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87045875:ctest-vn4-91084774', 'href': 'http://10.0.0.248:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87045875:ctest-vn4-91084774?flat'} 2026-10-30 02:53:42,806 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87045875:ctest-vn4-91084774 is found in opserver 2026-10-30 02:53:42,817 - DEBUG - Do not have enough data to verify VN in agent 2026-10-30 02:53:42,821 - DEBUG - VRF ids for VN ctest-vn4-91084774: {} 2026-10-30 02:53:42,821 - DEBUG - ====Verifying data for ctest-policy1-78569698 in API_Server ====== 2026-10-30 02:53:42,822 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-10-30 02:53:42,826 - DEBUG - Requesting: http://10.0.0.248:8082/domain/fd578f58-c644-4f46-ad45-390e615dedb1 2026-10-30 02:53:42,834 - DEBUG - Requesting: http://10.0.0.248:8082/project/26cda494-cde9-4f2b-ac71-0810539d1f77 2026-10-30 02:53:42,898 - DEBUG - Requesting: http://10.0.0.248:8082/network-policy/4d9af3cd-8499-471f-bc16-a3574eab7599 2026-10-30 02:53:42,907 - INFO - Verified policy ctest-policy1-78569698 in API Server, Result: True 2026-10-30 02:53:42,907 - INFO - Done with setup and verification, moving onto test .. 2026-10-30 02:53:42,914 - INFO - Deleting VN ctest-vn4-91084774 2026-10-30 02:53:43,038 - DEBUG - Response for deleting network () 2026-10-30 02:53:43,038 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/18429319-5868-4fed-8c29-35f8b6ce1e0b 2026-10-30 02:53:43,042 - DEBUG - Response Code: 404 2026-10-30 02:53:43,042 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-10-30 02:53:43,046 - DEBUG - Requesting: http://10.0.0.248:8082/domain/fd578f58-c644-4f46-ad45-390e615dedb1 2026-10-30 02:53:43,095 - DEBUG - Requesting: http://10.0.0.248:8082/project/26cda494-cde9-4f2b-ac71-0810539d1f77 2026-10-30 02:53:43,166 - INFO - Validated that VN ctest-vn4-91084774 is not found in API Server 2026-10-30 02:53:43,175 - DEBUG - VN ctest-vn4-91084774 is not present in Agent 10.0.0.248 2026-10-30 02:53:43,175 - INFO - Validated that VN ctest-vn4-91084774 is not in any agent 2026-10-30 02:53:43,189 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-91084774 info 2026-10-30 02:53:43,208 - INFO - Deleted policy ctest-policy1-78569698 2026-10-30 02:53:43,379 - DEBUG - policy ctest-policy1-78569698 is not found in API Server 2026-10-30 02:53:43,636 - DEBUG - No XMPP flaps were noticed during the test 2026-10-30 02:53:43,636 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-10-30 02:53:43,636 - INFO - -------------------------------------------------------------------------------- 2026-10-30 02:53:43,924 - DEBUG - No XMPP flaps were noticed during the test 2026-10-30 02:53:43,925 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-10-30 02:53:43,925 - INFO - -------------------------------------------------------------------------------- 2026-10-30 02:53:44,576 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-87045875, ID : 26cda494-cde9-4f2b-ac71-0810539d1f77