2026-11-06 23:56:45,738 - INFO - Domain Default found not creating 2026-11-06 23:56:45,945 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43262283 not found, creating it 2026-11-06 23:56:46,422 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43262283, ID : 197103bf-e2ec-4b3b-9b35-9283c396ed9e 2026-11-06 23:56:48,220 - INFO - ================================================================================ 2026-11-06 23:56:48,220 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-06 23:56:48,495 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-11-06 23:56:48,495 - INFO - Initial checks done. Running the testcase now 2026-11-06 23:56:48,495 - INFO - 2026-11-06 23:56:48,495 - INFO - ================================================================================ 2026-11-06 23:56:48,495 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-06 23:56:48,495 - 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-06 23:56:48,798 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-11-06 23:56:48,798 - INFO - Initial checks done. Running the testcase now 2026-11-06 23:56:48,798 - INFO - 2026-11-06 23:56:49,240 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43262283:ctest-vn4-83164838, 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-43262283:ctest-vn4-83164838, 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-43262283:ctest-vn4-83164838, 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-43262283:ctest-vn4-83164838, 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-06 23:56:49,799 - DEBUG - Response for create_network : {'network': {'id': 'edb33d27-1bda-4fc5-90ba-3c3339b096bc', 'name': 'ctest-vn4-83164838', 'tenant_id': '197103bfe2ec4b3b9b359283c396ed9e', 'project_id': '197103bfe2ec4b3b9b359283c396ed9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43262283', 'ctest-vn4-83164838'], 'port_security_enabled': True, 'description': ''}} 2026-11-06 23:56:50,024 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b073cd5d-3795-41d6-8c99-e10539d04636', 'name': '', 'tenant_id': '197103bfe2ec4b3b9b359283c396ed9e', 'network_id': 'edb33d27-1bda-4fc5-90ba-3c3339b096bc', 'ip_version': 4, 'cidr': '8.53.66.0/26', 'allocation_pools': [{'start': '8.53.66.2', 'end': '8.53.66.62'}], 'gateway_ip': '8.53.66.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.53.66.2', 'tags': [], 'project_id': '197103bfe2ec4b3b9b359283c396ed9e'}} 2026-11-06 23:56:50,187 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe4a1991-e6ca-4e35-bdc8-ff45dfded84e', 'name': '', 'tenant_id': '197103bfe2ec4b3b9b359283c396ed9e', 'network_id': 'edb33d27-1bda-4fc5-90ba-3c3339b096bc', 'ip_version': 6, 'cidr': '218f:37bf:8c1d:f794:9b71:9df3::/96', 'allocation_pools': [{'start': '218f:37bf:8c1d:f794:9b71:9df3:0:2', 'end': '218f:37bf:8c1d:f794:9b71:9df3:ffff:fffe'}], 'gateway_ip': '218f:37bf:8c1d:f794:9b71:9df3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218f:37bf:8c1d:f794:9b71:9df3:0:2', 'tags': [], 'project_id': '197103bfe2ec4b3b9b359283c396ed9e'}} 2026-11-06 23:56:50,212 - INFO - Created VN ctest-vn4-83164838 2026-11-06 23:56:50,268 - DEBUG - VN ctest-vn4-83164838 UUID is edb33d27-1bda-4fc5-90ba-3c3339b096bc 2026-11-06 23:56:50,496 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'edb33d27-1bda-4fc5-90ba-3c3339b096bc', 'name': 'ctest-vn4-83164838', 'tenant_id': '197103bfe2ec4b3b9b359283c396ed9e', 'project_id': '197103bfe2ec4b3b9b359283c396ed9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['b073cd5d-3795-41d6-8c99-e10539d04636', 'fe4a1991-e6ca-4e35-bdc8-ff45dfded84e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43262283', 'ctest-vn4-83164838'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43262283', 'ctest-policy1-85983840']], 'subnet_ipam': [{'subnet_cidr': '8.53.66.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '218f:37bf:8c1d:f794:9b71:9df3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-06 23:56:50,664 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-06 23:56:51,037 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-06 23:56:51,065 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ce81d6c8-eae9-4b7c-bf98-81cb2e87f0ec 2026-11-06 23:56:51,078 - DEBUG - Requesting: http://10.0.0.161:8082/project/197103bf-e2ec-4b3b-9b35-9283c396ed9e 2026-11-06 23:56:51,157 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/edb33d27-1bda-4fc5-90ba-3c3339b096bc 2026-11-06 23:56:51,170 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/edb33d27-1bda-4fc5-90ba-3c3339b096bc 2026-11-06 23:56:51,181 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/fc16b440-7837-416f-a302-0e81276400a0 2026-11-06 23:56:51,189 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/fc16b440-7837-416f-a302-0e81276400a0 2026-11-06 23:56:51,198 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/2019b391-f759-417a-85b9-14dea360f30f 2026-11-06 23:56:51,206 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-06 23:56:51,206 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/edb33d27-1bda-4fc5-90ba-3c3339b096bc 2026-11-06 23:56:51,218 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/fc16b440-7837-416f-a302-0e81276400a0 2026-11-06 23:56:51,237 - INFO - Verified VN network id 12 for VN edb33d27-1bda-4fc5-90ba-3c3339b096bc 2026-11-06 23:56:51,237 - INFO - Verifications in API Server for VN ctest-vn4-83164838 passed 2026-11-06 23:56:51,237 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/edb33d27-1bda-4fc5-90ba-3c3339b096bc 2026-11-06 23:56:51,250 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/fc16b440-7837-416f-a302-0e81276400a0 2026-11-06 23:56:51,259 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/fc16b440-7837-416f-a302-0e81276400a0 2026-11-06 23:56:51,268 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/2019b391-f759-417a-85b9-14dea360f30f 2026-11-06 23:56:51,281 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43262283:ctest-vn4-83164838', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43262283', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17128101046000439237', 'uuid-lslong': '10428714077838677692'}, 'enable': 'true', 'created': '2026-11-06T23:56:49', 'last-modified': '2026-11-06T23:56:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.817106'} 2026-11-06 23:56:51,289 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-06 23:56:51,289 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-83164838 passed 2026-11-06 23:56:51,289 - DEBUG - ====Verifying policy data for ctest-vn4-83164838 in API_Server ====== 2026-11-06 23:56:51,289 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-06 23:56:51,294 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ce81d6c8-eae9-4b7c-bf98-81cb2e87f0ec 2026-11-06 23:56:51,305 - DEBUG - Requesting: http://10.0.0.161:8082/project/197103bf-e2ec-4b3b-9b35-9283c396ed9e 2026-11-06 23:56:51,382 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/edb33d27-1bda-4fc5-90ba-3c3339b096bc 2026-11-06 23:56:51,393 - DEBUG - ==>Verifying data for policy with id: 6f702c67-45db-45a5-bef8-b727fc57d1ee, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43262283', 'ctest-policy1-85983840'] 2026-11-06 23:56:51,393 - INFO - VN ctest-vn4-83164838 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-06 23:56:51,393 - DEBUG - Verifying the vn in opserver 2026-11-06 23:56:51,393 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43262283:ctest-vn4-83164838 virtual network link through opserver 10.0.0.161 2026-11-06 23:56:51,393 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-11-06 23:56:51,775 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-11-06 23:56:51,842 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43262283:ctest-vn4-83164838', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43262283:ctest-vn4-83164838?flat'} 2026-11-06 23:56:51,842 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43262283:ctest-vn4-83164838 is found in opserver 2026-11-06 23:56:51,854 - DEBUG - Do not have enough data to verify VN in agent 2026-11-06 23:56:51,862 - DEBUG - VRF ids for VN ctest-vn4-83164838: {} 2026-11-06 23:56:51,862 - DEBUG - ====Verifying data for ctest-policy1-85983840 in API_Server ====== 2026-11-06 23:56:51,862 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-06 23:56:51,869 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ce81d6c8-eae9-4b7c-bf98-81cb2e87f0ec 2026-11-06 23:56:51,881 - DEBUG - Requesting: http://10.0.0.161:8082/project/197103bf-e2ec-4b3b-9b35-9283c396ed9e 2026-11-06 23:56:51,956 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/6f702c67-45db-45a5-bef8-b727fc57d1ee 2026-11-06 23:56:51,967 - INFO - Verified policy ctest-policy1-85983840 in API Server, Result: True 2026-11-06 23:56:51,967 - INFO - Done with setup and verification, moving onto test .. 2026-11-06 23:56:51,976 - INFO - Deleting VN ctest-vn4-83164838 2026-11-06 23:56:52,120 - DEBUG - Response for deleting network () 2026-11-06 23:56:52,120 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/fc16b440-7837-416f-a302-0e81276400a0 2026-11-06 23:56:52,127 - DEBUG - Response Code: 404 2026-11-06 23:56:52,127 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-06 23:56:52,135 - DEBUG - Requesting: http://10.0.0.161:8082/domain/ce81d6c8-eae9-4b7c-bf98-81cb2e87f0ec 2026-11-06 23:56:52,191 - DEBUG - Requesting: http://10.0.0.161:8082/project/197103bf-e2ec-4b3b-9b35-9283c396ed9e 2026-11-06 23:56:52,272 - INFO - Validated that VN ctest-vn4-83164838 is not found in API Server 2026-11-06 23:56:52,284 - DEBUG - VN ctest-vn4-83164838 is not present in Agent 10.0.0.161 2026-11-06 23:56:52,284 - INFO - Validated that VN ctest-vn4-83164838 is not in any agent 2026-11-06 23:56:52,301 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-83164838 info 2026-11-06 23:56:52,334 - INFO - Deleted policy ctest-policy1-85983840 2026-11-06 23:56:52,504 - DEBUG - policy ctest-policy1-85983840 is not found in API Server 2026-11-06 23:56:52,776 - DEBUG - No XMPP flaps were noticed during the test 2026-11-06 23:56:52,776 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-06 23:56:52,776 - INFO - -------------------------------------------------------------------------------- 2026-11-06 23:56:53,074 - DEBUG - No XMPP flaps were noticed during the test 2026-11-06 23:56:53,074 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-11-06 23:56:53,074 - INFO - -------------------------------------------------------------------------------- 2026-11-06 23:56:53,930 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43262283, ID : 197103bf-e2ec-4b3b-9b35-9283c396ed9e