2026-06-15 12:42:42,101 - INFO - Domain Default found not creating 2026-06-15 12:42:42,242 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02079268 not found, creating it 2026-06-15 12:42:42,707 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02079268, ID : 00682f39-f089-4e81-a63e-1cfb6ff12083 2026-06-15 12:42:44,147 - INFO - ================================================================================ 2026-06-15 12:42:44,148 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 12:42:44,401 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-06-15 12:42:44,401 - INFO - Initial checks done. Running the testcase now 2026-06-15 12:42:44,401 - INFO - 2026-06-15 12:42:44,401 - INFO - ================================================================================ 2026-06-15 12:42:44,401 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 12:42:44,401 - 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-15 12:42:44,689 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-06-15 12:42:44,689 - INFO - Initial checks done. Running the testcase now 2026-06-15 12:42:44,689 - INFO - 2026-06-15 12:42:45,057 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02079268:ctest-vn4-57604343, 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-02079268:ctest-vn4-57604343, 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-02079268:ctest-vn4-57604343, 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-02079268:ctest-vn4-57604343, 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-15 12:42:45,539 - DEBUG - Response for create_network : {'network': {'id': 'a33fdade-4a50-4db8-9556-ce43cb4d6413', 'name': 'ctest-vn4-57604343', 'tenant_id': '00682f39f0894e81a63e1cfb6ff12083', 'project_id': '00682f39f0894e81a63e1cfb6ff12083', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02079268', 'ctest-vn4-57604343'], 'port_security_enabled': True, 'description': ''}} 2026-06-15 12:42:45,691 - DEBUG - Response for create_subnet : {'subnet': {'id': '750847fe-8806-4d7e-bcdc-eae36651feb3', 'name': '', 'tenant_id': '00682f39f0894e81a63e1cfb6ff12083', 'network_id': 'a33fdade-4a50-4db8-9556-ce43cb4d6413', 'ip_version': 4, 'cidr': '94.193.92.192/26', 'allocation_pools': [{'start': '94.193.92.194', 'end': '94.193.92.254'}], 'gateway_ip': '94.193.92.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.193.92.194', 'tags': [], 'project_id': '00682f39f0894e81a63e1cfb6ff12083'}} 2026-06-15 12:42:45,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '080b92dd-c53b-440c-ab8d-53429a06a3c1', 'name': '', 'tenant_id': '00682f39f0894e81a63e1cfb6ff12083', 'network_id': 'a33fdade-4a50-4db8-9556-ce43cb4d6413', 'ip_version': 6, 'cidr': '2106:4a6:ac29:881c:a677:c68d::/96', 'allocation_pools': [{'start': '2106:4a6:ac29:881c:a677:c68d:0:2', 'end': '2106:4a6:ac29:881c:a677:c68d:ffff:fffe'}], 'gateway_ip': '2106:4a6:ac29:881c:a677:c68d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2106:4a6:ac29:881c:a677:c68d:0:2', 'tags': [], 'project_id': '00682f39f0894e81a63e1cfb6ff12083'}} 2026-06-15 12:42:45,836 - INFO - Created VN ctest-vn4-57604343 2026-06-15 12:42:45,887 - DEBUG - VN ctest-vn4-57604343 UUID is a33fdade-4a50-4db8-9556-ce43cb4d6413 2026-06-15 12:42:46,055 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a33fdade-4a50-4db8-9556-ce43cb4d6413', 'name': 'ctest-vn4-57604343', 'tenant_id': '00682f39f0894e81a63e1cfb6ff12083', 'project_id': '00682f39f0894e81a63e1cfb6ff12083', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['750847fe-8806-4d7e-bcdc-eae36651feb3', '080b92dd-c53b-440c-ab8d-53429a06a3c1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02079268', 'ctest-vn4-57604343'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02079268', 'ctest-policy1-53800662']], 'subnet_ipam': [{'subnet_cidr': '94.193.92.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2106:4a6:ac29:881c:a677:c68d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-15 12:42:46,211 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-15 12:42:46,529 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-15 12:42:46,551 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36dcb4fc-0d2b-4d81-9fd0-98a450c78c4a 2026-06-15 12:42:46,563 - DEBUG - Requesting: http://10.0.0.38:8082/project/00682f39-f089-4e81-a63e-1cfb6ff12083 2026-06-15 12:42:46,652 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a33fdade-4a50-4db8-9556-ce43cb4d6413 2026-06-15 12:42:46,663 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a33fdade-4a50-4db8-9556-ce43cb4d6413 2026-06-15 12:42:46,671 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a85149f1-e988-4f05-b8b6-112c935485ea 2026-06-15 12:42:46,678 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a85149f1-e988-4f05-b8b6-112c935485ea 2026-06-15 12:42:46,684 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c9bd29a7-ec9a-4aed-9971-44102478a78d 2026-06-15 12:42:46,690 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 12:42:46,690 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a33fdade-4a50-4db8-9556-ce43cb4d6413 2026-06-15 12:42:46,699 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a85149f1-e988-4f05-b8b6-112c935485ea 2026-06-15 12:42:46,713 - INFO - Verified VN network id 12 for VN a33fdade-4a50-4db8-9556-ce43cb4d6413 2026-06-15 12:42:46,713 - INFO - Verifications in API Server for VN ctest-vn4-57604343 passed 2026-06-15 12:42:46,713 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a33fdade-4a50-4db8-9556-ce43cb4d6413 2026-06-15 12:42:46,722 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a85149f1-e988-4f05-b8b6-112c935485ea 2026-06-15 12:42:46,729 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a85149f1-e988-4f05-b8b6-112c935485ea 2026-06-15 12:42:46,738 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c9bd29a7-ec9a-4aed-9971-44102478a78d 2026-06-15 12:42:46,752 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02079268:ctest-vn4-57604343', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02079268', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11763361399979396536', 'uuid-lslong': '10761015150217356307'}, 'enable': 'true', 'created': '2026-06-15T12:42:45', 'last-modified': '2026-06-15T12:42:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722183'} 2026-06-15 12:42:46,758 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 12:42:46,758 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-57604343 passed 2026-06-15 12:42:46,758 - DEBUG - ====Verifying policy data for ctest-vn4-57604343 in API_Server ====== 2026-06-15 12:42:46,758 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-15 12:42:46,775 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36dcb4fc-0d2b-4d81-9fd0-98a450c78c4a 2026-06-15 12:42:46,794 - DEBUG - Requesting: http://10.0.0.38:8082/project/00682f39-f089-4e81-a63e-1cfb6ff12083 2026-06-15 12:42:46,897 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a33fdade-4a50-4db8-9556-ce43cb4d6413 2026-06-15 12:42:46,916 - DEBUG - ==>Verifying data for policy with id: a6a02468-8e24-4d7c-aa2d-16242084fcf8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02079268', 'ctest-policy1-53800662'] 2026-06-15 12:42:46,917 - INFO - VN ctest-vn4-57604343 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-15 12:42:46,917 - DEBUG - Verifying the vn in opserver 2026-06-15 12:42:46,917 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02079268:ctest-vn4-57604343 virtual network link through opserver 10.0.0.38 2026-06-15 12:42:46,917 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-15 12:42:47,245 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-15 12:42:47,304 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02079268:ctest-vn4-57604343', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02079268:ctest-vn4-57604343?flat'} 2026-06-15 12:42:47,304 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02079268:ctest-vn4-57604343 is found in opserver 2026-06-15 12:42:47,312 - DEBUG - Do not have enough data to verify VN in agent 2026-06-15 12:42:47,316 - DEBUG - VRF ids for VN ctest-vn4-57604343: {} 2026-06-15 12:42:47,316 - DEBUG - ====Verifying data for ctest-policy1-53800662 in API_Server ====== 2026-06-15 12:42:47,316 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-15 12:42:47,321 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36dcb4fc-0d2b-4d81-9fd0-98a450c78c4a 2026-06-15 12:42:47,332 - DEBUG - Requesting: http://10.0.0.38:8082/project/00682f39-f089-4e81-a63e-1cfb6ff12083 2026-06-15 12:42:47,399 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/a6a02468-8e24-4d7c-aa2d-16242084fcf8 2026-06-15 12:42:47,407 - INFO - Verified policy ctest-policy1-53800662 in API Server, Result: True 2026-06-15 12:42:47,407 - INFO - Done with setup and verification, moving onto test .. 2026-06-15 12:42:47,414 - INFO - Deleting VN ctest-vn4-57604343 2026-06-15 12:42:47,512 - DEBUG - Response for deleting network () 2026-06-15 12:42:47,512 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a85149f1-e988-4f05-b8b6-112c935485ea 2026-06-15 12:42:47,516 - DEBUG - Response Code: 404 2026-06-15 12:42:47,517 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-15 12:42:47,521 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36dcb4fc-0d2b-4d81-9fd0-98a450c78c4a 2026-06-15 12:42:47,571 - DEBUG - Requesting: http://10.0.0.38:8082/project/00682f39-f089-4e81-a63e-1cfb6ff12083 2026-06-15 12:42:47,638 - INFO - Validated that VN ctest-vn4-57604343 is not found in API Server 2026-06-15 12:42:47,647 - DEBUG - VN ctest-vn4-57604343 is not present in Agent 10.0.0.38 2026-06-15 12:42:47,647 - INFO - Validated that VN ctest-vn4-57604343 is not in any agent 2026-06-15 12:42:47,659 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-57604343 info 2026-06-15 12:42:47,680 - INFO - Deleted policy ctest-policy1-53800662 2026-06-15 12:42:47,839 - DEBUG - policy ctest-policy1-53800662 is not found in API Server 2026-06-15 12:42:48,092 - DEBUG - No XMPP flaps were noticed during the test