2026-09-16 13:19:23,331 - INFO - Domain Default found not creating 2026-09-16 13:19:23,519 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83586404 not found, creating it 2026-09-16 13:19:24,007 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83586404, ID : dbd2ed1c-3b1d-4b6a-93cc-203b39b61bf2 2026-09-16 13:19:25,713 - INFO - ================================================================================ 2026-09-16 13:19:25,714 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 13:19:25,970 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.254': '0'}} with 2026-09-16 13:19:25,970 - INFO - Initial checks done. Running the testcase now 2026-09-16 13:19:25,970 - INFO - 2026-09-16 13:19:25,970 - INFO - ================================================================================ 2026-09-16 13:19:25,970 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 13:19:25,970 - 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-09-16 13:19:26,257 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.254': '0'}} with 2026-09-16 13:19:26,257 - INFO - Initial checks done. Running the testcase now 2026-09-16 13:19:26,258 - INFO - 2026-09-16 13:19:26,708 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83586404:ctest-vn4-06979703, 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-83586404:ctest-vn4-06979703, 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-83586404:ctest-vn4-06979703, 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-83586404:ctest-vn4-06979703, 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-09-16 13:19:27,233 - DEBUG - Response for create_network : {'network': {'id': '232ea736-6585-4c84-8ae1-ad9cd2223a9a', 'name': 'ctest-vn4-06979703', 'tenant_id': 'dbd2ed1c3b1d4b6a93cc203b39b61bf2', 'project_id': 'dbd2ed1c3b1d4b6a93cc203b39b61bf2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83586404', 'ctest-vn4-06979703'], 'port_security_enabled': True, 'description': ''}} 2026-09-16 13:19:27,448 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0702eff-fd67-407a-9ff0-06a766070487', 'name': '', 'tenant_id': 'dbd2ed1c3b1d4b6a93cc203b39b61bf2', 'network_id': '232ea736-6585-4c84-8ae1-ad9cd2223a9a', 'ip_version': 4, 'cidr': '45.48.57.64/26', 'allocation_pools': [{'start': '45.48.57.66', 'end': '45.48.57.126'}], 'gateway_ip': '45.48.57.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.48.57.66', 'tags': [], 'project_id': 'dbd2ed1c3b1d4b6a93cc203b39b61bf2'}} 2026-09-16 13:19:27,602 - DEBUG - Response for create_subnet : {'subnet': {'id': '35cad82a-4bfd-4abc-bfbb-28f19ea3340d', 'name': '', 'tenant_id': 'dbd2ed1c3b1d4b6a93cc203b39b61bf2', 'network_id': '232ea736-6585-4c84-8ae1-ad9cd2223a9a', 'ip_version': 6, 'cidr': '2f57:1304:75de:1832:2462:1fa2::/96', 'allocation_pools': [{'start': '2f57:1304:75de:1832:2462:1fa2:0:2', 'end': '2f57:1304:75de:1832:2462:1fa2:ffff:fffe'}], 'gateway_ip': '2f57:1304:75de:1832:2462:1fa2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f57:1304:75de:1832:2462:1fa2:0:2', 'tags': [], 'project_id': 'dbd2ed1c3b1d4b6a93cc203b39b61bf2'}} 2026-09-16 13:19:27,628 - INFO - Created VN ctest-vn4-06979703 2026-09-16 13:19:27,684 - DEBUG - VN ctest-vn4-06979703 UUID is 232ea736-6585-4c84-8ae1-ad9cd2223a9a 2026-09-16 13:19:27,889 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '232ea736-6585-4c84-8ae1-ad9cd2223a9a', 'name': 'ctest-vn4-06979703', 'tenant_id': 'dbd2ed1c3b1d4b6a93cc203b39b61bf2', 'project_id': 'dbd2ed1c3b1d4b6a93cc203b39b61bf2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e0702eff-fd67-407a-9ff0-06a766070487', '35cad82a-4bfd-4abc-bfbb-28f19ea3340d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83586404', 'ctest-vn4-06979703'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83586404', 'ctest-policy1-59372971']], 'subnet_ipam': [{'subnet_cidr': '45.48.57.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f57:1304:75de:1832:2462:1fa2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-16 13:19:28,055 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-16 13:19:28,698 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-16 13:19:28,733 - DEBUG - Requesting: http://10.0.0.189:8082/domain/ac3f3409-64a4-4a67-8a93-aba17253f477 2026-09-16 13:19:28,745 - DEBUG - Requesting: http://10.0.0.189:8082/project/dbd2ed1c-3b1d-4b6a-93cc-203b39b61bf2 2026-09-16 13:19:28,820 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/232ea736-6585-4c84-8ae1-ad9cd2223a9a 2026-09-16 13:19:28,832 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/232ea736-6585-4c84-8ae1-ad9cd2223a9a 2026-09-16 13:19:28,842 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e43cdb43-dfcb-4abb-9e33-4e757c3cff15 2026-09-16 13:19:28,849 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e43cdb43-dfcb-4abb-9e33-4e757c3cff15 2026-09-16 13:19:28,856 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/5b3d3f29-03da-4ab3-aa7e-d3363ce40200 2026-09-16 13:19:28,862 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 13:19:28,862 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/232ea736-6585-4c84-8ae1-ad9cd2223a9a 2026-09-16 13:19:28,871 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e43cdb43-dfcb-4abb-9e33-4e757c3cff15 2026-09-16 13:19:28,883 - INFO - Verified VN network id 12 for VN 232ea736-6585-4c84-8ae1-ad9cd2223a9a 2026-09-16 13:19:28,883 - INFO - Verifications in API Server for VN ctest-vn4-06979703 passed 2026-09-16 13:19:28,883 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/232ea736-6585-4c84-8ae1-ad9cd2223a9a 2026-09-16 13:19:28,891 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e43cdb43-dfcb-4abb-9e33-4e757c3cff15 2026-09-16 13:19:28,898 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e43cdb43-dfcb-4abb-9e33-4e757c3cff15 2026-09-16 13:19:28,904 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/5b3d3f29-03da-4ab3-aa7e-d3363ce40200 2026-09-16 13:19:28,916 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83586404:ctest-vn4-06979703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83586404', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2535147492329475204', 'uuid-lslong': '10007470736045914778'}, 'enable': 'true', 'created': '2026-09-16T13:19:27', 'last-modified': '2026-09-16T13:19:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.057218'} 2026-09-16 13:19:28,923 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 13:19:28,923 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06979703 passed 2026-09-16 13:19:28,923 - DEBUG - ====Verifying policy data for ctest-vn4-06979703 in API_Server ====== 2026-09-16 13:19:28,923 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-16 13:19:28,928 - DEBUG - Requesting: http://10.0.0.189:8082/domain/ac3f3409-64a4-4a67-8a93-aba17253f477 2026-09-16 13:19:28,938 - DEBUG - Requesting: http://10.0.0.189:8082/project/dbd2ed1c-3b1d-4b6a-93cc-203b39b61bf2 2026-09-16 13:19:29,014 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/232ea736-6585-4c84-8ae1-ad9cd2223a9a 2026-09-16 13:19:29,025 - DEBUG - ==>Verifying data for policy with id: 23496793-0f33-406c-9371-52c35f39f4e4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83586404', 'ctest-policy1-59372971'] 2026-09-16 13:19:29,025 - INFO - VN ctest-vn4-06979703 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-16 13:19:29,026 - DEBUG - Verifying the vn in opserver 2026-09-16 13:19:29,026 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83586404:ctest-vn4-06979703 virtual network link through opserver 10.0.0.189 2026-09-16 13:19:29,026 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-16 13:19:29,397 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-16 13:19:29,446 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83586404:ctest-vn4-06979703', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83586404:ctest-vn4-06979703?flat'} 2026-09-16 13:19:29,446 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83586404:ctest-vn4-06979703 is found in opserver 2026-09-16 13:19:29,458 - DEBUG - Do not have enough data to verify VN in agent 2026-09-16 13:19:29,462 - DEBUG - VRF ids for VN ctest-vn4-06979703: {} 2026-09-16 13:19:29,463 - DEBUG - ====Verifying data for ctest-policy1-59372971 in API_Server ====== 2026-09-16 13:19:29,463 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-16 13:19:29,468 - DEBUG - Requesting: http://10.0.0.189:8082/domain/ac3f3409-64a4-4a67-8a93-aba17253f477 2026-09-16 13:19:29,480 - DEBUG - Requesting: http://10.0.0.189:8082/project/dbd2ed1c-3b1d-4b6a-93cc-203b39b61bf2 2026-09-16 13:19:29,552 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/23496793-0f33-406c-9371-52c35f39f4e4 2026-09-16 13:19:29,562 - INFO - Verified policy ctest-policy1-59372971 in API Server, Result: True 2026-09-16 13:19:29,562 - INFO - Done with setup and verification, moving onto test .. 2026-09-16 13:19:29,572 - INFO - Deleting VN ctest-vn4-06979703 2026-09-16 13:19:29,686 - DEBUG - Response for deleting network () 2026-09-16 13:19:29,686 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/e43cdb43-dfcb-4abb-9e33-4e757c3cff15 2026-09-16 13:19:29,691 - DEBUG - Response Code: 404 2026-09-16 13:19:29,692 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-16 13:19:29,698 - DEBUG - Requesting: http://10.0.0.189:8082/domain/ac3f3409-64a4-4a67-8a93-aba17253f477 2026-09-16 13:19:29,752 - DEBUG - Requesting: http://10.0.0.189:8082/project/dbd2ed1c-3b1d-4b6a-93cc-203b39b61bf2 2026-09-16 13:19:29,829 - INFO - Validated that VN ctest-vn4-06979703 is not found in API Server 2026-09-16 13:19:29,839 - DEBUG - VN ctest-vn4-06979703 is not present in Agent 10.0.0.189 2026-09-16 13:19:29,839 - INFO - Validated that VN ctest-vn4-06979703 is not in any agent 2026-09-16 13:19:29,854 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06979703 info 2026-09-16 13:19:29,878 - INFO - Deleted policy ctest-policy1-59372971 2026-09-16 13:19:30,047 - DEBUG - policy ctest-policy1-59372971 is not found in API Server 2026-09-16 13:19:30,307 - DEBUG - No XMPP flaps were noticed during the test