2026-11-06 18:29:12,107 - INFO - Domain Default found not creating 2026-11-06 18:29:12,297 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-63765854 not found, creating it 2026-11-06 18:29:12,795 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-63765854, ID : 4d7b9e23-b0e4-4635-9f16-08f5836ac13d 2026-11-06 18:29:14,591 - INFO - ================================================================================ 2026-11-06 18:29:14,591 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-06 18:29:14,855 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-11-06 18:29:14,855 - INFO - Initial checks done. Running the testcase now 2026-11-06 18:29:14,855 - INFO - 2026-11-06 18:29:14,855 - INFO - ================================================================================ 2026-11-06 18:29:14,855 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-06 18:29:14,855 - 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-11-06 18:29:15,151 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-11-06 18:29:15,151 - INFO - Initial checks done. Running the testcase now 2026-11-06 18:29:15,151 - INFO - 2026-11-06 18:29:15,541 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63765854:ctest-vn4-46520220, 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-63765854:ctest-vn4-46520220, 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-63765854:ctest-vn4-46520220, 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-63765854:ctest-vn4-46520220, 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-11-06 18:29:16,092 - DEBUG - Response for create_network : {'network': {'id': '99bd6f5c-8b2e-4eec-b30a-ccba2994fd30', 'name': 'ctest-vn4-46520220', 'tenant_id': '4d7b9e23b0e446359f1608f5836ac13d', 'project_id': '4d7b9e23b0e446359f1608f5836ac13d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63765854', 'ctest-vn4-46520220'], 'port_security_enabled': True, 'description': ''}} 2026-11-06 18:29:16,315 - DEBUG - Response for create_subnet : {'subnet': {'id': '8008f6b6-19c7-4406-8cfc-f7ba5e1055df', 'name': '', 'tenant_id': '4d7b9e23b0e446359f1608f5836ac13d', 'network_id': '99bd6f5c-8b2e-4eec-b30a-ccba2994fd30', 'ip_version': 4, 'cidr': '23.228.10.192/26', 'allocation_pools': [{'start': '23.228.10.194', 'end': '23.228.10.254'}], 'gateway_ip': '23.228.10.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.228.10.194', 'tags': [], 'project_id': '4d7b9e23b0e446359f1608f5836ac13d'}} 2026-11-06 18:29:16,519 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f09e6e90-ea13-494d-8ba3-73350abc92fc', 'name': '', 'tenant_id': '4d7b9e23b0e446359f1608f5836ac13d', 'network_id': '99bd6f5c-8b2e-4eec-b30a-ccba2994fd30', 'ip_version': 6, 'cidr': '309c:4d85:f2eb:ab82:9e43:5007::/96', 'allocation_pools': [{'start': '309c:4d85:f2eb:ab82:9e43:5007:0:2', 'end': '309c:4d85:f2eb:ab82:9e43:5007:ffff:fffe'}], 'gateway_ip': '309c:4d85:f2eb:ab82:9e43:5007:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '309c:4d85:f2eb:ab82:9e43:5007:0:2', 'tags': [], 'project_id': '4d7b9e23b0e446359f1608f5836ac13d'}} 2026-11-06 18:29:16,543 - INFO - Created VN ctest-vn4-46520220 2026-11-06 18:29:16,598 - DEBUG - VN ctest-vn4-46520220 UUID is 99bd6f5c-8b2e-4eec-b30a-ccba2994fd30 2026-11-06 18:29:16,805 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '99bd6f5c-8b2e-4eec-b30a-ccba2994fd30', 'name': 'ctest-vn4-46520220', 'tenant_id': '4d7b9e23b0e446359f1608f5836ac13d', 'project_id': '4d7b9e23b0e446359f1608f5836ac13d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['8008f6b6-19c7-4406-8cfc-f7ba5e1055df', 'f09e6e90-ea13-494d-8ba3-73350abc92fc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63765854', 'ctest-vn4-46520220'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63765854', 'ctest-policy1-91750748']], 'subnet_ipam': [{'subnet_cidr': '23.228.10.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '309c:4d85:f2eb:ab82:9e43:5007::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-06 18:29:16,966 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-06 18:29:17,338 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-06 18:29:17,367 - DEBUG - Requesting: http://10.0.0.185:8082/domain/cace9788-3e3c-415b-bec0-b3a500d11668 2026-11-06 18:29:17,379 - DEBUG - Requesting: http://10.0.0.185:8082/project/4d7b9e23-b0e4-4635-9f16-08f5836ac13d 2026-11-06 18:29:17,453 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/99bd6f5c-8b2e-4eec-b30a-ccba2994fd30 2026-11-06 18:29:17,464 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/99bd6f5c-8b2e-4eec-b30a-ccba2994fd30 2026-11-06 18:29:17,474 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/fca5bedd-d3d3-4309-8b00-fa47ff2bbf37 2026-11-06 18:29:17,480 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/fca5bedd-d3d3-4309-8b00-fa47ff2bbf37 2026-11-06 18:29:17,487 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/5c3da67b-6aec-47c7-821f-f7703629c00e 2026-11-06 18:29:17,493 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-06 18:29:17,493 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/99bd6f5c-8b2e-4eec-b30a-ccba2994fd30 2026-11-06 18:29:17,503 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/fca5bedd-d3d3-4309-8b00-fa47ff2bbf37 2026-11-06 18:29:17,516 - INFO - Verified VN network id 12 for VN 99bd6f5c-8b2e-4eec-b30a-ccba2994fd30 2026-11-06 18:29:17,516 - INFO - Verifications in API Server for VN ctest-vn4-46520220 passed 2026-11-06 18:29:17,516 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/99bd6f5c-8b2e-4eec-b30a-ccba2994fd30 2026-11-06 18:29:17,525 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/fca5bedd-d3d3-4309-8b00-fa47ff2bbf37 2026-11-06 18:29:17,532 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/fca5bedd-d3d3-4309-8b00-fa47ff2bbf37 2026-11-06 18:29:17,539 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/5c3da67b-6aec-47c7-821f-f7703629c00e 2026-11-06 18:29:17,552 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63765854:ctest-vn4-46520220', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63765854', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11078133101664030444', 'uuid-lslong': '12901349182489820464'}, 'enable': 'true', 'created': '2026-11-06T18:29:16', 'last-modified': '2026-11-06T18:29:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.777002'} 2026-11-06 18:29:17,558 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-06 18:29:17,559 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-46520220 passed 2026-11-06 18:29:17,559 - DEBUG - ====Verifying policy data for ctest-vn4-46520220 in API_Server ====== 2026-11-06 18:29:17,559 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-06 18:29:17,564 - DEBUG - Requesting: http://10.0.0.185:8082/domain/cace9788-3e3c-415b-bec0-b3a500d11668 2026-11-06 18:29:17,577 - DEBUG - Requesting: http://10.0.0.185:8082/project/4d7b9e23-b0e4-4635-9f16-08f5836ac13d 2026-11-06 18:29:17,651 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/99bd6f5c-8b2e-4eec-b30a-ccba2994fd30 2026-11-06 18:29:17,661 - DEBUG - ==>Verifying data for policy with id: 23c550cf-7537-41e3-b448-46106edefb59, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63765854', 'ctest-policy1-91750748'] 2026-11-06 18:29:17,661 - INFO - VN ctest-vn4-46520220 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-06 18:29:17,661 - DEBUG - Verifying the vn in opserver 2026-11-06 18:29:17,661 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63765854:ctest-vn4-46520220 virtual network link through opserver 10.0.0.185 2026-11-06 18:29:17,661 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-11-06 18:29:18,024 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-11-06 18:29:18,081 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63765854:ctest-vn4-46520220', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63765854:ctest-vn4-46520220?flat'} 2026-11-06 18:29:18,081 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63765854:ctest-vn4-46520220 is found in opserver 2026-11-06 18:29:18,094 - DEBUG - Do not have enough data to verify VN in agent 2026-11-06 18:29:18,101 - DEBUG - VRF ids for VN ctest-vn4-46520220: {} 2026-11-06 18:29:18,101 - DEBUG - ====Verifying data for ctest-policy1-91750748 in API_Server ====== 2026-11-06 18:29:18,101 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-06 18:29:18,107 - DEBUG - Requesting: http://10.0.0.185:8082/domain/cace9788-3e3c-415b-bec0-b3a500d11668 2026-11-06 18:29:18,118 - DEBUG - Requesting: http://10.0.0.185:8082/project/4d7b9e23-b0e4-4635-9f16-08f5836ac13d 2026-11-06 18:29:18,192 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/23c550cf-7537-41e3-b448-46106edefb59 2026-11-06 18:29:18,203 - INFO - Verified policy ctest-policy1-91750748 in API Server, Result: True 2026-11-06 18:29:18,203 - INFO - Done with setup and verification, moving onto test .. 2026-11-06 18:29:18,212 - INFO - Deleting VN ctest-vn4-46520220 2026-11-06 18:29:18,341 - DEBUG - Response for deleting network () 2026-11-06 18:29:18,341 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/fca5bedd-d3d3-4309-8b00-fa47ff2bbf37 2026-11-06 18:29:18,346 - DEBUG - Response Code: 404 2026-11-06 18:29:18,346 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-11-06 18:29:18,351 - DEBUG - Requesting: http://10.0.0.185:8082/domain/cace9788-3e3c-415b-bec0-b3a500d11668 2026-11-06 18:29:18,408 - DEBUG - Requesting: http://10.0.0.185:8082/project/4d7b9e23-b0e4-4635-9f16-08f5836ac13d 2026-11-06 18:29:18,493 - INFO - Validated that VN ctest-vn4-46520220 is not found in API Server 2026-11-06 18:29:18,504 - DEBUG - VN ctest-vn4-46520220 is not present in Agent 10.0.0.185 2026-11-06 18:29:18,504 - INFO - Validated that VN ctest-vn4-46520220 is not in any agent 2026-11-06 18:29:18,518 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-46520220 info 2026-11-06 18:29:18,545 - INFO - Deleted policy ctest-policy1-91750748 2026-11-06 18:29:18,710 - DEBUG - policy ctest-policy1-91750748 is not found in API Server 2026-11-06 18:29:18,978 - DEBUG - No XMPP flaps were noticed during the test 2026-11-06 18:29:18,978 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-06 18:29:18,978 - INFO - -------------------------------------------------------------------------------- 2026-11-06 18:29:19,260 - DEBUG - No XMPP flaps were noticed during the test 2026-11-06 18:29:19,260 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-11-06 18:29:19,260 - INFO - -------------------------------------------------------------------------------- 2026-11-06 18:29:20,022 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-63765854, ID : 4d7b9e23-b0e4-4635-9f16-08f5836ac13d