2026-02-06 08:52:20,605 - INFO - Domain Default found not creating 2026-02-06 08:52:20,767 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-52898693 not found, creating it 2026-02-06 08:52:21,205 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-52898693, ID : be307b05-2cd0-4158-9438-9370df92a56f 2026-02-06 08:52:22,646 - INFO - ================================================================================ 2026-02-06 08:52:22,646 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-06 08:52:22,901 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-06 08:52:22,901 - INFO - Initial checks done. Running the testcase now 2026-02-06 08:52:22,902 - INFO - 2026-02-06 08:52:22,902 - INFO - ================================================================================ 2026-02-06 08:52:22,902 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-06 08:52:22,902 - 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-06 08:52:23,192 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-06 08:52:23,192 - INFO - Initial checks done. Running the testcase now 2026-02-06 08:52:23,192 - INFO - 2026-02-06 08:52:23,540 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52898693:ctest-vn4-31639655, 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-52898693:ctest-vn4-31639655, 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-52898693:ctest-vn4-31639655, 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-52898693:ctest-vn4-31639655, 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-06 08:52:24,037 - DEBUG - Response for create_network : {'network': {'id': 'ef7500d6-f9d3-4d0f-820f-a986bca78ac7', 'name': 'ctest-vn4-31639655', 'tenant_id': 'be307b052cd0415894389370df92a56f', 'project_id': 'be307b052cd0415894389370df92a56f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52898693', 'ctest-vn4-31639655'], 'port_security_enabled': True, 'description': ''}} 2026-02-06 08:52:24,222 - DEBUG - Response for create_subnet : {'subnet': {'id': '71a49e54-af20-43a2-b07c-f5fd58cb74f2', 'name': '', 'tenant_id': 'be307b052cd0415894389370df92a56f', 'network_id': 'ef7500d6-f9d3-4d0f-820f-a986bca78ac7', 'ip_version': 4, 'cidr': '144.205.113.128/26', 'allocation_pools': [{'start': '144.205.113.130', 'end': '144.205.113.190'}], 'gateway_ip': '144.205.113.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.205.113.130', 'tags': [], 'project_id': 'be307b052cd0415894389370df92a56f'}} 2026-02-06 08:52:24,416 - DEBUG - Response for create_subnet : {'subnet': {'id': '69d8ee6a-6e2b-440d-b78f-a43a47dd5252', 'name': '', 'tenant_id': 'be307b052cd0415894389370df92a56f', 'network_id': 'ef7500d6-f9d3-4d0f-820f-a986bca78ac7', 'ip_version': 6, 'cidr': '35a2:b514:f60d:8516:74e8:c31::/96', 'allocation_pools': [{'start': '35a2:b514:f60d:8516:74e8:c31:0:2', 'end': '35a2:b514:f60d:8516:74e8:c31:ffff:fffe'}], 'gateway_ip': '35a2:b514:f60d:8516:74e8:c31:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35a2:b514:f60d:8516:74e8:c31:0:2', 'tags': [], 'project_id': 'be307b052cd0415894389370df92a56f'}} 2026-02-06 08:52:24,434 - INFO - Created VN ctest-vn4-31639655 2026-02-06 08:52:24,484 - DEBUG - VN ctest-vn4-31639655 UUID is ef7500d6-f9d3-4d0f-820f-a986bca78ac7 2026-02-06 08:52:24,683 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ef7500d6-f9d3-4d0f-820f-a986bca78ac7', 'name': 'ctest-vn4-31639655', 'tenant_id': 'be307b052cd0415894389370df92a56f', 'project_id': 'be307b052cd0415894389370df92a56f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['71a49e54-af20-43a2-b07c-f5fd58cb74f2', '69d8ee6a-6e2b-440d-b78f-a43a47dd5252'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52898693', 'ctest-vn4-31639655'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52898693', 'ctest-policy1-91246580']], 'subnet_ipam': [{'subnet_cidr': '144.205.113.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35a2:b514:f60d:8516:74e8:c31::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-06 08:52:24,844 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-06 08:52:25,144 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-06 08:52:25,176 - DEBUG - Requesting: http://10.0.0.38:8082/domain/996f5f0f-55f0-4f36-92d8-681ead5a7c59 2026-02-06 08:52:25,188 - DEBUG - Requesting: http://10.0.0.38:8082/project/be307b05-2cd0-4158-9438-9370df92a56f 2026-02-06 08:52:25,260 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef7500d6-f9d3-4d0f-820f-a986bca78ac7 2026-02-06 08:52:25,271 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef7500d6-f9d3-4d0f-820f-a986bca78ac7 2026-02-06 08:52:25,280 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87bacf6a-e064-4450-9b11-8a4c9c8b0f35 2026-02-06 08:52:25,286 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87bacf6a-e064-4450-9b11-8a4c9c8b0f35 2026-02-06 08:52:25,293 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/31403cd3-c69f-46a1-9436-1b133e329f56 2026-02-06 08:52:25,299 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-06 08:52:25,300 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef7500d6-f9d3-4d0f-820f-a986bca78ac7 2026-02-06 08:52:25,309 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87bacf6a-e064-4450-9b11-8a4c9c8b0f35 2026-02-06 08:52:25,324 - INFO - Verified VN network id 11 for VN ef7500d6-f9d3-4d0f-820f-a986bca78ac7 2026-02-06 08:52:25,324 - INFO - Verifications in API Server for VN ctest-vn4-31639655 passed 2026-02-06 08:52:25,324 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef7500d6-f9d3-4d0f-820f-a986bca78ac7 2026-02-06 08:52:25,333 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87bacf6a-e064-4450-9b11-8a4c9c8b0f35 2026-02-06 08:52:25,340 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87bacf6a-e064-4450-9b11-8a4c9c8b0f35 2026-02-06 08:52:25,347 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/31403cd3-c69f-46a1-9436-1b133e329f56 2026-02-06 08:52:25,358 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52898693:ctest-vn4-31639655', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-52898693', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17254698470654299407', 'uuid-lslong': '9371895745737099975'}, 'enable': 'true', 'created': '2026-02-06T08:52:24', 'last-modified': '2026-02-06T08:52:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.699941'} 2026-02-06 08:52:25,364 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-06 08:52:25,364 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31639655 passed 2026-02-06 08:52:25,364 - DEBUG - ====Verifying policy data for ctest-vn4-31639655 in API_Server ====== 2026-02-06 08:52:25,364 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-06 08:52:25,370 - DEBUG - Requesting: http://10.0.0.38:8082/domain/996f5f0f-55f0-4f36-92d8-681ead5a7c59 2026-02-06 08:52:25,381 - DEBUG - Requesting: http://10.0.0.38:8082/project/be307b05-2cd0-4158-9438-9370df92a56f 2026-02-06 08:52:25,452 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ef7500d6-f9d3-4d0f-820f-a986bca78ac7 2026-02-06 08:52:25,463 - DEBUG - ==>Verifying data for policy with id: 3ee235bb-84d2-4f19-b67a-7aca538a3bf8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52898693', 'ctest-policy1-91246580'] 2026-02-06 08:52:25,464 - INFO - VN ctest-vn4-31639655 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-06 08:52:25,464 - DEBUG - Verifying the vn in opserver 2026-02-06 08:52:25,464 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52898693:ctest-vn4-31639655 virtual network link through opserver 10.0.0.38 2026-02-06 08:52:25,464 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-06 08:52:25,761 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-06 08:52:25,827 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52898693:ctest-vn4-31639655', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52898693:ctest-vn4-31639655?flat'} 2026-02-06 08:52:25,827 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52898693:ctest-vn4-31639655 is found in opserver 2026-02-06 08:52:25,837 - DEBUG - Do not have enough data to verify VN in agent 2026-02-06 08:52:25,842 - DEBUG - VRF ids for VN ctest-vn4-31639655: {} 2026-02-06 08:52:25,842 - DEBUG - ====Verifying data for ctest-policy1-91246580 in API_Server ====== 2026-02-06 08:52:25,842 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-06 08:52:25,847 - DEBUG - Requesting: http://10.0.0.38:8082/domain/996f5f0f-55f0-4f36-92d8-681ead5a7c59 2026-02-06 08:52:25,858 - DEBUG - Requesting: http://10.0.0.38:8082/project/be307b05-2cd0-4158-9438-9370df92a56f 2026-02-06 08:52:25,930 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/3ee235bb-84d2-4f19-b67a-7aca538a3bf8 2026-02-06 08:52:25,939 - INFO - Verified policy ctest-policy1-91246580 in API Server, Result: True 2026-02-06 08:52:25,939 - INFO - Done with setup and verification, moving onto test .. 2026-02-06 08:52:25,946 - INFO - Deleting VN ctest-vn4-31639655 2026-02-06 08:52:26,058 - DEBUG - Response for deleting network () 2026-02-06 08:52:26,058 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/87bacf6a-e064-4450-9b11-8a4c9c8b0f35 2026-02-06 08:52:26,063 - DEBUG - Response Code: 404 2026-02-06 08:52:26,063 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-06 08:52:26,068 - DEBUG - Requesting: http://10.0.0.38:8082/domain/996f5f0f-55f0-4f36-92d8-681ead5a7c59 2026-02-06 08:52:26,120 - DEBUG - Requesting: http://10.0.0.38:8082/project/be307b05-2cd0-4158-9438-9370df92a56f 2026-02-06 08:52:26,190 - INFO - Validated that VN ctest-vn4-31639655 is not found in API Server 2026-02-06 08:52:26,198 - DEBUG - VN ctest-vn4-31639655 is not present in Agent 10.0.0.38 2026-02-06 08:52:26,198 - INFO - Validated that VN ctest-vn4-31639655 is not in any agent 2026-02-06 08:52:26,210 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31639655 info 2026-02-06 08:52:26,233 - INFO - Deleted policy ctest-policy1-91246580 2026-02-06 08:52:26,396 - DEBUG - policy ctest-policy1-91246580 is not found in API Server 2026-02-06 08:52:26,648 - DEBUG - No XMPP flaps were noticed during the test 2026-02-06 08:52:26,648 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-06 08:52:26,648 - INFO - -------------------------------------------------------------------------------- 2026-02-06 08:52:26,937 - DEBUG - No XMPP flaps were noticed during the test 2026-02-06 08:52:26,937 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-06 08:52:26,937 - INFO - -------------------------------------------------------------------------------- 2026-02-06 08:52:27,632 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-52898693, ID : be307b05-2cd0-4158-9438-9370df92a56f