2026-06-08 02:14:25,783 - INFO - Domain Default found not creating 2026-06-08 02:14:25,976 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51330450 not found, creating it 2026-06-08 02:14:26,487 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51330450, ID : 27fe4107-6aa8-4db0-b521-7050f54251e1 2026-06-08 02:14:28,010 - INFO - ================================================================================ 2026-06-08 02:14:28,010 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-08 02:14:28,266 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-08 02:14:28,266 - INFO - Initial checks done. Running the testcase now 2026-06-08 02:14:28,266 - INFO - 2026-06-08 02:14:28,267 - INFO - ================================================================================ 2026-06-08 02:14:28,267 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-08 02:14:28,267 - 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-08 02:14:28,553 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-08 02:14:28,553 - INFO - Initial checks done. Running the testcase now 2026-06-08 02:14:28,553 - INFO - 2026-06-08 02:14:28,929 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51330450:ctest-vn4-38100961, 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-51330450:ctest-vn4-38100961, 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-51330450:ctest-vn4-38100961, 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-51330450:ctest-vn4-38100961, 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-08 02:14:29,471 - DEBUG - Response for create_network : {'network': {'id': 'fab3afe8-b29c-4a84-80c9-8445ea1a6bb5', 'name': 'ctest-vn4-38100961', 'tenant_id': '27fe41076aa84db0b5217050f54251e1', 'project_id': '27fe41076aa84db0b5217050f54251e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51330450', 'ctest-vn4-38100961'], 'port_security_enabled': True, 'description': ''}} 2026-06-08 02:14:29,693 - DEBUG - Response for create_subnet : {'subnet': {'id': '17fd63fe-764c-4639-a842-14f20e5915b7', 'name': '', 'tenant_id': '27fe41076aa84db0b5217050f54251e1', 'network_id': 'fab3afe8-b29c-4a84-80c9-8445ea1a6bb5', 'ip_version': 4, 'cidr': '130.235.55.0/26', 'allocation_pools': [{'start': '130.235.55.2', 'end': '130.235.55.62'}], 'gateway_ip': '130.235.55.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.235.55.2', 'tags': [], 'project_id': '27fe41076aa84db0b5217050f54251e1'}} 2026-06-08 02:14:29,868 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c092e060-3c07-4b9b-9f73-3d43d93bb9df', 'name': '', 'tenant_id': '27fe41076aa84db0b5217050f54251e1', 'network_id': 'fab3afe8-b29c-4a84-80c9-8445ea1a6bb5', 'ip_version': 6, 'cidr': '3413:62e8:bab5:b91e:d643:f0ef::/96', 'allocation_pools': [{'start': '3413:62e8:bab5:b91e:d643:f0ef:0:2', 'end': '3413:62e8:bab5:b91e:d643:f0ef:ffff:fffe'}], 'gateway_ip': '3413:62e8:bab5:b91e:d643:f0ef:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3413:62e8:bab5:b91e:d643:f0ef:0:2', 'tags': [], 'project_id': '27fe41076aa84db0b5217050f54251e1'}} 2026-06-08 02:14:29,892 - INFO - Created VN ctest-vn4-38100961 2026-06-08 02:14:29,943 - DEBUG - VN ctest-vn4-38100961 UUID is fab3afe8-b29c-4a84-80c9-8445ea1a6bb5 2026-06-08 02:14:30,172 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fab3afe8-b29c-4a84-80c9-8445ea1a6bb5', 'name': 'ctest-vn4-38100961', 'tenant_id': '27fe41076aa84db0b5217050f54251e1', 'project_id': '27fe41076aa84db0b5217050f54251e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17fd63fe-764c-4639-a842-14f20e5915b7', 'c092e060-3c07-4b9b-9f73-3d43d93bb9df'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51330450', 'ctest-vn4-38100961'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51330450', 'ctest-policy1-92191295']], 'subnet_ipam': [{'subnet_cidr': '130.235.55.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3413:62e8:bab5:b91e:d643:f0ef::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-08 02:14:30,343 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 02:14:30,641 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 02:14:30,677 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ec0f333-d896-42e6-88f1-d28f52d3ea4a 2026-06-08 02:14:30,693 - DEBUG - Requesting: http://10.0.0.38:8082/project/27fe4107-6aa8-4db0-b521-7050f54251e1 2026-06-08 02:14:30,769 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fab3afe8-b29c-4a84-80c9-8445ea1a6bb5 2026-06-08 02:14:30,781 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fab3afe8-b29c-4a84-80c9-8445ea1a6bb5 2026-06-08 02:14:30,791 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a721120e-8e53-4c0f-8a2e-4aa4be8206fc 2026-06-08 02:14:30,798 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a721120e-8e53-4c0f-8a2e-4aa4be8206fc 2026-06-08 02:14:30,806 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4cd89572-f153-4ee6-a43c-43e629a908ef 2026-06-08 02:14:30,813 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 02:14:30,813 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fab3afe8-b29c-4a84-80c9-8445ea1a6bb5 2026-06-08 02:14:30,839 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a721120e-8e53-4c0f-8a2e-4aa4be8206fc 2026-06-08 02:14:30,856 - INFO - Verified VN network id 11 for VN fab3afe8-b29c-4a84-80c9-8445ea1a6bb5 2026-06-08 02:14:30,856 - INFO - Verifications in API Server for VN ctest-vn4-38100961 passed 2026-06-08 02:14:30,856 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fab3afe8-b29c-4a84-80c9-8445ea1a6bb5 2026-06-08 02:14:30,869 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a721120e-8e53-4c0f-8a2e-4aa4be8206fc 2026-06-08 02:14:30,877 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a721120e-8e53-4c0f-8a2e-4aa4be8206fc 2026-06-08 02:14:30,884 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4cd89572-f153-4ee6-a43c-43e629a908ef 2026-06-08 02:14:30,896 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51330450:ctest-vn4-38100961', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51330450', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18064975944277052036', 'uuid-lslong': '9280093942988827573'}, 'enable': 'true', 'created': '2026-06-08T02:14:29', 'last-modified': '2026-06-08T02:14:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.763898'} 2026-06-08 02:14:30,903 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 02:14:30,903 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38100961 passed 2026-06-08 02:14:30,904 - DEBUG - ====Verifying policy data for ctest-vn4-38100961 in API_Server ====== 2026-06-08 02:14:30,904 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 02:14:30,911 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ec0f333-d896-42e6-88f1-d28f52d3ea4a 2026-06-08 02:14:30,924 - DEBUG - Requesting: http://10.0.0.38:8082/project/27fe4107-6aa8-4db0-b521-7050f54251e1 2026-06-08 02:14:30,997 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fab3afe8-b29c-4a84-80c9-8445ea1a6bb5 2026-06-08 02:14:31,009 - DEBUG - ==>Verifying data for policy with id: 4fcc3b21-b404-4a2d-95cb-f83695c65328, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51330450', 'ctest-policy1-92191295'] 2026-06-08 02:14:31,010 - INFO - VN ctest-vn4-38100961 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-08 02:14:31,010 - DEBUG - Verifying the vn in opserver 2026-06-08 02:14:31,010 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51330450:ctest-vn4-38100961 virtual network link through opserver 10.0.0.38 2026-06-08 02:14:31,010 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-08 02:14:31,310 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-08 02:14:31,377 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51330450:ctest-vn4-38100961', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51330450:ctest-vn4-38100961?flat'} 2026-06-08 02:14:31,377 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51330450:ctest-vn4-38100961 is found in opserver 2026-06-08 02:14:31,388 - DEBUG - Do not have enough data to verify VN in agent 2026-06-08 02:14:31,393 - DEBUG - VRF ids for VN ctest-vn4-38100961: {} 2026-06-08 02:14:31,393 - DEBUG - ====Verifying data for ctest-policy1-92191295 in API_Server ====== 2026-06-08 02:14:31,393 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 02:14:31,400 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ec0f333-d896-42e6-88f1-d28f52d3ea4a 2026-06-08 02:14:31,414 - DEBUG - Requesting: http://10.0.0.38:8082/project/27fe4107-6aa8-4db0-b521-7050f54251e1 2026-06-08 02:14:31,489 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/4fcc3b21-b404-4a2d-95cb-f83695c65328 2026-06-08 02:14:31,498 - INFO - Verified policy ctest-policy1-92191295 in API Server, Result: True 2026-06-08 02:14:31,498 - INFO - Done with setup and verification, moving onto test .. 2026-06-08 02:14:31,507 - INFO - Deleting VN ctest-vn4-38100961 2026-06-08 02:14:31,638 - DEBUG - Response for deleting network () 2026-06-08 02:14:31,638 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a721120e-8e53-4c0f-8a2e-4aa4be8206fc 2026-06-08 02:14:31,644 - DEBUG - Response Code: 404 2026-06-08 02:14:31,644 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 02:14:31,650 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1ec0f333-d896-42e6-88f1-d28f52d3ea4a 2026-06-08 02:14:31,705 - DEBUG - Requesting: http://10.0.0.38:8082/project/27fe4107-6aa8-4db0-b521-7050f54251e1 2026-06-08 02:14:31,783 - INFO - Validated that VN ctest-vn4-38100961 is not found in API Server 2026-06-08 02:14:31,792 - DEBUG - VN ctest-vn4-38100961 is not present in Agent 10.0.0.38 2026-06-08 02:14:31,792 - INFO - Validated that VN ctest-vn4-38100961 is not in any agent 2026-06-08 02:14:31,807 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38100961 info 2026-06-08 02:14:31,834 - INFO - Deleted policy ctest-policy1-92191295 2026-06-08 02:14:31,995 - DEBUG - policy ctest-policy1-92191295 is not found in API Server 2026-06-08 02:14:32,251 - DEBUG - No XMPP flaps were noticed during the test 2026-06-08 02:14:32,251 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-08 02:14:32,251 - INFO - -------------------------------------------------------------------------------- 2026-06-08 02:14:32,537 - DEBUG - No XMPP flaps were noticed during the test 2026-06-08 02:14:32,537 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-08 02:14:32,537 - INFO - -------------------------------------------------------------------------------- 2026-06-08 02:14:33,253 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-51330450, ID : 27fe4107-6aa8-4db0-b521-7050f54251e1