2026-09-05 04:39:21,070 - INFO - Domain Default found not creating 2026-09-05 04:39:21,238 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-60331587 not found, creating it 2026-09-05 04:39:21,726 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-60331587, ID : c0f17bc0-7a99-412c-be07-6df5c7892a7e 2026-09-05 04:39:23,448 - INFO - ================================================================================ 2026-09-05 04:39:23,448 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-05 04:39:23,721 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-09-05 04:39:23,721 - INFO - Initial checks done. Running the testcase now 2026-09-05 04:39:23,721 - INFO - 2026-09-05 04:39:23,721 - INFO - ================================================================================ 2026-09-05 04:39:23,721 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-05 04:39:23,721 - 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-09-05 04:39:24,015 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-09-05 04:39:24,016 - INFO - Initial checks done. Running the testcase now 2026-09-05 04:39:24,016 - INFO - 2026-09-05 04:39:24,464 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60331587:ctest-vn4-44542298, 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-60331587:ctest-vn4-44542298, 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-60331587:ctest-vn4-44542298, 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-60331587:ctest-vn4-44542298, 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-09-05 04:39:25,004 - DEBUG - Response for create_network : {'network': {'id': '5c410ce7-c4da-42eb-87f6-dd0eff4de411', 'name': 'ctest-vn4-44542298', 'tenant_id': 'c0f17bc07a99412cbe076df5c7892a7e', 'project_id': 'c0f17bc07a99412cbe076df5c7892a7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60331587', 'ctest-vn4-44542298'], 'port_security_enabled': True, 'description': ''}} 2026-09-05 04:39:25,210 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce96a4dd-2e8f-4280-ac29-613eff99e41f', 'name': '', 'tenant_id': 'c0f17bc07a99412cbe076df5c7892a7e', 'network_id': '5c410ce7-c4da-42eb-87f6-dd0eff4de411', 'ip_version': 4, 'cidr': '172.227.39.192/26', 'allocation_pools': [{'start': '172.227.39.194', 'end': '172.227.39.254'}], 'gateway_ip': '172.227.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.227.39.194', 'tags': [], 'project_id': 'c0f17bc07a99412cbe076df5c7892a7e'}} 2026-09-05 04:39:25,376 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb9e5a36-dc24-4328-9a70-250f3dab9556', 'name': '', 'tenant_id': 'c0f17bc07a99412cbe076df5c7892a7e', 'network_id': '5c410ce7-c4da-42eb-87f6-dd0eff4de411', 'ip_version': 6, 'cidr': '33af:a12b:fc75:fc09:57a6:164d::/96', 'allocation_pools': [{'start': '33af:a12b:fc75:fc09:57a6:164d:0:2', 'end': '33af:a12b:fc75:fc09:57a6:164d:ffff:fffe'}], 'gateway_ip': '33af:a12b:fc75:fc09:57a6:164d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33af:a12b:fc75:fc09:57a6:164d:0:2', 'tags': [], 'project_id': 'c0f17bc07a99412cbe076df5c7892a7e'}} 2026-09-05 04:39:25,400 - INFO - Created VN ctest-vn4-44542298 2026-09-05 04:39:25,455 - DEBUG - VN ctest-vn4-44542298 UUID is 5c410ce7-c4da-42eb-87f6-dd0eff4de411 2026-09-05 04:39:25,683 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c410ce7-c4da-42eb-87f6-dd0eff4de411', 'name': 'ctest-vn4-44542298', 'tenant_id': 'c0f17bc07a99412cbe076df5c7892a7e', 'project_id': 'c0f17bc07a99412cbe076df5c7892a7e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['ce96a4dd-2e8f-4280-ac29-613eff99e41f', 'cb9e5a36-dc24-4328-9a70-250f3dab9556'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60331587', 'ctest-vn4-44542298'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60331587', 'ctest-policy1-57676236']], 'subnet_ipam': [{'subnet_cidr': '172.227.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33af:a12b:fc75:fc09:57a6:164d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-05 04:39:25,859 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-05 04:39:26,222 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-05 04:39:26,254 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0273205d-36da-48de-9b34-72140a674878 2026-09-05 04:39:26,269 - DEBUG - Requesting: http://10.0.0.50:8082/project/c0f17bc0-7a99-412c-be07-6df5c7892a7e 2026-09-05 04:39:26,351 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c410ce7-c4da-42eb-87f6-dd0eff4de411 2026-09-05 04:39:26,365 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c410ce7-c4da-42eb-87f6-dd0eff4de411 2026-09-05 04:39:26,376 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/92162a31-9e76-4aed-a2d9-2a12f23d2444 2026-09-05 04:39:26,385 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/92162a31-9e76-4aed-a2d9-2a12f23d2444 2026-09-05 04:39:26,393 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1ed52758-69a7-41b8-8d32-efc26e07b61e 2026-09-05 04:39:26,400 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-05 04:39:26,400 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c410ce7-c4da-42eb-87f6-dd0eff4de411 2026-09-05 04:39:26,412 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/92162a31-9e76-4aed-a2d9-2a12f23d2444 2026-09-05 04:39:26,430 - INFO - Verified VN network id 12 for VN 5c410ce7-c4da-42eb-87f6-dd0eff4de411 2026-09-05 04:39:26,430 - INFO - Verifications in API Server for VN ctest-vn4-44542298 passed 2026-09-05 04:39:26,430 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c410ce7-c4da-42eb-87f6-dd0eff4de411 2026-09-05 04:39:26,447 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/92162a31-9e76-4aed-a2d9-2a12f23d2444 2026-09-05 04:39:26,458 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/92162a31-9e76-4aed-a2d9-2a12f23d2444 2026-09-05 04:39:26,467 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1ed52758-69a7-41b8-8d32-efc26e07b61e 2026-09-05 04:39:26,485 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60331587:ctest-vn4-44542298', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60331587', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6647608714555179755', 'uuid-lslong': '9797261095873668113'}, 'enable': 'true', 'created': '2026-09-05T04:39:24', 'last-modified': '2026-09-05T04:39:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.834331'} 2026-09-05 04:39:26,493 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-05 04:39:26,493 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44542298 passed 2026-09-05 04:39:26,494 - DEBUG - ====Verifying policy data for ctest-vn4-44542298 in API_Server ====== 2026-09-05 04:39:26,494 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-05 04:39:26,500 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0273205d-36da-48de-9b34-72140a674878 2026-09-05 04:39:26,514 - DEBUG - Requesting: http://10.0.0.50:8082/project/c0f17bc0-7a99-412c-be07-6df5c7892a7e 2026-09-05 04:39:26,598 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5c410ce7-c4da-42eb-87f6-dd0eff4de411 2026-09-05 04:39:26,613 - DEBUG - ==>Verifying data for policy with id: dfd6e803-7a34-47f7-8044-633bb316bc34, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60331587', 'ctest-policy1-57676236'] 2026-09-05 04:39:26,613 - INFO - VN ctest-vn4-44542298 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-05 04:39:26,613 - DEBUG - Verifying the vn in opserver 2026-09-05 04:39:26,613 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60331587:ctest-vn4-44542298 virtual network link through opserver 10.0.0.50 2026-09-05 04:39:26,614 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-09-05 04:39:26,979 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-09-05 04:39:27,041 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60331587:ctest-vn4-44542298', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60331587:ctest-vn4-44542298?flat'} 2026-09-05 04:39:27,041 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60331587:ctest-vn4-44542298 is found in opserver 2026-09-05 04:39:27,053 - DEBUG - Do not have enough data to verify VN in agent 2026-09-05 04:39:27,059 - DEBUG - VRF ids for VN ctest-vn4-44542298: {} 2026-09-05 04:39:27,059 - DEBUG - ====Verifying data for ctest-policy1-57676236 in API_Server ====== 2026-09-05 04:39:27,059 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-05 04:39:27,067 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0273205d-36da-48de-9b34-72140a674878 2026-09-05 04:39:27,080 - DEBUG - Requesting: http://10.0.0.50:8082/project/c0f17bc0-7a99-412c-be07-6df5c7892a7e 2026-09-05 04:39:27,165 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/dfd6e803-7a34-47f7-8044-633bb316bc34 2026-09-05 04:39:27,176 - INFO - Verified policy ctest-policy1-57676236 in API Server, Result: True 2026-09-05 04:39:27,176 - INFO - Done with setup and verification, moving onto test .. 2026-09-05 04:39:27,185 - INFO - Deleting VN ctest-vn4-44542298 2026-09-05 04:39:27,321 - DEBUG - Response for deleting network () 2026-09-05 04:39:27,321 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/92162a31-9e76-4aed-a2d9-2a12f23d2444 2026-09-05 04:39:27,327 - DEBUG - Response Code: 404 2026-09-05 04:39:27,327 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-05 04:39:27,334 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0273205d-36da-48de-9b34-72140a674878 2026-09-05 04:39:27,397 - DEBUG - Requesting: http://10.0.0.50:8082/project/c0f17bc0-7a99-412c-be07-6df5c7892a7e 2026-09-05 04:39:27,475 - INFO - Validated that VN ctest-vn4-44542298 is not found in API Server 2026-09-05 04:39:27,489 - DEBUG - VN ctest-vn4-44542298 is not present in Agent 10.0.0.50 2026-09-05 04:39:27,489 - INFO - Validated that VN ctest-vn4-44542298 is not in any agent 2026-09-05 04:39:27,507 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44542298 info 2026-09-05 04:39:27,539 - INFO - Deleted policy ctest-policy1-57676236 2026-09-05 04:39:27,711 - DEBUG - policy ctest-policy1-57676236 is not found in API Server 2026-09-05 04:39:27,983 - DEBUG - No XMPP flaps were noticed during the test 2026-09-05 04:39:27,983 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-05 04:39:27,984 - INFO - -------------------------------------------------------------------------------- 2026-09-05 04:39:28,280 - DEBUG - No XMPP flaps were noticed during the test 2026-09-05 04:39:28,280 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-05 04:39:28,280 - INFO - -------------------------------------------------------------------------------- 2026-09-05 04:39:29,035 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-60331587, ID : c0f17bc0-7a99-412c-be07-6df5c7892a7e