2026-03-05 19:57:27,761 - INFO - Domain Default found not creating 2026-03-05 19:57:28,181 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40021249 not found, creating it 2026-03-05 19:57:28,879 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40021249, ID : 7a9ca99a-5ae7-4eee-b968-b1f0fda521f5 2026-03-05 19:57:31,223 - INFO - ================================================================================ 2026-03-05 19:57:31,223 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 19:57:31,564 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-03-05 19:57:31,564 - INFO - Initial checks done. Running the testcase now 2026-03-05 19:57:31,565 - INFO - 2026-03-05 19:57:31,565 - INFO - ================================================================================ 2026-03-05 19:57:31,565 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 19:57:31,565 - 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-03-05 19:57:31,911 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-03-05 19:57:31,911 - INFO - Initial checks done. Running the testcase now 2026-03-05 19:57:31,911 - INFO - 2026-03-05 19:57:32,332 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40021249:ctest-vn4-61730747, 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-40021249:ctest-vn4-61730747, 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-40021249:ctest-vn4-61730747, 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-40021249:ctest-vn4-61730747, 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-03-05 19:57:33,158 - DEBUG - Response for create_network : {'network': {'id': 'a41d5068-5924-4e0f-89bb-ad8006e51cf3', 'name': 'ctest-vn4-61730747', 'tenant_id': '7a9ca99a5ae74eeeb968b1f0fda521f5', 'project_id': '7a9ca99a5ae74eeeb968b1f0fda521f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40021249', 'ctest-vn4-61730747'], 'port_security_enabled': True, 'description': ''}} 2026-03-05 19:57:33,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d9aa991-11dc-4b48-9901-6ddc99468b3e', 'name': '', 'tenant_id': '7a9ca99a5ae74eeeb968b1f0fda521f5', 'network_id': 'a41d5068-5924-4e0f-89bb-ad8006e51cf3', 'ip_version': 4, 'cidr': '204.22.148.128/26', 'allocation_pools': [{'start': '204.22.148.130', 'end': '204.22.148.190'}], 'gateway_ip': '204.22.148.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.22.148.130', 'tags': [], 'project_id': '7a9ca99a5ae74eeeb968b1f0fda521f5'}} 2026-03-05 19:57:33,782 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6803064-faa3-4d19-b75f-9fb10b1650ee', 'name': '', 'tenant_id': '7a9ca99a5ae74eeeb968b1f0fda521f5', 'network_id': 'a41d5068-5924-4e0f-89bb-ad8006e51cf3', 'ip_version': 6, 'cidr': '256d:cf0e:4f5c:b7e3:e785:75ec::/96', 'allocation_pools': [{'start': '256d:cf0e:4f5c:b7e3:e785:75ec:0:2', 'end': '256d:cf0e:4f5c:b7e3:e785:75ec:ffff:fffe'}], 'gateway_ip': '256d:cf0e:4f5c:b7e3:e785:75ec:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '256d:cf0e:4f5c:b7e3:e785:75ec:0:2', 'tags': [], 'project_id': '7a9ca99a5ae74eeeb968b1f0fda521f5'}} 2026-03-05 19:57:33,825 - INFO - Created VN ctest-vn4-61730747 2026-03-05 19:57:33,898 - DEBUG - VN ctest-vn4-61730747 UUID is a41d5068-5924-4e0f-89bb-ad8006e51cf3 2026-03-05 19:57:34,288 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a41d5068-5924-4e0f-89bb-ad8006e51cf3', 'name': 'ctest-vn4-61730747', 'tenant_id': '7a9ca99a5ae74eeeb968b1f0fda521f5', 'project_id': '7a9ca99a5ae74eeeb968b1f0fda521f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d9aa991-11dc-4b48-9901-6ddc99468b3e', 'b6803064-faa3-4d19-b75f-9fb10b1650ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40021249', 'ctest-vn4-61730747'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40021249', 'ctest-policy1-22604455']], 'subnet_ipam': [{'subnet_cidr': '204.22.148.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '256d:cf0e:4f5c:b7e3:e785:75ec::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-05 19:57:34,478 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-05 19:57:34,828 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-05 19:57:34,875 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c4eb17cb-f04b-40a4-8862-0d5f5ae5db94 2026-03-05 19:57:34,909 - DEBUG - Requesting: http://10.0.0.242:8082/project/7a9ca99a-5ae7-4eee-b968-b1f0fda521f5 2026-03-05 19:57:35,038 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a41d5068-5924-4e0f-89bb-ad8006e51cf3 2026-03-05 19:57:35,064 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a41d5068-5924-4e0f-89bb-ad8006e51cf3 2026-03-05 19:57:35,084 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0d7ae145-7649-4ec0-aa3a-949a453a86ec 2026-03-05 19:57:35,098 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0d7ae145-7649-4ec0-aa3a-949a453a86ec 2026-03-05 19:57:35,111 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/64c062fb-cd66-407c-aea7-20496acf785f 2026-03-05 19:57:35,124 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 19:57:35,124 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a41d5068-5924-4e0f-89bb-ad8006e51cf3 2026-03-05 19:57:35,145 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0d7ae145-7649-4ec0-aa3a-949a453a86ec 2026-03-05 19:57:35,183 - INFO - Verified VN network id 11 for VN a41d5068-5924-4e0f-89bb-ad8006e51cf3 2026-03-05 19:57:35,183 - INFO - Verifications in API Server for VN ctest-vn4-61730747 passed 2026-03-05 19:57:35,183 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a41d5068-5924-4e0f-89bb-ad8006e51cf3 2026-03-05 19:57:35,209 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0d7ae145-7649-4ec0-aa3a-949a453a86ec 2026-03-05 19:57:35,225 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0d7ae145-7649-4ec0-aa3a-949a453a86ec 2026-03-05 19:57:35,246 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/64c062fb-cd66-407c-aea7-20496acf785f 2026-03-05 19:57:35,270 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40021249:ctest-vn4-61730747', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40021249', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11825696605647162895', 'uuid-lslong': '9924716969224117491'}, 'enable': 'true', 'created': '2026-03-05T19:57:33', 'last-modified': '2026-03-05T19:57:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.032935'} 2026-03-05 19:57:35,287 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 19:57:35,287 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-61730747 passed 2026-03-05 19:57:35,288 - DEBUG - ====Verifying policy data for ctest-vn4-61730747 in API_Server ====== 2026-03-05 19:57:35,288 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-05 19:57:35,301 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c4eb17cb-f04b-40a4-8862-0d5f5ae5db94 2026-03-05 19:57:35,328 - DEBUG - Requesting: http://10.0.0.242:8082/project/7a9ca99a-5ae7-4eee-b968-b1f0fda521f5 2026-03-05 19:57:35,454 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a41d5068-5924-4e0f-89bb-ad8006e51cf3 2026-03-05 19:57:35,477 - DEBUG - ==>Verifying data for policy with id: 1f5370fc-7402-4970-aedd-75d95b271735, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40021249', 'ctest-policy1-22604455'] 2026-03-05 19:57:35,477 - INFO - VN ctest-vn4-61730747 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-05 19:57:35,477 - DEBUG - Verifying the vn in opserver 2026-03-05 19:57:35,477 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40021249:ctest-vn4-61730747 virtual network link through opserver 10.0.0.242 2026-03-05 19:57:35,478 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-05 19:57:35,866 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-05 19:57:36,033 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40021249:ctest-vn4-61730747', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40021249:ctest-vn4-61730747?flat'} 2026-03-05 19:57:36,033 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40021249:ctest-vn4-61730747 is found in opserver 2026-03-05 19:57:36,063 - DEBUG - Do not have enough data to verify VN in agent 2026-03-05 19:57:36,076 - DEBUG - VRF ids for VN ctest-vn4-61730747: {} 2026-03-05 19:57:36,077 - DEBUG - ====Verifying data for ctest-policy1-22604455 in API_Server ====== 2026-03-05 19:57:36,077 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-05 19:57:36,091 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c4eb17cb-f04b-40a4-8862-0d5f5ae5db94 2026-03-05 19:57:36,119 - DEBUG - Requesting: http://10.0.0.242:8082/project/7a9ca99a-5ae7-4eee-b968-b1f0fda521f5 2026-03-05 19:57:36,239 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/1f5370fc-7402-4970-aedd-75d95b271735 2026-03-05 19:57:36,261 - INFO - Verified policy ctest-policy1-22604455 in API Server, Result: True 2026-03-05 19:57:36,261 - INFO - Done with setup and verification, moving onto test .. 2026-03-05 19:57:36,277 - INFO - Deleting VN ctest-vn4-61730747 2026-03-05 19:57:36,469 - DEBUG - Response for deleting network () 2026-03-05 19:57:36,469 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/0d7ae145-7649-4ec0-aa3a-949a453a86ec 2026-03-05 19:57:36,478 - DEBUG - Response Code: 404 2026-03-05 19:57:36,478 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-05 19:57:36,484 - DEBUG - Requesting: http://10.0.0.242:8082/domain/c4eb17cb-f04b-40a4-8862-0d5f5ae5db94 2026-03-05 19:57:36,543 - DEBUG - Requesting: http://10.0.0.242:8082/project/7a9ca99a-5ae7-4eee-b968-b1f0fda521f5 2026-03-05 19:57:36,641 - INFO - Validated that VN ctest-vn4-61730747 is not found in API Server 2026-03-05 19:57:36,655 - DEBUG - VN ctest-vn4-61730747 is not present in Agent 10.0.0.242 2026-03-05 19:57:36,655 - INFO - Validated that VN ctest-vn4-61730747 is not in any agent 2026-03-05 19:57:36,671 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-61730747 info 2026-03-05 19:57:36,709 - INFO - Deleted policy ctest-policy1-22604455 2026-03-05 19:57:36,889 - DEBUG - policy ctest-policy1-22604455 is not found in API Server 2026-03-05 19:57:37,188 - DEBUG - No XMPP flaps were noticed during the test
2026-03-05 19:57:37,188 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2026-03-05 19:57:37,189 - INFO - -------------------------------------------------------------------------------- 2026-03-05 19:57:37,535 - DEBUG - No XMPP flaps were noticed during the test
2026-03-05 19:57:37,535 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2026-03-05 19:57:37,535 - INFO - -------------------------------------------------------------------------------- 2026-03-05 19:57:38,289 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-40021249, ID : 7a9ca99a-5ae7-4eee-b968-b1f0fda521f5