2026-02-16 14:18:29,920 - INFO - Domain Default found not creating 2026-02-16 14:18:30,068 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-14255061 not found, creating it 2026-02-16 14:18:30,497 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-14255061, ID : 6c0828d0-be1b-4126-875d-4658d3ede6ed 2026-02-16 14:18:31,876 - INFO - ================================================================================ 2026-02-16 14:18:31,876 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 14:18:32,139 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2026-02-16 14:18:32,139 - INFO - Initial checks done. Running the testcase now 2026-02-16 14:18:32,139 - INFO - 2026-02-16 14:18:32,139 - INFO - ================================================================================ 2026-02-16 14:18:32,139 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 14:18:32,139 - 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-02-16 14:18:32,428 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2026-02-16 14:18:32,428 - INFO - Initial checks done. Running the testcase now 2026-02-16 14:18:32,428 - INFO - 2026-02-16 14:18:32,772 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14255061:ctest-vn4-13598531, 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-14255061:ctest-vn4-13598531, 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-14255061:ctest-vn4-13598531, 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-14255061:ctest-vn4-13598531, 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-02-16 14:18:33,273 - DEBUG - Response for create_network : {'network': {'id': '6d90a08c-7fe0-4ee8-bf2d-eb4abaf0ba91', 'name': 'ctest-vn4-13598531', 'tenant_id': '6c0828d0be1b4126875d4658d3ede6ed', 'project_id': '6c0828d0be1b4126875d4658d3ede6ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14255061', 'ctest-vn4-13598531'], 'port_security_enabled': True, 'description': ''}} 2026-02-16 14:18:33,480 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e28bc14a-f954-447c-b0ce-14a67a68778a', 'name': '', 'tenant_id': '6c0828d0be1b4126875d4658d3ede6ed', 'network_id': '6d90a08c-7fe0-4ee8-bf2d-eb4abaf0ba91', 'ip_version': 4, 'cidr': '220.36.71.128/26', 'allocation_pools': [{'start': '220.36.71.130', 'end': '220.36.71.190'}], 'gateway_ip': '220.36.71.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.36.71.130', 'tags': [], 'project_id': '6c0828d0be1b4126875d4658d3ede6ed'}} 2026-02-16 14:18:33,686 - DEBUG - Response for create_subnet : {'subnet': {'id': '24de7707-fdbd-4d1b-8b76-63193265e9ec', 'name': '', 'tenant_id': '6c0828d0be1b4126875d4658d3ede6ed', 'network_id': '6d90a08c-7fe0-4ee8-bf2d-eb4abaf0ba91', 'ip_version': 6, 'cidr': '345b:79ec:f66e:1354:30fb:16be::/96', 'allocation_pools': [{'start': '345b:79ec:f66e:1354:30fb:16be:0:2', 'end': '345b:79ec:f66e:1354:30fb:16be:ffff:fffe'}], 'gateway_ip': '345b:79ec:f66e:1354:30fb:16be:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '345b:79ec:f66e:1354:30fb:16be:0:2', 'tags': [], 'project_id': '6c0828d0be1b4126875d4658d3ede6ed'}} 2026-02-16 14:18:33,706 - INFO - Created VN ctest-vn4-13598531 2026-02-16 14:18:33,759 - DEBUG - VN ctest-vn4-13598531 UUID is 6d90a08c-7fe0-4ee8-bf2d-eb4abaf0ba91 2026-02-16 14:18:33,954 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6d90a08c-7fe0-4ee8-bf2d-eb4abaf0ba91', 'name': 'ctest-vn4-13598531', 'tenant_id': '6c0828d0be1b4126875d4658d3ede6ed', 'project_id': '6c0828d0be1b4126875d4658d3ede6ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e28bc14a-f954-447c-b0ce-14a67a68778a', '24de7707-fdbd-4d1b-8b76-63193265e9ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14255061', 'ctest-vn4-13598531'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14255061', 'ctest-policy1-54981308']], 'subnet_ipam': [{'subnet_cidr': '220.36.71.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '345b:79ec:f66e:1354:30fb:16be::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-16 14:18:34,127 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-16 14:18:34,416 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-16 14:18:34,445 - DEBUG - Requesting: http://10.0.0.242:8082/domain/dc25377f-0901-4fe2-b308-e1ee4e491d20 2026-02-16 14:18:34,456 - DEBUG - Requesting: http://10.0.0.242:8082/project/6c0828d0-be1b-4126-875d-4658d3ede6ed 2026-02-16 14:18:34,523 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6d90a08c-7fe0-4ee8-bf2d-eb4abaf0ba91 2026-02-16 14:18:34,534 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6d90a08c-7fe0-4ee8-bf2d-eb4abaf0ba91 2026-02-16 14:18:34,543 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bc130108-fc61-4053-bb44-0d9b82342212 2026-02-16 14:18:34,549 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bc130108-fc61-4053-bb44-0d9b82342212 2026-02-16 14:18:34,556 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8267d0d7-924f-46cf-82f0-d84f4b109693 2026-02-16 14:18:34,562 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 14:18:34,562 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6d90a08c-7fe0-4ee8-bf2d-eb4abaf0ba91 2026-02-16 14:18:34,570 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bc130108-fc61-4053-bb44-0d9b82342212 2026-02-16 14:18:34,584 - INFO - Verified VN network id 11 for VN 6d90a08c-7fe0-4ee8-bf2d-eb4abaf0ba91 2026-02-16 14:18:34,584 - INFO - Verifications in API Server for VN ctest-vn4-13598531 passed 2026-02-16 14:18:34,584 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6d90a08c-7fe0-4ee8-bf2d-eb4abaf0ba91 2026-02-16 14:18:34,594 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bc130108-fc61-4053-bb44-0d9b82342212 2026-02-16 14:18:34,601 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bc130108-fc61-4053-bb44-0d9b82342212 2026-02-16 14:18:34,608 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/8267d0d7-924f-46cf-82f0-d84f4b109693 2026-02-16 14:18:34,620 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14255061:ctest-vn4-13598531', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-14255061', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7894986672081751784', 'uuid-lslong': '13775925541392661137'}, 'enable': 'true', 'created': '2026-02-16T14:18:33', 'last-modified': '2026-02-16T14:18:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.691818'} 2026-02-16 14:18:34,625 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 14:18:34,625 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13598531 passed 2026-02-16 14:18:34,626 - DEBUG - ====Verifying policy data for ctest-vn4-13598531 in API_Server ====== 2026-02-16 14:18:34,626 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-16 14:18:34,631 - DEBUG - Requesting: http://10.0.0.242:8082/domain/dc25377f-0901-4fe2-b308-e1ee4e491d20 2026-02-16 14:18:34,642 - DEBUG - Requesting: http://10.0.0.242:8082/project/6c0828d0-be1b-4126-875d-4658d3ede6ed 2026-02-16 14:18:34,711 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/6d90a08c-7fe0-4ee8-bf2d-eb4abaf0ba91 2026-02-16 14:18:34,720 - DEBUG - ==>Verifying data for policy with id: c2b41ccb-66bf-403e-b743-4436d9cddf5f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14255061', 'ctest-policy1-54981308'] 2026-02-16 14:18:34,720 - INFO - VN ctest-vn4-13598531 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-16 14:18:34,720 - DEBUG - Verifying the vn in opserver 2026-02-16 14:18:34,720 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14255061:ctest-vn4-13598531 virtual network link through opserver 10.0.0.242 2026-02-16 14:18:34,720 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-16 14:18:35,010 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-16 14:18:35,066 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14255061:ctest-vn4-13598531', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14255061:ctest-vn4-13598531?flat'} 2026-02-16 14:18:35,066 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14255061:ctest-vn4-13598531 is found in opserver 2026-02-16 14:18:35,075 - DEBUG - Do not have enough data to verify VN in agent 2026-02-16 14:18:35,079 - DEBUG - VRF ids for VN ctest-vn4-13598531: {} 2026-02-16 14:18:35,079 - DEBUG - ====Verifying data for ctest-policy1-54981308 in API_Server ====== 2026-02-16 14:18:35,079 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-16 14:18:35,084 - DEBUG - Requesting: http://10.0.0.242:8082/domain/dc25377f-0901-4fe2-b308-e1ee4e491d20 2026-02-16 14:18:35,094 - DEBUG - Requesting: http://10.0.0.242:8082/project/6c0828d0-be1b-4126-875d-4658d3ede6ed 2026-02-16 14:18:35,165 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/c2b41ccb-66bf-403e-b743-4436d9cddf5f 2026-02-16 14:18:35,173 - INFO - Verified policy ctest-policy1-54981308 in API Server, Result: True 2026-02-16 14:18:35,173 - INFO - Done with setup and verification, moving onto test .. 2026-02-16 14:18:35,181 - INFO - Deleting VN ctest-vn4-13598531 2026-02-16 14:18:35,282 - DEBUG - Response for deleting network () 2026-02-16 14:18:35,282 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/bc130108-fc61-4053-bb44-0d9b82342212 2026-02-16 14:18:35,287 - DEBUG - Response Code: 404 2026-02-16 14:18:35,287 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-16 14:18:35,292 - DEBUG - Requesting: http://10.0.0.242:8082/domain/dc25377f-0901-4fe2-b308-e1ee4e491d20 2026-02-16 14:18:35,343 - DEBUG - Requesting: http://10.0.0.242:8082/project/6c0828d0-be1b-4126-875d-4658d3ede6ed 2026-02-16 14:18:35,414 - INFO - Validated that VN ctest-vn4-13598531 is not found in API Server 2026-02-16 14:18:35,423 - DEBUG - VN ctest-vn4-13598531 is not present in Agent 10.0.0.242 2026-02-16 14:18:35,423 - INFO - Validated that VN ctest-vn4-13598531 is not in any agent 2026-02-16 14:18:35,435 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13598531 info 2026-02-16 14:18:35,460 - INFO - Deleted policy ctest-policy1-54981308 2026-02-16 14:18:35,618 - DEBUG - policy ctest-policy1-54981308 is not found in API Server 2026-02-16 14:18:35,875 - DEBUG - No XMPP flaps were noticed during the test 2026-02-16 14:18:35,875 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-02-16 14:18:35,875 - INFO - -------------------------------------------------------------------------------- 2026-02-16 14:18:36,164 - DEBUG - No XMPP flaps were noticed during the test 2026-02-16 14:18:36,164 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-16 14:18:36,164 - INFO - -------------------------------------------------------------------------------- 2026-02-16 14:18:36,854 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-14255061, ID : 6c0828d0-be1b-4126-875d-4658d3ede6ed