2026-09-09 09:50:05,127 - INFO - Domain Default found not creating 2026-09-09 09:50:05,304 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-91427526 not found, creating it 2026-09-09 09:50:05,817 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-91427526, ID : 140717f0-0f89-400f-862c-d21c4572d30e 2026-09-09 09:50:07,521 - INFO - ================================================================================ 2026-09-09 09:50:07,521 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 09:50:07,782 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.25': '0'}} with 2026-09-09 09:50:07,782 - INFO - Initial checks done. Running the testcase now 2026-09-09 09:50:07,782 - INFO - 2026-09-09 09:50:07,782 - INFO - ================================================================================ 2026-09-09 09:50:07,782 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-09 09:50:07,782 - 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-09-09 09:50:08,091 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.25': '0'}} with 2026-09-09 09:50:08,092 - INFO - Initial checks done. Running the testcase now 2026-09-09 09:50:08,092 - INFO - 2026-09-09 09:50:08,485 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91427526:ctest-vn4-26817831, 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-91427526:ctest-vn4-26817831, 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-91427526:ctest-vn4-26817831, 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-91427526:ctest-vn4-26817831, 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-09-09 09:50:09,057 - DEBUG - Response for create_network : {'network': {'id': '0a4ce99a-d029-40ee-a776-c8978ec0fd90', 'name': 'ctest-vn4-26817831', 'tenant_id': '140717f00f89400f862cd21c4572d30e', 'project_id': '140717f00f89400f862cd21c4572d30e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91427526', 'ctest-vn4-26817831'], 'port_security_enabled': True, 'description': ''}} 2026-09-09 09:50:09,329 - DEBUG - Response for create_subnet : {'subnet': {'id': '27723f92-6095-4c31-86b6-01a58816c07e', 'name': '', 'tenant_id': '140717f00f89400f862cd21c4572d30e', 'network_id': '0a4ce99a-d029-40ee-a776-c8978ec0fd90', 'ip_version': 4, 'cidr': '203.131.139.192/26', 'allocation_pools': [{'start': '203.131.139.194', 'end': '203.131.139.254'}], 'gateway_ip': '203.131.139.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.131.139.194', 'tags': [], 'project_id': '140717f00f89400f862cd21c4572d30e'}} 2026-09-09 09:50:09,579 - DEBUG - Response for create_subnet : {'subnet': {'id': '0cc4341b-1ef8-433e-96ec-52c735ba72a0', 'name': '', 'tenant_id': '140717f00f89400f862cd21c4572d30e', 'network_id': '0a4ce99a-d029-40ee-a776-c8978ec0fd90', 'ip_version': 6, 'cidr': '2d5f:e7a5:4662:343:32ca:6724::/96', 'allocation_pools': [{'start': '2d5f:e7a5:4662:343:32ca:6724:0:2', 'end': '2d5f:e7a5:4662:343:32ca:6724:ffff:fffe'}], 'gateway_ip': '2d5f:e7a5:4662:343:32ca:6724:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d5f:e7a5:4662:343:32ca:6724:0:2', 'tags': [], 'project_id': '140717f00f89400f862cd21c4572d30e'}} 2026-09-09 09:50:09,601 - INFO - Created VN ctest-vn4-26817831 2026-09-09 09:50:09,663 - DEBUG - VN ctest-vn4-26817831 UUID is 0a4ce99a-d029-40ee-a776-c8978ec0fd90 2026-09-09 09:50:09,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0a4ce99a-d029-40ee-a776-c8978ec0fd90', 'name': 'ctest-vn4-26817831', 'tenant_id': '140717f00f89400f862cd21c4572d30e', 'project_id': '140717f00f89400f862cd21c4572d30e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['27723f92-6095-4c31-86b6-01a58816c07e', '0cc4341b-1ef8-433e-96ec-52c735ba72a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91427526', 'ctest-vn4-26817831'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91427526', 'ctest-policy1-74733803']], 'subnet_ipam': [{'subnet_cidr': '203.131.139.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d5f:e7a5:4662:343:32ca:6724::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-09 09:50:10,099 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-09-09 09:50:10,448 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-09-09 09:50:10,481 - DEBUG - Requesting: http://10.0.0.250:8082/domain/55b8e664-b1e1-46eb-b44c-2f65bdc76f70 2026-09-09 09:50:10,495 - DEBUG - Requesting: http://10.0.0.250:8082/project/140717f0-0f89-400f-862c-d21c4572d30e 2026-09-09 09:50:10,598 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/0a4ce99a-d029-40ee-a776-c8978ec0fd90 2026-09-09 09:50:10,625 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/0a4ce99a-d029-40ee-a776-c8978ec0fd90 2026-09-09 09:50:10,653 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/251c6802-5e58-4403-a031-2e2d8090128b 2026-09-09 09:50:10,667 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/251c6802-5e58-4403-a031-2e2d8090128b 2026-09-09 09:50:10,681 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/60ed8013-5167-48c2-8e18-8c5ff87f5163 2026-09-09 09:50:10,695 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 09:50:10,696 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/0a4ce99a-d029-40ee-a776-c8978ec0fd90 2026-09-09 09:50:10,709 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/251c6802-5e58-4403-a031-2e2d8090128b 2026-09-09 09:50:10,727 - INFO - Verified VN network id 12 for VN 0a4ce99a-d029-40ee-a776-c8978ec0fd90 2026-09-09 09:50:10,728 - INFO - Verifications in API Server for VN ctest-vn4-26817831 passed 2026-09-09 09:50:10,728 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/0a4ce99a-d029-40ee-a776-c8978ec0fd90 2026-09-09 09:50:10,742 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/251c6802-5e58-4403-a031-2e2d8090128b 2026-09-09 09:50:10,754 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/251c6802-5e58-4403-a031-2e2d8090128b 2026-09-09 09:50:10,763 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/60ed8013-5167-48c2-8e18-8c5ff87f5163 2026-09-09 09:50:10,785 - DEBUG - Control-node 10.0.0.250 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91427526:ctest-vn4-26817831', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-91427526', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '742224889735889134', 'uuid-lslong': '12067052804846452112'}, 'enable': 'true', 'created': '2026-09-09T09:50:09', 'last-modified': '2026-09-09T09:50:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.916744'} 2026-09-09 09:50:10,798 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-09 09:50:10,798 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26817831 passed 2026-09-09 09:50:10,799 - DEBUG - ====Verifying policy data for ctest-vn4-26817831 in API_Server ====== 2026-09-09 09:50:10,799 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-09-09 09:50:10,807 - DEBUG - Requesting: http://10.0.0.250:8082/domain/55b8e664-b1e1-46eb-b44c-2f65bdc76f70 2026-09-09 09:50:10,824 - DEBUG - Requesting: http://10.0.0.250:8082/project/140717f0-0f89-400f-862c-d21c4572d30e 2026-09-09 09:50:10,910 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/0a4ce99a-d029-40ee-a776-c8978ec0fd90 2026-09-09 09:50:10,925 - DEBUG - ==>Verifying data for policy with id: 1b31b311-0ee5-4be5-ac6d-dd35f955ff0d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91427526', 'ctest-policy1-74733803'] 2026-09-09 09:50:10,925 - INFO - VN ctest-vn4-26817831 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-09 09:50:10,925 - DEBUG - Verifying the vn in opserver 2026-09-09 09:50:10,925 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91427526:ctest-vn4-26817831 virtual network link through opserver 10.0.0.250 2026-09-09 09:50:10,926 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-09-09 09:50:11,272 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-09-09 09:50:11,342 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91427526:ctest-vn4-26817831', 'href': 'http://10.0.0.250:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91427526:ctest-vn4-26817831?flat'} 2026-09-09 09:50:11,342 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91427526:ctest-vn4-26817831 is found in opserver 2026-09-09 09:50:11,377 - DEBUG - Do not have enough data to verify VN in agent 2026-09-09 09:50:11,387 - DEBUG - VRF ids for VN ctest-vn4-26817831: {} 2026-09-09 09:50:11,387 - DEBUG - ====Verifying data for ctest-policy1-74733803 in API_Server ====== 2026-09-09 09:50:11,388 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-09-09 09:50:11,398 - DEBUG - Requesting: http://10.0.0.250:8082/domain/55b8e664-b1e1-46eb-b44c-2f65bdc76f70 2026-09-09 09:50:11,427 - DEBUG - Requesting: http://10.0.0.250:8082/project/140717f0-0f89-400f-862c-d21c4572d30e 2026-09-09 09:50:11,515 - DEBUG - Requesting: http://10.0.0.250:8082/network-policy/1b31b311-0ee5-4be5-ac6d-dd35f955ff0d 2026-09-09 09:50:11,532 - INFO - Verified policy ctest-policy1-74733803 in API Server, Result: True 2026-09-09 09:50:11,532 - INFO - Done with setup and verification, moving onto test .. 2026-09-09 09:50:11,543 - INFO - Deleting VN ctest-vn4-26817831 2026-09-09 09:50:11,698 - DEBUG - Response for deleting network () 2026-09-09 09:50:11,698 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/251c6802-5e58-4403-a031-2e2d8090128b 2026-09-09 09:50:11,705 - DEBUG - Response Code: 404 2026-09-09 09:50:11,705 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-09-09 09:50:11,712 - DEBUG - Requesting: http://10.0.0.250:8082/domain/55b8e664-b1e1-46eb-b44c-2f65bdc76f70 2026-09-09 09:50:11,769 - DEBUG - Requesting: http://10.0.0.250:8082/project/140717f0-0f89-400f-862c-d21c4572d30e 2026-09-09 09:50:11,872 - INFO - Validated that VN ctest-vn4-26817831 is not found in API Server 2026-09-09 09:50:11,893 - DEBUG - VN ctest-vn4-26817831 is not present in Agent 10.0.0.250 2026-09-09 09:50:11,893 - INFO - Validated that VN ctest-vn4-26817831 is not in any agent 2026-09-09 09:50:11,926 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26817831 info 2026-09-09 09:50:11,962 - INFO - Deleted policy ctest-policy1-74733803 2026-09-09 09:50:12,155 - DEBUG - policy ctest-policy1-74733803 is not found in API Server 2026-09-09 09:50:12,418 - DEBUG - No XMPP flaps were noticed during the test
2026-09-09 09:50:12,419 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-09 09:50:12,419 - INFO - -------------------------------------------------------------------------------- 2026-09-09 09:50:12,717 - DEBUG - No XMPP flaps were noticed during the test
2026-09-09 09:50:12,718 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-09 09:50:12,718 - INFO - -------------------------------------------------------------------------------- 2026-09-09 09:50:13,464 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-91427526, ID : 140717f0-0f89-400f-862c-d21c4572d30e