2026-02-03 12:30:16,214 - INFO - Domain Default found not creating 2026-02-03 12:30:16,385 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58997184 not found, creating it 2026-02-03 12:30:16,844 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58997184, ID : ac336805-365e-4808-8b3a-4f38bde108f1 2026-02-03 12:30:18,257 - INFO - ================================================================================ 2026-02-03 12:30:18,257 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 12:30:18,522 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-03 12:30:18,522 - INFO - Initial checks done. Running the testcase now 2026-02-03 12:30:18,522 - INFO - 2026-02-03 12:30:18,522 - INFO - ================================================================================ 2026-02-03 12:30:18,522 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 12:30:18,522 - 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-02-03 12:30:18,812 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-03 12:30:18,812 - INFO - Initial checks done. Running the testcase now 2026-02-03 12:30:18,813 - INFO - 2026-02-03 12:30:19,162 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58997184:ctest-vn4-15573677, 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-58997184:ctest-vn4-15573677, 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-58997184:ctest-vn4-15573677, 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-58997184:ctest-vn4-15573677, 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-02-03 12:30:19,675 - DEBUG - Response for create_network : {'network': {'id': '51f8f629-7c59-402f-8074-21fed8e4e122', 'name': 'ctest-vn4-15573677', 'tenant_id': 'ac336805365e48088b3a4f38bde108f1', 'project_id': 'ac336805365e48088b3a4f38bde108f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58997184', 'ctest-vn4-15573677'], 'port_security_enabled': True, 'description': ''}} 2026-02-03 12:30:19,887 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d11445c-e165-41c0-8103-73497da0b009', 'name': '', 'tenant_id': 'ac336805365e48088b3a4f38bde108f1', 'network_id': '51f8f629-7c59-402f-8074-21fed8e4e122', 'ip_version': 4, 'cidr': '149.173.253.192/26', 'allocation_pools': [{'start': '149.173.253.194', 'end': '149.173.253.254'}], 'gateway_ip': '149.173.253.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.173.253.194', 'tags': [], 'project_id': 'ac336805365e48088b3a4f38bde108f1'}} 2026-02-03 12:30:20,016 - DEBUG - Response for create_subnet : {'subnet': {'id': '64d811f5-99aa-4917-818c-702fc8f8b328', 'name': '', 'tenant_id': 'ac336805365e48088b3a4f38bde108f1', 'network_id': '51f8f629-7c59-402f-8074-21fed8e4e122', 'ip_version': 6, 'cidr': '3880:4654:b7b8:cc50:8794:e5a::/96', 'allocation_pools': [{'start': '3880:4654:b7b8:cc50:8794:e5a:0:2', 'end': '3880:4654:b7b8:cc50:8794:e5a:ffff:fffe'}], 'gateway_ip': '3880:4654:b7b8:cc50:8794:e5a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3880:4654:b7b8:cc50:8794:e5a:0:2', 'tags': [], 'project_id': 'ac336805365e48088b3a4f38bde108f1'}} 2026-02-03 12:30:20,035 - INFO - Created VN ctest-vn4-15573677 2026-02-03 12:30:20,088 - DEBUG - VN ctest-vn4-15573677 UUID is 51f8f629-7c59-402f-8074-21fed8e4e122 2026-02-03 12:30:20,276 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '51f8f629-7c59-402f-8074-21fed8e4e122', 'name': 'ctest-vn4-15573677', 'tenant_id': 'ac336805365e48088b3a4f38bde108f1', 'project_id': 'ac336805365e48088b3a4f38bde108f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d11445c-e165-41c0-8103-73497da0b009', '64d811f5-99aa-4917-818c-702fc8f8b328'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58997184', 'ctest-vn4-15573677'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58997184', 'ctest-policy1-93734534']], 'subnet_ipam': [{'subnet_cidr': '149.173.253.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3880:4654:b7b8:cc50:8794:e5a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-03 12:30:20,444 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 12:30:20,739 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 12:30:20,772 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ea853b7b-7df4-40ca-9e55-bf597707668d 2026-02-03 12:30:20,783 - DEBUG - Requesting: http://10.0.0.22:8082/project/ac336805-365e-4808-8b3a-4f38bde108f1 2026-02-03 12:30:20,854 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/51f8f629-7c59-402f-8074-21fed8e4e122 2026-02-03 12:30:20,864 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/51f8f629-7c59-402f-8074-21fed8e4e122 2026-02-03 12:30:20,871 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8bac15c8-ff2a-4afc-8ef7-c3dd8e2d1f90 2026-02-03 12:30:20,878 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8bac15c8-ff2a-4afc-8ef7-c3dd8e2d1f90 2026-02-03 12:30:20,883 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e57c45a4-2905-4cac-affd-6a1012a5f973 2026-02-03 12:30:20,888 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 12:30:20,889 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/51f8f629-7c59-402f-8074-21fed8e4e122 2026-02-03 12:30:20,897 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8bac15c8-ff2a-4afc-8ef7-c3dd8e2d1f90 2026-02-03 12:30:20,909 - INFO - Verified VN network id 12 for VN 51f8f629-7c59-402f-8074-21fed8e4e122 2026-02-03 12:30:20,909 - INFO - Verifications in API Server for VN ctest-vn4-15573677 passed 2026-02-03 12:30:20,909 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/51f8f629-7c59-402f-8074-21fed8e4e122 2026-02-03 12:30:20,919 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8bac15c8-ff2a-4afc-8ef7-c3dd8e2d1f90 2026-02-03 12:30:20,926 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8bac15c8-ff2a-4afc-8ef7-c3dd8e2d1f90 2026-02-03 12:30:20,932 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e57c45a4-2905-4cac-affd-6a1012a5f973 2026-02-03 12:30:20,942 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58997184:ctest-vn4-15573677', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58997184', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5906741569336721455', 'uuid-lslong': '9256060512597500194'}, 'enable': 'true', 'created': '2026-02-03T12:30:19', 'last-modified': '2026-02-03T12:30:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.691424'} 2026-02-03 12:30:20,947 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 12:30:20,947 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15573677 passed 2026-02-03 12:30:20,947 - DEBUG - ====Verifying policy data for ctest-vn4-15573677 in API_Server ====== 2026-02-03 12:30:20,947 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 12:30:20,952 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ea853b7b-7df4-40ca-9e55-bf597707668d 2026-02-03 12:30:20,970 - DEBUG - Requesting: http://10.0.0.22:8082/project/ac336805-365e-4808-8b3a-4f38bde108f1 2026-02-03 12:30:21,039 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/51f8f629-7c59-402f-8074-21fed8e4e122 2026-02-03 12:30:21,048 - DEBUG - ==>Verifying data for policy with id: 2fa23e0e-51dd-4a94-91da-c268742778e5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58997184', 'ctest-policy1-93734534'] 2026-02-03 12:30:21,048 - INFO - VN ctest-vn4-15573677 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-03 12:30:21,048 - DEBUG - Verifying the vn in opserver 2026-02-03 12:30:21,048 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58997184:ctest-vn4-15573677 virtual network link through opserver 10.0.0.22 2026-02-03 12:30:21,048 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-03 12:30:21,346 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-03 12:30:21,409 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58997184:ctest-vn4-15573677', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58997184:ctest-vn4-15573677?flat'} 2026-02-03 12:30:21,409 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58997184:ctest-vn4-15573677 is found in opserver 2026-02-03 12:30:21,418 - DEBUG - Do not have enough data to verify VN in agent 2026-02-03 12:30:21,422 - DEBUG - VRF ids for VN ctest-vn4-15573677: {} 2026-02-03 12:30:21,422 - DEBUG - ====Verifying data for ctest-policy1-93734534 in API_Server ====== 2026-02-03 12:30:21,422 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 12:30:21,427 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ea853b7b-7df4-40ca-9e55-bf597707668d 2026-02-03 12:30:21,438 - DEBUG - Requesting: http://10.0.0.22:8082/project/ac336805-365e-4808-8b3a-4f38bde108f1 2026-02-03 12:30:21,509 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/2fa23e0e-51dd-4a94-91da-c268742778e5 2026-02-03 12:30:21,520 - INFO - Verified policy ctest-policy1-93734534 in API Server, Result: True 2026-02-03 12:30:21,520 - INFO - Done with setup and verification, moving onto test .. 2026-02-03 12:30:21,528 - INFO - Deleting VN ctest-vn4-15573677 2026-02-03 12:30:21,637 - DEBUG - Response for deleting network () 2026-02-03 12:30:21,638 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8bac15c8-ff2a-4afc-8ef7-c3dd8e2d1f90 2026-02-03 12:30:21,642 - DEBUG - Response Code: 404 2026-02-03 12:30:21,643 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-03 12:30:21,647 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ea853b7b-7df4-40ca-9e55-bf597707668d 2026-02-03 12:30:21,701 - DEBUG - Requesting: http://10.0.0.22:8082/project/ac336805-365e-4808-8b3a-4f38bde108f1 2026-02-03 12:30:21,769 - INFO - Validated that VN ctest-vn4-15573677 is not found in API Server 2026-02-03 12:30:21,779 - DEBUG - VN ctest-vn4-15573677 is not present in Agent 10.0.0.22 2026-02-03 12:30:21,779 - INFO - Validated that VN ctest-vn4-15573677 is not in any agent 2026-02-03 12:30:21,792 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15573677 info 2026-02-03 12:30:21,814 - INFO - Deleted policy ctest-policy1-93734534 2026-02-03 12:30:21,984 - DEBUG - policy ctest-policy1-93734534 is not found in API Server 2026-02-03 12:30:22,237 - DEBUG - No XMPP flaps were noticed during the test
2026-02-03 12:30:22,237 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-03 12:30:22,237 - INFO - -------------------------------------------------------------------------------- 2026-02-03 12:30:22,531 - DEBUG - No XMPP flaps were noticed during the test
2026-02-03 12:30:22,531 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-03 12:30:22,531 - INFO - -------------------------------------------------------------------------------- 2026-02-03 12:30:23,210 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-58997184, ID : ac336805-365e-4808-8b3a-4f38bde108f1