2026-05-27 15:55:08,867 - INFO - Domain Default found not creating 2026-05-27 15:55:09,034 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31444200 not found, creating it 2026-05-27 15:55:09,757 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31444200, ID : fac7f854-b3a4-4305-a79a-c701b43557bd 2026-05-27 15:55:11,449 - INFO - ================================================================================ 2026-05-27 15:55:11,449 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-27 15:55:11,704 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-05-27 15:55:11,704 - INFO - Initial checks done. Running the testcase now 2026-05-27 15:55:11,704 - INFO - 2026-05-27 15:55:11,704 - INFO - ================================================================================ 2026-05-27 15:55:11,704 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-27 15:55:11,705 - 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-05-27 15:55:11,996 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-05-27 15:55:11,996 - INFO - Initial checks done. Running the testcase now 2026-05-27 15:55:11,996 - INFO - 2026-05-27 15:55:12,357 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31444200:ctest-vn4-68079120, 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-31444200:ctest-vn4-68079120, 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-31444200:ctest-vn4-68079120, 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-31444200:ctest-vn4-68079120, 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-05-27 15:55:12,864 - DEBUG - Response for create_network : {'network': {'id': '619d128c-ebc8-4087-98c5-2628420b9a02', 'name': 'ctest-vn4-68079120', 'tenant_id': 'fac7f854b3a44305a79ac701b43557bd', 'project_id': 'fac7f854b3a44305a79ac701b43557bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31444200', 'ctest-vn4-68079120'], 'port_security_enabled': True, 'description': ''}} 2026-05-27 15:55:13,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '035c8bd6-78f0-4501-8318-4736796cc1ac', 'name': '', 'tenant_id': 'fac7f854b3a44305a79ac701b43557bd', 'network_id': '619d128c-ebc8-4087-98c5-2628420b9a02', 'ip_version': 4, 'cidr': '8.20.135.0/26', 'allocation_pools': [{'start': '8.20.135.2', 'end': '8.20.135.62'}], 'gateway_ip': '8.20.135.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.20.135.2', 'tags': [], 'project_id': 'fac7f854b3a44305a79ac701b43557bd'}} 2026-05-27 15:55:13,215 - DEBUG - Response for create_subnet : {'subnet': {'id': '68417650-4708-466f-a5bc-3833531edbf5', 'name': '', 'tenant_id': 'fac7f854b3a44305a79ac701b43557bd', 'network_id': '619d128c-ebc8-4087-98c5-2628420b9a02', 'ip_version': 6, 'cidr': '35f3:592c:659e:ff70:cded:ba29::/96', 'allocation_pools': [{'start': '35f3:592c:659e:ff70:cded:ba29:0:2', 'end': '35f3:592c:659e:ff70:cded:ba29:ffff:fffe'}], 'gateway_ip': '35f3:592c:659e:ff70:cded:ba29:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35f3:592c:659e:ff70:cded:ba29:0:2', 'tags': [], 'project_id': 'fac7f854b3a44305a79ac701b43557bd'}} 2026-05-27 15:55:13,236 - INFO - Created VN ctest-vn4-68079120 2026-05-27 15:55:13,288 - DEBUG - VN ctest-vn4-68079120 UUID is 619d128c-ebc8-4087-98c5-2628420b9a02 2026-05-27 15:55:13,500 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '619d128c-ebc8-4087-98c5-2628420b9a02', 'name': 'ctest-vn4-68079120', 'tenant_id': 'fac7f854b3a44305a79ac701b43557bd', 'project_id': 'fac7f854b3a44305a79ac701b43557bd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['035c8bd6-78f0-4501-8318-4736796cc1ac', '68417650-4708-466f-a5bc-3833531edbf5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31444200', 'ctest-vn4-68079120'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31444200', 'ctest-policy1-29625248']], 'subnet_ipam': [{'subnet_cidr': '8.20.135.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35f3:592c:659e:ff70:cded:ba29::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-27 15:55:13,672 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-27 15:55:13,984 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-27 15:55:14,019 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d76aa015-f3a2-4f40-bb4c-f9742661b0dd 2026-05-27 15:55:14,032 - DEBUG - Requesting: http://10.0.0.19:8082/project/fac7f854-b3a4-4305-a79a-c701b43557bd 2026-05-27 15:55:14,104 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/619d128c-ebc8-4087-98c5-2628420b9a02 2026-05-27 15:55:14,115 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/619d128c-ebc8-4087-98c5-2628420b9a02 2026-05-27 15:55:14,124 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3988220d-2efe-4810-9df3-32982521a597 2026-05-27 15:55:14,130 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3988220d-2efe-4810-9df3-32982521a597 2026-05-27 15:55:14,136 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/95c9fa7d-76c0-45ca-80f5-8628c50fca56 2026-05-27 15:55:14,142 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 15:55:14,142 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/619d128c-ebc8-4087-98c5-2628420b9a02 2026-05-27 15:55:14,151 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3988220d-2efe-4810-9df3-32982521a597 2026-05-27 15:55:14,163 - INFO - Verified VN network id 11 for VN 619d128c-ebc8-4087-98c5-2628420b9a02 2026-05-27 15:55:14,163 - INFO - Verifications in API Server for VN ctest-vn4-68079120 passed 2026-05-27 15:55:14,163 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/619d128c-ebc8-4087-98c5-2628420b9a02 2026-05-27 15:55:14,172 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3988220d-2efe-4810-9df3-32982521a597 2026-05-27 15:55:14,179 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3988220d-2efe-4810-9df3-32982521a597 2026-05-27 15:55:14,185 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/95c9fa7d-76c0-45ca-80f5-8628c50fca56 2026-05-27 15:55:14,196 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31444200:ctest-vn4-68079120', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31444200', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7033798589483073671', 'uuid-lslong': '11008246818525649410'}, 'enable': 'true', 'created': '2026-05-27T15:55:12', 'last-modified': '2026-05-27T15:55:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725077'} 2026-05-27 15:55:14,203 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 15:55:14,203 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-68079120 passed 2026-05-27 15:55:14,203 - DEBUG - ====Verifying policy data for ctest-vn4-68079120 in API_Server ====== 2026-05-27 15:55:14,203 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-27 15:55:14,209 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d76aa015-f3a2-4f40-bb4c-f9742661b0dd 2026-05-27 15:55:14,219 - DEBUG - Requesting: http://10.0.0.19:8082/project/fac7f854-b3a4-4305-a79a-c701b43557bd 2026-05-27 15:55:14,291 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/619d128c-ebc8-4087-98c5-2628420b9a02 2026-05-27 15:55:14,300 - DEBUG - ==>Verifying data for policy with id: 2d44dcec-4753-45d8-bf5d-ab2c5dfef117, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31444200', 'ctest-policy1-29625248'] 2026-05-27 15:55:14,300 - INFO - VN ctest-vn4-68079120 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-27 15:55:14,300 - DEBUG - Verifying the vn in opserver 2026-05-27 15:55:14,300 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31444200:ctest-vn4-68079120 virtual network link through opserver 10.0.0.19 2026-05-27 15:55:14,300 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-05-27 15:55:14,590 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-05-27 15:55:14,661 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31444200:ctest-vn4-68079120', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31444200:ctest-vn4-68079120?flat'} 2026-05-27 15:55:14,661 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31444200:ctest-vn4-68079120 is found in opserver 2026-05-27 15:55:14,671 - DEBUG - Do not have enough data to verify VN in agent 2026-05-27 15:55:14,676 - DEBUG - VRF ids for VN ctest-vn4-68079120: {} 2026-05-27 15:55:14,676 - DEBUG - ====Verifying data for ctest-policy1-29625248 in API_Server ====== 2026-05-27 15:55:14,677 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-27 15:55:14,682 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d76aa015-f3a2-4f40-bb4c-f9742661b0dd 2026-05-27 15:55:14,692 - DEBUG - Requesting: http://10.0.0.19:8082/project/fac7f854-b3a4-4305-a79a-c701b43557bd 2026-05-27 15:55:14,763 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/2d44dcec-4753-45d8-bf5d-ab2c5dfef117 2026-05-27 15:55:14,772 - INFO - Verified policy ctest-policy1-29625248 in API Server, Result: True 2026-05-27 15:55:14,773 - INFO - Done with setup and verification, moving onto test .. 2026-05-27 15:55:14,780 - INFO - Deleting VN ctest-vn4-68079120 2026-05-27 15:55:14,914 - DEBUG - Response for deleting network () 2026-05-27 15:55:14,914 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/3988220d-2efe-4810-9df3-32982521a597 2026-05-27 15:55:14,919 - DEBUG - Response Code: 404 2026-05-27 15:55:14,919 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-27 15:55:14,925 - DEBUG - Requesting: http://10.0.0.19:8082/domain/d76aa015-f3a2-4f40-bb4c-f9742661b0dd 2026-05-27 15:55:14,980 - DEBUG - Requesting: http://10.0.0.19:8082/project/fac7f854-b3a4-4305-a79a-c701b43557bd 2026-05-27 15:55:15,055 - INFO - Validated that VN ctest-vn4-68079120 is not found in API Server 2026-05-27 15:55:15,066 - DEBUG - VN ctest-vn4-68079120 is not present in Agent 10.0.0.19 2026-05-27 15:55:15,066 - INFO - Validated that VN ctest-vn4-68079120 is not in any agent 2026-05-27 15:55:15,078 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-68079120 info 2026-05-27 15:55:15,098 - INFO - Deleted policy ctest-policy1-29625248 2026-05-27 15:55:15,263 - DEBUG - policy ctest-policy1-29625248 is not found in API Server 2026-05-27 15:55:15,517 - DEBUG - No XMPP flaps were noticed during the test
2026-05-27 15:55:15,517 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-27 15:55:15,517 - INFO - -------------------------------------------------------------------------------- 2026-05-27 15:55:15,806 - DEBUG - No XMPP flaps were noticed during the test
2026-05-27 15:55:15,806 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-27 15:55:15,806 - INFO - -------------------------------------------------------------------------------- 2026-05-27 15:55:16,509 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-31444200, ID : fac7f854-b3a4-4305-a79a-c701b43557bd