2026-11-01 20:41:28,220 - INFO - Domain Default found not creating 2026-11-01 20:41:28,443 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33796407 not found, creating it 2026-11-01 20:41:28,965 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33796407, ID : 50d87c6b-d738-4fc6-85db-ad51ac31a456 2026-11-01 20:41:30,515 - INFO - ================================================================================ 2026-11-01 20:41:30,515 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-01 20:41:30,771 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-11-01 20:41:30,771 - INFO - Initial checks done. Running the testcase now 2026-11-01 20:41:30,771 - INFO - 2026-11-01 20:41:30,771 - INFO - ================================================================================ 2026-11-01 20:41:30,771 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-01 20:41:30,772 - 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-11-01 20:41:31,062 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-11-01 20:41:31,062 - INFO - Initial checks done. Running the testcase now 2026-11-01 20:41:31,062 - INFO - 2026-11-01 20:41:31,477 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33796407:ctest-vn4-98965059, 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-33796407:ctest-vn4-98965059, 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-33796407:ctest-vn4-98965059, 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-33796407:ctest-vn4-98965059, 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-11-01 20:41:32,001 - DEBUG - Response for create_network : {'network': {'id': '235eb7f0-015a-4e25-a9a1-1e0cba3fd547', 'name': 'ctest-vn4-98965059', 'tenant_id': '50d87c6bd7384fc685dbad51ac31a456', 'project_id': '50d87c6bd7384fc685dbad51ac31a456', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33796407', 'ctest-vn4-98965059'], 'port_security_enabled': True, 'description': ''}} 2026-11-01 20:41:32,252 - DEBUG - Response for create_subnet : {'subnet': {'id': '53010765-c014-4da1-bf4e-6e085979c9c8', 'name': '', 'tenant_id': '50d87c6bd7384fc685dbad51ac31a456', 'network_id': '235eb7f0-015a-4e25-a9a1-1e0cba3fd547', 'ip_version': 4, 'cidr': '153.202.83.128/26', 'allocation_pools': [{'start': '153.202.83.130', 'end': '153.202.83.190'}], 'gateway_ip': '153.202.83.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.202.83.130', 'tags': [], 'project_id': '50d87c6bd7384fc685dbad51ac31a456'}} 2026-11-01 20:41:32,427 - DEBUG - Response for create_subnet : {'subnet': {'id': '41b37e63-7ede-4b18-9e1f-e12dda12c04d', 'name': '', 'tenant_id': '50d87c6bd7384fc685dbad51ac31a456', 'network_id': '235eb7f0-015a-4e25-a9a1-1e0cba3fd547', 'ip_version': 6, 'cidr': '22dd:d155:16e4:7ddd:abb6:1ba6::/96', 'allocation_pools': [{'start': '22dd:d155:16e4:7ddd:abb6:1ba6:0:2', 'end': '22dd:d155:16e4:7ddd:abb6:1ba6:ffff:fffe'}], 'gateway_ip': '22dd:d155:16e4:7ddd:abb6:1ba6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22dd:d155:16e4:7ddd:abb6:1ba6:0:2', 'tags': [], 'project_id': '50d87c6bd7384fc685dbad51ac31a456'}} 2026-11-01 20:41:32,443 - INFO - Created VN ctest-vn4-98965059 2026-11-01 20:41:32,497 - DEBUG - VN ctest-vn4-98965059 UUID is 235eb7f0-015a-4e25-a9a1-1e0cba3fd547 2026-11-01 20:41:32,719 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '235eb7f0-015a-4e25-a9a1-1e0cba3fd547', 'name': 'ctest-vn4-98965059', 'tenant_id': '50d87c6bd7384fc685dbad51ac31a456', 'project_id': '50d87c6bd7384fc685dbad51ac31a456', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['53010765-c014-4da1-bf4e-6e085979c9c8', '41b37e63-7ede-4b18-9e1f-e12dda12c04d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33796407', 'ctest-vn4-98965059'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33796407', 'ctest-policy1-10182171']], 'subnet_ipam': [{'subnet_cidr': '153.202.83.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22dd:d155:16e4:7ddd:abb6:1ba6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-01 20:41:32,885 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-01 20:41:33,218 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-01 20:41:33,246 - DEBUG - Requesting: http://10.0.0.161:8082/domain/053ea2b6-0b11-4383-803d-d60686112219 2026-11-01 20:41:33,256 - DEBUG - Requesting: http://10.0.0.161:8082/project/50d87c6b-d738-4fc6-85db-ad51ac31a456 2026-11-01 20:41:33,328 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/235eb7f0-015a-4e25-a9a1-1e0cba3fd547 2026-11-01 20:41:33,337 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/235eb7f0-015a-4e25-a9a1-1e0cba3fd547 2026-11-01 20:41:33,345 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/42fdaa5d-d12c-42ff-9d16-2c90c4328808 2026-11-01 20:41:33,351 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/42fdaa5d-d12c-42ff-9d16-2c90c4328808 2026-11-01 20:41:33,357 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/db4d1aa4-49b3-42fd-8895-0d4b5297968d 2026-11-01 20:41:33,362 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-01 20:41:33,363 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/235eb7f0-015a-4e25-a9a1-1e0cba3fd547 2026-11-01 20:41:33,371 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/42fdaa5d-d12c-42ff-9d16-2c90c4328808 2026-11-01 20:41:33,382 - INFO - Verified VN network id 12 for VN 235eb7f0-015a-4e25-a9a1-1e0cba3fd547 2026-11-01 20:41:33,382 - INFO - Verifications in API Server for VN ctest-vn4-98965059 passed 2026-11-01 20:41:33,382 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/235eb7f0-015a-4e25-a9a1-1e0cba3fd547 2026-11-01 20:41:33,390 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/42fdaa5d-d12c-42ff-9d16-2c90c4328808 2026-11-01 20:41:33,395 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/42fdaa5d-d12c-42ff-9d16-2c90c4328808 2026-11-01 20:41:33,400 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/db4d1aa4-49b3-42fd-8895-0d4b5297968d 2026-11-01 20:41:33,413 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33796407:ctest-vn4-98965059', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33796407', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2548676680581008933', 'uuid-lslong': '12223083903673423175'}, 'enable': 'true', 'created': '2026-11-01T20:41:31', 'last-modified': '2026-11-01T20:41:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725299'} 2026-11-01 20:41:33,420 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-01 20:41:33,420 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98965059 passed 2026-11-01 20:41:33,420 - DEBUG - ====Verifying policy data for ctest-vn4-98965059 in API_Server ====== 2026-11-01 20:41:33,420 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-01 20:41:33,425 - DEBUG - Requesting: http://10.0.0.161:8082/domain/053ea2b6-0b11-4383-803d-d60686112219 2026-11-01 20:41:33,433 - DEBUG - Requesting: http://10.0.0.161:8082/project/50d87c6b-d738-4fc6-85db-ad51ac31a456 2026-11-01 20:41:33,504 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/235eb7f0-015a-4e25-a9a1-1e0cba3fd547 2026-11-01 20:41:33,513 - DEBUG - ==>Verifying data for policy with id: 02eb069d-3cc6-450f-9c6e-f024228501da, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33796407', 'ctest-policy1-10182171'] 2026-11-01 20:41:33,513 - INFO - VN ctest-vn4-98965059 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-01 20:41:33,513 - DEBUG - Verifying the vn in opserver 2026-11-01 20:41:33,513 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33796407:ctest-vn4-98965059 virtual network link through opserver 10.0.0.161 2026-11-01 20:41:33,514 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-11-01 20:41:33,859 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-11-01 20:41:33,908 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33796407:ctest-vn4-98965059', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33796407:ctest-vn4-98965059?flat'} 2026-11-01 20:41:33,908 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33796407:ctest-vn4-98965059 is found in opserver 2026-11-01 20:41:33,918 - DEBUG - Do not have enough data to verify VN in agent 2026-11-01 20:41:33,923 - DEBUG - VRF ids for VN ctest-vn4-98965059: {} 2026-11-01 20:41:33,923 - DEBUG - ====Verifying data for ctest-policy1-10182171 in API_Server ====== 2026-11-01 20:41:33,923 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-01 20:41:33,930 - DEBUG - Requesting: http://10.0.0.161:8082/domain/053ea2b6-0b11-4383-803d-d60686112219 2026-11-01 20:41:33,938 - DEBUG - Requesting: http://10.0.0.161:8082/project/50d87c6b-d738-4fc6-85db-ad51ac31a456 2026-11-01 20:41:34,005 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/02eb069d-3cc6-450f-9c6e-f024228501da 2026-11-01 20:41:34,014 - INFO - Verified policy ctest-policy1-10182171 in API Server, Result: True 2026-11-01 20:41:34,014 - INFO - Done with setup and verification, moving onto test .. 2026-11-01 20:41:34,020 - INFO - Deleting VN ctest-vn4-98965059 2026-11-01 20:41:34,123 - DEBUG - Response for deleting network () 2026-11-01 20:41:34,123 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/42fdaa5d-d12c-42ff-9d16-2c90c4328808 2026-11-01 20:41:34,129 - DEBUG - Response Code: 404 2026-11-01 20:41:34,129 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-01 20:41:34,135 - DEBUG - Requesting: http://10.0.0.161:8082/domain/053ea2b6-0b11-4383-803d-d60686112219 2026-11-01 20:41:34,185 - DEBUG - Requesting: http://10.0.0.161:8082/project/50d87c6b-d738-4fc6-85db-ad51ac31a456 2026-11-01 20:41:34,260 - INFO - Validated that VN ctest-vn4-98965059 is not found in API Server 2026-11-01 20:41:34,269 - DEBUG - VN ctest-vn4-98965059 is not present in Agent 10.0.0.161 2026-11-01 20:41:34,269 - INFO - Validated that VN ctest-vn4-98965059 is not in any agent 2026-11-01 20:41:34,285 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98965059 info 2026-11-01 20:41:34,310 - INFO - Deleted policy ctest-policy1-10182171 2026-11-01 20:41:34,477 - DEBUG - policy ctest-policy1-10182171 is not found in API Server 2026-11-01 20:41:34,734 - DEBUG - No XMPP flaps were noticed during the test 2026-11-01 20:41:34,734 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-01 20:41:34,734 - INFO - -------------------------------------------------------------------------------- 2026-11-01 20:41:35,023 - DEBUG - No XMPP flaps were noticed during the test 2026-11-01 20:41:35,023 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-11-01 20:41:35,023 - INFO - -------------------------------------------------------------------------------- 2026-11-01 20:41:35,724 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-33796407, ID : 50d87c6b-d738-4fc6-85db-ad51ac31a456