2026-02-12 12:30:18,667 - INFO - Domain Default found not creating 2026-02-12 12:30:18,868 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77589489 not found, creating it 2026-02-12 12:30:19,383 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77589489, ID : e7fa7754-4409-4516-adf2-2ba7e0ccf7bd 2026-02-12 12:30:21,164 - INFO - ================================================================================ 2026-02-12 12:30:21,164 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 12:30:21,445 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2026-02-12 12:30:21,445 - INFO - Initial checks done. Running the testcase now 2026-02-12 12:30:21,445 - INFO - 2026-02-12 12:30:21,445 - INFO - ================================================================================ 2026-02-12 12:30:21,445 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 12:30:21,445 - 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-12 12:30:21,754 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2026-02-12 12:30:21,755 - INFO - Initial checks done. Running the testcase now 2026-02-12 12:30:21,755 - INFO - 2026-02-12 12:30:22,127 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77589489:ctest-vn4-42091541, 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-77589489:ctest-vn4-42091541, 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-77589489:ctest-vn4-42091541, 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-77589489:ctest-vn4-42091541, 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-12 12:30:22,688 - DEBUG - Response for create_network : {'network': {'id': '67b259e9-5f18-4db8-96ed-5ab39b73ae67', 'name': 'ctest-vn4-42091541', 'tenant_id': 'e7fa775444094516adf22ba7e0ccf7bd', 'project_id': 'e7fa775444094516adf22ba7e0ccf7bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77589489', 'ctest-vn4-42091541'], 'port_security_enabled': True, 'description': ''}} 2026-02-12 12:30:22,888 - DEBUG - Response for create_subnet : {'subnet': {'id': '3639f5bf-c40e-4f2d-a535-3baa55090c3f', 'name': '', 'tenant_id': 'e7fa775444094516adf22ba7e0ccf7bd', 'network_id': '67b259e9-5f18-4db8-96ed-5ab39b73ae67', 'ip_version': 4, 'cidr': '126.210.181.64/26', 'allocation_pools': [{'start': '126.210.181.66', 'end': '126.210.181.126'}], 'gateway_ip': '126.210.181.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.210.181.66', 'tags': [], 'project_id': 'e7fa775444094516adf22ba7e0ccf7bd'}} 2026-02-12 12:30:23,051 - DEBUG - Response for create_subnet : {'subnet': {'id': '3010a168-8b97-460b-9b56-f1ceaef1e7cf', 'name': '', 'tenant_id': 'e7fa775444094516adf22ba7e0ccf7bd', 'network_id': '67b259e9-5f18-4db8-96ed-5ab39b73ae67', 'ip_version': 6, 'cidr': '2c54:79d3:2a03:3d80:2f9e:7092::/96', 'allocation_pools': [{'start': '2c54:79d3:2a03:3d80:2f9e:7092:0:2', 'end': '2c54:79d3:2a03:3d80:2f9e:7092:ffff:fffe'}], 'gateway_ip': '2c54:79d3:2a03:3d80:2f9e:7092:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c54:79d3:2a03:3d80:2f9e:7092:0:2', 'tags': [], 'project_id': 'e7fa775444094516adf22ba7e0ccf7bd'}} 2026-02-12 12:30:23,093 - INFO - Created VN ctest-vn4-42091541 2026-02-12 12:30:23,150 - DEBUG - VN ctest-vn4-42091541 UUID is 67b259e9-5f18-4db8-96ed-5ab39b73ae67 2026-02-12 12:30:23,480 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67b259e9-5f18-4db8-96ed-5ab39b73ae67', 'name': 'ctest-vn4-42091541', 'tenant_id': 'e7fa775444094516adf22ba7e0ccf7bd', 'project_id': 'e7fa775444094516adf22ba7e0ccf7bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3639f5bf-c40e-4f2d-a535-3baa55090c3f', '3010a168-8b97-460b-9b56-f1ceaef1e7cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77589489', 'ctest-vn4-42091541'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77589489', 'ctest-policy1-36693515']], 'subnet_ipam': [{'subnet_cidr': '126.210.181.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c54:79d3:2a03:3d80:2f9e:7092::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-12 12:30:23,628 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-12 12:30:23,964 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-12 12:30:24,004 - DEBUG - Requesting: http://10.0.0.141:8082/domain/94f49d51-0397-40ee-9150-48eaffeb93c1 2026-02-12 12:30:24,019 - DEBUG - Requesting: http://10.0.0.141:8082/project/e7fa7754-4409-4516-adf2-2ba7e0ccf7bd 2026-02-12 12:30:24,093 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/67b259e9-5f18-4db8-96ed-5ab39b73ae67 2026-02-12 12:30:24,107 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/67b259e9-5f18-4db8-96ed-5ab39b73ae67 2026-02-12 12:30:24,117 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9760ec97-5144-4668-8956-5c33c5ecde43 2026-02-12 12:30:24,125 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9760ec97-5144-4668-8956-5c33c5ecde43 2026-02-12 12:30:24,133 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f109f7a8-39af-43b9-a577-b04af1f5f477 2026-02-12 12:30:24,142 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 12:30:24,142 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/67b259e9-5f18-4db8-96ed-5ab39b73ae67 2026-02-12 12:30:24,152 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9760ec97-5144-4668-8956-5c33c5ecde43 2026-02-12 12:30:24,171 - INFO - Verified VN network id 12 for VN 67b259e9-5f18-4db8-96ed-5ab39b73ae67 2026-02-12 12:30:24,171 - INFO - Verifications in API Server for VN ctest-vn4-42091541 passed 2026-02-12 12:30:24,171 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/67b259e9-5f18-4db8-96ed-5ab39b73ae67 2026-02-12 12:30:24,183 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9760ec97-5144-4668-8956-5c33c5ecde43 2026-02-12 12:30:24,195 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9760ec97-5144-4668-8956-5c33c5ecde43 2026-02-12 12:30:24,202 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f109f7a8-39af-43b9-a577-b04af1f5f477 2026-02-12 12:30:24,216 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77589489:ctest-vn4-42091541', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77589489', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7472133590618754488', 'uuid-lslong': '10875448402623311463'}, 'enable': 'true', 'created': '2026-02-12T12:30:22', 'last-modified': '2026-02-12T12:30:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.785675'} 2026-02-12 12:30:24,222 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 12:30:24,222 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42091541 passed 2026-02-12 12:30:24,222 - DEBUG - ====Verifying policy data for ctest-vn4-42091541 in API_Server ====== 2026-02-12 12:30:24,222 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-12 12:30:24,230 - DEBUG - Requesting: http://10.0.0.141:8082/domain/94f49d51-0397-40ee-9150-48eaffeb93c1 2026-02-12 12:30:24,242 - DEBUG - Requesting: http://10.0.0.141:8082/project/e7fa7754-4409-4516-adf2-2ba7e0ccf7bd 2026-02-12 12:30:24,313 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/67b259e9-5f18-4db8-96ed-5ab39b73ae67 2026-02-12 12:30:24,324 - DEBUG - ==>Verifying data for policy with id: a80b0a3b-a429-429b-8714-acbfa113e371, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77589489', 'ctest-policy1-36693515'] 2026-02-12 12:30:24,324 - INFO - VN ctest-vn4-42091541 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-12 12:30:24,324 - DEBUG - Verifying the vn in opserver 2026-02-12 12:30:24,324 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77589489:ctest-vn4-42091541 virtual network link through opserver 10.0.0.141 2026-02-12 12:30:24,324 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-12 12:30:24,662 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-12 12:30:24,740 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77589489:ctest-vn4-42091541', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77589489:ctest-vn4-42091541?flat'} 2026-02-12 12:30:24,740 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77589489:ctest-vn4-42091541 is found in opserver 2026-02-12 12:30:24,751 - DEBUG - Do not have enough data to verify VN in agent 2026-02-12 12:30:24,756 - DEBUG - VRF ids for VN ctest-vn4-42091541: {} 2026-02-12 12:30:24,756 - DEBUG - ====Verifying data for ctest-policy1-36693515 in API_Server ====== 2026-02-12 12:30:24,756 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-12 12:30:24,762 - DEBUG - Requesting: http://10.0.0.141:8082/domain/94f49d51-0397-40ee-9150-48eaffeb93c1 2026-02-12 12:30:24,774 - DEBUG - Requesting: http://10.0.0.141:8082/project/e7fa7754-4409-4516-adf2-2ba7e0ccf7bd 2026-02-12 12:30:24,854 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/a80b0a3b-a429-429b-8714-acbfa113e371 2026-02-12 12:30:24,864 - INFO - Verified policy ctest-policy1-36693515 in API Server, Result: True 2026-02-12 12:30:24,864 - INFO - Done with setup and verification, moving onto test .. 2026-02-12 12:30:24,872 - INFO - Deleting VN ctest-vn4-42091541 2026-02-12 12:30:25,005 - DEBUG - Response for deleting network () 2026-02-12 12:30:25,005 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/9760ec97-5144-4668-8956-5c33c5ecde43 2026-02-12 12:30:25,010 - DEBUG - Response Code: 404 2026-02-12 12:30:25,010 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-12 12:30:25,017 - DEBUG - Requesting: http://10.0.0.141:8082/domain/94f49d51-0397-40ee-9150-48eaffeb93c1 2026-02-12 12:30:25,069 - DEBUG - Requesting: http://10.0.0.141:8082/project/e7fa7754-4409-4516-adf2-2ba7e0ccf7bd 2026-02-12 12:30:25,140 - INFO - Validated that VN ctest-vn4-42091541 is not found in API Server 2026-02-12 12:30:25,151 - DEBUG - VN ctest-vn4-42091541 is not present in Agent 10.0.0.141 2026-02-12 12:30:25,151 - INFO - Validated that VN ctest-vn4-42091541 is not in any agent 2026-02-12 12:30:25,168 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42091541 info 2026-02-12 12:30:25,198 - INFO - Deleted policy ctest-policy1-36693515 2026-02-12 12:30:25,372 - DEBUG - policy ctest-policy1-36693515 is not found in API Server 2026-02-12 12:30:25,633 - DEBUG - No XMPP flaps were noticed during the test