2026-11-05 21:06:35,158 - INFO - Domain Default found not creating 2026-11-05 21:06:35,325 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-86570169 not found, creating it 2026-11-05 21:06:35,780 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-86570169, ID : de9eceb9-15c5-4bbc-bad3-f6b74a3936da 2026-11-05 21:06:37,447 - INFO - ================================================================================ 2026-11-05 21:06:37,448 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-05 21:06:37,716 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-11-05 21:06:37,716 - INFO - Initial checks done. Running the testcase now 2026-11-05 21:06:37,716 - INFO - 2026-11-05 21:06:37,716 - INFO - ================================================================================ 2026-11-05 21:06:37,716 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-05 21:06:37,717 - 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-05 21:06:37,997 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.25': '0'}} with 2026-11-05 21:06:37,997 - INFO - Initial checks done. Running the testcase now 2026-11-05 21:06:37,997 - INFO - 2026-11-05 21:06:38,412 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86570169:ctest-vn4-51454533, 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-86570169:ctest-vn4-51454533, 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-86570169:ctest-vn4-51454533, 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-86570169:ctest-vn4-51454533, 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-05 21:06:38,914 - DEBUG - Response for create_network : {'network': {'id': '18e35d4f-3663-4776-873d-b0036eecdccd', 'name': 'ctest-vn4-51454533', 'tenant_id': 'de9eceb915c54bbcbad3f6b74a3936da', 'project_id': 'de9eceb915c54bbcbad3f6b74a3936da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86570169', 'ctest-vn4-51454533'], 'port_security_enabled': True, 'description': ''}} 2026-11-05 21:06:39,096 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd699027a-4ad6-4709-9b45-da57d8741376', 'name': '', 'tenant_id': 'de9eceb915c54bbcbad3f6b74a3936da', 'network_id': '18e35d4f-3663-4776-873d-b0036eecdccd', 'ip_version': 4, 'cidr': '109.28.130.128/26', 'allocation_pools': [{'start': '109.28.130.130', 'end': '109.28.130.190'}], 'gateway_ip': '109.28.130.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.28.130.130', 'tags': [], 'project_id': 'de9eceb915c54bbcbad3f6b74a3936da'}} 2026-11-05 21:06:39,245 - DEBUG - Response for create_subnet : {'subnet': {'id': '7766fc90-636e-4205-850b-8e015a42111b', 'name': '', 'tenant_id': 'de9eceb915c54bbcbad3f6b74a3936da', 'network_id': '18e35d4f-3663-4776-873d-b0036eecdccd', 'ip_version': 6, 'cidr': '227e:bf84:904e:16f5:da35:311b::/96', 'allocation_pools': [{'start': '227e:bf84:904e:16f5:da35:311b:0:2', 'end': '227e:bf84:904e:16f5:da35:311b:ffff:fffe'}], 'gateway_ip': '227e:bf84:904e:16f5:da35:311b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '227e:bf84:904e:16f5:da35:311b:0:2', 'tags': [], 'project_id': 'de9eceb915c54bbcbad3f6b74a3936da'}} 2026-11-05 21:06:39,262 - INFO - Created VN ctest-vn4-51454533 2026-11-05 21:06:39,315 - DEBUG - VN ctest-vn4-51454533 UUID is 18e35d4f-3663-4776-873d-b0036eecdccd 2026-11-05 21:06:39,509 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '18e35d4f-3663-4776-873d-b0036eecdccd', 'name': 'ctest-vn4-51454533', 'tenant_id': 'de9eceb915c54bbcbad3f6b74a3936da', 'project_id': 'de9eceb915c54bbcbad3f6b74a3936da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d699027a-4ad6-4709-9b45-da57d8741376', '7766fc90-636e-4205-850b-8e015a42111b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86570169', 'ctest-vn4-51454533'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86570169', 'ctest-policy1-53651216']], 'subnet_ipam': [{'subnet_cidr': '109.28.130.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '227e:bf84:904e:16f5:da35:311b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-05 21:06:39,675 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-05 21:06:40,039 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-05 21:06:40,066 - DEBUG - Requesting: http://10.0.0.177:8082/domain/f2497c17-aefb-4631-a433-d69289cd8ade 2026-11-05 21:06:40,078 - DEBUG - Requesting: http://10.0.0.177:8082/project/de9eceb9-15c5-4bbc-bad3-f6b74a3936da 2026-11-05 21:06:40,153 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/18e35d4f-3663-4776-873d-b0036eecdccd 2026-11-05 21:06:40,166 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/18e35d4f-3663-4776-873d-b0036eecdccd 2026-11-05 21:06:40,175 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/ce6cba0c-2666-4ad3-bba7-dbf12c28bf26 2026-11-05 21:06:40,182 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/ce6cba0c-2666-4ad3-bba7-dbf12c28bf26 2026-11-05 21:06:40,188 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/322f092c-8fed-4e8d-9f79-b41e4351ae1d 2026-11-05 21:06:40,195 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-05 21:06:40,195 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/18e35d4f-3663-4776-873d-b0036eecdccd 2026-11-05 21:06:40,211 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/ce6cba0c-2666-4ad3-bba7-dbf12c28bf26 2026-11-05 21:06:40,223 - INFO - Verified VN network id 11 for VN 18e35d4f-3663-4776-873d-b0036eecdccd 2026-11-05 21:06:40,223 - INFO - Verifications in API Server for VN ctest-vn4-51454533 passed 2026-11-05 21:06:40,223 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/18e35d4f-3663-4776-873d-b0036eecdccd 2026-11-05 21:06:40,231 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/ce6cba0c-2666-4ad3-bba7-dbf12c28bf26 2026-11-05 21:06:40,237 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/ce6cba0c-2666-4ad3-bba7-dbf12c28bf26 2026-11-05 21:06:40,242 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/322f092c-8fed-4e8d-9f79-b41e4351ae1d 2026-11-05 21:06:40,253 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86570169:ctest-vn4-51454533', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-86570169', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1793379671419864950', 'uuid-lslong': '9745138697492028621'}, 'enable': 'true', 'created': '2026-11-05T21:06:38', 'last-modified': '2026-11-05T21:06:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.772492'} 2026-11-05 21:06:40,260 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-05 21:06:40,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51454533 passed 2026-11-05 21:06:40,260 - DEBUG - ====Verifying policy data for ctest-vn4-51454533 in API_Server ====== 2026-11-05 21:06:40,261 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-05 21:06:40,265 - DEBUG - Requesting: http://10.0.0.177:8082/domain/f2497c17-aefb-4631-a433-d69289cd8ade 2026-11-05 21:06:40,274 - DEBUG - Requesting: http://10.0.0.177:8082/project/de9eceb9-15c5-4bbc-bad3-f6b74a3936da 2026-11-05 21:06:40,340 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/18e35d4f-3663-4776-873d-b0036eecdccd 2026-11-05 21:06:40,349 - DEBUG - ==>Verifying data for policy with id: 2787877a-2d4a-4d04-b685-46d535baf681, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86570169', 'ctest-policy1-53651216'] 2026-11-05 21:06:40,350 - INFO - VN ctest-vn4-51454533 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-05 21:06:40,350 - DEBUG - Verifying the vn in opserver 2026-11-05 21:06:40,350 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86570169:ctest-vn4-51454533 virtual network link through opserver 10.0.0.177 2026-11-05 21:06:40,350 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-05 21:06:40,717 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-05 21:06:40,770 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86570169:ctest-vn4-51454533', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86570169:ctest-vn4-51454533?flat'} 2026-11-05 21:06:40,770 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86570169:ctest-vn4-51454533 is found in opserver 2026-11-05 21:06:40,782 - DEBUG - Do not have enough data to verify VN in agent 2026-11-05 21:06:40,787 - DEBUG - VRF ids for VN ctest-vn4-51454533: {} 2026-11-05 21:06:40,787 - DEBUG - ====Verifying data for ctest-policy1-53651216 in API_Server ====== 2026-11-05 21:06:40,787 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-05 21:06:40,793 - DEBUG - Requesting: http://10.0.0.177:8082/domain/f2497c17-aefb-4631-a433-d69289cd8ade 2026-11-05 21:06:40,804 - DEBUG - Requesting: http://10.0.0.177:8082/project/de9eceb9-15c5-4bbc-bad3-f6b74a3936da 2026-11-05 21:06:40,873 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/2787877a-2d4a-4d04-b685-46d535baf681 2026-11-05 21:06:40,882 - INFO - Verified policy ctest-policy1-53651216 in API Server, Result: True 2026-11-05 21:06:40,882 - INFO - Done with setup and verification, moving onto test .. 2026-11-05 21:06:40,890 - INFO - Deleting VN ctest-vn4-51454533 2026-11-05 21:06:41,010 - DEBUG - Response for deleting network () 2026-11-05 21:06:41,010 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/ce6cba0c-2666-4ad3-bba7-dbf12c28bf26 2026-11-05 21:06:41,015 - DEBUG - Response Code: 404 2026-11-05 21:06:41,015 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-05 21:06:41,020 - DEBUG - Requesting: http://10.0.0.177:8082/domain/f2497c17-aefb-4631-a433-d69289cd8ade 2026-11-05 21:06:41,071 - DEBUG - Requesting: http://10.0.0.177:8082/project/de9eceb9-15c5-4bbc-bad3-f6b74a3936da 2026-11-05 21:06:41,138 - INFO - Validated that VN ctest-vn4-51454533 is not found in API Server 2026-11-05 21:06:41,151 - DEBUG - VN ctest-vn4-51454533 is not present in Agent 10.0.0.177 2026-11-05 21:06:41,151 - INFO - Validated that VN ctest-vn4-51454533 is not in any agent 2026-11-05 21:06:41,168 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51454533 info 2026-11-05 21:06:41,191 - INFO - Deleted policy ctest-policy1-53651216 2026-11-05 21:06:41,351 - DEBUG - policy ctest-policy1-53651216 is not found in API Server 2026-11-05 21:06:41,608 - DEBUG - No XMPP flaps were noticed during the test 2026-11-05 21:06:41,608 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-05 21:06:41,608 - INFO - -------------------------------------------------------------------------------- 2026-11-05 21:06:41,897 - DEBUG - No XMPP flaps were noticed during the test 2026-11-05 21:06:41,897 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-05 21:06:41,897 - INFO - -------------------------------------------------------------------------------- 2026-11-05 21:06:42,738 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-86570169, ID : de9eceb9-15c5-4bbc-bad3-f6b74a3936da