2026-11-27 21:41:01,196 - INFO - Domain Default found not creating 2026-11-27 21:41:01,339 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07796291 not found, creating it 2026-11-27 21:41:01,809 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07796291, ID : c6ead08f-60a5-40f9-909c-547afde9187d 2026-11-27 21:41:03,451 - INFO - ================================================================================ 2026-11-27 21:41:03,451 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-27 21:41:03,713 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.29': '0'}} with 2026-11-27 21:41:03,713 - INFO - Initial checks done. Running the testcase now 2026-11-27 21:41:03,713 - INFO - 2026-11-27 21:41:03,713 - INFO - ================================================================================ 2026-11-27 21:41:03,713 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-27 21:41:03,713 - 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-27 21:41:04,001 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.29': '0'}} with 2026-11-27 21:41:04,001 - INFO - Initial checks done. Running the testcase now 2026-11-27 21:41:04,001 - INFO - 2026-11-27 21:41:04,420 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07796291:ctest-vn4-96525613, 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-07796291:ctest-vn4-96525613, 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-07796291:ctest-vn4-96525613, 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-07796291:ctest-vn4-96525613, 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-27 21:41:04,909 - DEBUG - Response for create_network : {'network': {'id': '03cb3bf4-5dad-4dd6-93ac-ff997a085075', 'name': 'ctest-vn4-96525613', 'tenant_id': 'c6ead08f60a540f9909c547afde9187d', 'project_id': 'c6ead08f60a540f9909c547afde9187d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07796291', 'ctest-vn4-96525613'], 'port_security_enabled': True, 'description': ''}} 2026-11-27 21:41:05,068 - DEBUG - Response for create_subnet : {'subnet': {'id': '644cb0e3-fe6f-463e-a0d9-019e4855b6f0', 'name': '', 'tenant_id': 'c6ead08f60a540f9909c547afde9187d', 'network_id': '03cb3bf4-5dad-4dd6-93ac-ff997a085075', 'ip_version': 4, 'cidr': '168.80.140.0/26', 'allocation_pools': [{'start': '168.80.140.2', 'end': '168.80.140.62'}], 'gateway_ip': '168.80.140.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.80.140.2', 'tags': [], 'project_id': 'c6ead08f60a540f9909c547afde9187d'}} 2026-11-27 21:41:05,238 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e3c9857-5dff-4d06-b04f-69e6d6d29498', 'name': '', 'tenant_id': 'c6ead08f60a540f9909c547afde9187d', 'network_id': '03cb3bf4-5dad-4dd6-93ac-ff997a085075', 'ip_version': 6, 'cidr': '24a6:7e5d:852e:6d62:4633:8d82::/96', 'allocation_pools': [{'start': '24a6:7e5d:852e:6d62:4633:8d82:0:2', 'end': '24a6:7e5d:852e:6d62:4633:8d82:ffff:fffe'}], 'gateway_ip': '24a6:7e5d:852e:6d62:4633:8d82:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24a6:7e5d:852e:6d62:4633:8d82:0:2', 'tags': [], 'project_id': 'c6ead08f60a540f9909c547afde9187d'}} 2026-11-27 21:41:05,253 - INFO - Created VN ctest-vn4-96525613 2026-11-27 21:41:05,305 - DEBUG - VN ctest-vn4-96525613 UUID is 03cb3bf4-5dad-4dd6-93ac-ff997a085075 2026-11-27 21:41:05,481 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03cb3bf4-5dad-4dd6-93ac-ff997a085075', 'name': 'ctest-vn4-96525613', 'tenant_id': 'c6ead08f60a540f9909c547afde9187d', 'project_id': 'c6ead08f60a540f9909c547afde9187d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['644cb0e3-fe6f-463e-a0d9-019e4855b6f0', '6e3c9857-5dff-4d06-b04f-69e6d6d29498'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07796291', 'ctest-vn4-96525613'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07796291', 'ctest-policy1-51195728']], 'subnet_ipam': [{'subnet_cidr': '168.80.140.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24a6:7e5d:852e:6d62:4633:8d82::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-27 21:41:05,646 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-11-27 21:41:06,009 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-11-27 21:41:06,031 - DEBUG - Requesting: http://10.0.0.163:8082/domain/a967db48-c8a0-4914-bcc3-0f2db27aabf1 2026-11-27 21:41:06,042 - DEBUG - Requesting: http://10.0.0.163:8082/project/c6ead08f-60a5-40f9-909c-547afde9187d 2026-11-27 21:41:06,112 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/03cb3bf4-5dad-4dd6-93ac-ff997a085075 2026-11-27 21:41:06,122 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/03cb3bf4-5dad-4dd6-93ac-ff997a085075 2026-11-27 21:41:06,131 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/fd96ccdc-b495-4e7c-88cf-2176e79c0f71 2026-11-27 21:41:06,137 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/fd96ccdc-b495-4e7c-88cf-2176e79c0f71 2026-11-27 21:41:06,142 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/89e7a102-6634-4fe3-9acd-9234f9f9559b 2026-11-27 21:41:06,147 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-27 21:41:06,147 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/03cb3bf4-5dad-4dd6-93ac-ff997a085075 2026-11-27 21:41:06,156 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/fd96ccdc-b495-4e7c-88cf-2176e79c0f71 2026-11-27 21:41:06,167 - INFO - Verified VN network id 12 for VN 03cb3bf4-5dad-4dd6-93ac-ff997a085075 2026-11-27 21:41:06,167 - INFO - Verifications in API Server for VN ctest-vn4-96525613 passed 2026-11-27 21:41:06,167 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/03cb3bf4-5dad-4dd6-93ac-ff997a085075 2026-11-27 21:41:06,175 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/fd96ccdc-b495-4e7c-88cf-2176e79c0f71 2026-11-27 21:41:06,180 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/fd96ccdc-b495-4e7c-88cf-2176e79c0f71 2026-11-27 21:41:06,185 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/89e7a102-6634-4fe3-9acd-9234f9f9559b 2026-11-27 21:41:06,195 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07796291:ctest-vn4-96525613', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07796291', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '273378123115744726', 'uuid-lslong': '10641161054212083829'}, 'enable': 'true', 'created': '2026-11-27T21:41:04', 'last-modified': '2026-11-27T21:41:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.739089'} 2026-11-27 21:41:06,201 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-27 21:41:06,201 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96525613 passed 2026-11-27 21:41:06,201 - DEBUG - ====Verifying policy data for ctest-vn4-96525613 in API_Server ====== 2026-11-27 21:41:06,201 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-11-27 21:41:06,205 - DEBUG - Requesting: http://10.0.0.163:8082/domain/a967db48-c8a0-4914-bcc3-0f2db27aabf1 2026-11-27 21:41:06,213 - DEBUG - Requesting: http://10.0.0.163:8082/project/c6ead08f-60a5-40f9-909c-547afde9187d 2026-11-27 21:41:06,293 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/03cb3bf4-5dad-4dd6-93ac-ff997a085075 2026-11-27 21:41:06,301 - DEBUG - ==>Verifying data for policy with id: b3384a65-fe94-4601-ad8c-d4a9e87738f3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07796291', 'ctest-policy1-51195728'] 2026-11-27 21:41:06,301 - INFO - VN ctest-vn4-96525613 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-27 21:41:06,301 - DEBUG - Verifying the vn in opserver 2026-11-27 21:41:06,301 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07796291:ctest-vn4-96525613 virtual network link through opserver 10.0.0.163 2026-11-27 21:41:06,302 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-11-27 21:41:06,657 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-11-27 21:41:06,703 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07796291:ctest-vn4-96525613', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07796291:ctest-vn4-96525613?flat'} 2026-11-27 21:41:06,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07796291:ctest-vn4-96525613 is found in opserver 2026-11-27 21:41:06,714 - DEBUG - Do not have enough data to verify VN in agent 2026-11-27 21:41:06,720 - DEBUG - VRF ids for VN ctest-vn4-96525613: {} 2026-11-27 21:41:06,720 - DEBUG - ====Verifying data for ctest-policy1-51195728 in API_Server ====== 2026-11-27 21:41:06,720 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-11-27 21:41:06,726 - DEBUG - Requesting: http://10.0.0.163:8082/domain/a967db48-c8a0-4914-bcc3-0f2db27aabf1 2026-11-27 21:41:06,736 - DEBUG - Requesting: http://10.0.0.163:8082/project/c6ead08f-60a5-40f9-909c-547afde9187d 2026-11-27 21:41:06,809 - DEBUG - Requesting: http://10.0.0.163:8082/network-policy/b3384a65-fe94-4601-ad8c-d4a9e87738f3 2026-11-27 21:41:06,818 - INFO - Verified policy ctest-policy1-51195728 in API Server, Result: True 2026-11-27 21:41:06,818 - INFO - Done with setup and verification, moving onto test .. 2026-11-27 21:41:06,828 - INFO - Deleting VN ctest-vn4-96525613 2026-11-27 21:41:06,961 - DEBUG - Response for deleting network () 2026-11-27 21:41:06,961 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/fd96ccdc-b495-4e7c-88cf-2176e79c0f71 2026-11-27 21:41:06,966 - DEBUG - Response Code: 404 2026-11-27 21:41:06,966 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-11-27 21:41:06,970 - DEBUG - Requesting: http://10.0.0.163:8082/domain/a967db48-c8a0-4914-bcc3-0f2db27aabf1 2026-11-27 21:41:07,022 - DEBUG - Requesting: http://10.0.0.163:8082/project/c6ead08f-60a5-40f9-909c-547afde9187d 2026-11-27 21:41:07,089 - INFO - Validated that VN ctest-vn4-96525613 is not found in API Server 2026-11-27 21:41:07,102 - DEBUG - VN ctest-vn4-96525613 is not present in Agent 10.0.0.163 2026-11-27 21:41:07,102 - INFO - Validated that VN ctest-vn4-96525613 is not in any agent 2026-11-27 21:41:07,114 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96525613 info 2026-11-27 21:41:07,136 - INFO - Deleted policy ctest-policy1-51195728 2026-11-27 21:41:07,293 - DEBUG - policy ctest-policy1-51195728 is not found in API Server 2026-11-27 21:41:07,546 - DEBUG - No XMPP flaps were noticed during the test 2026-11-27 21:41:07,547 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-27 21:41:07,547 - INFO - -------------------------------------------------------------------------------- 2026-11-27 21:41:07,839 - DEBUG - No XMPP flaps were noticed during the test 2026-11-27 21:41:07,839 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-27 21:41:07,839 - INFO - -------------------------------------------------------------------------------- 2026-11-27 21:41:08,556 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-07796291, ID : c6ead08f-60a5-40f9-909c-547afde9187d