2026-09-29 15:24:50,270 - INFO - Domain Default found not creating 2026-09-29 15:24:50,456 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40055168 not found, creating it 2026-09-29 15:24:50,951 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40055168, ID : 6ed51c1a-4eee-47ea-96e4-f0476cbffcac 2026-09-29 15:24:52,679 - INFO - ================================================================================ 2026-09-29 15:24:52,679 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-29 15:24:52,951 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-09-29 15:24:52,952 - INFO - Initial checks done. Running the testcase now 2026-09-29 15:24:52,952 - INFO - 2026-09-29 15:24:52,952 - INFO - ================================================================================ 2026-09-29 15:24:52,952 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-29 15:24:52,952 - 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-09-29 15:24:53,249 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-09-29 15:24:53,249 - INFO - Initial checks done. Running the testcase now 2026-09-29 15:24:53,249 - INFO - 2026-09-29 15:24:53,702 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40055168:ctest-vn4-38258274, 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-40055168:ctest-vn4-38258274, 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-40055168:ctest-vn4-38258274, 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-40055168:ctest-vn4-38258274, 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-09-29 15:24:54,292 - DEBUG - Response for create_network : {'network': {'id': '1596b18d-9435-4163-8555-b78aa7206ad0', 'name': 'ctest-vn4-38258274', 'tenant_id': '6ed51c1a4eee47ea96e4f0476cbffcac', 'project_id': '6ed51c1a4eee47ea96e4f0476cbffcac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40055168', 'ctest-vn4-38258274'], 'port_security_enabled': True, 'description': ''}} 2026-09-29 15:24:54,474 - DEBUG - Response for create_subnet : {'subnet': {'id': '557d7de7-05cb-41ce-9f61-6361d772a61c', 'name': '', 'tenant_id': '6ed51c1a4eee47ea96e4f0476cbffcac', 'network_id': '1596b18d-9435-4163-8555-b78aa7206ad0', 'ip_version': 4, 'cidr': '2.152.155.192/26', 'allocation_pools': [{'start': '2.152.155.194', 'end': '2.152.155.254'}], 'gateway_ip': '2.152.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.152.155.194', 'tags': [], 'project_id': '6ed51c1a4eee47ea96e4f0476cbffcac'}} 2026-09-29 15:24:54,643 - DEBUG - Response for create_subnet : {'subnet': {'id': '2da8a8e6-8d07-4bf3-a11d-3c4965cf162f', 'name': '', 'tenant_id': '6ed51c1a4eee47ea96e4f0476cbffcac', 'network_id': '1596b18d-9435-4163-8555-b78aa7206ad0', 'ip_version': 6, 'cidr': '2a4f:5c0a:e984:9087:cd65:e27b::/96', 'allocation_pools': [{'start': '2a4f:5c0a:e984:9087:cd65:e27b:0:2', 'end': '2a4f:5c0a:e984:9087:cd65:e27b:ffff:fffe'}], 'gateway_ip': '2a4f:5c0a:e984:9087:cd65:e27b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a4f:5c0a:e984:9087:cd65:e27b:0:2', 'tags': [], 'project_id': '6ed51c1a4eee47ea96e4f0476cbffcac'}} 2026-09-29 15:24:54,664 - INFO - Created VN ctest-vn4-38258274 2026-09-29 15:24:54,722 - DEBUG - VN ctest-vn4-38258274 UUID is 1596b18d-9435-4163-8555-b78aa7206ad0 2026-09-29 15:24:54,952 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1596b18d-9435-4163-8555-b78aa7206ad0', 'name': 'ctest-vn4-38258274', 'tenant_id': '6ed51c1a4eee47ea96e4f0476cbffcac', 'project_id': '6ed51c1a4eee47ea96e4f0476cbffcac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['557d7de7-05cb-41ce-9f61-6361d772a61c', '2da8a8e6-8d07-4bf3-a11d-3c4965cf162f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40055168', 'ctest-vn4-38258274'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40055168', 'ctest-policy1-91860546']], 'subnet_ipam': [{'subnet_cidr': '2.152.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a4f:5c0a:e984:9087:cd65:e27b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-29 15:24:55,114 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-29 15:24:55,482 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-29 15:24:55,513 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d6812ad-3d63-4717-b4c3-2139d5df56ed 2026-09-29 15:24:55,528 - DEBUG - Requesting: http://10.0.0.38:8082/project/6ed51c1a-4eee-47ea-96e4-f0476cbffcac 2026-09-29 15:24:55,615 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1596b18d-9435-4163-8555-b78aa7206ad0 2026-09-29 15:24:55,630 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1596b18d-9435-4163-8555-b78aa7206ad0 2026-09-29 15:24:55,642 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ced9f3-85d1-4adf-a329-08845cc34445 2026-09-29 15:24:55,650 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ced9f3-85d1-4adf-a329-08845cc34445 2026-09-29 15:24:55,657 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5cbf773a-c1de-4713-869d-370313206554 2026-09-29 15:24:55,665 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-29 15:24:55,665 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1596b18d-9435-4163-8555-b78aa7206ad0 2026-09-29 15:24:55,675 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ced9f3-85d1-4adf-a329-08845cc34445 2026-09-29 15:24:55,692 - INFO - Verified VN network id 12 for VN 1596b18d-9435-4163-8555-b78aa7206ad0 2026-09-29 15:24:55,692 - INFO - Verifications in API Server for VN ctest-vn4-38258274 passed 2026-09-29 15:24:55,692 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1596b18d-9435-4163-8555-b78aa7206ad0 2026-09-29 15:24:55,705 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ced9f3-85d1-4adf-a329-08845cc34445 2026-09-29 15:24:55,713 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ced9f3-85d1-4adf-a329-08845cc34445 2026-09-29 15:24:55,720 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5cbf773a-c1de-4713-869d-370313206554 2026-09-29 15:24:55,734 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40055168:ctest-vn4-38258274', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40055168', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1555625942938108259', 'uuid-lslong': '9607787186202110672'}, 'enable': 'true', 'created': '2026-09-29T15:24:54', 'last-modified': '2026-09-29T15:24:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.823035'} 2026-09-29 15:24:55,742 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-29 15:24:55,742 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38258274 passed 2026-09-29 15:24:55,743 - DEBUG - ====Verifying policy data for ctest-vn4-38258274 in API_Server ====== 2026-09-29 15:24:55,743 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-29 15:24:55,749 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d6812ad-3d63-4717-b4c3-2139d5df56ed 2026-09-29 15:24:55,762 - DEBUG - Requesting: http://10.0.0.38:8082/project/6ed51c1a-4eee-47ea-96e4-f0476cbffcac 2026-09-29 15:24:55,839 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1596b18d-9435-4163-8555-b78aa7206ad0 2026-09-29 15:24:55,852 - DEBUG - ==>Verifying data for policy with id: 2c4031e3-b6b8-4c70-95b1-41ab1e431dac, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40055168', 'ctest-policy1-91860546'] 2026-09-29 15:24:55,852 - INFO - VN ctest-vn4-38258274 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-29 15:24:55,852 - DEBUG - Verifying the vn in opserver 2026-09-29 15:24:55,852 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40055168:ctest-vn4-38258274 virtual network link through opserver 10.0.0.38 2026-09-29 15:24:55,852 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-29 15:24:56,241 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-29 15:24:56,305 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40055168:ctest-vn4-38258274', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40055168:ctest-vn4-38258274?flat'} 2026-09-29 15:24:56,305 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40055168:ctest-vn4-38258274 is found in opserver 2026-09-29 15:24:56,317 - DEBUG - Do not have enough data to verify VN in agent 2026-09-29 15:24:56,323 - DEBUG - VRF ids for VN ctest-vn4-38258274: {} 2026-09-29 15:24:56,323 - DEBUG - ====Verifying data for ctest-policy1-91860546 in API_Server ====== 2026-09-29 15:24:56,323 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-29 15:24:56,330 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d6812ad-3d63-4717-b4c3-2139d5df56ed 2026-09-29 15:24:56,342 - DEBUG - Requesting: http://10.0.0.38:8082/project/6ed51c1a-4eee-47ea-96e4-f0476cbffcac 2026-09-29 15:24:56,430 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/2c4031e3-b6b8-4c70-95b1-41ab1e431dac 2026-09-29 15:24:56,444 - INFO - Verified policy ctest-policy1-91860546 in API Server, Result: True 2026-09-29 15:24:56,444 - INFO - Done with setup and verification, moving onto test .. 2026-09-29 15:24:56,455 - INFO - Deleting VN ctest-vn4-38258274 2026-09-29 15:24:56,626 - DEBUG - Response for deleting network () 2026-09-29 15:24:56,626 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/82ced9f3-85d1-4adf-a329-08845cc34445 2026-09-29 15:24:56,632 - DEBUG - Response Code: 404 2026-09-29 15:24:56,632 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-29 15:24:56,638 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1d6812ad-3d63-4717-b4c3-2139d5df56ed 2026-09-29 15:24:56,695 - DEBUG - Requesting: http://10.0.0.38:8082/project/6ed51c1a-4eee-47ea-96e4-f0476cbffcac 2026-09-29 15:24:56,779 - INFO - Validated that VN ctest-vn4-38258274 is not found in API Server 2026-09-29 15:24:56,793 - DEBUG - VN ctest-vn4-38258274 is not present in Agent 10.0.0.38 2026-09-29 15:24:56,793 - INFO - Validated that VN ctest-vn4-38258274 is not in any agent 2026-09-29 15:24:56,813 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38258274 info 2026-09-29 15:24:56,845 - INFO - Deleted policy ctest-policy1-91860546 2026-09-29 15:24:57,021 - DEBUG - policy ctest-policy1-91860546 is not found in API Server 2026-09-29 15:24:57,286 - DEBUG - No XMPP flaps were noticed during the test 2026-09-29 15:24:57,286 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-29 15:24:57,286 - INFO - -------------------------------------------------------------------------------- 2026-09-29 15:24:57,587 - DEBUG - No XMPP flaps were noticed during the test 2026-09-29 15:24:57,587 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-29 15:24:57,587 - INFO - -------------------------------------------------------------------------------- 2026-09-29 15:24:58,387 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-40055168, ID : 6ed51c1a-4eee-47ea-96e4-f0476cbffcac