2026-05-07 02:27:17,261 - INFO - Domain Default found not creating 2026-05-07 02:27:17,494 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-66785153 not found, creating it 2026-05-07 02:27:18,004 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-66785153, ID : 4a4a6980-1722-4604-9550-75593a034aee 2026-05-07 02:27:19,772 - INFO - ================================================================================ 2026-05-07 02:27:19,772 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-07 02:27:20,041 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2026-05-07 02:27:20,041 - INFO - Initial checks done. Running the testcase now 2026-05-07 02:27:20,041 - INFO - 2026-05-07 02:27:20,041 - INFO - ================================================================================ 2026-05-07 02:27:20,042 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-07 02:27:20,042 - 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-05-07 02:27:20,356 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2026-05-07 02:27:20,356 - INFO - Initial checks done. Running the testcase now 2026-05-07 02:27:20,356 - INFO - 2026-05-07 02:27:20,794 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66785153:ctest-vn4-59030240, 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-66785153:ctest-vn4-59030240, 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-66785153:ctest-vn4-59030240, 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-66785153:ctest-vn4-59030240, 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-05-07 02:27:21,379 - DEBUG - Response for create_network : {'network': {'id': '64628bf6-ea8f-423e-b09f-61bf052f10dd', 'name': 'ctest-vn4-59030240', 'tenant_id': '4a4a698017224604955075593a034aee', 'project_id': '4a4a698017224604955075593a034aee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66785153', 'ctest-vn4-59030240'], 'port_security_enabled': True, 'description': ''}} 2026-05-07 02:27:21,750 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca656dab-3fe9-4a9e-b408-c844dfef824b', 'name': '', 'tenant_id': '4a4a698017224604955075593a034aee', 'network_id': '64628bf6-ea8f-423e-b09f-61bf052f10dd', 'ip_version': 4, 'cidr': '122.102.114.64/26', 'allocation_pools': [{'start': '122.102.114.66', 'end': '122.102.114.126'}], 'gateway_ip': '122.102.114.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.102.114.66', 'tags': [], 'project_id': '4a4a698017224604955075593a034aee'}} 2026-05-07 02:27:22,114 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b50482e-65c7-4887-95a3-aa213f7a90dd', 'name': '', 'tenant_id': '4a4a698017224604955075593a034aee', 'network_id': '64628bf6-ea8f-423e-b09f-61bf052f10dd', 'ip_version': 6, 'cidr': '3ef6:a88a:124:6b28:e0ad:694d::/96', 'allocation_pools': [{'start': '3ef6:a88a:124:6b28:e0ad:694d:0:2', 'end': '3ef6:a88a:124:6b28:e0ad:694d:ffff:fffe'}], 'gateway_ip': '3ef6:a88a:124:6b28:e0ad:694d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ef6:a88a:124:6b28:e0ad:694d:0:2', 'tags': [], 'project_id': '4a4a698017224604955075593a034aee'}} 2026-05-07 02:27:22,137 - INFO - Created VN ctest-vn4-59030240 2026-05-07 02:27:22,194 - DEBUG - VN ctest-vn4-59030240 UUID is 64628bf6-ea8f-423e-b09f-61bf052f10dd 2026-05-07 02:27:22,440 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '64628bf6-ea8f-423e-b09f-61bf052f10dd', 'name': 'ctest-vn4-59030240', 'tenant_id': '4a4a698017224604955075593a034aee', 'project_id': '4a4a698017224604955075593a034aee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca656dab-3fe9-4a9e-b408-c844dfef824b', '8b50482e-65c7-4887-95a3-aa213f7a90dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66785153', 'ctest-vn4-59030240'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66785153', 'ctest-policy1-72234567']], 'subnet_ipam': [{'subnet_cidr': '122.102.114.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ef6:a88a:124:6b28:e0ad:694d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-07 02:27:22,614 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-07 02:27:22,927 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-07 02:27:22,968 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ce58ba89-0286-48e6-aceb-3557d6ec7944 2026-05-07 02:27:22,985 - DEBUG - Requesting: http://10.0.0.22:8082/project/4a4a6980-1722-4604-9550-75593a034aee 2026-05-07 02:27:23,067 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/64628bf6-ea8f-423e-b09f-61bf052f10dd 2026-05-07 02:27:23,082 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/64628bf6-ea8f-423e-b09f-61bf052f10dd 2026-05-07 02:27:23,094 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ad6aec3d-5ca5-4532-9bf2-dc390e6418fb 2026-05-07 02:27:23,104 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ad6aec3d-5ca5-4532-9bf2-dc390e6418fb 2026-05-07 02:27:23,114 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bdd1b820-1f59-48c3-bfee-092e832ad232 2026-05-07 02:27:23,123 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-07 02:27:23,123 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/64628bf6-ea8f-423e-b09f-61bf052f10dd 2026-05-07 02:27:23,135 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ad6aec3d-5ca5-4532-9bf2-dc390e6418fb 2026-05-07 02:27:23,157 - INFO - Verified VN network id 12 for VN 64628bf6-ea8f-423e-b09f-61bf052f10dd 2026-05-07 02:27:23,157 - INFO - Verifications in API Server for VN ctest-vn4-59030240 passed 2026-05-07 02:27:23,157 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/64628bf6-ea8f-423e-b09f-61bf052f10dd 2026-05-07 02:27:23,168 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ad6aec3d-5ca5-4532-9bf2-dc390e6418fb 2026-05-07 02:27:23,178 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ad6aec3d-5ca5-4532-9bf2-dc390e6418fb 2026-05-07 02:27:23,186 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bdd1b820-1f59-48c3-bfee-092e832ad232 2026-05-07 02:27:23,201 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66785153:ctest-vn4-59030240', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66785153', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7233497844123910718', 'uuid-lslong': '12726998545025929437'}, 'enable': 'true', 'created': '2026-05-07T02:27:21', 'last-modified': '2026-05-07T02:27:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.796663'} 2026-05-07 02:27:23,208 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-07 02:27:23,208 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-59030240 passed 2026-05-07 02:27:23,208 - DEBUG - ====Verifying policy data for ctest-vn4-59030240 in API_Server ====== 2026-05-07 02:27:23,209 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-07 02:27:23,215 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ce58ba89-0286-48e6-aceb-3557d6ec7944 2026-05-07 02:27:23,228 - DEBUG - Requesting: http://10.0.0.22:8082/project/4a4a6980-1722-4604-9550-75593a034aee 2026-05-07 02:27:23,313 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/64628bf6-ea8f-423e-b09f-61bf052f10dd 2026-05-07 02:27:23,324 - DEBUG - ==>Verifying data for policy with id: f878f01b-4007-446e-ab1d-429341195788, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66785153', 'ctest-policy1-72234567'] 2026-05-07 02:27:23,324 - INFO - VN ctest-vn4-59030240 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-07 02:27:23,324 - DEBUG - Verifying the vn in opserver 2026-05-07 02:27:23,324 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66785153:ctest-vn4-59030240 virtual network link through opserver 10.0.0.22 2026-05-07 02:27:23,324 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-07 02:27:23,639 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-07 02:27:23,728 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66785153:ctest-vn4-59030240', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66785153:ctest-vn4-59030240?flat'} 2026-05-07 02:27:23,728 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66785153:ctest-vn4-59030240 is found in opserver 2026-05-07 02:27:23,738 - DEBUG - Do not have enough data to verify VN in agent 2026-05-07 02:27:23,743 - DEBUG - VRF ids for VN ctest-vn4-59030240: {} 2026-05-07 02:27:23,744 - DEBUG - ====Verifying data for ctest-policy1-72234567 in API_Server ====== 2026-05-07 02:27:23,744 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-07 02:27:23,751 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ce58ba89-0286-48e6-aceb-3557d6ec7944 2026-05-07 02:27:23,763 - DEBUG - Requesting: http://10.0.0.22:8082/project/4a4a6980-1722-4604-9550-75593a034aee 2026-05-07 02:27:23,850 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/f878f01b-4007-446e-ab1d-429341195788 2026-05-07 02:27:23,862 - INFO - Verified policy ctest-policy1-72234567 in API Server, Result: True 2026-05-07 02:27:23,862 - INFO - Done with setup and verification, moving onto test .. 2026-05-07 02:27:23,872 - INFO - Deleting VN ctest-vn4-59030240 2026-05-07 02:27:24,015 - DEBUG - Response for deleting network () 2026-05-07 02:27:24,015 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ad6aec3d-5ca5-4532-9bf2-dc390e6418fb 2026-05-07 02:27:24,021 - DEBUG - Response Code: 404 2026-05-07 02:27:24,022 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-07 02:27:24,029 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ce58ba89-0286-48e6-aceb-3557d6ec7944 2026-05-07 02:27:24,089 - DEBUG - Requesting: http://10.0.0.22:8082/project/4a4a6980-1722-4604-9550-75593a034aee 2026-05-07 02:27:24,166 - INFO - Validated that VN ctest-vn4-59030240 is not found in API Server 2026-05-07 02:27:24,176 - DEBUG - VN ctest-vn4-59030240 is not present in Agent 10.0.0.22 2026-05-07 02:27:24,176 - INFO - Validated that VN ctest-vn4-59030240 is not in any agent 2026-05-07 02:27:24,195 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-59030240 info 2026-05-07 02:27:24,241 - INFO - Deleted policy ctest-policy1-72234567 2026-05-07 02:27:24,413 - DEBUG - policy ctest-policy1-72234567 is not found in API Server 2026-05-07 02:27:24,694 - DEBUG - No XMPP flaps were noticed during the test 2026-05-07 02:27:24,694 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-07 02:27:24,694 - INFO - -------------------------------------------------------------------------------- 2026-05-07 02:27:24,995 - DEBUG - No XMPP flaps were noticed during the test 2026-05-07 02:27:24,995 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-05-07 02:27:24,995 - INFO - -------------------------------------------------------------------------------- 2026-05-07 02:27:25,754 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-66785153, ID : 4a4a6980-1722-4604-9550-75593a034aee