2026-07-28 18:10:33,501 - INFO - Reading existing Domain with UUID b6c1387c-4a80-4b88-8142-7d06420731e1 2026-07-28 18:10:33,516 - INFO - Using existing domain ['admin_domain'](b6c1387c-4a80-4b88-8142-7d06420731e1) 2026-07-28 18:10:33,750 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98041892 not found, creating it 2026-07-28 18:10:34,277 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98041892, ID : 2812e993-39e3-4602-9523-7368fcba4141 2026-07-28 18:10:36,074 - INFO - ================================================================================ 2026-07-28 18:10:36,074 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-28 18:10:36,488 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.0.0.185': '0'}} with 2026-07-28 18:10:36,488 - INFO - Initial checks done. Running the testcase now 2026-07-28 18:10:36,488 - INFO - 2026-07-28 18:10:36,488 - INFO - ================================================================================ 2026-07-28 18:10:36,488 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-28 18:10:36,488 - 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-07-28 18:10:36,895 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.0.0.185': '0'}} with 2026-07-28 18:10:36,895 - INFO - Initial checks done. Running the testcase now 2026-07-28 18:10:36,896 - INFO - 2026-07-28 18:10:37,276 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-98041892:ctest-vn4-39113079, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-98041892:ctest-vn4-39113079, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-98041892:ctest-vn4-39113079, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-98041892:ctest-vn4-39113079, 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-07-28 18:10:38,044 - DEBUG - Response for create_network : {'network': {'id': '84a40b45-fafe-405a-b410-29a5216d97ae', 'name': 'ctest-vn4-39113079', 'tenant_id': '2812e99339e3460295237368fcba4141', 'project_id': '2812e99339e3460295237368fcba4141', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98041892', 'ctest-vn4-39113079'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-07-28 18:10:38,348 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd76bbbe-1acf-4da9-8fea-1f658fd391df', 'name': '', 'tenant_id': '2812e99339e3460295237368fcba4141', 'network_id': '84a40b45-fafe-405a-b410-29a5216d97ae', 'ip_version': 4, 'cidr': '66.178.48.64/26', 'allocation_pools': [{'start': '66.178.48.66', 'end': '66.178.48.126'}], 'gateway_ip': '66.178.48.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-07-28T18:10:38.227800', 'updated_at': '2026-07-28T18:10:38.227800', 'dns_server_address': '66.178.48.66', 'tags': [], 'project_id': '2812e99339e3460295237368fcba4141'}} 2026-07-28 18:10:38,632 - DEBUG - Response for create_subnet : {'subnet': {'id': 'badf3ab3-8a5b-49cf-b54d-e0515a7759e3', 'name': '', 'tenant_id': '2812e99339e3460295237368fcba4141', 'network_id': '84a40b45-fafe-405a-b410-29a5216d97ae', 'ip_version': 6, 'cidr': '33f8:873d:77c4:c221:878a:4736::/96', 'allocation_pools': [{'start': '33f8:873d:77c4:c221:878a:4736:0:2', 'end': '33f8:873d:77c4:c221:878a:4736:ffff:fffe'}], 'gateway_ip': '33f8:873d:77c4:c221:878a:4736:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-07-28T18:10:38.508914', 'updated_at': '2026-07-28T18:10:38.508914', 'dns_server_address': '33f8:873d:77c4:c221:878a:4736:0:2', 'tags': [], 'project_id': '2812e99339e3460295237368fcba4141'}} 2026-07-28 18:10:38,701 - INFO - Created VN ctest-vn4-39113079 2026-07-28 18:10:38,758 - DEBUG - VN ctest-vn4-39113079 UUID is 84a40b45-fafe-405a-b410-29a5216d97ae 2026-07-28 18:10:39,242 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '84a40b45-fafe-405a-b410-29a5216d97ae', 'name': 'ctest-vn4-39113079', 'tenant_id': '2812e99339e3460295237368fcba4141', 'project_id': '2812e99339e3460295237368fcba4141', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cd76bbbe-1acf-4da9-8fea-1f658fd391df', 'badf3ab3-8a5b-49cf-b54d-e0515a7759e3'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98041892', 'ctest-vn4-39113079'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98041892', 'ctest-policy1-69768928']], 'subnet_ipam': [{'subnet_cidr': '66.178.48.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33f8:873d:77c4:c221:878a:4736::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-07-28T18:10:37.956598', 'updated_at': '2026-07-28T18:10:38.528480'}} 2026-07-28 18:10:39,442 - DEBUG - Requesting: https://10.0.0.185:8082/domains 2026-07-28 18:10:39,803 - DEBUG - Requesting: https://10.0.0.185:8082/domains 2026-07-28 18:10:39,891 - DEBUG - Requesting: https://10.0.0.185:8082/domain/b6c1387c-4a80-4b88-8142-7d06420731e1 2026-07-28 18:10:39,951 - DEBUG - Requesting: https://10.0.0.185:8082/project/2812e993-39e3-4602-9523-7368fcba4141 2026-07-28 18:10:40,035 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/84a40b45-fafe-405a-b410-29a5216d97ae 2026-07-28 18:10:40,097 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/84a40b45-fafe-405a-b410-29a5216d97ae 2026-07-28 18:10:40,157 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/b5a574e7-2314-4e64-b8cd-af07ca49e9ff 2026-07-28 18:10:40,211 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/b5a574e7-2314-4e64-b8cd-af07ca49e9ff 2026-07-28 18:10:40,267 - DEBUG - Requesting: https://10.0.0.185:8082/route-target/859872e2-cc70-4513-a32b-ee6abd79483c 2026-07-28 18:10:40,323 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-28 18:10:40,323 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/84a40b45-fafe-405a-b410-29a5216d97ae 2026-07-28 18:10:40,384 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/b5a574e7-2314-4e64-b8cd-af07ca49e9ff 2026-07-28 18:10:40,448 - INFO - Verified VN network id 11 for VN 84a40b45-fafe-405a-b410-29a5216d97ae 2026-07-28 18:10:40,449 - INFO - Verifications in API Server for VN ctest-vn4-39113079 passed 2026-07-28 18:10:40,449 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/84a40b45-fafe-405a-b410-29a5216d97ae 2026-07-28 18:10:40,508 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/b5a574e7-2314-4e64-b8cd-af07ca49e9ff 2026-07-28 18:10:40,572 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/b5a574e7-2314-4e64-b8cd-af07ca49e9ff 2026-07-28 18:10:40,631 - DEBUG - Requesting: https://10.0.0.185:8082/route-target/859872e2-cc70-4513-a32b-ee6abd79483c 2026-07-28 18:10:40,739 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-98041892:ctest-vn4-39113079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98041892', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9557776704378650714', 'uuid-lslong': '12974916315661572014'}, 'enable': 'true', 'created': '2026-07-28T18:10:37', 'last-modified': '2026-07-28T18:10:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.530594'} 2026-07-28 18:10:40,792 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-28 18:10:40,793 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39113079 passed 2026-07-28 18:10:40,793 - DEBUG - ====Verifying policy data for ctest-vn4-39113079 in API_Server ====== 2026-07-28 18:10:40,793 - DEBUG - Requesting: https://10.0.0.185:8082/domains 2026-07-28 18:10:40,846 - DEBUG - Requesting: https://10.0.0.185:8082/domain/b6c1387c-4a80-4b88-8142-7d06420731e1 2026-07-28 18:10:40,907 - DEBUG - Requesting: https://10.0.0.185:8082/project/2812e993-39e3-4602-9523-7368fcba4141 2026-07-28 18:10:41,007 - DEBUG - Requesting: https://10.0.0.185:8082/virtual-network/84a40b45-fafe-405a-b410-29a5216d97ae 2026-07-28 18:10:41,064 - DEBUG - ==>Verifying data for policy with id: b4373660-974e-48f4-96be-c2b381e3472b, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98041892', 'ctest-policy1-69768928'] 2026-07-28 18:10:41,065 - INFO - VN ctest-vn4-39113079 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-28 18:10:41,065 - DEBUG - Verifying the vn in opserver 2026-07-28 18:10:41,065 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-98041892:ctest-vn4-39113079 virtual network link through opserver 10.0.0.185 2026-07-28 18:10:41,065 - DEBUG - Requesting: https://10.0.0.185:8081/analytics/uves/virtual-networks 2026-07-28 18:10:41,423 - DEBUG - Requesting: https://10.0.0.185:8081/analytics/uves/virtual-networks 2026-07-28 18:10:41,551 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-98041892:ctest-vn4-39113079', 'href': 'https://10.0.0.185:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-98041892:ctest-vn4-39113079?flat'} 2026-07-28 18:10:41,551 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-98041892:ctest-vn4-39113079 is found in opserver 2026-07-28 18:10:41,659 - DEBUG - Do not have enough data to verify VN in agent 2026-07-28 18:10:41,710 - DEBUG - VRF ids for VN ctest-vn4-39113079: {} 2026-07-28 18:10:41,711 - DEBUG - ====Verifying data for ctest-policy1-69768928 in API_Server ====== 2026-07-28 18:10:41,711 - DEBUG - Requesting: https://10.0.0.185:8082/domains 2026-07-28 18:10:41,767 - DEBUG - Requesting: https://10.0.0.185:8082/domain/b6c1387c-4a80-4b88-8142-7d06420731e1 2026-07-28 18:10:41,827 - DEBUG - Requesting: https://10.0.0.185:8082/project/2812e993-39e3-4602-9523-7368fcba4141 2026-07-28 18:10:41,903 - DEBUG - Requesting: https://10.0.0.185:8082/network-policy/b4373660-974e-48f4-96be-c2b381e3472b 2026-07-28 18:10:41,964 - INFO - Verified policy ctest-policy1-69768928 in API Server, Result: True 2026-07-28 18:10:41,964 - INFO - Done with setup and verification, moving onto test .. 2026-07-28 18:10:41,976 - INFO - Deleting VN ctest-vn4-39113079 2026-07-28 18:10:42,210 - DEBUG - Response for deleting network () 2026-07-28 18:10:42,210 - DEBUG - Requesting: https://10.0.0.185:8082/routing-instance/b5a574e7-2314-4e64-b8cd-af07ca49e9ff 2026-07-28 18:10:42,274 - DEBUG - Response Code: 404 2026-07-28 18:10:42,274 - DEBUG - Requesting: https://10.0.0.185:8082/domains 2026-07-28 18:10:42,327 - DEBUG - Requesting: https://10.0.0.185:8082/domain/b6c1387c-4a80-4b88-8142-7d06420731e1 2026-07-28 18:10:42,387 - DEBUG - Requesting: https://10.0.0.185:8082/project/2812e993-39e3-4602-9523-7368fcba4141 2026-07-28 18:10:42,488 - INFO - Validated that VN ctest-vn4-39113079 is not found in API Server 2026-07-28 18:10:42,591 - DEBUG - VN ctest-vn4-39113079 is not present in Agent 10.0.0.185 2026-07-28 18:10:42,591 - INFO - Validated that VN ctest-vn4-39113079 is not in any agent 2026-07-28 18:10:42,747 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39113079 info 2026-07-28 18:10:42,781 - INFO - Deleted policy ctest-policy1-69768928 2026-07-28 18:10:42,958 - DEBUG - policy ctest-policy1-69768928 is not found in API Server 2026-07-28 18:10:43,379 - DEBUG - No XMPP flaps were noticed during the test
2026-07-28 18:10:43,379 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-07-28 18:10:43,379 - INFO - -------------------------------------------------------------------------------- 2026-07-28 18:10:43,795 - DEBUG - No XMPP flaps were noticed during the test
2026-07-28 18:10:43,796 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-07-28 18:10:43,796 - INFO - -------------------------------------------------------------------------------- 2026-07-28 18:10:44,560 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-98041892, ID : 2812e993-39e3-4602-9523-7368fcba4141