2026-06-17 15:24:15,207 - INFO - Domain Default found not creating 2026-06-17 15:24:15,372 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-13833217 not found, creating it 2026-06-17 15:24:15,849 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-13833217, ID : eb981883-0379-4789-a8d0-18d319faba44 2026-06-17 15:24:17,541 - INFO - ================================================================================ 2026-06-17 15:24:17,541 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-17 15:24:17,794 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-17 15:24:17,794 - INFO - Initial checks done. Running the testcase now 2026-06-17 15:24:17,794 - INFO - 2026-06-17 15:24:17,795 - INFO - ================================================================================ 2026-06-17 15:24:17,795 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-17 15:24:17,795 - 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-06-17 15:24:18,085 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-17 15:24:18,085 - INFO - Initial checks done. Running the testcase now 2026-06-17 15:24:18,085 - INFO - 2026-06-17 15:24:18,504 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13833217:ctest-vn4-62386774, 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-13833217:ctest-vn4-62386774, 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-13833217:ctest-vn4-62386774, 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-13833217:ctest-vn4-62386774, 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-06-17 15:24:19,013 - DEBUG - Response for create_network : {'network': {'id': '77239158-29bb-4544-ae23-ba1ce196c1e4', 'name': 'ctest-vn4-62386774', 'tenant_id': 'eb98188303794789a8d018d319faba44', 'project_id': 'eb98188303794789a8d018d319faba44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13833217', 'ctest-vn4-62386774'], 'port_security_enabled': True, 'description': ''}} 2026-06-17 15:24:19,231 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c5374c6-499f-457b-8dd0-3756a6e99ab8', 'name': '', 'tenant_id': 'eb98188303794789a8d018d319faba44', 'network_id': '77239158-29bb-4544-ae23-ba1ce196c1e4', 'ip_version': 4, 'cidr': '4.244.163.64/26', 'allocation_pools': [{'start': '4.244.163.66', 'end': '4.244.163.126'}], 'gateway_ip': '4.244.163.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.244.163.66', 'tags': [], 'project_id': 'eb98188303794789a8d018d319faba44'}} 2026-06-17 15:24:19,429 - DEBUG - Response for create_subnet : {'subnet': {'id': '707637b0-dd90-45ef-ac63-ab218220a0a6', 'name': '', 'tenant_id': 'eb98188303794789a8d018d319faba44', 'network_id': '77239158-29bb-4544-ae23-ba1ce196c1e4', 'ip_version': 6, 'cidr': '35a4:2a07:6749:1c28:ef16:19b8::/96', 'allocation_pools': [{'start': '35a4:2a07:6749:1c28:ef16:19b8:0:2', 'end': '35a4:2a07:6749:1c28:ef16:19b8:ffff:fffe'}], 'gateway_ip': '35a4:2a07:6749:1c28:ef16:19b8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35a4:2a07:6749:1c28:ef16:19b8:0:2', 'tags': [], 'project_id': 'eb98188303794789a8d018d319faba44'}} 2026-06-17 15:24:19,447 - INFO - Created VN ctest-vn4-62386774 2026-06-17 15:24:19,500 - DEBUG - VN ctest-vn4-62386774 UUID is 77239158-29bb-4544-ae23-ba1ce196c1e4 2026-06-17 15:24:19,688 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77239158-29bb-4544-ae23-ba1ce196c1e4', 'name': 'ctest-vn4-62386774', 'tenant_id': 'eb98188303794789a8d018d319faba44', 'project_id': 'eb98188303794789a8d018d319faba44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c5374c6-499f-457b-8dd0-3756a6e99ab8', '707637b0-dd90-45ef-ac63-ab218220a0a6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13833217', 'ctest-vn4-62386774'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13833217', 'ctest-policy1-24553124']], 'subnet_ipam': [{'subnet_cidr': '4.244.163.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35a4:2a07:6749:1c28:ef16:19b8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-17 15:24:19,848 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-17 15:24:20,219 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-17 15:24:20,248 - DEBUG - Requesting: http://10.0.0.38:8082/domain/423b3f8e-9a2b-4169-ab7d-98b8b281b88c 2026-06-17 15:24:20,260 - DEBUG - Requesting: http://10.0.0.38:8082/project/eb981883-0379-4789-a8d0-18d319faba44 2026-06-17 15:24:20,328 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/77239158-29bb-4544-ae23-ba1ce196c1e4 2026-06-17 15:24:20,339 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/77239158-29bb-4544-ae23-ba1ce196c1e4 2026-06-17 15:24:20,348 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad31741e-8cfb-4226-b60b-a76e8d2d2ba4 2026-06-17 15:24:20,355 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad31741e-8cfb-4226-b60b-a76e8d2d2ba4 2026-06-17 15:24:20,361 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/681cec16-82a5-4ffa-ab69-1ce8eba9c84d 2026-06-17 15:24:20,367 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-17 15:24:20,367 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/77239158-29bb-4544-ae23-ba1ce196c1e4 2026-06-17 15:24:20,377 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad31741e-8cfb-4226-b60b-a76e8d2d2ba4 2026-06-17 15:24:20,390 - INFO - Verified VN network id 10 for VN 77239158-29bb-4544-ae23-ba1ce196c1e4 2026-06-17 15:24:20,390 - INFO - Verifications in API Server for VN ctest-vn4-62386774 passed 2026-06-17 15:24:20,390 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/77239158-29bb-4544-ae23-ba1ce196c1e4 2026-06-17 15:24:20,399 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad31741e-8cfb-4226-b60b-a76e8d2d2ba4 2026-06-17 15:24:20,406 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad31741e-8cfb-4226-b60b-a76e8d2d2ba4 2026-06-17 15:24:20,413 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/681cec16-82a5-4ffa-ab69-1ce8eba9c84d 2026-06-17 15:24:20,425 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13833217:ctest-vn4-62386774', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-13833217', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8584865122541585732', 'uuid-lslong': '12548077619990938084'}, 'enable': 'true', 'created': '2026-06-17T15:24:18', 'last-modified': '2026-06-17T15:24:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.759216'} 2026-06-17 15:24:20,432 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-17 15:24:20,432 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62386774 passed 2026-06-17 15:24:20,432 - DEBUG - ====Verifying policy data for ctest-vn4-62386774 in API_Server ====== 2026-06-17 15:24:20,432 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-17 15:24:20,437 - DEBUG - Requesting: http://10.0.0.38:8082/domain/423b3f8e-9a2b-4169-ab7d-98b8b281b88c 2026-06-17 15:24:20,447 - DEBUG - Requesting: http://10.0.0.38:8082/project/eb981883-0379-4789-a8d0-18d319faba44 2026-06-17 15:24:20,538 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/77239158-29bb-4544-ae23-ba1ce196c1e4 2026-06-17 15:24:20,548 - DEBUG - ==>Verifying data for policy with id: f0b15b59-1307-43ef-ae3e-82f307e5953a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13833217', 'ctest-policy1-24553124'] 2026-06-17 15:24:20,548 - INFO - VN ctest-vn4-62386774 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-17 15:24:20,548 - DEBUG - Verifying the vn in opserver 2026-06-17 15:24:20,548 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13833217:ctest-vn4-62386774 virtual network link through opserver 10.0.0.38 2026-06-17 15:24:20,548 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-17 15:24:20,911 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-17 15:24:20,961 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13833217:ctest-vn4-62386774', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13833217:ctest-vn4-62386774?flat'} 2026-06-17 15:24:20,961 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13833217:ctest-vn4-62386774 is found in opserver 2026-06-17 15:24:20,970 - DEBUG - Do not have enough data to verify VN in agent 2026-06-17 15:24:20,974 - DEBUG - VRF ids for VN ctest-vn4-62386774: {} 2026-06-17 15:24:20,975 - DEBUG - ====Verifying data for ctest-policy1-24553124 in API_Server ====== 2026-06-17 15:24:20,975 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-17 15:24:20,980 - DEBUG - Requesting: http://10.0.0.38:8082/domain/423b3f8e-9a2b-4169-ab7d-98b8b281b88c 2026-06-17 15:24:20,990 - DEBUG - Requesting: http://10.0.0.38:8082/project/eb981883-0379-4789-a8d0-18d319faba44 2026-06-17 15:24:21,057 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/f0b15b59-1307-43ef-ae3e-82f307e5953a 2026-06-17 15:24:21,066 - INFO - Verified policy ctest-policy1-24553124 in API Server, Result: True 2026-06-17 15:24:21,066 - INFO - Done with setup and verification, moving onto test .. 2026-06-17 15:24:21,073 - INFO - Deleting VN ctest-vn4-62386774 2026-06-17 15:24:21,203 - DEBUG - Response for deleting network () 2026-06-17 15:24:21,203 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad31741e-8cfb-4226-b60b-a76e8d2d2ba4 2026-06-17 15:24:21,208 - DEBUG - Response Code: 404 2026-06-17 15:24:21,208 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-17 15:24:21,212 - DEBUG - Requesting: http://10.0.0.38:8082/domain/423b3f8e-9a2b-4169-ab7d-98b8b281b88c 2026-06-17 15:24:21,265 - DEBUG - Requesting: http://10.0.0.38:8082/project/eb981883-0379-4789-a8d0-18d319faba44 2026-06-17 15:24:21,333 - INFO - Validated that VN ctest-vn4-62386774 is not found in API Server 2026-06-17 15:24:21,342 - DEBUG - VN ctest-vn4-62386774 is not present in Agent 10.0.0.38 2026-06-17 15:24:21,342 - INFO - Validated that VN ctest-vn4-62386774 is not in any agent 2026-06-17 15:24:21,355 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62386774 info 2026-06-17 15:24:21,374 - INFO - Deleted policy ctest-policy1-24553124 2026-06-17 15:24:21,540 - DEBUG - policy ctest-policy1-24553124 is not found in API Server 2026-06-17 15:24:21,797 - DEBUG - No XMPP flaps were noticed during the test
2026-06-17 15:24:21,797 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-17 15:24:21,797 - INFO - -------------------------------------------------------------------------------- 2026-06-17 15:24:22,089 - DEBUG - No XMPP flaps were noticed during the test
2026-06-17 15:24:22,089 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-06-17 15:24:22,089 - INFO - -------------------------------------------------------------------------------- 2026-06-17 15:24:22,835 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-13833217, ID : eb981883-0379-4789-a8d0-18d319faba44