2026-07-06 15:06:28,826 - INFO - Domain Default found not creating 2026-07-06 15:06:28,997 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31092224 not found, creating it 2026-07-06 15:06:29,506 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31092224, ID : 03e9a5c4-da51-4f84-9a73-64b8245fa887 2026-07-06 15:06:31,093 - INFO - ================================================================================ 2026-07-06 15:06:31,093 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-06 15:06:31,346 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-07-06 15:06:31,346 - INFO - Initial checks done. Running the testcase now 2026-07-06 15:06:31,347 - INFO - 2026-07-06 15:06:31,347 - INFO - ================================================================================ 2026-07-06 15:06:31,347 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-06 15:06:31,347 - 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-07-06 15:06:31,643 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-07-06 15:06:31,643 - INFO - Initial checks done. Running the testcase now 2026-07-06 15:06:31,643 - INFO - 2026-07-06 15:06:32,036 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31092224:ctest-vn4-49864790, 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-31092224:ctest-vn4-49864790, 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-31092224:ctest-vn4-49864790, 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-31092224:ctest-vn4-49864790, 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-07-06 15:06:32,567 - DEBUG - Response for create_network : {'network': {'id': '1eff5f64-042c-449f-b0b2-f518eb5a2c96', 'name': 'ctest-vn4-49864790', 'tenant_id': '03e9a5c4da514f849a7364b8245fa887', 'project_id': '03e9a5c4da514f849a7364b8245fa887', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31092224', 'ctest-vn4-49864790'], 'port_security_enabled': True, 'description': ''}} 2026-07-06 15:06:32,788 - DEBUG - Response for create_subnet : {'subnet': {'id': '70654bf3-3cde-4261-ad6c-787eb8d891ad', 'name': '', 'tenant_id': '03e9a5c4da514f849a7364b8245fa887', 'network_id': '1eff5f64-042c-449f-b0b2-f518eb5a2c96', 'ip_version': 4, 'cidr': '78.16.98.128/26', 'allocation_pools': [{'start': '78.16.98.130', 'end': '78.16.98.190'}], 'gateway_ip': '78.16.98.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.16.98.130', 'tags': [], 'project_id': '03e9a5c4da514f849a7364b8245fa887'}} 2026-07-06 15:06:32,985 - DEBUG - Response for create_subnet : {'subnet': {'id': '1669eab4-f6a9-461d-aaf0-a97ab97b1864', 'name': '', 'tenant_id': '03e9a5c4da514f849a7364b8245fa887', 'network_id': '1eff5f64-042c-449f-b0b2-f518eb5a2c96', 'ip_version': 6, 'cidr': '3b0f:89ce:a00f:a934:1998:d321::/96', 'allocation_pools': [{'start': '3b0f:89ce:a00f:a934:1998:d321:0:2', 'end': '3b0f:89ce:a00f:a934:1998:d321:ffff:fffe'}], 'gateway_ip': '3b0f:89ce:a00f:a934:1998:d321:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b0f:89ce:a00f:a934:1998:d321:0:2', 'tags': [], 'project_id': '03e9a5c4da514f849a7364b8245fa887'}} 2026-07-06 15:06:33,007 - INFO - Created VN ctest-vn4-49864790 2026-07-06 15:06:33,062 - DEBUG - VN ctest-vn4-49864790 UUID is 1eff5f64-042c-449f-b0b2-f518eb5a2c96 2026-07-06 15:06:33,287 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1eff5f64-042c-449f-b0b2-f518eb5a2c96', 'name': 'ctest-vn4-49864790', 'tenant_id': '03e9a5c4da514f849a7364b8245fa887', 'project_id': '03e9a5c4da514f849a7364b8245fa887', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70654bf3-3cde-4261-ad6c-787eb8d891ad', '1669eab4-f6a9-461d-aaf0-a97ab97b1864'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31092224', 'ctest-vn4-49864790'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31092224', 'ctest-policy1-94211202']], 'subnet_ipam': [{'subnet_cidr': '78.16.98.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b0f:89ce:a00f:a934:1998:d321::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-06 15:06:33,454 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-07-06 15:06:33,781 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-07-06 15:06:33,820 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4a0367f7-b3ca-41f5-b908-0459f29be9db 2026-07-06 15:06:33,834 - DEBUG - Requesting: http://10.0.0.141:8082/project/03e9a5c4-da51-4f84-9a73-64b8245fa887 2026-07-06 15:06:33,916 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/1eff5f64-042c-449f-b0b2-f518eb5a2c96 2026-07-06 15:06:33,931 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/1eff5f64-042c-449f-b0b2-f518eb5a2c96 2026-07-06 15:06:33,945 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2f7d3f01-9e01-45f0-a196-105ff457afad 2026-07-06 15:06:33,955 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2f7d3f01-9e01-45f0-a196-105ff457afad 2026-07-06 15:06:33,965 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/1247486d-523b-4b2f-b12b-e992e9fba07a 2026-07-06 15:06:33,975 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-06 15:06:33,975 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/1eff5f64-042c-449f-b0b2-f518eb5a2c96 2026-07-06 15:06:33,987 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2f7d3f01-9e01-45f0-a196-105ff457afad 2026-07-06 15:06:34,003 - INFO - Verified VN network id 11 for VN 1eff5f64-042c-449f-b0b2-f518eb5a2c96 2026-07-06 15:06:34,003 - INFO - Verifications in API Server for VN ctest-vn4-49864790 passed 2026-07-06 15:06:34,003 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/1eff5f64-042c-449f-b0b2-f518eb5a2c96 2026-07-06 15:06:34,017 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2f7d3f01-9e01-45f0-a196-105ff457afad 2026-07-06 15:06:34,025 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2f7d3f01-9e01-45f0-a196-105ff457afad 2026-07-06 15:06:34,034 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/1247486d-523b-4b2f-b12b-e992e9fba07a 2026-07-06 15:06:34,048 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31092224:ctest-vn4-49864790', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31092224', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2233608823370433695', 'uuid-lslong': '12732508583906389142'}, 'enable': 'true', 'created': '2026-07-06T15:06:32', 'last-modified': '2026-07-06T15:06:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.794082'} 2026-07-06 15:06:34,054 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-06 15:06:34,054 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49864790 passed 2026-07-06 15:06:34,055 - DEBUG - ====Verifying policy data for ctest-vn4-49864790 in API_Server ====== 2026-07-06 15:06:34,055 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-07-06 15:06:34,061 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4a0367f7-b3ca-41f5-b908-0459f29be9db 2026-07-06 15:06:34,074 - DEBUG - Requesting: http://10.0.0.141:8082/project/03e9a5c4-da51-4f84-9a73-64b8245fa887 2026-07-06 15:06:34,147 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/1eff5f64-042c-449f-b0b2-f518eb5a2c96 2026-07-06 15:06:34,160 - DEBUG - ==>Verifying data for policy with id: 086ce1a4-054d-4fd4-8ab1-a0450947d5f4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31092224', 'ctest-policy1-94211202'] 2026-07-06 15:06:34,160 - INFO - VN ctest-vn4-49864790 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-06 15:06:34,160 - DEBUG - Verifying the vn in opserver 2026-07-06 15:06:34,160 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31092224:ctest-vn4-49864790 virtual network link through opserver 10.0.0.141 2026-07-06 15:06:34,160 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-07-06 15:06:34,486 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-07-06 15:06:34,540 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31092224:ctest-vn4-49864790', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31092224:ctest-vn4-49864790?flat'} 2026-07-06 15:06:34,540 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31092224:ctest-vn4-49864790 is found in opserver 2026-07-06 15:06:34,550 - DEBUG - Do not have enough data to verify VN in agent 2026-07-06 15:06:34,554 - DEBUG - VRF ids for VN ctest-vn4-49864790: {} 2026-07-06 15:06:34,555 - DEBUG - ====Verifying data for ctest-policy1-94211202 in API_Server ====== 2026-07-06 15:06:34,555 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-07-06 15:06:34,562 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4a0367f7-b3ca-41f5-b908-0459f29be9db 2026-07-06 15:06:34,575 - DEBUG - Requesting: http://10.0.0.141:8082/project/03e9a5c4-da51-4f84-9a73-64b8245fa887 2026-07-06 15:06:34,657 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/086ce1a4-054d-4fd4-8ab1-a0450947d5f4 2026-07-06 15:06:34,668 - INFO - Verified policy ctest-policy1-94211202 in API Server, Result: True 2026-07-06 15:06:34,668 - INFO - Done with setup and verification, moving onto test .. 2026-07-06 15:06:34,679 - INFO - Deleting VN ctest-vn4-49864790 2026-07-06 15:06:34,811 - DEBUG - Response for deleting network () 2026-07-06 15:06:34,811 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2f7d3f01-9e01-45f0-a196-105ff457afad 2026-07-06 15:06:34,818 - DEBUG - Response Code: 404 2026-07-06 15:06:34,818 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-07-06 15:06:34,825 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4a0367f7-b3ca-41f5-b908-0459f29be9db 2026-07-06 15:06:34,887 - DEBUG - Requesting: http://10.0.0.141:8082/project/03e9a5c4-da51-4f84-9a73-64b8245fa887 2026-07-06 15:06:34,966 - INFO - Validated that VN ctest-vn4-49864790 is not found in API Server 2026-07-06 15:06:34,977 - DEBUG - VN ctest-vn4-49864790 is not present in Agent 10.0.0.141 2026-07-06 15:06:34,977 - INFO - Validated that VN ctest-vn4-49864790 is not in any agent 2026-07-06 15:06:34,995 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49864790 info 2026-07-06 15:06:35,021 - INFO - Deleted policy ctest-policy1-94211202 2026-07-06 15:06:35,193 - DEBUG - policy ctest-policy1-94211202 is not found in API Server 2026-07-06 15:06:35,451 - DEBUG - No XMPP flaps were noticed during the test