2026-08-25 20:57:59,488 - INFO - Domain Default found not creating 2026-08-25 20:57:59,656 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85352088 not found, creating it 2026-08-25 20:58:00,114 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85352088, ID : 916b9c64-a068-42ed-afec-278c2bbb3664 2026-08-25 20:58:01,627 - INFO - ================================================================================ 2026-08-25 20:58:01,627 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 20:58:01,904 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-08-25 20:58:01,904 - INFO - Initial checks done. Running the testcase now 2026-08-25 20:58:01,904 - INFO - 2026-08-25 20:58:01,904 - INFO - ================================================================================ 2026-08-25 20:58:01,904 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 20:58:01,904 - 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-08-25 20:58:02,190 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-08-25 20:58:02,190 - INFO - Initial checks done. Running the testcase now 2026-08-25 20:58:02,190 - INFO - 2026-08-25 20:58:02,562 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85352088:ctest-vn4-97095674, 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-85352088:ctest-vn4-97095674, 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-85352088:ctest-vn4-97095674, 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-85352088:ctest-vn4-97095674, 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-08-25 20:58:03,126 - DEBUG - Response for create_network : {'network': {'id': 'eaf71a12-1380-4d31-9e89-a7f5f3f45e9a', 'name': 'ctest-vn4-97095674', 'tenant_id': '916b9c64a06842edafec278c2bbb3664', 'project_id': '916b9c64a06842edafec278c2bbb3664', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85352088', 'ctest-vn4-97095674'], 'port_security_enabled': True, 'description': ''}} 2026-08-25 20:58:03,325 - DEBUG - Response for create_subnet : {'subnet': {'id': '179fd729-a86c-4f7d-8b0f-bbc66da483f0', 'name': '', 'tenant_id': '916b9c64a06842edafec278c2bbb3664', 'network_id': 'eaf71a12-1380-4d31-9e89-a7f5f3f45e9a', 'ip_version': 4, 'cidr': '118.145.249.128/26', 'allocation_pools': [{'start': '118.145.249.130', 'end': '118.145.249.190'}], 'gateway_ip': '118.145.249.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.145.249.130', 'tags': [], 'project_id': '916b9c64a06842edafec278c2bbb3664'}} 2026-08-25 20:58:03,543 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a9f4cd3-541e-4bcd-9b05-9194d535e1bb', 'name': '', 'tenant_id': '916b9c64a06842edafec278c2bbb3664', 'network_id': 'eaf71a12-1380-4d31-9e89-a7f5f3f45e9a', 'ip_version': 6, 'cidr': '2c66:e4a7:fc2f:322b:f4e0:a49a::/96', 'allocation_pools': [{'start': '2c66:e4a7:fc2f:322b:f4e0:a49a:0:2', 'end': '2c66:e4a7:fc2f:322b:f4e0:a49a:ffff:fffe'}], 'gateway_ip': '2c66:e4a7:fc2f:322b:f4e0:a49a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c66:e4a7:fc2f:322b:f4e0:a49a:0:2', 'tags': [], 'project_id': '916b9c64a06842edafec278c2bbb3664'}} 2026-08-25 20:58:03,563 - INFO - Created VN ctest-vn4-97095674 2026-08-25 20:58:03,614 - DEBUG - VN ctest-vn4-97095674 UUID is eaf71a12-1380-4d31-9e89-a7f5f3f45e9a 2026-08-25 20:58:03,830 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eaf71a12-1380-4d31-9e89-a7f5f3f45e9a', 'name': 'ctest-vn4-97095674', 'tenant_id': '916b9c64a06842edafec278c2bbb3664', 'project_id': '916b9c64a06842edafec278c2bbb3664', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['179fd729-a86c-4f7d-8b0f-bbc66da483f0', '6a9f4cd3-541e-4bcd-9b05-9194d535e1bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85352088', 'ctest-vn4-97095674'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85352088', 'ctest-policy1-53002959']], 'subnet_ipam': [{'subnet_cidr': '118.145.249.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c66:e4a7:fc2f:322b:f4e0:a49a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-25 20:58:03,990 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-25 20:58:04,311 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-25 20:58:04,346 - DEBUG - Requesting: http://10.0.0.161:8082/domain/cd32befe-7dff-4772-ad77-7c5510de2390 2026-08-25 20:58:04,359 - DEBUG - Requesting: http://10.0.0.161:8082/project/916b9c64-a068-42ed-afec-278c2bbb3664 2026-08-25 20:58:04,436 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/eaf71a12-1380-4d31-9e89-a7f5f3f45e9a 2026-08-25 20:58:04,450 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/eaf71a12-1380-4d31-9e89-a7f5f3f45e9a 2026-08-25 20:58:04,461 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/4b2b26df-43a7-426e-ac3e-1b48a5a75453 2026-08-25 20:58:04,469 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/4b2b26df-43a7-426e-ac3e-1b48a5a75453 2026-08-25 20:58:04,476 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/6008331e-4f9a-4780-bb56-aacef25b7c88 2026-08-25 20:58:04,484 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 20:58:04,484 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/eaf71a12-1380-4d31-9e89-a7f5f3f45e9a 2026-08-25 20:58:04,494 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/4b2b26df-43a7-426e-ac3e-1b48a5a75453 2026-08-25 20:58:04,511 - INFO - Verified VN network id 11 for VN eaf71a12-1380-4d31-9e89-a7f5f3f45e9a 2026-08-25 20:58:04,511 - INFO - Verifications in API Server for VN ctest-vn4-97095674 passed 2026-08-25 20:58:04,512 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/eaf71a12-1380-4d31-9e89-a7f5f3f45e9a 2026-08-25 20:58:04,523 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/4b2b26df-43a7-426e-ac3e-1b48a5a75453 2026-08-25 20:58:04,532 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/4b2b26df-43a7-426e-ac3e-1b48a5a75453 2026-08-25 20:58:04,539 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/6008331e-4f9a-4780-bb56-aacef25b7c88 2026-08-25 20:58:04,554 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85352088:ctest-vn4-97095674', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85352088', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16931029989061578033', 'uuid-lslong': '11423846604603678362'}, 'enable': 'true', 'created': '2026-08-25T20:58:03', 'last-modified': '2026-08-25T20:58:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.754927'} 2026-08-25 20:58:04,563 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 20:58:04,564 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-97095674 passed 2026-08-25 20:58:04,564 - DEBUG - ====Verifying policy data for ctest-vn4-97095674 in API_Server ====== 2026-08-25 20:58:04,564 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-25 20:58:04,573 - DEBUG - Requesting: http://10.0.0.161:8082/domain/cd32befe-7dff-4772-ad77-7c5510de2390 2026-08-25 20:58:04,584 - DEBUG - Requesting: http://10.0.0.161:8082/project/916b9c64-a068-42ed-afec-278c2bbb3664 2026-08-25 20:58:04,657 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/eaf71a12-1380-4d31-9e89-a7f5f3f45e9a 2026-08-25 20:58:04,669 - DEBUG - ==>Verifying data for policy with id: 556ac3ff-b72f-4e2e-8490-1f66ded196cb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85352088', 'ctest-policy1-53002959'] 2026-08-25 20:58:04,669 - INFO - VN ctest-vn4-97095674 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-25 20:58:04,670 - DEBUG - Verifying the vn in opserver 2026-08-25 20:58:04,670 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85352088:ctest-vn4-97095674 virtual network link through opserver 10.0.0.161 2026-08-25 20:58:04,670 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-08-25 20:58:05,007 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-08-25 20:58:05,069 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85352088:ctest-vn4-97095674', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85352088:ctest-vn4-97095674?flat'} 2026-08-25 20:58:05,069 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85352088:ctest-vn4-97095674 is found in opserver 2026-08-25 20:58:05,083 - DEBUG - Do not have enough data to verify VN in agent 2026-08-25 20:58:05,089 - DEBUG - VRF ids for VN ctest-vn4-97095674: {} 2026-08-25 20:58:05,089 - DEBUG - ====Verifying data for ctest-policy1-53002959 in API_Server ====== 2026-08-25 20:58:05,089 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-25 20:58:05,097 - DEBUG - Requesting: http://10.0.0.161:8082/domain/cd32befe-7dff-4772-ad77-7c5510de2390 2026-08-25 20:58:05,107 - DEBUG - Requesting: http://10.0.0.161:8082/project/916b9c64-a068-42ed-afec-278c2bbb3664 2026-08-25 20:58:05,183 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/556ac3ff-b72f-4e2e-8490-1f66ded196cb 2026-08-25 20:58:05,203 - INFO - Verified policy ctest-policy1-53002959 in API Server, Result: True 2026-08-25 20:58:05,203 - INFO - Done with setup and verification, moving onto test .. 2026-08-25 20:58:05,211 - INFO - Deleting VN ctest-vn4-97095674 2026-08-25 20:58:05,337 - DEBUG - Response for deleting network () 2026-08-25 20:58:05,337 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/4b2b26df-43a7-426e-ac3e-1b48a5a75453 2026-08-25 20:58:05,343 - DEBUG - Response Code: 404 2026-08-25 20:58:05,344 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-25 20:58:05,349 - DEBUG - Requesting: http://10.0.0.161:8082/domain/cd32befe-7dff-4772-ad77-7c5510de2390 2026-08-25 20:58:05,404 - DEBUG - Requesting: http://10.0.0.161:8082/project/916b9c64-a068-42ed-afec-278c2bbb3664 2026-08-25 20:58:05,486 - INFO - Validated that VN ctest-vn4-97095674 is not found in API Server 2026-08-25 20:58:05,497 - DEBUG - VN ctest-vn4-97095674 is not present in Agent 10.0.0.161 2026-08-25 20:58:05,497 - INFO - Validated that VN ctest-vn4-97095674 is not in any agent 2026-08-25 20:58:05,514 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-97095674 info 2026-08-25 20:58:05,538 - INFO - Deleted policy ctest-policy1-53002959 2026-08-25 20:58:05,714 - DEBUG - policy ctest-policy1-53002959 is not found in API Server 2026-08-25 20:58:05,976 - DEBUG - No XMPP flaps were noticed during the test