2026-05-26 16:07:39,796 - INFO - Domain Default found not creating 2026-05-26 16:07:39,953 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-14316562 not found, creating it 2026-05-26 16:07:40,418 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-14316562, ID : e43968e2-4507-4486-b443-a9c661b3c2ea 2026-05-26 16:07:41,905 - INFO - ================================================================================ 2026-05-26 16:07:41,905 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-26 16:07:42,158 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2026-05-26 16:07:42,158 - INFO - Initial checks done. Running the testcase now 2026-05-26 16:07:42,158 - INFO - 2026-05-26 16:07:42,159 - INFO - ================================================================================ 2026-05-26 16:07:42,159 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-26 16:07:42,159 - 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-26 16:07:42,449 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2026-05-26 16:07:42,449 - INFO - Initial checks done. Running the testcase now 2026-05-26 16:07:42,450 - INFO - 2026-05-26 16:07:42,773 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14316562:ctest-vn4-28520206, 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-14316562:ctest-vn4-28520206, 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-14316562:ctest-vn4-28520206, 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-14316562:ctest-vn4-28520206, 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-26 16:07:43,275 - DEBUG - Response for create_network : {'network': {'id': '906ad00b-dfe5-42cb-8b3e-0ffb13d52e3d', 'name': 'ctest-vn4-28520206', 'tenant_id': 'e43968e245074486b443a9c661b3c2ea', 'project_id': 'e43968e245074486b443a9c661b3c2ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14316562', 'ctest-vn4-28520206'], 'port_security_enabled': True, 'description': ''}} 2026-05-26 16:07:43,495 - DEBUG - Response for create_subnet : {'subnet': {'id': '01ae2c2f-72b5-4028-b8cc-dfdc9f908595', 'name': '', 'tenant_id': 'e43968e245074486b443a9c661b3c2ea', 'network_id': '906ad00b-dfe5-42cb-8b3e-0ffb13d52e3d', 'ip_version': 4, 'cidr': '97.32.95.64/26', 'allocation_pools': [{'start': '97.32.95.66', 'end': '97.32.95.126'}], 'gateway_ip': '97.32.95.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.32.95.66', 'tags': [], 'project_id': 'e43968e245074486b443a9c661b3c2ea'}} 2026-05-26 16:07:43,702 - DEBUG - Response for create_subnet : {'subnet': {'id': '7bd55216-e719-46b7-82b8-3e7d7fb33729', 'name': '', 'tenant_id': 'e43968e245074486b443a9c661b3c2ea', 'network_id': '906ad00b-dfe5-42cb-8b3e-0ffb13d52e3d', 'ip_version': 6, 'cidr': '2a1b:9de6:f1a1:b11:f699:d2d::/96', 'allocation_pools': [{'start': '2a1b:9de6:f1a1:b11:f699:d2d:0:2', 'end': '2a1b:9de6:f1a1:b11:f699:d2d:ffff:fffe'}], 'gateway_ip': '2a1b:9de6:f1a1:b11:f699:d2d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a1b:9de6:f1a1:b11:f699:d2d:0:2', 'tags': [], 'project_id': 'e43968e245074486b443a9c661b3c2ea'}} 2026-05-26 16:07:43,721 - INFO - Created VN ctest-vn4-28520206 2026-05-26 16:07:43,773 - DEBUG - VN ctest-vn4-28520206 UUID is 906ad00b-dfe5-42cb-8b3e-0ffb13d52e3d 2026-05-26 16:07:43,953 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '906ad00b-dfe5-42cb-8b3e-0ffb13d52e3d', 'name': 'ctest-vn4-28520206', 'tenant_id': 'e43968e245074486b443a9c661b3c2ea', 'project_id': 'e43968e245074486b443a9c661b3c2ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['01ae2c2f-72b5-4028-b8cc-dfdc9f908595', '7bd55216-e719-46b7-82b8-3e7d7fb33729'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14316562', 'ctest-vn4-28520206'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14316562', 'ctest-policy1-09282224']], 'subnet_ipam': [{'subnet_cidr': '97.32.95.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a1b:9de6:f1a1:b11:f699:d2d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-26 16:07:44,117 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-26 16:07:44,411 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-26 16:07:44,447 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aff26475-242c-466d-b46d-129e4259877d 2026-05-26 16:07:44,458 - DEBUG - Requesting: http://10.0.0.38:8082/project/e43968e2-4507-4486-b443-a9c661b3c2ea 2026-05-26 16:07:44,530 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/906ad00b-dfe5-42cb-8b3e-0ffb13d52e3d 2026-05-26 16:07:44,543 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/906ad00b-dfe5-42cb-8b3e-0ffb13d52e3d 2026-05-26 16:07:44,554 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ce3ddc53-df25-4e36-9b50-ed42d91f3352 2026-05-26 16:07:44,562 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ce3ddc53-df25-4e36-9b50-ed42d91f3352 2026-05-26 16:07:44,568 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e18025cb-57e8-48dc-a079-563d08594d50 2026-05-26 16:07:44,575 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-26 16:07:44,575 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/906ad00b-dfe5-42cb-8b3e-0ffb13d52e3d 2026-05-26 16:07:44,583 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ce3ddc53-df25-4e36-9b50-ed42d91f3352 2026-05-26 16:07:44,594 - INFO - Verified VN network id 10 for VN 906ad00b-dfe5-42cb-8b3e-0ffb13d52e3d 2026-05-26 16:07:44,594 - INFO - Verifications in API Server for VN ctest-vn4-28520206 passed 2026-05-26 16:07:44,594 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/906ad00b-dfe5-42cb-8b3e-0ffb13d52e3d 2026-05-26 16:07:44,603 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ce3ddc53-df25-4e36-9b50-ed42d91f3352 2026-05-26 16:07:44,609 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ce3ddc53-df25-4e36-9b50-ed42d91f3352 2026-05-26 16:07:44,614 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e18025cb-57e8-48dc-a079-563d08594d50 2026-05-26 16:07:44,624 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14316562:ctest-vn4-28520206', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-14316562', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10406358638412513995', 'uuid-lslong': '10033474590871989821'}, 'enable': 'true', 'created': '2026-05-26T16:07:43', 'last-modified': '2026-05-26T16:07:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.686491'} 2026-05-26 16:07:44,629 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-26 16:07:44,629 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28520206 passed 2026-05-26 16:07:44,630 - DEBUG - ====Verifying policy data for ctest-vn4-28520206 in API_Server ====== 2026-05-26 16:07:44,630 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-26 16:07:44,635 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aff26475-242c-466d-b46d-129e4259877d 2026-05-26 16:07:44,644 - DEBUG - Requesting: http://10.0.0.38:8082/project/e43968e2-4507-4486-b443-a9c661b3c2ea 2026-05-26 16:07:44,716 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/906ad00b-dfe5-42cb-8b3e-0ffb13d52e3d 2026-05-26 16:07:44,725 - DEBUG - ==>Verifying data for policy with id: 6ddf3570-7c32-4198-8263-f027cd808e81, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14316562', 'ctest-policy1-09282224'] 2026-05-26 16:07:44,725 - INFO - VN ctest-vn4-28520206 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-26 16:07:44,725 - DEBUG - Verifying the vn in opserver 2026-05-26 16:07:44,725 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14316562:ctest-vn4-28520206 virtual network link through opserver 10.0.0.38 2026-05-26 16:07:44,725 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-26 16:07:45,018 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-26 16:07:45,079 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14316562:ctest-vn4-28520206', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14316562:ctest-vn4-28520206?flat'} 2026-05-26 16:07:45,079 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14316562:ctest-vn4-28520206 is found in opserver 2026-05-26 16:07:45,088 - DEBUG - Do not have enough data to verify VN in agent 2026-05-26 16:07:45,092 - DEBUG - VRF ids for VN ctest-vn4-28520206: {} 2026-05-26 16:07:45,093 - DEBUG - ====Verifying data for ctest-policy1-09282224 in API_Server ====== 2026-05-26 16:07:45,093 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-26 16:07:45,097 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aff26475-242c-466d-b46d-129e4259877d 2026-05-26 16:07:45,106 - DEBUG - Requesting: http://10.0.0.38:8082/project/e43968e2-4507-4486-b443-a9c661b3c2ea 2026-05-26 16:07:45,183 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/6ddf3570-7c32-4198-8263-f027cd808e81 2026-05-26 16:07:45,192 - INFO - Verified policy ctest-policy1-09282224 in API Server, Result: True 2026-05-26 16:07:45,192 - INFO - Done with setup and verification, moving onto test .. 2026-05-26 16:07:45,198 - INFO - Deleting VN ctest-vn4-28520206 2026-05-26 16:07:45,306 - DEBUG - Response for deleting network () 2026-05-26 16:07:45,306 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ce3ddc53-df25-4e36-9b50-ed42d91f3352 2026-05-26 16:07:45,311 - DEBUG - Response Code: 404 2026-05-26 16:07:45,311 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-26 16:07:45,316 - DEBUG - Requesting: http://10.0.0.38:8082/domain/aff26475-242c-466d-b46d-129e4259877d 2026-05-26 16:07:45,369 - DEBUG - Requesting: http://10.0.0.38:8082/project/e43968e2-4507-4486-b443-a9c661b3c2ea 2026-05-26 16:07:45,439 - INFO - Validated that VN ctest-vn4-28520206 is not found in API Server 2026-05-26 16:07:45,448 - DEBUG - VN ctest-vn4-28520206 is not present in Agent 10.0.0.38 2026-05-26 16:07:45,448 - INFO - Validated that VN ctest-vn4-28520206 is not in any agent 2026-05-26 16:07:45,463 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28520206 info 2026-05-26 16:07:45,485 - INFO - Deleted policy ctest-policy1-09282224 2026-05-26 16:07:45,644 - DEBUG - policy ctest-policy1-09282224 is not found in API Server 2026-05-26 16:07:45,897 - DEBUG - No XMPP flaps were noticed during the test 2026-05-26 16:07:45,897 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-05-26 16:07:45,897 - INFO - -------------------------------------------------------------------------------- 2026-05-26 16:07:46,185 - DEBUG - No XMPP flaps were noticed during the test 2026-05-26 16:07:46,185 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-05-26 16:07:46,185 - INFO - -------------------------------------------------------------------------------- 2026-05-26 16:07:46,874 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-14316562, ID : e43968e2-4507-4486-b443-a9c661b3c2ea