2026-09-21 21:55:34,057 - INFO - Domain Default found not creating 2026-09-21 21:55:34,317 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30321335 not found, creating it 2026-09-21 21:55:35,122 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30321335, ID : 6850a191-b7e3-45f2-a1ac-129710a9c119 2026-09-21 21:55:37,100 - INFO - ================================================================================ 2026-09-21 21:55:37,101 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-21 21:55:37,383 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-09-21 21:55:37,383 - INFO - Initial checks done. Running the testcase now 2026-09-21 21:55:37,383 - INFO - 2026-09-21 21:55:37,383 - INFO - ================================================================================ 2026-09-21 21:55:37,383 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-21 21:55:37,383 - 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-21 21:55:37,678 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-09-21 21:55:37,678 - INFO - Initial checks done. Running the testcase now 2026-09-21 21:55:37,678 - INFO - 2026-09-21 21:55:38,138 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30321335:ctest-vn4-32104522, 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-30321335:ctest-vn4-32104522, 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-30321335:ctest-vn4-32104522, 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-30321335:ctest-vn4-32104522, 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-21 21:55:38,762 - DEBUG - Response for create_network : {'network': {'id': '7313ad11-60da-4703-9c44-0fc0136f6f44', 'name': 'ctest-vn4-32104522', 'tenant_id': '6850a191b7e345f2a1ac129710a9c119', 'project_id': '6850a191b7e345f2a1ac129710a9c119', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30321335', 'ctest-vn4-32104522'], 'port_security_enabled': True, 'description': ''}} 2026-09-21 21:55:39,050 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e869e9c-9628-4789-b13b-0d1aa262b50f', 'name': '', 'tenant_id': '6850a191b7e345f2a1ac129710a9c119', 'network_id': '7313ad11-60da-4703-9c44-0fc0136f6f44', 'ip_version': 4, 'cidr': '75.216.25.0/26', 'allocation_pools': [{'start': '75.216.25.2', 'end': '75.216.25.62'}], 'gateway_ip': '75.216.25.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.216.25.2', 'tags': [], 'project_id': '6850a191b7e345f2a1ac129710a9c119'}} 2026-09-21 21:55:39,307 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c7bc83e7-4d20-47bf-a658-980e5b224ad7', 'name': '', 'tenant_id': '6850a191b7e345f2a1ac129710a9c119', 'network_id': '7313ad11-60da-4703-9c44-0fc0136f6f44', 'ip_version': 6, 'cidr': '3763:987d:323:1924:9ed4:cefb::/96', 'allocation_pools': [{'start': '3763:987d:323:1924:9ed4:cefb:0:2', 'end': '3763:987d:323:1924:9ed4:cefb:ffff:fffe'}], 'gateway_ip': '3763:987d:323:1924:9ed4:cefb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3763:987d:323:1924:9ed4:cefb:0:2', 'tags': [], 'project_id': '6850a191b7e345f2a1ac129710a9c119'}} 2026-09-21 21:55:39,345 - INFO - Created VN ctest-vn4-32104522 2026-09-21 21:55:39,402 - DEBUG - VN ctest-vn4-32104522 UUID is 7313ad11-60da-4703-9c44-0fc0136f6f44 2026-09-21 21:55:39,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7313ad11-60da-4703-9c44-0fc0136f6f44', 'name': 'ctest-vn4-32104522', 'tenant_id': '6850a191b7e345f2a1ac129710a9c119', 'project_id': '6850a191b7e345f2a1ac129710a9c119', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['9e869e9c-9628-4789-b13b-0d1aa262b50f', 'c7bc83e7-4d20-47bf-a658-980e5b224ad7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30321335', 'ctest-vn4-32104522'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30321335', 'ctest-policy1-39116647']], 'subnet_ipam': [{'subnet_cidr': '75.216.25.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3763:987d:323:1924:9ed4:cefb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-21 21:55:39,838 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-21 21:55:40,231 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-21 21:55:40,268 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ff1525e9-65bc-4bb1-ba43-a4fad53c01fa 2026-09-21 21:55:40,285 - DEBUG - Requesting: http://10.0.0.161:8082/project/6850a191-b7e3-45f2-a1ac-129710a9c119 2026-09-21 21:55:40,388 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7313ad11-60da-4703-9c44-0fc0136f6f44 2026-09-21 21:55:40,404 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7313ad11-60da-4703-9c44-0fc0136f6f44 2026-09-21 21:55:40,417 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/778d154a-d5b7-4e13-a1ef-6167606dea21 2026-09-21 21:55:40,428 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/778d154a-d5b7-4e13-a1ef-6167606dea21 2026-09-21 21:55:40,437 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/6e10f8e7-3974-4a13-8c06-624adb592609 2026-09-21 21:55:40,446 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-21 21:55:40,447 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7313ad11-60da-4703-9c44-0fc0136f6f44 2026-09-21 21:55:40,464 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/778d154a-d5b7-4e13-a1ef-6167606dea21 2026-09-21 21:55:40,485 - INFO - Verified VN network id 12 for VN 7313ad11-60da-4703-9c44-0fc0136f6f44 2026-09-21 21:55:40,485 - INFO - Verifications in API Server for VN ctest-vn4-32104522 passed 2026-09-21 21:55:40,485 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7313ad11-60da-4703-9c44-0fc0136f6f44 2026-09-21 21:55:40,500 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/778d154a-d5b7-4e13-a1ef-6167606dea21 2026-09-21 21:55:40,510 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/778d154a-d5b7-4e13-a1ef-6167606dea21 2026-09-21 21:55:40,520 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/6e10f8e7-3974-4a13-8c06-624adb592609 2026-09-21 21:55:40,539 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30321335:ctest-vn4-32104522', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30321335', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8292161629070182147', 'uuid-lslong': '11260142285967290180'}, 'enable': 'true', 'created': '2026-09-21T21:55:38', 'last-modified': '2026-09-21T21:55:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923106'} 2026-09-21 21:55:40,549 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-21 21:55:40,549 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32104522 passed 2026-09-21 21:55:40,549 - DEBUG - ====Verifying policy data for ctest-vn4-32104522 in API_Server ====== 2026-09-21 21:55:40,549 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-21 21:55:40,557 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ff1525e9-65bc-4bb1-ba43-a4fad53c01fa 2026-09-21 21:55:40,570 - DEBUG - Requesting: http://10.0.0.161:8082/project/6850a191-b7e3-45f2-a1ac-129710a9c119 2026-09-21 21:55:40,670 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/7313ad11-60da-4703-9c44-0fc0136f6f44 2026-09-21 21:55:40,685 - DEBUG - ==>Verifying data for policy with id: 9401b077-f4fc-436b-898d-41c1516fb9ec, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30321335', 'ctest-policy1-39116647'] 2026-09-21 21:55:40,685 - INFO - VN ctest-vn4-32104522 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-21 21:55:40,685 - DEBUG - Verifying the vn in opserver 2026-09-21 21:55:40,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30321335:ctest-vn4-32104522 virtual network link through opserver 10.0.0.161 2026-09-21 21:55:40,685 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-21 21:55:41,069 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-21 21:55:41,136 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30321335:ctest-vn4-32104522', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30321335:ctest-vn4-32104522?flat'} 2026-09-21 21:55:41,136 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30321335:ctest-vn4-32104522 is found in opserver 2026-09-21 21:55:41,147 - DEBUG - Do not have enough data to verify VN in agent 2026-09-21 21:55:41,152 - DEBUG - VRF ids for VN ctest-vn4-32104522: {} 2026-09-21 21:55:41,152 - DEBUG - ====Verifying data for ctest-policy1-39116647 in API_Server ====== 2026-09-21 21:55:41,152 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-21 21:55:41,159 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ff1525e9-65bc-4bb1-ba43-a4fad53c01fa 2026-09-21 21:55:41,174 - DEBUG - Requesting: http://10.0.0.161:8082/project/6850a191-b7e3-45f2-a1ac-129710a9c119 2026-09-21 21:55:41,263 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/9401b077-f4fc-436b-898d-41c1516fb9ec 2026-09-21 21:55:41,277 - INFO - Verified policy ctest-policy1-39116647 in API Server, Result: True 2026-09-21 21:55:41,277 - INFO - Done with setup and verification, moving onto test .. 2026-09-21 21:55:41,288 - INFO - Deleting VN ctest-vn4-32104522 2026-09-21 21:55:41,451 - DEBUG - Response for deleting network () 2026-09-21 21:55:41,452 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/778d154a-d5b7-4e13-a1ef-6167606dea21 2026-09-21 21:55:41,458 - DEBUG - Response Code: 404 2026-09-21 21:55:41,458 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-21 21:55:41,466 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ff1525e9-65bc-4bb1-ba43-a4fad53c01fa 2026-09-21 21:55:41,524 - DEBUG - Requesting: http://10.0.0.161:8082/project/6850a191-b7e3-45f2-a1ac-129710a9c119 2026-09-21 21:55:41,606 - INFO - Validated that VN ctest-vn4-32104522 is not found in API Server 2026-09-21 21:55:41,622 - DEBUG - VN ctest-vn4-32104522 is not present in Agent 10.0.0.161 2026-09-21 21:55:41,622 - INFO - Validated that VN ctest-vn4-32104522 is not in any agent 2026-09-21 21:55:41,648 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32104522 info 2026-09-21 21:55:41,694 - INFO - Deleted policy ctest-policy1-39116647 2026-09-21 21:55:41,877 - DEBUG - policy ctest-policy1-39116647 is not found in API Server 2026-09-21 21:55:42,151 - DEBUG - No XMPP flaps were noticed during the test 2026-09-21 21:55:42,151 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-21 21:55:42,151 - INFO - -------------------------------------------------------------------------------- 2026-09-21 21:55:42,466 - DEBUG - No XMPP flaps were noticed during the test 2026-09-21 21:55:42,466 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-21 21:55:42,466 - INFO - -------------------------------------------------------------------------------- 2026-09-21 21:55:43,279 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-30321335, ID : 6850a191-b7e3-45f2-a1ac-129710a9c119