2026-08-20 19:18:06,507 - INFO - Domain Default found not creating 2026-08-20 19:18:06,712 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32780250 not found, creating it 2026-08-20 19:18:07,225 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32780250, ID : 1d4b88d8-2a1f-40d3-8d64-33f269871226 2026-08-20 19:18:09,132 - INFO - ================================================================================ 2026-08-20 19:18:09,132 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 19:18:09,403 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-08-20 19:18:09,403 - INFO - Initial checks done. Running the testcase now 2026-08-20 19:18:09,403 - INFO - 2026-08-20 19:18:09,404 - INFO - ================================================================================ 2026-08-20 19:18:09,404 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 19:18:09,404 - 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-08-20 19:18:09,697 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-08-20 19:18:09,697 - INFO - Initial checks done. Running the testcase now 2026-08-20 19:18:09,697 - INFO - 2026-08-20 19:18:10,151 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32780250:ctest-vn4-94085607, 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-32780250:ctest-vn4-94085607, 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-32780250:ctest-vn4-94085607, 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-32780250:ctest-vn4-94085607, 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-08-20 19:18:10,665 - DEBUG - Response for create_network : {'network': {'id': 'f4cff0e3-d31f-4908-b351-aa6e91f4185f', 'name': 'ctest-vn4-94085607', 'tenant_id': '1d4b88d82a1f40d38d6433f269871226', 'project_id': '1d4b88d82a1f40d38d6433f269871226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32780250', 'ctest-vn4-94085607'], 'port_security_enabled': True, 'description': ''}} 2026-08-20 19:18:10,839 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9f63ed3-cf31-4d5b-89be-5f7bda51ba50', 'name': '', 'tenant_id': '1d4b88d82a1f40d38d6433f269871226', 'network_id': 'f4cff0e3-d31f-4908-b351-aa6e91f4185f', 'ip_version': 4, 'cidr': '143.50.217.64/26', 'allocation_pools': [{'start': '143.50.217.66', 'end': '143.50.217.126'}], 'gateway_ip': '143.50.217.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.50.217.66', 'tags': [], 'project_id': '1d4b88d82a1f40d38d6433f269871226'}} 2026-08-20 19:18:11,005 - DEBUG - Response for create_subnet : {'subnet': {'id': '7750601a-8724-40b7-8ffd-59a050b9fff7', 'name': '', 'tenant_id': '1d4b88d82a1f40d38d6433f269871226', 'network_id': 'f4cff0e3-d31f-4908-b351-aa6e91f4185f', 'ip_version': 6, 'cidr': '2c45:d33a:106:9439:bdc6:221e::/96', 'allocation_pools': [{'start': '2c45:d33a:106:9439:bdc6:221e:0:2', 'end': '2c45:d33a:106:9439:bdc6:221e:ffff:fffe'}], 'gateway_ip': '2c45:d33a:106:9439:bdc6:221e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c45:d33a:106:9439:bdc6:221e:0:2', 'tags': [], 'project_id': '1d4b88d82a1f40d38d6433f269871226'}} 2026-08-20 19:18:11,026 - INFO - Created VN ctest-vn4-94085607 2026-08-20 19:18:11,081 - DEBUG - VN ctest-vn4-94085607 UUID is f4cff0e3-d31f-4908-b351-aa6e91f4185f 2026-08-20 19:18:11,316 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f4cff0e3-d31f-4908-b351-aa6e91f4185f', 'name': 'ctest-vn4-94085607', 'tenant_id': '1d4b88d82a1f40d38d6433f269871226', 'project_id': '1d4b88d82a1f40d38d6433f269871226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9f63ed3-cf31-4d5b-89be-5f7bda51ba50', '7750601a-8724-40b7-8ffd-59a050b9fff7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32780250', 'ctest-vn4-94085607'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32780250', 'ctest-policy1-63117239']], 'subnet_ipam': [{'subnet_cidr': '143.50.217.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c45:d33a:106:9439:bdc6:221e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-20 19:18:11,480 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 19:18:11,851 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 19:18:11,881 - DEBUG - Requesting: http://10.0.0.177:8082/domain/652c9a16-0f04-4db0-9be4-f946f3a3c04f 2026-08-20 19:18:11,894 - DEBUG - Requesting: http://10.0.0.177:8082/project/1d4b88d8-2a1f-40d3-8d64-33f269871226 2026-08-20 19:18:11,997 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f4cff0e3-d31f-4908-b351-aa6e91f4185f 2026-08-20 19:18:12,013 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f4cff0e3-d31f-4908-b351-aa6e91f4185f 2026-08-20 19:18:12,027 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/1531a29a-0e09-47a3-a495-283fee3ed45f 2026-08-20 19:18:12,040 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/1531a29a-0e09-47a3-a495-283fee3ed45f 2026-08-20 19:18:12,050 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/4a658788-25eb-40ba-903a-9a2eff8051fe 2026-08-20 19:18:12,060 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 19:18:12,060 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f4cff0e3-d31f-4908-b351-aa6e91f4185f 2026-08-20 19:18:12,072 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/1531a29a-0e09-47a3-a495-283fee3ed45f 2026-08-20 19:18:12,090 - INFO - Verified VN network id 11 for VN f4cff0e3-d31f-4908-b351-aa6e91f4185f 2026-08-20 19:18:12,090 - INFO - Verifications in API Server for VN ctest-vn4-94085607 passed 2026-08-20 19:18:12,090 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f4cff0e3-d31f-4908-b351-aa6e91f4185f 2026-08-20 19:18:12,102 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/1531a29a-0e09-47a3-a495-283fee3ed45f 2026-08-20 19:18:12,111 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/1531a29a-0e09-47a3-a495-283fee3ed45f 2026-08-20 19:18:12,119 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/4a658788-25eb-40ba-903a-9a2eff8051fe 2026-08-20 19:18:12,135 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32780250:ctest-vn4-94085607', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32780250', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17640583126723807496', 'uuid-lslong': '12921296197774481503'}, 'enable': 'true', 'created': '2026-08-20T19:18:10', 'last-modified': '2026-08-20T19:18:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.852899'} 2026-08-20 19:18:12,142 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 19:18:12,143 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94085607 passed 2026-08-20 19:18:12,143 - DEBUG - ====Verifying policy data for ctest-vn4-94085607 in API_Server ====== 2026-08-20 19:18:12,143 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 19:18:12,151 - DEBUG - Requesting: http://10.0.0.177:8082/domain/652c9a16-0f04-4db0-9be4-f946f3a3c04f 2026-08-20 19:18:12,165 - DEBUG - Requesting: http://10.0.0.177:8082/project/1d4b88d8-2a1f-40d3-8d64-33f269871226 2026-08-20 19:18:12,243 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/f4cff0e3-d31f-4908-b351-aa6e91f4185f 2026-08-20 19:18:12,255 - DEBUG - ==>Verifying data for policy with id: 4c48ee05-6321-486f-9b20-e6ac1e9a9905, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32780250', 'ctest-policy1-63117239'] 2026-08-20 19:18:12,255 - INFO - VN ctest-vn4-94085607 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-20 19:18:12,255 - DEBUG - Verifying the vn in opserver 2026-08-20 19:18:12,255 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32780250:ctest-vn4-94085607 virtual network link through opserver 10.0.0.177 2026-08-20 19:18:12,255 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-20 19:18:12,623 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-20 19:18:12,680 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32780250:ctest-vn4-94085607', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32780250:ctest-vn4-94085607?flat'} 2026-08-20 19:18:12,680 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32780250:ctest-vn4-94085607 is found in opserver 2026-08-20 19:18:12,693 - DEBUG - Do not have enough data to verify VN in agent 2026-08-20 19:18:12,698 - DEBUG - VRF ids for VN ctest-vn4-94085607: {} 2026-08-20 19:18:12,698 - DEBUG - ====Verifying data for ctest-policy1-63117239 in API_Server ====== 2026-08-20 19:18:12,698 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 19:18:12,707 - DEBUG - Requesting: http://10.0.0.177:8082/domain/652c9a16-0f04-4db0-9be4-f946f3a3c04f 2026-08-20 19:18:12,718 - DEBUG - Requesting: http://10.0.0.177:8082/project/1d4b88d8-2a1f-40d3-8d64-33f269871226 2026-08-20 19:18:12,797 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/4c48ee05-6321-486f-9b20-e6ac1e9a9905 2026-08-20 19:18:12,809 - INFO - Verified policy ctest-policy1-63117239 in API Server, Result: True 2026-08-20 19:18:12,809 - INFO - Done with setup and verification, moving onto test .. 2026-08-20 19:18:12,819 - INFO - Deleting VN ctest-vn4-94085607 2026-08-20 19:18:13,010 - DEBUG - Response for deleting network () 2026-08-20 19:18:13,010 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/1531a29a-0e09-47a3-a495-283fee3ed45f 2026-08-20 19:18:13,016 - DEBUG - Response Code: 404 2026-08-20 19:18:13,016 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-20 19:18:13,022 - DEBUG - Requesting: http://10.0.0.177:8082/domain/652c9a16-0f04-4db0-9be4-f946f3a3c04f 2026-08-20 19:18:13,079 - DEBUG - Requesting: http://10.0.0.177:8082/project/1d4b88d8-2a1f-40d3-8d64-33f269871226 2026-08-20 19:18:13,158 - INFO - Validated that VN ctest-vn4-94085607 is not found in API Server 2026-08-20 19:18:13,172 - DEBUG - VN ctest-vn4-94085607 is not present in Agent 10.0.0.177 2026-08-20 19:18:13,172 - INFO - Validated that VN ctest-vn4-94085607 is not in any agent 2026-08-20 19:18:13,195 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94085607 info 2026-08-20 19:18:13,225 - INFO - Deleted policy ctest-policy1-63117239 2026-08-20 19:18:13,396 - DEBUG - policy ctest-policy1-63117239 is not found in API Server 2026-08-20 19:18:13,665 - DEBUG - No XMPP flaps were noticed during the test