2026-06-16 12:15:05,030 - INFO - Domain Default found not creating 2026-06-16 12:15:05,185 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48092231 not found, creating it 2026-06-16 12:15:05,657 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48092231, ID : d461e48e-834c-4f75-99be-cd898971975b 2026-06-16 12:15:07,329 - INFO - ================================================================================ 2026-06-16 12:15:07,329 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-16 12:15:07,586 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-16 12:15:07,586 - INFO - Initial checks done. Running the testcase now 2026-06-16 12:15:07,587 - INFO - 2026-06-16 12:15:07,587 - INFO - ================================================================================ 2026-06-16 12:15:07,587 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-16 12:15:07,587 - 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-16 12:15:07,879 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-16 12:15:07,879 - INFO - Initial checks done. Running the testcase now 2026-06-16 12:15:07,879 - INFO - 2026-06-16 12:15:08,311 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48092231:ctest-vn4-63326303, 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-48092231:ctest-vn4-63326303, 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-48092231:ctest-vn4-63326303, 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-48092231:ctest-vn4-63326303, 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-16 12:15:08,817 - DEBUG - Response for create_network : {'network': {'id': '9e42521d-0ed6-48b1-a3f5-88db700cf26d', 'name': 'ctest-vn4-63326303', 'tenant_id': 'd461e48e834c4f7599becd898971975b', 'project_id': 'd461e48e834c4f7599becd898971975b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48092231', 'ctest-vn4-63326303'], 'port_security_enabled': True, 'description': ''}} 2026-06-16 12:15:09,007 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f2e1f14d-8b52-48bc-b78d-7638254196fe', 'name': '', 'tenant_id': 'd461e48e834c4f7599becd898971975b', 'network_id': '9e42521d-0ed6-48b1-a3f5-88db700cf26d', 'ip_version': 4, 'cidr': '170.45.137.64/26', 'allocation_pools': [{'start': '170.45.137.66', 'end': '170.45.137.126'}], 'gateway_ip': '170.45.137.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.45.137.66', 'tags': [], 'project_id': 'd461e48e834c4f7599becd898971975b'}} 2026-06-16 12:15:09,210 - DEBUG - Response for create_subnet : {'subnet': {'id': '26e9ed67-c8c2-4e26-a674-a6b39ab6adad', 'name': '', 'tenant_id': 'd461e48e834c4f7599becd898971975b', 'network_id': '9e42521d-0ed6-48b1-a3f5-88db700cf26d', 'ip_version': 6, 'cidr': '2114:2ca0:8b8c:83a2:63f7:d031::/96', 'allocation_pools': [{'start': '2114:2ca0:8b8c:83a2:63f7:d031:0:2', 'end': '2114:2ca0:8b8c:83a2:63f7:d031:ffff:fffe'}], 'gateway_ip': '2114:2ca0:8b8c:83a2:63f7:d031:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2114:2ca0:8b8c:83a2:63f7:d031:0:2', 'tags': [], 'project_id': 'd461e48e834c4f7599becd898971975b'}} 2026-06-16 12:15:09,227 - INFO - Created VN ctest-vn4-63326303 2026-06-16 12:15:09,277 - DEBUG - VN ctest-vn4-63326303 UUID is 9e42521d-0ed6-48b1-a3f5-88db700cf26d 2026-06-16 12:15:09,465 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e42521d-0ed6-48b1-a3f5-88db700cf26d', 'name': 'ctest-vn4-63326303', 'tenant_id': 'd461e48e834c4f7599becd898971975b', 'project_id': 'd461e48e834c4f7599becd898971975b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f2e1f14d-8b52-48bc-b78d-7638254196fe', '26e9ed67-c8c2-4e26-a674-a6b39ab6adad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48092231', 'ctest-vn4-63326303'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48092231', 'ctest-policy1-81280128']], 'subnet_ipam': [{'subnet_cidr': '170.45.137.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2114:2ca0:8b8c:83a2:63f7:d031::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-16 12:15:09,629 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 12:15:09,990 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 12:15:10,020 - DEBUG - Requesting: http://10.0.0.50:8082/domain/52200764-1b5e-44c0-bfac-d1cf20bfca4d 2026-06-16 12:15:10,032 - DEBUG - Requesting: http://10.0.0.50:8082/project/d461e48e-834c-4f75-99be-cd898971975b 2026-06-16 12:15:10,113 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9e42521d-0ed6-48b1-a3f5-88db700cf26d 2026-06-16 12:15:10,125 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9e42521d-0ed6-48b1-a3f5-88db700cf26d 2026-06-16 12:15:10,136 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0b487011-496e-462b-9fe0-a7547eba65d1 2026-06-16 12:15:10,142 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0b487011-496e-462b-9fe0-a7547eba65d1 2026-06-16 12:15:10,148 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dc86cd26-f363-43a6-ad56-96c964d5b0de 2026-06-16 12:15:10,154 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-16 12:15:10,154 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9e42521d-0ed6-48b1-a3f5-88db700cf26d 2026-06-16 12:15:10,162 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0b487011-496e-462b-9fe0-a7547eba65d1 2026-06-16 12:15:10,175 - INFO - Verified VN network id 11 for VN 9e42521d-0ed6-48b1-a3f5-88db700cf26d 2026-06-16 12:15:10,175 - INFO - Verifications in API Server for VN ctest-vn4-63326303 passed 2026-06-16 12:15:10,175 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9e42521d-0ed6-48b1-a3f5-88db700cf26d 2026-06-16 12:15:10,183 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0b487011-496e-462b-9fe0-a7547eba65d1 2026-06-16 12:15:10,190 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0b487011-496e-462b-9fe0-a7547eba65d1 2026-06-16 12:15:10,196 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dc86cd26-f363-43a6-ad56-96c964d5b0de 2026-06-16 12:15:10,210 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48092231:ctest-vn4-63326303', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48092231', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11403767491211970737', 'uuid-lslong': '11814499673535476333'}, 'enable': 'true', 'created': '2026-06-16T12:15:08', 'last-modified': '2026-06-16T12:15:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.766136'} 2026-06-16 12:15:10,216 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-16 12:15:10,216 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-63326303 passed 2026-06-16 12:15:10,216 - DEBUG - ====Verifying policy data for ctest-vn4-63326303 in API_Server ====== 2026-06-16 12:15:10,216 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 12:15:10,222 - DEBUG - Requesting: http://10.0.0.50:8082/domain/52200764-1b5e-44c0-bfac-d1cf20bfca4d 2026-06-16 12:15:10,232 - DEBUG - Requesting: http://10.0.0.50:8082/project/d461e48e-834c-4f75-99be-cd898971975b 2026-06-16 12:15:10,305 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9e42521d-0ed6-48b1-a3f5-88db700cf26d 2026-06-16 12:15:10,315 - DEBUG - ==>Verifying data for policy with id: 6587685b-5c66-4c4a-8bff-355e97ef0054, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48092231', 'ctest-policy1-81280128'] 2026-06-16 12:15:10,315 - INFO - VN ctest-vn4-63326303 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-16 12:15:10,315 - DEBUG - Verifying the vn in opserver 2026-06-16 12:15:10,315 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48092231:ctest-vn4-63326303 virtual network link through opserver 10.0.0.50 2026-06-16 12:15:10,315 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-16 12:15:10,682 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-16 12:15:10,739 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48092231:ctest-vn4-63326303', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48092231:ctest-vn4-63326303?flat'} 2026-06-16 12:15:10,739 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48092231:ctest-vn4-63326303 is found in opserver 2026-06-16 12:15:10,752 - DEBUG - Do not have enough data to verify VN in agent 2026-06-16 12:15:10,756 - DEBUG - VRF ids for VN ctest-vn4-63326303: {} 2026-06-16 12:15:10,756 - DEBUG - ====Verifying data for ctest-policy1-81280128 in API_Server ====== 2026-06-16 12:15:10,756 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 12:15:10,762 - DEBUG - Requesting: http://10.0.0.50:8082/domain/52200764-1b5e-44c0-bfac-d1cf20bfca4d 2026-06-16 12:15:10,775 - DEBUG - Requesting: http://10.0.0.50:8082/project/d461e48e-834c-4f75-99be-cd898971975b 2026-06-16 12:15:10,847 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/6587685b-5c66-4c4a-8bff-355e97ef0054 2026-06-16 12:15:10,857 - INFO - Verified policy ctest-policy1-81280128 in API Server, Result: True 2026-06-16 12:15:10,857 - INFO - Done with setup and verification, moving onto test .. 2026-06-16 12:15:10,864 - INFO - Deleting VN ctest-vn4-63326303 2026-06-16 12:15:10,999 - DEBUG - Response for deleting network () 2026-06-16 12:15:10,999 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0b487011-496e-462b-9fe0-a7547eba65d1 2026-06-16 12:15:11,003 - DEBUG - Response Code: 404 2026-06-16 12:15:11,003 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 12:15:11,009 - DEBUG - Requesting: http://10.0.0.50:8082/domain/52200764-1b5e-44c0-bfac-d1cf20bfca4d 2026-06-16 12:15:11,062 - DEBUG - Requesting: http://10.0.0.50:8082/project/d461e48e-834c-4f75-99be-cd898971975b 2026-06-16 12:15:11,138 - INFO - Validated that VN ctest-vn4-63326303 is not found in API Server 2026-06-16 12:15:11,147 - DEBUG - VN ctest-vn4-63326303 is not present in Agent 10.0.0.50 2026-06-16 12:15:11,147 - INFO - Validated that VN ctest-vn4-63326303 is not in any agent 2026-06-16 12:15:11,159 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-63326303 info 2026-06-16 12:15:11,185 - INFO - Deleted policy ctest-policy1-81280128 2026-06-16 12:15:11,345 - DEBUG - policy ctest-policy1-81280128 is not found in API Server 2026-06-16 12:15:11,618 - DEBUG - No XMPP flaps were noticed during the test 2026-06-16 12:15:11,618 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-16 12:15:11,618 - INFO - -------------------------------------------------------------------------------- 2026-06-16 12:15:11,902 - DEBUG - No XMPP flaps were noticed during the test 2026-06-16 12:15:11,902 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-16 12:15:11,902 - INFO - -------------------------------------------------------------------------------- 2026-06-16 12:15:12,770 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48092231, ID : d461e48e-834c-4f75-99be-cd898971975b