2026-03-30 03:38:45,366 - INFO - Domain Default found not creating 2026-03-30 03:38:45,546 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20577732 not found, creating it 2026-03-30 03:38:46,023 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20577732, ID : 16ea3f36-d448-4213-8bdc-546c90c42263 2026-03-30 03:38:47,498 - INFO - ================================================================================ 2026-03-30 03:38:47,498 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 03:38:47,754 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2026-03-30 03:38:47,754 - INFO - Initial checks done. Running the testcase now 2026-03-30 03:38:47,754 - INFO - 2026-03-30 03:38:47,755 - INFO - ================================================================================ 2026-03-30 03:38:47,755 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 03:38:47,755 - 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-30 03:38:48,042 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2026-03-30 03:38:48,042 - INFO - Initial checks done. Running the testcase now 2026-03-30 03:38:48,042 - INFO - 2026-03-30 03:38:48,410 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20577732:ctest-vn4-30430160, 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-20577732:ctest-vn4-30430160, 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-20577732:ctest-vn4-30430160, 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-20577732:ctest-vn4-30430160, 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-30 03:38:48,950 - DEBUG - Response for create_network : {'network': {'id': 'df2b60cf-8dd8-472b-98a0-63ea1d1d6ba5', 'name': 'ctest-vn4-30430160', 'tenant_id': '16ea3f36d44842138bdc546c90c42263', 'project_id': '16ea3f36d44842138bdc546c90c42263', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20577732', 'ctest-vn4-30430160'], 'port_security_enabled': True, 'description': ''}} 2026-03-30 03:38:49,187 - DEBUG - Response for create_subnet : {'subnet': {'id': '65d7a4ff-95b4-44b1-b9fc-5e94011c31d8', 'name': '', 'tenant_id': '16ea3f36d44842138bdc546c90c42263', 'network_id': 'df2b60cf-8dd8-472b-98a0-63ea1d1d6ba5', 'ip_version': 4, 'cidr': '60.97.135.192/26', 'allocation_pools': [{'start': '60.97.135.194', 'end': '60.97.135.254'}], 'gateway_ip': '60.97.135.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.97.135.194', 'tags': [], 'project_id': '16ea3f36d44842138bdc546c90c42263'}} 2026-03-30 03:38:49,430 - DEBUG - Response for create_subnet : {'subnet': {'id': '51dc134b-ea22-4fa7-ab9f-9ebe601e387a', 'name': '', 'tenant_id': '16ea3f36d44842138bdc546c90c42263', 'network_id': 'df2b60cf-8dd8-472b-98a0-63ea1d1d6ba5', 'ip_version': 6, 'cidr': '35b3:4741:3060:cf3b:4301:dffb::/96', 'allocation_pools': [{'start': '35b3:4741:3060:cf3b:4301:dffb:0:2', 'end': '35b3:4741:3060:cf3b:4301:dffb:ffff:fffe'}], 'gateway_ip': '35b3:4741:3060:cf3b:4301:dffb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35b3:4741:3060:cf3b:4301:dffb:0:2', 'tags': [], 'project_id': '16ea3f36d44842138bdc546c90c42263'}} 2026-03-30 03:38:49,451 - INFO - Created VN ctest-vn4-30430160 2026-03-30 03:38:49,505 - DEBUG - VN ctest-vn4-30430160 UUID is df2b60cf-8dd8-472b-98a0-63ea1d1d6ba5 2026-03-30 03:38:49,710 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df2b60cf-8dd8-472b-98a0-63ea1d1d6ba5', 'name': 'ctest-vn4-30430160', 'tenant_id': '16ea3f36d44842138bdc546c90c42263', 'project_id': '16ea3f36d44842138bdc546c90c42263', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65d7a4ff-95b4-44b1-b9fc-5e94011c31d8', '51dc134b-ea22-4fa7-ab9f-9ebe601e387a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20577732', 'ctest-vn4-30430160'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20577732', 'ctest-policy1-48466796']], 'subnet_ipam': [{'subnet_cidr': '60.97.135.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35b3:4741:3060:cf3b:4301:dffb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-30 03:38:49,872 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-30 03:38:50,167 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-30 03:38:50,207 - DEBUG - Requesting: http://10.0.0.22:8082/domain/394e0c40-28be-4c2a-8d75-4cbce0547c16 2026-03-30 03:38:50,221 - DEBUG - Requesting: http://10.0.0.22:8082/project/16ea3f36-d448-4213-8bdc-546c90c42263 2026-03-30 03:38:50,289 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df2b60cf-8dd8-472b-98a0-63ea1d1d6ba5 2026-03-30 03:38:50,305 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df2b60cf-8dd8-472b-98a0-63ea1d1d6ba5 2026-03-30 03:38:50,316 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5d07179e-0542-4550-aed6-c0c83ad0abdf 2026-03-30 03:38:50,323 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5d07179e-0542-4550-aed6-c0c83ad0abdf 2026-03-30 03:38:50,330 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/25cf00f5-d24a-4da0-ab42-7d68e9d98ffc 2026-03-30 03:38:50,336 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-30 03:38:50,336 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df2b60cf-8dd8-472b-98a0-63ea1d1d6ba5 2026-03-30 03:38:50,346 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5d07179e-0542-4550-aed6-c0c83ad0abdf 2026-03-30 03:38:50,360 - INFO - Verified VN network id 11 for VN df2b60cf-8dd8-472b-98a0-63ea1d1d6ba5 2026-03-30 03:38:50,360 - INFO - Verifications in API Server for VN ctest-vn4-30430160 passed 2026-03-30 03:38:50,360 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df2b60cf-8dd8-472b-98a0-63ea1d1d6ba5 2026-03-30 03:38:50,369 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5d07179e-0542-4550-aed6-c0c83ad0abdf 2026-03-30 03:38:50,376 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5d07179e-0542-4550-aed6-c0c83ad0abdf 2026-03-30 03:38:50,383 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/25cf00f5-d24a-4da0-ab42-7d68e9d98ffc 2026-03-30 03:38:50,396 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20577732:ctest-vn4-30430160', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20577732', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16081053339010746155', 'uuid-lslong': '10997900147200715685'}, 'enable': 'true', 'created': '2026-03-30T03:38:48', 'last-modified': '2026-03-30T03:38:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711547'} 2026-03-30 03:38:50,403 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-30 03:38:50,403 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30430160 passed 2026-03-30 03:38:50,403 - DEBUG - ====Verifying policy data for ctest-vn4-30430160 in API_Server ====== 2026-03-30 03:38:50,403 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-30 03:38:50,409 - DEBUG - Requesting: http://10.0.0.22:8082/domain/394e0c40-28be-4c2a-8d75-4cbce0547c16 2026-03-30 03:38:50,420 - DEBUG - Requesting: http://10.0.0.22:8082/project/16ea3f36-d448-4213-8bdc-546c90c42263 2026-03-30 03:38:50,489 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/df2b60cf-8dd8-472b-98a0-63ea1d1d6ba5 2026-03-30 03:38:50,500 - DEBUG - ==>Verifying data for policy with id: 01f15e4c-b87e-4c7d-a614-dc2b00417b6c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20577732', 'ctest-policy1-48466796'] 2026-03-30 03:38:50,500 - INFO - VN ctest-vn4-30430160 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-30 03:38:50,500 - DEBUG - Verifying the vn in opserver 2026-03-30 03:38:50,500 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20577732:ctest-vn4-30430160 virtual network link through opserver 10.0.0.22 2026-03-30 03:38:50,501 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-30 03:38:50,794 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-30 03:38:50,854 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20577732:ctest-vn4-30430160', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20577732:ctest-vn4-30430160?flat'} 2026-03-30 03:38:50,854 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20577732:ctest-vn4-30430160 is found in opserver 2026-03-30 03:38:50,864 - DEBUG - Do not have enough data to verify VN in agent 2026-03-30 03:38:50,869 - DEBUG - VRF ids for VN ctest-vn4-30430160: {} 2026-03-30 03:38:50,869 - DEBUG - ====Verifying data for ctest-policy1-48466796 in API_Server ====== 2026-03-30 03:38:50,869 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-30 03:38:50,875 - DEBUG - Requesting: http://10.0.0.22:8082/domain/394e0c40-28be-4c2a-8d75-4cbce0547c16 2026-03-30 03:38:50,885 - DEBUG - Requesting: http://10.0.0.22:8082/project/16ea3f36-d448-4213-8bdc-546c90c42263 2026-03-30 03:38:50,957 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/01f15e4c-b87e-4c7d-a614-dc2b00417b6c 2026-03-30 03:38:50,967 - INFO - Verified policy ctest-policy1-48466796 in API Server, Result: True 2026-03-30 03:38:50,968 - INFO - Done with setup and verification, moving onto test .. 2026-03-30 03:38:50,975 - INFO - Deleting VN ctest-vn4-30430160 2026-03-30 03:38:51,101 - DEBUG - Response for deleting network () 2026-03-30 03:38:51,101 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5d07179e-0542-4550-aed6-c0c83ad0abdf 2026-03-30 03:38:51,106 - DEBUG - Response Code: 404 2026-03-30 03:38:51,107 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-30 03:38:51,111 - DEBUG - Requesting: http://10.0.0.22:8082/domain/394e0c40-28be-4c2a-8d75-4cbce0547c16 2026-03-30 03:38:51,165 - DEBUG - Requesting: http://10.0.0.22:8082/project/16ea3f36-d448-4213-8bdc-546c90c42263 2026-03-30 03:38:51,245 - INFO - Validated that VN ctest-vn4-30430160 is not found in API Server 2026-03-30 03:38:51,255 - DEBUG - VN ctest-vn4-30430160 is not present in Agent 10.0.0.22 2026-03-30 03:38:51,255 - INFO - Validated that VN ctest-vn4-30430160 is not in any agent 2026-03-30 03:38:51,269 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30430160 info 2026-03-30 03:38:51,294 - INFO - Deleted policy ctest-policy1-48466796 2026-03-30 03:38:51,468 - DEBUG - policy ctest-policy1-48466796 is not found in API Server 2026-03-30 03:38:51,730 - DEBUG - No XMPP flaps were noticed during the test