2026-10-21 12:03:15,359 - INFO - Domain Default found not creating 2026-10-21 12:03:15,587 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68111262 not found, creating it 2026-10-21 12:03:16,111 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68111262, ID : 4859f357-e5af-4a86-b38e-4eeb30dcbcc8 2026-10-21 12:03:17,919 - INFO - ================================================================================ 2026-10-21 12:03:17,919 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-21 12:03:18,202 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-10-21 12:03:18,202 - INFO - Initial checks done. Running the testcase now 2026-10-21 12:03:18,202 - INFO - 2026-10-21 12:03:18,202 - INFO - ================================================================================ 2026-10-21 12:03:18,202 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-21 12:03:18,202 - 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-10-21 12:03:18,490 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with 2026-10-21 12:03:18,490 - INFO - Initial checks done. Running the testcase now 2026-10-21 12:03:18,490 - INFO - 2026-10-21 12:03:18,922 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68111262:ctest-vn4-78742240, 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-68111262:ctest-vn4-78742240, 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-68111262:ctest-vn4-78742240, 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-68111262:ctest-vn4-78742240, 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-10-21 12:03:19,451 - DEBUG - Response for create_network : {'network': {'id': '7bf20a13-2555-44c5-af4d-ebd4f05ad8c4', 'name': 'ctest-vn4-78742240', 'tenant_id': '4859f357e5af4a86b38e4eeb30dcbcc8', 'project_id': '4859f357e5af4a86b38e4eeb30dcbcc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68111262', 'ctest-vn4-78742240'], 'port_security_enabled': True, 'description': ''}} 2026-10-21 12:03:19,625 - DEBUG - Response for create_subnet : {'subnet': {'id': '1de332de-6bd8-4999-ad92-6ce88f5cfee6', 'name': '', 'tenant_id': '4859f357e5af4a86b38e4eeb30dcbcc8', 'network_id': '7bf20a13-2555-44c5-af4d-ebd4f05ad8c4', 'ip_version': 4, 'cidr': '93.117.233.64/26', 'allocation_pools': [{'start': '93.117.233.66', 'end': '93.117.233.126'}], 'gateway_ip': '93.117.233.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.117.233.66', 'tags': [], 'project_id': '4859f357e5af4a86b38e4eeb30dcbcc8'}} 2026-10-21 12:03:19,864 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f345c4a8-16c0-45cf-b078-c816bcdbcb5f', 'name': '', 'tenant_id': '4859f357e5af4a86b38e4eeb30dcbcc8', 'network_id': '7bf20a13-2555-44c5-af4d-ebd4f05ad8c4', 'ip_version': 6, 'cidr': '230c:3bd1:c28d:1b08:8e4b:c753::/96', 'allocation_pools': [{'start': '230c:3bd1:c28d:1b08:8e4b:c753:0:2', 'end': '230c:3bd1:c28d:1b08:8e4b:c753:ffff:fffe'}], 'gateway_ip': '230c:3bd1:c28d:1b08:8e4b:c753:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '230c:3bd1:c28d:1b08:8e4b:c753:0:2', 'tags': [], 'project_id': '4859f357e5af4a86b38e4eeb30dcbcc8'}} 2026-10-21 12:03:19,884 - INFO - Created VN ctest-vn4-78742240 2026-10-21 12:03:19,937 - DEBUG - VN ctest-vn4-78742240 UUID is 7bf20a13-2555-44c5-af4d-ebd4f05ad8c4 2026-10-21 12:03:20,140 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7bf20a13-2555-44c5-af4d-ebd4f05ad8c4', 'name': 'ctest-vn4-78742240', 'tenant_id': '4859f357e5af4a86b38e4eeb30dcbcc8', 'project_id': '4859f357e5af4a86b38e4eeb30dcbcc8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['1de332de-6bd8-4999-ad92-6ce88f5cfee6', 'f345c4a8-16c0-45cf-b078-c816bcdbcb5f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68111262', 'ctest-vn4-78742240'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68111262', 'ctest-policy1-31539520']], 'subnet_ipam': [{'subnet_cidr': '93.117.233.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '230c:3bd1:c28d:1b08:8e4b:c753::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-21 12:03:20,305 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-21 12:03:20,675 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-21 12:03:20,704 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a83f978d-94a2-4908-8efe-835cbd47614f 2026-10-21 12:03:20,717 - DEBUG - Requesting: http://10.0.0.185:8082/project/4859f357-e5af-4a86-b38e-4eeb30dcbcc8 2026-10-21 12:03:20,792 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/7bf20a13-2555-44c5-af4d-ebd4f05ad8c4 2026-10-21 12:03:20,805 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/7bf20a13-2555-44c5-af4d-ebd4f05ad8c4 2026-10-21 12:03:20,816 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/bf907b06-e074-484d-9913-a27d1c0d315e 2026-10-21 12:03:20,824 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/bf907b06-e074-484d-9913-a27d1c0d315e 2026-10-21 12:03:20,832 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/dd81620a-11f4-4014-b0bd-c7ce75d3af4d 2026-10-21 12:03:20,839 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-21 12:03:20,839 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/7bf20a13-2555-44c5-af4d-ebd4f05ad8c4 2026-10-21 12:03:20,850 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/bf907b06-e074-484d-9913-a27d1c0d315e 2026-10-21 12:03:20,865 - INFO - Verified VN network id 12 for VN 7bf20a13-2555-44c5-af4d-ebd4f05ad8c4 2026-10-21 12:03:20,865 - INFO - Verifications in API Server for VN ctest-vn4-78742240 passed 2026-10-21 12:03:20,865 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/7bf20a13-2555-44c5-af4d-ebd4f05ad8c4 2026-10-21 12:03:20,875 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/bf907b06-e074-484d-9913-a27d1c0d315e 2026-10-21 12:03:20,882 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/bf907b06-e074-484d-9913-a27d1c0d315e 2026-10-21 12:03:20,890 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/dd81620a-11f4-4014-b0bd-c7ce75d3af4d 2026-10-21 12:03:20,903 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68111262:ctest-vn4-78742240', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68111262', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8931212088376116421', 'uuid-lslong': '12632011829642188996'}, 'enable': 'true', 'created': '2026-10-21T12:03:19', 'last-modified': '2026-10-21T12:03:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.795819'} 2026-10-21 12:03:20,911 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-21 12:03:20,911 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78742240 passed 2026-10-21 12:03:20,911 - DEBUG - ====Verifying policy data for ctest-vn4-78742240 in API_Server ====== 2026-10-21 12:03:20,911 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-21 12:03:20,917 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a83f978d-94a2-4908-8efe-835cbd47614f 2026-10-21 12:03:20,930 - DEBUG - Requesting: http://10.0.0.185:8082/project/4859f357-e5af-4a86-b38e-4eeb30dcbcc8 2026-10-21 12:03:21,011 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/7bf20a13-2555-44c5-af4d-ebd4f05ad8c4 2026-10-21 12:03:21,021 - DEBUG - ==>Verifying data for policy with id: 70f05855-00d5-49ea-86a9-987c4d54eb39, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68111262', 'ctest-policy1-31539520'] 2026-10-21 12:03:21,021 - INFO - VN ctest-vn4-78742240 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-21 12:03:21,022 - DEBUG - Verifying the vn in opserver 2026-10-21 12:03:21,022 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68111262:ctest-vn4-78742240 virtual network link through opserver 10.0.0.185 2026-10-21 12:03:21,022 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-10-21 12:03:21,397 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-10-21 12:03:21,459 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68111262:ctest-vn4-78742240', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68111262:ctest-vn4-78742240?flat'} 2026-10-21 12:03:21,459 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68111262:ctest-vn4-78742240 is found in opserver 2026-10-21 12:03:21,469 - DEBUG - Do not have enough data to verify VN in agent 2026-10-21 12:03:21,474 - DEBUG - VRF ids for VN ctest-vn4-78742240: {} 2026-10-21 12:03:21,475 - DEBUG - ====Verifying data for ctest-policy1-31539520 in API_Server ====== 2026-10-21 12:03:21,475 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-21 12:03:21,480 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a83f978d-94a2-4908-8efe-835cbd47614f 2026-10-21 12:03:21,490 - DEBUG - Requesting: http://10.0.0.185:8082/project/4859f357-e5af-4a86-b38e-4eeb30dcbcc8 2026-10-21 12:03:21,564 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/70f05855-00d5-49ea-86a9-987c4d54eb39 2026-10-21 12:03:21,574 - INFO - Verified policy ctest-policy1-31539520 in API Server, Result: True 2026-10-21 12:03:21,574 - INFO - Done with setup and verification, moving onto test .. 2026-10-21 12:03:21,583 - INFO - Deleting VN ctest-vn4-78742240 2026-10-21 12:03:21,698 - DEBUG - Response for deleting network () 2026-10-21 12:03:21,698 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/bf907b06-e074-484d-9913-a27d1c0d315e 2026-10-21 12:03:21,703 - DEBUG - Response Code: 404 2026-10-21 12:03:21,704 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-21 12:03:21,710 - DEBUG - Requesting: http://10.0.0.185:8082/domain/a83f978d-94a2-4908-8efe-835cbd47614f 2026-10-21 12:03:21,763 - DEBUG - Requesting: http://10.0.0.185:8082/project/4859f357-e5af-4a86-b38e-4eeb30dcbcc8 2026-10-21 12:03:21,846 - INFO - Validated that VN ctest-vn4-78742240 is not found in API Server 2026-10-21 12:03:21,858 - DEBUG - VN ctest-vn4-78742240 is not present in Agent 10.0.0.185 2026-10-21 12:03:21,858 - INFO - Validated that VN ctest-vn4-78742240 is not in any agent 2026-10-21 12:03:21,878 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78742240 info 2026-10-21 12:03:21,906 - INFO - Deleted policy ctest-policy1-31539520 2026-10-21 12:03:22,077 - DEBUG - policy ctest-policy1-31539520 is not found in API Server 2026-10-21 12:03:22,341 - DEBUG - No XMPP flaps were noticed during the test 2026-10-21 12:03:22,341 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-10-21 12:03:22,341 - INFO - -------------------------------------------------------------------------------- 2026-10-21 12:03:22,636 - DEBUG - No XMPP flaps were noticed during the test 2026-10-21 12:03:22,636 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-10-21 12:03:22,636 - INFO - -------------------------------------------------------------------------------- 2026-10-21 12:03:23,412 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-68111262, ID : 4859f357-e5af-4a86-b38e-4eeb30dcbcc8