2026-08-14 08:57:23,349 - INFO - Domain Default found not creating 2026-08-14 08:57:23,500 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-64660957 not found, creating it 2026-08-14 08:57:23,947 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-64660957, ID : 5d808613-d56d-4661-a382-179db0c21e7c 2026-08-14 08:57:25,470 - INFO - ================================================================================ 2026-08-14 08:57:25,470 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-14 08:57:25,725 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.14': '0'}} with 2026-08-14 08:57:25,725 - INFO - Initial checks done. Running the testcase now 2026-08-14 08:57:25,725 - INFO - 2026-08-14 08:57:25,725 - INFO - ================================================================================ 2026-08-14 08:57:25,725 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-14 08:57:25,726 - 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-14 08:57:26,012 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.14': '0'}} with 2026-08-14 08:57:26,012 - INFO - Initial checks done. Running the testcase now 2026-08-14 08:57:26,012 - INFO - 2026-08-14 08:57:26,395 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64660957:ctest-vn4-13257480, 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-64660957:ctest-vn4-13257480, 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-64660957:ctest-vn4-13257480, 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-64660957:ctest-vn4-13257480, 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-14 08:57:26,891 - DEBUG - Response for create_network : {'network': {'id': '1ab82769-2561-4b12-8d60-55f56b4ffd4f', 'name': 'ctest-vn4-13257480', 'tenant_id': '5d808613d56d4661a382179db0c21e7c', 'project_id': '5d808613d56d4661a382179db0c21e7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64660957', 'ctest-vn4-13257480'], 'port_security_enabled': True, 'description': ''}} 2026-08-14 08:57:27,047 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a0203c5-a230-4b01-81b3-ef5b5fd31701', 'name': '', 'tenant_id': '5d808613d56d4661a382179db0c21e7c', 'network_id': '1ab82769-2561-4b12-8d60-55f56b4ffd4f', 'ip_version': 4, 'cidr': '64.249.52.128/26', 'allocation_pools': [{'start': '64.249.52.130', 'end': '64.249.52.190'}], 'gateway_ip': '64.249.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.249.52.130', 'tags': [], 'project_id': '5d808613d56d4661a382179db0c21e7c'}} 2026-08-14 08:57:27,217 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dac1f9e6-fedf-47f4-b754-36ce6d1f63b3', 'name': '', 'tenant_id': '5d808613d56d4661a382179db0c21e7c', 'network_id': '1ab82769-2561-4b12-8d60-55f56b4ffd4f', 'ip_version': 6, 'cidr': '2ec6:eb85:6885:e8ae:60c9:30dc::/96', 'allocation_pools': [{'start': '2ec6:eb85:6885:e8ae:60c9:30dc:0:2', 'end': '2ec6:eb85:6885:e8ae:60c9:30dc:ffff:fffe'}], 'gateway_ip': '2ec6:eb85:6885:e8ae:60c9:30dc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ec6:eb85:6885:e8ae:60c9:30dc:0:2', 'tags': [], 'project_id': '5d808613d56d4661a382179db0c21e7c'}} 2026-08-14 08:57:27,235 - INFO - Created VN ctest-vn4-13257480 2026-08-14 08:57:27,286 - DEBUG - VN ctest-vn4-13257480 UUID is 1ab82769-2561-4b12-8d60-55f56b4ffd4f 2026-08-14 08:57:27,471 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1ab82769-2561-4b12-8d60-55f56b4ffd4f', 'name': 'ctest-vn4-13257480', 'tenant_id': '5d808613d56d4661a382179db0c21e7c', 'project_id': '5d808613d56d4661a382179db0c21e7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3a0203c5-a230-4b01-81b3-ef5b5fd31701', 'dac1f9e6-fedf-47f4-b754-36ce6d1f63b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64660957', 'ctest-vn4-13257480'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64660957', 'ctest-policy1-66444380']], 'subnet_ipam': [{'subnet_cidr': '64.249.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ec6:eb85:6885:e8ae:60c9:30dc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-14 08:57:27,638 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-08-14 08:57:27,967 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-08-14 08:57:27,994 - DEBUG - Requesting: http://10.0.0.250:8082/domain/111bd326-0f01-4c5e-8f8b-08308c02ee67 2026-08-14 08:57:28,006 - DEBUG - Requesting: http://10.0.0.250:8082/project/5d808613-d56d-4661-a382-179db0c21e7c 2026-08-14 08:57:28,085 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/1ab82769-2561-4b12-8d60-55f56b4ffd4f 2026-08-14 08:57:28,096 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/1ab82769-2561-4b12-8d60-55f56b4ffd4f 2026-08-14 08:57:28,105 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/d495b791-d649-4b41-8fcb-e6ad4a84bee8 2026-08-14 08:57:28,112 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/d495b791-d649-4b41-8fcb-e6ad4a84bee8 2026-08-14 08:57:28,118 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/5cd82d26-a545-4418-9392-cb9e33c0c21b 2026-08-14 08:57:28,124 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-14 08:57:28,124 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/1ab82769-2561-4b12-8d60-55f56b4ffd4f 2026-08-14 08:57:28,133 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/d495b791-d649-4b41-8fcb-e6ad4a84bee8 2026-08-14 08:57:28,146 - INFO - Verified VN network id 11 for VN 1ab82769-2561-4b12-8d60-55f56b4ffd4f 2026-08-14 08:57:28,146 - INFO - Verifications in API Server for VN ctest-vn4-13257480 passed 2026-08-14 08:57:28,147 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/1ab82769-2561-4b12-8d60-55f56b4ffd4f 2026-08-14 08:57:28,156 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/d495b791-d649-4b41-8fcb-e6ad4a84bee8 2026-08-14 08:57:28,162 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/d495b791-d649-4b41-8fcb-e6ad4a84bee8 2026-08-14 08:57:28,169 - DEBUG - Requesting: http://10.0.0.250:8082/route-target/5cd82d26-a545-4418-9392-cb9e33c0c21b 2026-08-14 08:57:28,181 - DEBUG - Control-node 10.0.0.250 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64660957:ctest-vn4-13257480', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-64660957', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1925332173253069586', 'uuid-lslong': '10187236869667814735'}, 'enable': 'true', 'created': '2026-08-14T08:57:26', 'last-modified': '2026-08-14T08:57:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.739570'} 2026-08-14 08:57:28,188 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-14 08:57:28,189 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13257480 passed 2026-08-14 08:57:28,189 - DEBUG - ====Verifying policy data for ctest-vn4-13257480 in API_Server ====== 2026-08-14 08:57:28,189 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-08-14 08:57:28,194 - DEBUG - Requesting: http://10.0.0.250:8082/domain/111bd326-0f01-4c5e-8f8b-08308c02ee67 2026-08-14 08:57:28,202 - DEBUG - Requesting: http://10.0.0.250:8082/project/5d808613-d56d-4661-a382-179db0c21e7c 2026-08-14 08:57:28,275 - DEBUG - Requesting: http://10.0.0.250:8082/virtual-network/1ab82769-2561-4b12-8d60-55f56b4ffd4f 2026-08-14 08:57:28,284 - DEBUG - ==>Verifying data for policy with id: da57ec51-4dc4-4ebb-9bd4-b744aba975e0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64660957', 'ctest-policy1-66444380'] 2026-08-14 08:57:28,284 - INFO - VN ctest-vn4-13257480 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-14 08:57:28,284 - DEBUG - Verifying the vn in opserver 2026-08-14 08:57:28,284 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64660957:ctest-vn4-13257480 virtual network link through opserver 10.0.0.250 2026-08-14 08:57:28,284 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-08-14 08:57:28,606 - DEBUG - Requesting: http://10.0.0.250:8081/analytics/uves/virtual-networks 2026-08-14 08:57:28,659 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64660957:ctest-vn4-13257480', 'href': 'http://10.0.0.250:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64660957:ctest-vn4-13257480?flat'} 2026-08-14 08:57:28,659 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64660957:ctest-vn4-13257480 is found in opserver 2026-08-14 08:57:28,669 - DEBUG - Do not have enough data to verify VN in agent 2026-08-14 08:57:28,673 - DEBUG - VRF ids for VN ctest-vn4-13257480: {} 2026-08-14 08:57:28,674 - DEBUG - ====Verifying data for ctest-policy1-66444380 in API_Server ====== 2026-08-14 08:57:28,674 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-08-14 08:57:28,679 - DEBUG - Requesting: http://10.0.0.250:8082/domain/111bd326-0f01-4c5e-8f8b-08308c02ee67 2026-08-14 08:57:28,689 - DEBUG - Requesting: http://10.0.0.250:8082/project/5d808613-d56d-4661-a382-179db0c21e7c 2026-08-14 08:57:28,770 - DEBUG - Requesting: http://10.0.0.250:8082/network-policy/da57ec51-4dc4-4ebb-9bd4-b744aba975e0 2026-08-14 08:57:28,781 - INFO - Verified policy ctest-policy1-66444380 in API Server, Result: True 2026-08-14 08:57:28,781 - INFO - Done with setup and verification, moving onto test .. 2026-08-14 08:57:28,789 - INFO - Deleting VN ctest-vn4-13257480 2026-08-14 08:57:28,900 - DEBUG - Response for deleting network () 2026-08-14 08:57:28,900 - DEBUG - Requesting: http://10.0.0.250:8082/routing-instance/d495b791-d649-4b41-8fcb-e6ad4a84bee8 2026-08-14 08:57:28,905 - DEBUG - Response Code: 404 2026-08-14 08:57:28,905 - DEBUG - Requesting: http://10.0.0.250:8082/domains 2026-08-14 08:57:28,910 - DEBUG - Requesting: http://10.0.0.250:8082/domain/111bd326-0f01-4c5e-8f8b-08308c02ee67 2026-08-14 08:57:28,967 - DEBUG - Requesting: http://10.0.0.250:8082/project/5d808613-d56d-4661-a382-179db0c21e7c 2026-08-14 08:57:29,041 - INFO - Validated that VN ctest-vn4-13257480 is not found in API Server 2026-08-14 08:57:29,051 - DEBUG - VN ctest-vn4-13257480 is not present in Agent 10.0.0.250 2026-08-14 08:57:29,051 - INFO - Validated that VN ctest-vn4-13257480 is not in any agent 2026-08-14 08:57:29,066 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13257480 info 2026-08-14 08:57:29,092 - INFO - Deleted policy ctest-policy1-66444380 2026-08-14 08:57:29,258 - DEBUG - policy ctest-policy1-66444380 is not found in API Server 2026-08-14 08:57:29,512 - DEBUG - No XMPP flaps were noticed during the test