2026-01-28 21:07:51,148 - INFO - Domain Default found not creating 2026-01-28 21:07:51,321 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85865318 not found, creating it 2026-01-28 21:07:51,785 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85865318, ID : 2b3aff97-d0d8-4279-b8d7-8311f59e8365 2026-01-28 21:07:53,196 - INFO - ================================================================================ 2026-01-28 21:07:53,196 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 21:07:53,460 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.14': '0'}} with 2026-01-28 21:07:53,460 - INFO - Initial checks done. Running the testcase now 2026-01-28 21:07:53,460 - INFO - 2026-01-28 21:07:53,460 - INFO - ================================================================================ 2026-01-28 21:07:53,460 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 21:07:53,460 - 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-01-28 21:07:53,744 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.14': '0'}} with 2026-01-28 21:07:53,745 - INFO - Initial checks done. Running the testcase now 2026-01-28 21:07:53,745 - INFO - 2026-01-28 21:07:54,110 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85865318:ctest-vn4-24732976, 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-85865318:ctest-vn4-24732976, 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-85865318:ctest-vn4-24732976, 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-85865318:ctest-vn4-24732976, 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-01-28 21:07:54,806 - DEBUG - Response for create_network : {'network': {'id': 'dc454f16-b6da-4633-a34e-378f4ea9143a', 'name': 'ctest-vn4-24732976', 'tenant_id': '2b3aff97d0d84279b8d78311f59e8365', 'project_id': '2b3aff97d0d84279b8d78311f59e8365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85865318', 'ctest-vn4-24732976'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 21:07:55,002 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a171785-1714-442e-82b7-a2689621bf6c', 'name': '', 'tenant_id': '2b3aff97d0d84279b8d78311f59e8365', 'network_id': 'dc454f16-b6da-4633-a34e-378f4ea9143a', 'ip_version': 4, 'cidr': '97.128.124.64/26', 'allocation_pools': [{'start': '97.128.124.66', 'end': '97.128.124.126'}], 'gateway_ip': '97.128.124.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.128.124.66', 'tags': [], 'project_id': '2b3aff97d0d84279b8d78311f59e8365'}} 2026-01-28 21:07:55,203 - DEBUG - Response for create_subnet : {'subnet': {'id': '00e195ae-107f-4655-af1c-0446f391595a', 'name': '', 'tenant_id': '2b3aff97d0d84279b8d78311f59e8365', 'network_id': 'dc454f16-b6da-4633-a34e-378f4ea9143a', 'ip_version': 6, 'cidr': '2f57:7310:bb7:3e41:9b92:9f96::/96', 'allocation_pools': [{'start': '2f57:7310:bb7:3e41:9b92:9f96:0:2', 'end': '2f57:7310:bb7:3e41:9b92:9f96:ffff:fffe'}], 'gateway_ip': '2f57:7310:bb7:3e41:9b92:9f96:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f57:7310:bb7:3e41:9b92:9f96:0:2', 'tags': [], 'project_id': '2b3aff97d0d84279b8d78311f59e8365'}} 2026-01-28 21:07:55,221 - INFO - Created VN ctest-vn4-24732976 2026-01-28 21:07:55,271 - DEBUG - VN ctest-vn4-24732976 UUID is dc454f16-b6da-4633-a34e-378f4ea9143a 2026-01-28 21:07:55,456 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dc454f16-b6da-4633-a34e-378f4ea9143a', 'name': 'ctest-vn4-24732976', 'tenant_id': '2b3aff97d0d84279b8d78311f59e8365', 'project_id': '2b3aff97d0d84279b8d78311f59e8365', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a171785-1714-442e-82b7-a2689621bf6c', '00e195ae-107f-4655-af1c-0446f391595a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85865318', 'ctest-vn4-24732976'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85865318', 'ctest-policy1-15619848']], 'subnet_ipam': [{'subnet_cidr': '97.128.124.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f57:7310:bb7:3e41:9b92:9f96::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 21:07:55,628 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-28 21:07:55,922 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-28 21:07:55,950 - DEBUG - Requesting: http://10.0.0.241:8082/domain/6084c165-2b69-4ee8-b037-6e51a5b3a5fc 2026-01-28 21:07:55,962 - DEBUG - Requesting: http://10.0.0.241:8082/project/2b3aff97-d0d8-4279-b8d7-8311f59e8365 2026-01-28 21:07:56,034 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/dc454f16-b6da-4633-a34e-378f4ea9143a 2026-01-28 21:07:56,046 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/dc454f16-b6da-4633-a34e-378f4ea9143a 2026-01-28 21:07:56,054 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/de69e6be-e97b-4c21-8321-4371944ad088 2026-01-28 21:07:56,060 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/de69e6be-e97b-4c21-8321-4371944ad088 2026-01-28 21:07:56,067 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/3edc747f-b402-465a-af3d-37cf56d8a996 2026-01-28 21:07:56,072 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 21:07:56,072 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/dc454f16-b6da-4633-a34e-378f4ea9143a 2026-01-28 21:07:56,081 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/de69e6be-e97b-4c21-8321-4371944ad088 2026-01-28 21:07:56,092 - INFO - Verified VN network id 11 for VN dc454f16-b6da-4633-a34e-378f4ea9143a 2026-01-28 21:07:56,092 - INFO - Verifications in API Server for VN ctest-vn4-24732976 passed 2026-01-28 21:07:56,092 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/dc454f16-b6da-4633-a34e-378f4ea9143a 2026-01-28 21:07:56,102 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/de69e6be-e97b-4c21-8321-4371944ad088 2026-01-28 21:07:56,107 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/de69e6be-e97b-4c21-8321-4371944ad088 2026-01-28 21:07:56,112 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/3edc747f-b402-465a-af3d-37cf56d8a996 2026-01-28 21:07:56,123 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85865318:ctest-vn4-24732976', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85865318', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15872179420712814131', 'uuid-lslong': '11767403965005239354'}, 'enable': 'true', 'created': '2026-01-28T21:07:54', 'last-modified': '2026-01-28T21:07:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.695528'} 2026-01-28 21:07:56,128 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 21:07:56,128 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24732976 passed 2026-01-28 21:07:56,128 - DEBUG - ====Verifying policy data for ctest-vn4-24732976 in API_Server ====== 2026-01-28 21:07:56,129 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-28 21:07:56,134 - DEBUG - Requesting: http://10.0.0.241:8082/domain/6084c165-2b69-4ee8-b037-6e51a5b3a5fc 2026-01-28 21:07:56,143 - DEBUG - Requesting: http://10.0.0.241:8082/project/2b3aff97-d0d8-4279-b8d7-8311f59e8365 2026-01-28 21:07:56,215 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/dc454f16-b6da-4633-a34e-378f4ea9143a 2026-01-28 21:07:56,224 - DEBUG - ==>Verifying data for policy with id: e7b98638-d582-4110-b66b-0bba49088ea3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85865318', 'ctest-policy1-15619848'] 2026-01-28 21:07:56,224 - INFO - VN ctest-vn4-24732976 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 21:07:56,224 - DEBUG - Verifying the vn in opserver 2026-01-28 21:07:56,224 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85865318:ctest-vn4-24732976 virtual network link through opserver 10.0.0.241 2026-01-28 21:07:56,224 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-01-28 21:07:56,515 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-01-28 21:07:56,571 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85865318:ctest-vn4-24732976', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85865318:ctest-vn4-24732976?flat'} 2026-01-28 21:07:56,571 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85865318:ctest-vn4-24732976 is found in opserver 2026-01-28 21:07:56,580 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 21:07:56,583 - DEBUG - VRF ids for VN ctest-vn4-24732976: {} 2026-01-28 21:07:56,584 - DEBUG - ====Verifying data for ctest-policy1-15619848 in API_Server ====== 2026-01-28 21:07:56,584 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-28 21:07:56,588 - DEBUG - Requesting: http://10.0.0.241:8082/domain/6084c165-2b69-4ee8-b037-6e51a5b3a5fc 2026-01-28 21:07:56,597 - DEBUG - Requesting: http://10.0.0.241:8082/project/2b3aff97-d0d8-4279-b8d7-8311f59e8365 2026-01-28 21:07:56,662 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/e7b98638-d582-4110-b66b-0bba49088ea3 2026-01-28 21:07:56,670 - INFO - Verified policy ctest-policy1-15619848 in API Server, Result: True 2026-01-28 21:07:56,670 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 21:07:56,677 - INFO - Deleting VN ctest-vn4-24732976 2026-01-28 21:07:56,789 - DEBUG - Response for deleting network () 2026-01-28 21:07:56,789 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/de69e6be-e97b-4c21-8321-4371944ad088 2026-01-28 21:07:56,793 - DEBUG - Response Code: 404 2026-01-28 21:07:56,793 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-28 21:07:56,798 - DEBUG - Requesting: http://10.0.0.241:8082/domain/6084c165-2b69-4ee8-b037-6e51a5b3a5fc 2026-01-28 21:07:56,848 - DEBUG - Requesting: http://10.0.0.241:8082/project/2b3aff97-d0d8-4279-b8d7-8311f59e8365 2026-01-28 21:07:56,917 - INFO - Validated that VN ctest-vn4-24732976 is not found in API Server 2026-01-28 21:07:56,928 - DEBUG - VN ctest-vn4-24732976 is not present in Agent 10.0.0.241 2026-01-28 21:07:56,928 - INFO - Validated that VN ctest-vn4-24732976 is not in any agent 2026-01-28 21:07:56,939 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24732976 info 2026-01-28 21:07:56,963 - INFO - Deleted policy ctest-policy1-15619848 2026-01-28 21:07:57,119 - DEBUG - policy ctest-policy1-15619848 is not found in API Server 2026-01-28 21:07:57,372 - DEBUG - No XMPP flaps were noticed during the test 2026-01-28 21:07:57,372 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-28 21:07:57,372 - INFO - -------------------------------------------------------------------------------- 2026-01-28 21:07:57,660 - DEBUG - No XMPP flaps were noticed during the test 2026-01-28 21:07:57,660 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-28 21:07:57,662 - INFO - -------------------------------------------------------------------------------- 2026-01-28 21:07:58,316 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-85865318, ID : 2b3aff97-d0d8-4279-b8d7-8311f59e8365