2026-10-06 14:07:43,303 - INFO - Domain Default found not creating 2026-10-06 14:07:43,475 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51970157 not found, creating it 2026-10-06 14:07:43,954 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51970157, ID : d81a110f-96a6-49ec-9154-6c81bd53187c 2026-10-06 14:07:45,675 - INFO - ================================================================================ 2026-10-06 14:07:45,675 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-06 14:07:45,944 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-10-06 14:07:45,945 - INFO - Initial checks done. Running the testcase now 2026-10-06 14:07:45,945 - INFO - 2026-10-06 14:07:45,945 - INFO - ================================================================================ 2026-10-06 14:07:45,945 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-06 14:07:45,945 - 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-06 14:07:46,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-10-06 14:07:46,238 - INFO - Initial checks done. Running the testcase now 2026-10-06 14:07:46,238 - INFO - 2026-10-06 14:07:46,656 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51970157:ctest-vn4-10266261, 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-51970157:ctest-vn4-10266261, 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-51970157:ctest-vn4-10266261, 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-51970157:ctest-vn4-10266261, 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-06 14:07:47,163 - DEBUG - Response for create_network : {'network': {'id': '2d3ccbd8-09c6-49a2-96bf-8065293a5c7a', 'name': 'ctest-vn4-10266261', 'tenant_id': 'd81a110f96a649ec91546c81bd53187c', 'project_id': 'd81a110f96a649ec91546c81bd53187c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51970157', 'ctest-vn4-10266261'], 'port_security_enabled': True, 'description': ''}} 2026-10-06 14:07:47,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bb50caf-f948-4ad1-80cc-81b6756f4caa', 'name': '', 'tenant_id': 'd81a110f96a649ec91546c81bd53187c', 'network_id': '2d3ccbd8-09c6-49a2-96bf-8065293a5c7a', 'ip_version': 4, 'cidr': '124.208.119.192/26', 'allocation_pools': [{'start': '124.208.119.194', 'end': '124.208.119.254'}], 'gateway_ip': '124.208.119.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.208.119.194', 'tags': [], 'project_id': 'd81a110f96a649ec91546c81bd53187c'}} 2026-10-06 14:07:47,500 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e16f8a9e-9006-4a6e-be75-f78367f3333f', 'name': '', 'tenant_id': 'd81a110f96a649ec91546c81bd53187c', 'network_id': '2d3ccbd8-09c6-49a2-96bf-8065293a5c7a', 'ip_version': 6, 'cidr': '24b2:f62b:722b:4785:eba5:31cf::/96', 'allocation_pools': [{'start': '24b2:f62b:722b:4785:eba5:31cf:0:2', 'end': '24b2:f62b:722b:4785:eba5:31cf:ffff:fffe'}], 'gateway_ip': '24b2:f62b:722b:4785:eba5:31cf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24b2:f62b:722b:4785:eba5:31cf:0:2', 'tags': [], 'project_id': 'd81a110f96a649ec91546c81bd53187c'}} 2026-10-06 14:07:47,517 - INFO - Created VN ctest-vn4-10266261 2026-10-06 14:07:47,570 - DEBUG - VN ctest-vn4-10266261 UUID is 2d3ccbd8-09c6-49a2-96bf-8065293a5c7a 2026-10-06 14:07:47,764 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d3ccbd8-09c6-49a2-96bf-8065293a5c7a', 'name': 'ctest-vn4-10266261', 'tenant_id': 'd81a110f96a649ec91546c81bd53187c', 'project_id': 'd81a110f96a649ec91546c81bd53187c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['1bb50caf-f948-4ad1-80cc-81b6756f4caa', 'e16f8a9e-9006-4a6e-be75-f78367f3333f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51970157', 'ctest-vn4-10266261'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51970157', 'ctest-policy1-50441917']], 'subnet_ipam': [{'subnet_cidr': '124.208.119.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24b2:f62b:722b:4785:eba5:31cf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-06 14:07:47,926 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-06 14:07:48,288 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-06 14:07:48,313 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6fe11d4-5dc3-4540-b9e3-015a4ebd142c 2026-10-06 14:07:48,324 - DEBUG - Requesting: http://10.0.0.38:8082/project/d81a110f-96a6-49ec-9154-6c81bd53187c 2026-10-06 14:07:48,402 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d3ccbd8-09c6-49a2-96bf-8065293a5c7a 2026-10-06 14:07:48,414 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d3ccbd8-09c6-49a2-96bf-8065293a5c7a 2026-10-06 14:07:48,424 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77abee4e-dfb8-4041-9c38-86dbd8efa8bd 2026-10-06 14:07:48,432 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77abee4e-dfb8-4041-9c38-86dbd8efa8bd 2026-10-06 14:07:48,439 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f3907500-fedb-4c10-b8b9-df5bf9290779 2026-10-06 14:07:48,446 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-06 14:07:48,446 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d3ccbd8-09c6-49a2-96bf-8065293a5c7a 2026-10-06 14:07:48,455 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77abee4e-dfb8-4041-9c38-86dbd8efa8bd 2026-10-06 14:07:48,471 - INFO - Verified VN network id 12 for VN 2d3ccbd8-09c6-49a2-96bf-8065293a5c7a 2026-10-06 14:07:48,471 - INFO - Verifications in API Server for VN ctest-vn4-10266261 passed 2026-10-06 14:07:48,471 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d3ccbd8-09c6-49a2-96bf-8065293a5c7a 2026-10-06 14:07:48,481 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77abee4e-dfb8-4041-9c38-86dbd8efa8bd 2026-10-06 14:07:48,486 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77abee4e-dfb8-4041-9c38-86dbd8efa8bd 2026-10-06 14:07:48,492 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f3907500-fedb-4c10-b8b9-df5bf9290779 2026-10-06 14:07:48,505 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51970157:ctest-vn4-10266261', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51970157', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3259704359046760866', 'uuid-lslong': '10862541998212668538'}, 'enable': 'true', 'created': '2026-10-06T14:07:47', 'last-modified': '2026-10-06T14:07:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.770517'} 2026-10-06 14:07:48,512 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-06 14:07:48,512 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10266261 passed 2026-10-06 14:07:48,512 - DEBUG - ====Verifying policy data for ctest-vn4-10266261 in API_Server ====== 2026-10-06 14:07:48,512 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-06 14:07:48,518 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6fe11d4-5dc3-4540-b9e3-015a4ebd142c 2026-10-06 14:07:48,528 - DEBUG - Requesting: http://10.0.0.38:8082/project/d81a110f-96a6-49ec-9154-6c81bd53187c 2026-10-06 14:07:48,603 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2d3ccbd8-09c6-49a2-96bf-8065293a5c7a 2026-10-06 14:07:48,612 - DEBUG - ==>Verifying data for policy with id: 220f5648-8871-49c0-b8a3-97c97e0cff97, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51970157', 'ctest-policy1-50441917'] 2026-10-06 14:07:48,612 - INFO - VN ctest-vn4-10266261 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-06 14:07:48,612 - DEBUG - Verifying the vn in opserver 2026-10-06 14:07:48,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51970157:ctest-vn4-10266261 virtual network link through opserver 10.0.0.38 2026-10-06 14:07:48,613 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-06 14:07:48,973 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-06 14:07:49,021 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51970157:ctest-vn4-10266261', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51970157:ctest-vn4-10266261?flat'} 2026-10-06 14:07:49,022 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51970157:ctest-vn4-10266261 is found in opserver 2026-10-06 14:07:49,031 - DEBUG - Do not have enough data to verify VN in agent 2026-10-06 14:07:49,035 - DEBUG - VRF ids for VN ctest-vn4-10266261: {} 2026-10-06 14:07:49,036 - DEBUG - ====Verifying data for ctest-policy1-50441917 in API_Server ====== 2026-10-06 14:07:49,036 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-06 14:07:49,041 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6fe11d4-5dc3-4540-b9e3-015a4ebd142c 2026-10-06 14:07:49,050 - DEBUG - Requesting: http://10.0.0.38:8082/project/d81a110f-96a6-49ec-9154-6c81bd53187c 2026-10-06 14:07:49,122 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/220f5648-8871-49c0-b8a3-97c97e0cff97 2026-10-06 14:07:49,131 - INFO - Verified policy ctest-policy1-50441917 in API Server, Result: True 2026-10-06 14:07:49,131 - INFO - Done with setup and verification, moving onto test .. 2026-10-06 14:07:49,138 - INFO - Deleting VN ctest-vn4-10266261 2026-10-06 14:07:49,250 - DEBUG - Response for deleting network () 2026-10-06 14:07:49,250 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/77abee4e-dfb8-4041-9c38-86dbd8efa8bd 2026-10-06 14:07:49,256 - DEBUG - Response Code: 404 2026-10-06 14:07:49,256 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-06 14:07:49,262 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e6fe11d4-5dc3-4540-b9e3-015a4ebd142c 2026-10-06 14:07:49,316 - DEBUG - Requesting: http://10.0.0.38:8082/project/d81a110f-96a6-49ec-9154-6c81bd53187c 2026-10-06 14:07:49,384 - INFO - Validated that VN ctest-vn4-10266261 is not found in API Server 2026-10-06 14:07:49,395 - DEBUG - VN ctest-vn4-10266261 is not present in Agent 10.0.0.38 2026-10-06 14:07:49,395 - INFO - Validated that VN ctest-vn4-10266261 is not in any agent 2026-10-06 14:07:49,410 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10266261 info 2026-10-06 14:07:49,444 - INFO - Deleted policy ctest-policy1-50441917 2026-10-06 14:07:49,606 - DEBUG - policy ctest-policy1-50441917 is not found in API Server 2026-10-06 14:07:49,864 - DEBUG - No XMPP flaps were noticed during the test 2026-10-06 14:07:49,864 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-10-06 14:07:49,864 - INFO - -------------------------------------------------------------------------------- 2026-10-06 14:07:50,157 - DEBUG - No XMPP flaps were noticed during the test 2026-10-06 14:07:50,157 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-10-06 14:07:50,157 - INFO - -------------------------------------------------------------------------------- 2026-10-06 14:07:50,931 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-51970157, ID : d81a110f-96a6-49ec-9154-6c81bd53187c