2026-02-23 19:08:21,119 - INFO - Domain Default found not creating 2026-02-23 19:08:21,355 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36604564 not found, creating it 2026-02-23 19:08:21,973 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36604564, ID : 95474e5d-2f98-4236-ac1f-96fd13c3bb13 2026-02-23 19:08:24,015 - INFO - ================================================================================ 2026-02-23 19:08:24,015 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-23 19:08:24,343 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-23 19:08:24,343 - INFO - Initial checks done. Running the testcase now 2026-02-23 19:08:24,343 - INFO - 2026-02-23 19:08:24,343 - INFO - ================================================================================ 2026-02-23 19:08:24,343 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-23 19:08:24,344 - 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-02-23 19:08:24,693 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-23 19:08:24,693 - INFO - Initial checks done. Running the testcase now 2026-02-23 19:08:24,693 - INFO - 2026-02-23 19:08:25,239 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36604564:ctest-vn4-54434391, 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-36604564:ctest-vn4-54434391, 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-36604564:ctest-vn4-54434391, 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-36604564:ctest-vn4-54434391, 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-02-23 19:08:25,967 - DEBUG - Response for create_network : {'network': {'id': '89055f1b-8c3d-4f64-8fc9-daaaa1525fca', 'name': 'ctest-vn4-54434391', 'tenant_id': '95474e5d2f984236ac1f96fd13c3bb13', 'project_id': '95474e5d2f984236ac1f96fd13c3bb13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36604564', 'ctest-vn4-54434391'], 'port_security_enabled': True, 'description': ''}} 2026-02-23 19:08:26,135 - DEBUG - Response for create_subnet : {'subnet': {'id': '6926b58b-f755-4314-b4b4-132b5154572c', 'name': '', 'tenant_id': '95474e5d2f984236ac1f96fd13c3bb13', 'network_id': '89055f1b-8c3d-4f64-8fc9-daaaa1525fca', 'ip_version': 4, 'cidr': '219.7.118.64/26', 'allocation_pools': [{'start': '219.7.118.66', 'end': '219.7.118.126'}], 'gateway_ip': '219.7.118.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.7.118.66', 'tags': [], 'project_id': '95474e5d2f984236ac1f96fd13c3bb13'}} 2026-02-23 19:08:26,321 - DEBUG - Response for create_subnet : {'subnet': {'id': '3bfe160c-fb4b-4773-bfaa-200a0db5e7bd', 'name': '', 'tenant_id': '95474e5d2f984236ac1f96fd13c3bb13', 'network_id': '89055f1b-8c3d-4f64-8fc9-daaaa1525fca', 'ip_version': 6, 'cidr': '20ba:e515:e827:3f0d:5cf3:931e::/96', 'allocation_pools': [{'start': '20ba:e515:e827:3f0d:5cf3:931e:0:2', 'end': '20ba:e515:e827:3f0d:5cf3:931e:ffff:fffe'}], 'gateway_ip': '20ba:e515:e827:3f0d:5cf3:931e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20ba:e515:e827:3f0d:5cf3:931e:0:2', 'tags': [], 'project_id': '95474e5d2f984236ac1f96fd13c3bb13'}} 2026-02-23 19:08:26,346 - INFO - Created VN ctest-vn4-54434391 2026-02-23 19:08:26,403 - DEBUG - VN ctest-vn4-54434391 UUID is 89055f1b-8c3d-4f64-8fc9-daaaa1525fca 2026-02-23 19:08:26,774 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89055f1b-8c3d-4f64-8fc9-daaaa1525fca', 'name': 'ctest-vn4-54434391', 'tenant_id': '95474e5d2f984236ac1f96fd13c3bb13', 'project_id': '95474e5d2f984236ac1f96fd13c3bb13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6926b58b-f755-4314-b4b4-132b5154572c', '3bfe160c-fb4b-4773-bfaa-200a0db5e7bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36604564', 'ctest-vn4-54434391'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36604564', 'ctest-policy1-34034820']], 'subnet_ipam': [{'subnet_cidr': '219.7.118.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '20ba:e515:e827:3f0d:5cf3:931e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-23 19:08:26,943 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-23 19:08:27,299 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-23 19:08:27,361 - DEBUG - Requesting: http://10.0.0.50:8082/domain/229293cc-54bb-4b63-ba2e-d9eae9097391 2026-02-23 19:08:27,388 - DEBUG - Requesting: http://10.0.0.50:8082/project/95474e5d-2f98-4236-ac1f-96fd13c3bb13 2026-02-23 19:08:27,506 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/89055f1b-8c3d-4f64-8fc9-daaaa1525fca 2026-02-23 19:08:27,535 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/89055f1b-8c3d-4f64-8fc9-daaaa1525fca 2026-02-23 19:08:27,561 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efd222a6-8ab2-4803-820b-2959763f3860 2026-02-23 19:08:27,582 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efd222a6-8ab2-4803-820b-2959763f3860 2026-02-23 19:08:27,598 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e6eba621-a6b8-4cf2-b5a4-c8ff9b09e0b9 2026-02-23 19:08:27,615 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 19:08:27,615 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/89055f1b-8c3d-4f64-8fc9-daaaa1525fca 2026-02-23 19:08:27,644 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efd222a6-8ab2-4803-820b-2959763f3860 2026-02-23 19:08:27,678 - INFO - Verified VN network id 11 for VN 89055f1b-8c3d-4f64-8fc9-daaaa1525fca 2026-02-23 19:08:27,678 - INFO - Verifications in API Server for VN ctest-vn4-54434391 passed 2026-02-23 19:08:27,678 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/89055f1b-8c3d-4f64-8fc9-daaaa1525fca 2026-02-23 19:08:27,697 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efd222a6-8ab2-4803-820b-2959763f3860 2026-02-23 19:08:27,709 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efd222a6-8ab2-4803-820b-2959763f3860 2026-02-23 19:08:27,721 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e6eba621-a6b8-4cf2-b5a4-c8ff9b09e0b9 2026-02-23 19:08:27,749 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36604564:ctest-vn4-54434391', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36604564', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9873402330001264484', 'uuid-lslong': '10361052844128362442'}, 'enable': 'true', 'created': '2026-02-23T19:08:25', 'last-modified': '2026-02-23T19:08:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.029352'} 2026-02-23 19:08:27,766 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 19:08:27,766 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54434391 passed 2026-02-23 19:08:27,766 - DEBUG - ====Verifying policy data for ctest-vn4-54434391 in API_Server ====== 2026-02-23 19:08:27,766 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-23 19:08:27,777 - DEBUG - Requesting: http://10.0.0.50:8082/domain/229293cc-54bb-4b63-ba2e-d9eae9097391 2026-02-23 19:08:27,798 - DEBUG - Requesting: http://10.0.0.50:8082/project/95474e5d-2f98-4236-ac1f-96fd13c3bb13 2026-02-23 19:08:27,902 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/89055f1b-8c3d-4f64-8fc9-daaaa1525fca 2026-02-23 19:08:27,918 - DEBUG - ==>Verifying data for policy with id: cdda2e3a-ecf6-498c-8ba1-5fcef7fb1cdd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36604564', 'ctest-policy1-34034820'] 2026-02-23 19:08:27,918 - INFO - VN ctest-vn4-54434391 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-23 19:08:27,918 - DEBUG - Verifying the vn in opserver 2026-02-23 19:08:27,918 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36604564:ctest-vn4-54434391 virtual network link through opserver 10.0.0.50 2026-02-23 19:08:27,919 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-23 19:08:28,238 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-23 19:08:28,372 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36604564:ctest-vn4-54434391', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36604564:ctest-vn4-54434391?flat'} 2026-02-23 19:08:28,372 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36604564:ctest-vn4-54434391 is found in opserver 2026-02-23 19:08:28,397 - DEBUG - Do not have enough data to verify VN in agent 2026-02-23 19:08:28,408 - DEBUG - VRF ids for VN ctest-vn4-54434391: {} 2026-02-23 19:08:28,409 - DEBUG - ====Verifying data for ctest-policy1-34034820 in API_Server ====== 2026-02-23 19:08:28,410 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-23 19:08:28,422 - DEBUG - Requesting: http://10.0.0.50:8082/domain/229293cc-54bb-4b63-ba2e-d9eae9097391 2026-02-23 19:08:28,451 - DEBUG - Requesting: http://10.0.0.50:8082/project/95474e5d-2f98-4236-ac1f-96fd13c3bb13 2026-02-23 19:08:28,569 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/cdda2e3a-ecf6-498c-8ba1-5fcef7fb1cdd 2026-02-23 19:08:28,586 - INFO - Verified policy ctest-policy1-34034820 in API Server, Result: True 2026-02-23 19:08:28,586 - INFO - Done with setup and verification, moving onto test .. 2026-02-23 19:08:28,603 - INFO - Deleting VN ctest-vn4-54434391 2026-02-23 19:08:28,840 - DEBUG - Response for deleting network () 2026-02-23 19:08:28,840 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efd222a6-8ab2-4803-820b-2959763f3860 2026-02-23 19:08:28,848 - DEBUG - Response Code: 404 2026-02-23 19:08:28,848 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-23 19:08:28,856 - DEBUG - Requesting: http://10.0.0.50:8082/domain/229293cc-54bb-4b63-ba2e-d9eae9097391 2026-02-23 19:08:28,915 - DEBUG - Requesting: http://10.0.0.50:8082/project/95474e5d-2f98-4236-ac1f-96fd13c3bb13 2026-02-23 19:08:29,013 - INFO - Validated that VN ctest-vn4-54434391 is not found in API Server 2026-02-23 19:08:29,036 - DEBUG - VN ctest-vn4-54434391 is not present in Agent 10.0.0.50 2026-02-23 19:08:29,037 - INFO - Validated that VN ctest-vn4-54434391 is not in any agent 2026-02-23 19:08:29,081 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54434391 info 2026-02-23 19:08:29,140 - INFO - Deleted policy ctest-policy1-34034820 2026-02-23 19:08:29,371 - DEBUG - policy ctest-policy1-34034820 is not found in API Server 2026-02-23 19:08:29,704 - DEBUG - No XMPP flaps were noticed during the test
2026-02-23 19:08:29,705 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-23 19:08:29,705 - INFO - -------------------------------------------------------------------------------- 2026-02-23 19:08:30,046 - DEBUG - No XMPP flaps were noticed during the test
2026-02-23 19:08:30,046 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2026-02-23 19:08:30,046 - INFO - -------------------------------------------------------------------------------- 2026-02-23 19:08:30,995 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36604564, ID : 95474e5d-2f98-4236-ac1f-96fd13c3bb13