2026-06-19 17:28:52,734 - INFO - Domain Default found not creating 2026-06-19 17:28:52,890 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36323487 not found, creating it 2026-06-19 17:28:53,337 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36323487, ID : 3ddbc352-579a-49ee-953f-d927aae566cd 2026-06-19 17:28:54,921 - INFO - ================================================================================ 2026-06-19 17:28:54,921 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 17:28:55,176 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-06-19 17:28:55,176 - INFO - Initial checks done. Running the testcase now 2026-06-19 17:28:55,176 - INFO - 2026-06-19 17:28:55,177 - INFO - ================================================================================ 2026-06-19 17:28:55,177 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 17:28:55,177 - 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-06-19 17:28:55,464 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-06-19 17:28:55,464 - INFO - Initial checks done. Running the testcase now 2026-06-19 17:28:55,464 - INFO - 2026-06-19 17:28:55,891 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36323487:ctest-vn4-55224047, 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-36323487:ctest-vn4-55224047, 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-36323487:ctest-vn4-55224047, 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-36323487:ctest-vn4-55224047, 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-06-19 17:28:56,394 - DEBUG - Response for create_network : {'network': {'id': '7c214288-34c7-40db-9af0-bc5d0b9a6d28', 'name': 'ctest-vn4-55224047', 'tenant_id': '3ddbc352579a49ee953fd927aae566cd', 'project_id': '3ddbc352579a49ee953fd927aae566cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36323487', 'ctest-vn4-55224047'], 'port_security_enabled': True, 'description': ''}} 2026-06-19 17:28:56,580 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6cc0e94-e2af-4ed9-b977-4adc8ae68045', 'name': '', 'tenant_id': '3ddbc352579a49ee953fd927aae566cd', 'network_id': '7c214288-34c7-40db-9af0-bc5d0b9a6d28', 'ip_version': 4, 'cidr': '7.102.246.128/26', 'allocation_pools': [{'start': '7.102.246.130', 'end': '7.102.246.190'}], 'gateway_ip': '7.102.246.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.102.246.130', 'tags': [], 'project_id': '3ddbc352579a49ee953fd927aae566cd'}} 2026-06-19 17:28:56,779 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ceb9dc5-f33e-4ae9-a3b8-11f1b2b400e2', 'name': '', 'tenant_id': '3ddbc352579a49ee953fd927aae566cd', 'network_id': '7c214288-34c7-40db-9af0-bc5d0b9a6d28', 'ip_version': 6, 'cidr': '205b:1e63:ae18:697f:cb47:3239::/96', 'allocation_pools': [{'start': '205b:1e63:ae18:697f:cb47:3239:0:2', 'end': '205b:1e63:ae18:697f:cb47:3239:ffff:fffe'}], 'gateway_ip': '205b:1e63:ae18:697f:cb47:3239:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205b:1e63:ae18:697f:cb47:3239:0:2', 'tags': [], 'project_id': '3ddbc352579a49ee953fd927aae566cd'}} 2026-06-19 17:28:56,795 - INFO - Created VN ctest-vn4-55224047 2026-06-19 17:28:56,847 - DEBUG - VN ctest-vn4-55224047 UUID is 7c214288-34c7-40db-9af0-bc5d0b9a6d28 2026-06-19 17:28:57,024 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7c214288-34c7-40db-9af0-bc5d0b9a6d28', 'name': 'ctest-vn4-55224047', 'tenant_id': '3ddbc352579a49ee953fd927aae566cd', 'project_id': '3ddbc352579a49ee953fd927aae566cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6cc0e94-e2af-4ed9-b977-4adc8ae68045', '8ceb9dc5-f33e-4ae9-a3b8-11f1b2b400e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36323487', 'ctest-vn4-55224047'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36323487', 'ctest-policy1-84035971']], 'subnet_ipam': [{'subnet_cidr': '7.102.246.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '205b:1e63:ae18:697f:cb47:3239::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-19 17:28:57,188 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 17:28:57,551 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 17:28:57,574 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d754428f-4522-465f-aea6-66cab492d664 2026-06-19 17:28:57,585 - DEBUG - Requesting: http://10.0.0.19:8082/project/3ddbc352-579a-49ee-953f-d927aae566cd 2026-06-19 17:28:57,657 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7c214288-34c7-40db-9af0-bc5d0b9a6d28 2026-06-19 17:28:57,669 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7c214288-34c7-40db-9af0-bc5d0b9a6d28 2026-06-19 17:28:57,677 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/eedc2f43-8b71-4b01-b796-18d88e9a05d2 2026-06-19 17:28:57,682 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/eedc2f43-8b71-4b01-b796-18d88e9a05d2 2026-06-19 17:28:57,687 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e93523b0-6ddc-4f2c-99f7-e783c7d14c1c 2026-06-19 17:28:57,693 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 17:28:57,693 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7c214288-34c7-40db-9af0-bc5d0b9a6d28 2026-06-19 17:28:57,701 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/eedc2f43-8b71-4b01-b796-18d88e9a05d2 2026-06-19 17:28:57,712 - INFO - Verified VN network id 11 for VN 7c214288-34c7-40db-9af0-bc5d0b9a6d28 2026-06-19 17:28:57,712 - INFO - Verifications in API Server for VN ctest-vn4-55224047 passed 2026-06-19 17:28:57,712 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7c214288-34c7-40db-9af0-bc5d0b9a6d28 2026-06-19 17:28:57,720 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/eedc2f43-8b71-4b01-b796-18d88e9a05d2 2026-06-19 17:28:57,725 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/eedc2f43-8b71-4b01-b796-18d88e9a05d2 2026-06-19 17:28:57,730 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e93523b0-6ddc-4f2c-99f7-e783c7d14c1c 2026-06-19 17:28:57,739 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36323487:ctest-vn4-55224047', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36323487', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8944503487702974683', 'uuid-lslong': '11164630584064109864'}, 'enable': 'true', 'created': '2026-06-19T17:28:56', 'last-modified': '2026-06-19T17:28:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741626'} 2026-06-19 17:28:57,744 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 17:28:57,744 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55224047 passed 2026-06-19 17:28:57,745 - DEBUG - ====Verifying policy data for ctest-vn4-55224047 in API_Server ====== 2026-06-19 17:28:57,745 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 17:28:57,752 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d754428f-4522-465f-aea6-66cab492d664 2026-06-19 17:28:57,761 - DEBUG - Requesting: http://10.0.0.19:8082/project/3ddbc352-579a-49ee-953f-d927aae566cd 2026-06-19 17:28:57,832 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/7c214288-34c7-40db-9af0-bc5d0b9a6d28 2026-06-19 17:28:57,841 - DEBUG - ==>Verifying data for policy with id: b8870704-7212-4bc7-8052-e115ee583983, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36323487', 'ctest-policy1-84035971'] 2026-06-19 17:28:57,841 - INFO - VN ctest-vn4-55224047 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-19 17:28:57,841 - DEBUG - Verifying the vn in opserver 2026-06-19 17:28:57,841 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36323487:ctest-vn4-55224047 virtual network link through opserver 10.0.0.19 2026-06-19 17:28:57,842 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-19 17:28:58,206 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-19 17:28:58,251 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36323487:ctest-vn4-55224047', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36323487:ctest-vn4-55224047?flat'} 2026-06-19 17:28:58,251 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36323487:ctest-vn4-55224047 is found in opserver 2026-06-19 17:28:58,260 - DEBUG - Do not have enough data to verify VN in agent 2026-06-19 17:28:58,264 - DEBUG - VRF ids for VN ctest-vn4-55224047: {} 2026-06-19 17:28:58,264 - DEBUG - ====Verifying data for ctest-policy1-84035971 in API_Server ====== 2026-06-19 17:28:58,264 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 17:28:58,270 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d754428f-4522-465f-aea6-66cab492d664 2026-06-19 17:28:58,279 - DEBUG - Requesting: http://10.0.0.19:8082/project/3ddbc352-579a-49ee-953f-d927aae566cd 2026-06-19 17:28:58,345 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/b8870704-7212-4bc7-8052-e115ee583983 2026-06-19 17:28:58,354 - INFO - Verified policy ctest-policy1-84035971 in API Server, Result: True 2026-06-19 17:28:58,354 - INFO - Done with setup and verification, moving onto test .. 2026-06-19 17:28:58,360 - INFO - Deleting VN ctest-vn4-55224047 2026-06-19 17:28:58,468 - DEBUG - Response for deleting network () 2026-06-19 17:28:58,468 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/eedc2f43-8b71-4b01-b796-18d88e9a05d2 2026-06-19 17:28:58,472 - DEBUG - Response Code: 404 2026-06-19 17:28:58,472 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-19 17:28:58,477 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d754428f-4522-465f-aea6-66cab492d664 2026-06-19 17:28:58,532 - DEBUG - Requesting: http://10.0.0.19:8082/project/3ddbc352-579a-49ee-953f-d927aae566cd 2026-06-19 17:28:58,603 - INFO - Validated that VN ctest-vn4-55224047 is not found in API Server 2026-06-19 17:28:58,612 - DEBUG - VN ctest-vn4-55224047 is not present in Agent 10.0.0.19 2026-06-19 17:28:58,612 - INFO - Validated that VN ctest-vn4-55224047 is not in any agent 2026-06-19 17:28:58,626 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55224047 info 2026-06-19 17:28:58,658 - INFO - Deleted policy ctest-policy1-84035971 2026-06-19 17:28:58,819 - DEBUG - policy ctest-policy1-84035971 is not found in API Server 2026-06-19 17:28:59,073 - DEBUG - No XMPP flaps were noticed during the test