2026-09-17 09:03:14,348 - INFO - Domain Default found not creating 2026-09-17 09:03:14,551 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83861984 not found, creating it 2026-09-17 09:03:15,066 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83861984, ID : 71fbe895-7eec-4fb5-ace2-0516491ee624 2026-09-17 09:03:16,771 - INFO - ================================================================================ 2026-09-17 09:03:16,771 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 09:03:17,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.25': '0'}} with 2026-09-17 09:03:17,043 - INFO - Initial checks done. Running the testcase now 2026-09-17 09:03:17,043 - INFO - 2026-09-17 09:03:17,043 - INFO - ================================================================================ 2026-09-17 09:03:17,043 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 09:03:17,044 - 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-17 09:03:17,331 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.25': '0'}} with 2026-09-17 09:03:17,332 - INFO - Initial checks done. Running the testcase now 2026-09-17 09:03:17,332 - INFO - 2026-09-17 09:03:17,780 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83861984:ctest-vn4-08130662, 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-83861984:ctest-vn4-08130662, 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-83861984:ctest-vn4-08130662, 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-83861984:ctest-vn4-08130662, 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-17 09:03:18,389 - DEBUG - Response for create_network : {'network': {'id': '5f093116-d795-4a6f-9daf-850bbd2031d5', 'name': 'ctest-vn4-08130662', 'tenant_id': '71fbe8957eec4fb5ace20516491ee624', 'project_id': '71fbe8957eec4fb5ace20516491ee624', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83861984', 'ctest-vn4-08130662'], 'port_security_enabled': True, 'description': ''}} 2026-09-17 09:03:18,628 - DEBUG - Response for create_subnet : {'subnet': {'id': '6bfc4777-2037-4c4b-a2e4-72b8b1031c2a', 'name': '', 'tenant_id': '71fbe8957eec4fb5ace20516491ee624', 'network_id': '5f093116-d795-4a6f-9daf-850bbd2031d5', 'ip_version': 4, 'cidr': '103.149.43.0/26', 'allocation_pools': [{'start': '103.149.43.2', 'end': '103.149.43.62'}], 'gateway_ip': '103.149.43.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.149.43.2', 'tags': [], 'project_id': '71fbe8957eec4fb5ace20516491ee624'}} 2026-09-17 09:03:18,819 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff546d88-de9b-4b8a-b4fe-fe56301e618b', 'name': '', 'tenant_id': '71fbe8957eec4fb5ace20516491ee624', 'network_id': '5f093116-d795-4a6f-9daf-850bbd2031d5', 'ip_version': 6, 'cidr': '3d24:8d1a:3539:e26a:c5c2:ab69::/96', 'allocation_pools': [{'start': '3d24:8d1a:3539:e26a:c5c2:ab69:0:2', 'end': '3d24:8d1a:3539:e26a:c5c2:ab69:ffff:fffe'}], 'gateway_ip': '3d24:8d1a:3539:e26a:c5c2:ab69:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d24:8d1a:3539:e26a:c5c2:ab69:0:2', 'tags': [], 'project_id': '71fbe8957eec4fb5ace20516491ee624'}} 2026-09-17 09:03:18,841 - INFO - Created VN ctest-vn4-08130662 2026-09-17 09:03:18,899 - DEBUG - VN ctest-vn4-08130662 UUID is 5f093116-d795-4a6f-9daf-850bbd2031d5 2026-09-17 09:03:19,110 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f093116-d795-4a6f-9daf-850bbd2031d5', 'name': 'ctest-vn4-08130662', 'tenant_id': '71fbe8957eec4fb5ace20516491ee624', 'project_id': '71fbe8957eec4fb5ace20516491ee624', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['6bfc4777-2037-4c4b-a2e4-72b8b1031c2a', 'ff546d88-de9b-4b8a-b4fe-fe56301e618b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83861984', 'ctest-vn4-08130662'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83861984', 'ctest-policy1-42183254']], 'subnet_ipam': [{'subnet_cidr': '103.149.43.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d24:8d1a:3539:e26a:c5c2:ab69::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-17 09:03:19,278 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-17 09:03:19,600 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-17 09:03:19,630 - DEBUG - Requesting: http://10.0.0.190:8082/domain/c0139787-77d8-43e2-a7cd-3416226bccb5 2026-09-17 09:03:19,645 - DEBUG - Requesting: http://10.0.0.190:8082/project/71fbe895-7eec-4fb5-ace2-0516491ee624 2026-09-17 09:03:19,724 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/5f093116-d795-4a6f-9daf-850bbd2031d5 2026-09-17 09:03:19,749 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/5f093116-d795-4a6f-9daf-850bbd2031d5 2026-09-17 09:03:19,760 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/4116167f-a2bb-4542-9897-51343d80041e 2026-09-17 09:03:19,768 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/4116167f-a2bb-4542-9897-51343d80041e 2026-09-17 09:03:19,775 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/f7e262ec-f869-4625-b837-09a3b4a6a42d 2026-09-17 09:03:19,783 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 09:03:19,783 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/5f093116-d795-4a6f-9daf-850bbd2031d5 2026-09-17 09:03:19,797 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/4116167f-a2bb-4542-9897-51343d80041e 2026-09-17 09:03:19,814 - INFO - Verified VN network id 12 for VN 5f093116-d795-4a6f-9daf-850bbd2031d5 2026-09-17 09:03:19,814 - INFO - Verifications in API Server for VN ctest-vn4-08130662 passed 2026-09-17 09:03:19,814 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/5f093116-d795-4a6f-9daf-850bbd2031d5 2026-09-17 09:03:19,828 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/4116167f-a2bb-4542-9897-51343d80041e 2026-09-17 09:03:19,837 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/4116167f-a2bb-4542-9897-51343d80041e 2026-09-17 09:03:19,846 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/f7e262ec-f869-4625-b837-09a3b4a6a42d 2026-09-17 09:03:19,858 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83861984:ctest-vn4-08130662', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83861984', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6848058682569476719', 'uuid-lslong': '11362446670343188949'}, 'enable': 'true', 'created': '2026-09-17T09:03:18', 'last-modified': '2026-09-17T09:03:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.785255'} 2026-09-17 09:03:19,865 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 09:03:19,865 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08130662 passed 2026-09-17 09:03:19,865 - DEBUG - ====Verifying policy data for ctest-vn4-08130662 in API_Server ====== 2026-09-17 09:03:19,865 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-17 09:03:19,872 - DEBUG - Requesting: http://10.0.0.190:8082/domain/c0139787-77d8-43e2-a7cd-3416226bccb5 2026-09-17 09:03:19,883 - DEBUG - Requesting: http://10.0.0.190:8082/project/71fbe895-7eec-4fb5-ace2-0516491ee624 2026-09-17 09:03:19,966 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/5f093116-d795-4a6f-9daf-850bbd2031d5 2026-09-17 09:03:19,979 - DEBUG - ==>Verifying data for policy with id: e9426d9b-2dac-4520-afac-e04816578fba, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83861984', 'ctest-policy1-42183254'] 2026-09-17 09:03:19,979 - INFO - VN ctest-vn4-08130662 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-17 09:03:19,979 - DEBUG - Verifying the vn in opserver 2026-09-17 09:03:19,979 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83861984:ctest-vn4-08130662 virtual network link through opserver 10.0.0.190 2026-09-17 09:03:19,979 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-09-17 09:03:20,310 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-09-17 09:03:20,369 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83861984:ctest-vn4-08130662', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83861984:ctest-vn4-08130662?flat'} 2026-09-17 09:03:20,369 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83861984:ctest-vn4-08130662 is found in opserver 2026-09-17 09:03:20,379 - DEBUG - Do not have enough data to verify VN in agent 2026-09-17 09:03:20,383 - DEBUG - VRF ids for VN ctest-vn4-08130662: {} 2026-09-17 09:03:20,383 - DEBUG - ====Verifying data for ctest-policy1-42183254 in API_Server ====== 2026-09-17 09:03:20,384 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-17 09:03:20,389 - DEBUG - Requesting: http://10.0.0.190:8082/domain/c0139787-77d8-43e2-a7cd-3416226bccb5 2026-09-17 09:03:20,399 - DEBUG - Requesting: http://10.0.0.190:8082/project/71fbe895-7eec-4fb5-ace2-0516491ee624 2026-09-17 09:03:20,475 - DEBUG - Requesting: http://10.0.0.190:8082/network-policy/e9426d9b-2dac-4520-afac-e04816578fba 2026-09-17 09:03:20,484 - INFO - Verified policy ctest-policy1-42183254 in API Server, Result: True 2026-09-17 09:03:20,484 - INFO - Done with setup and verification, moving onto test .. 2026-09-17 09:03:20,494 - INFO - Deleting VN ctest-vn4-08130662 2026-09-17 09:03:20,651 - DEBUG - Response for deleting network () 2026-09-17 09:03:20,651 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/4116167f-a2bb-4542-9897-51343d80041e 2026-09-17 09:03:20,657 - DEBUG - Response Code: 404 2026-09-17 09:03:20,657 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-17 09:03:20,664 - DEBUG - Requesting: http://10.0.0.190:8082/domain/c0139787-77d8-43e2-a7cd-3416226bccb5 2026-09-17 09:03:20,719 - DEBUG - Requesting: http://10.0.0.190:8082/project/71fbe895-7eec-4fb5-ace2-0516491ee624 2026-09-17 09:03:20,797 - INFO - Validated that VN ctest-vn4-08130662 is not found in API Server 2026-09-17 09:03:20,808 - DEBUG - VN ctest-vn4-08130662 is not present in Agent 10.0.0.190 2026-09-17 09:03:20,808 - INFO - Validated that VN ctest-vn4-08130662 is not in any agent 2026-09-17 09:03:20,823 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08130662 info 2026-09-17 09:03:20,845 - INFO - Deleted policy ctest-policy1-42183254 2026-09-17 09:03:21,022 - DEBUG - policy ctest-policy1-42183254 is not found in API Server 2026-09-17 09:03:21,286 - DEBUG - No XMPP flaps were noticed during the test 2026-09-17 09:03:21,286 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-17 09:03:21,286 - INFO - -------------------------------------------------------------------------------- 2026-09-17 09:03:21,592 - DEBUG - No XMPP flaps were noticed during the test 2026-09-17 09:03:21,592 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-17 09:03:21,593 - INFO - -------------------------------------------------------------------------------- 2026-09-17 09:03:22,375 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-83861984, ID : 71fbe895-7eec-4fb5-ace2-0516491ee624