2026-06-23 13:00:42,506 - INFO - Domain Default found not creating 2026-06-23 13:00:42,646 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58482457 not found, creating it 2026-06-23 13:00:43,084 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58482457, ID : 00201e0f-6a39-4f8f-87ea-3b3594724f06 2026-06-23 13:00:44,504 - INFO - ================================================================================ 2026-06-23 13:00:44,504 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-23 13:00:44,761 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-23 13:00:44,761 - INFO - Initial checks done. Running the testcase now 2026-06-23 13:00:44,761 - INFO - 2026-06-23 13:00:44,761 - INFO - ================================================================================ 2026-06-23 13:00:44,761 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-23 13:00:44,761 - 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-06-23 13:00:45,044 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-23 13:00:45,044 - INFO - Initial checks done. Running the testcase now 2026-06-23 13:00:45,044 - INFO - 2026-06-23 13:00:45,412 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58482457:ctest-vn4-63866826, 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-58482457:ctest-vn4-63866826, 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-58482457:ctest-vn4-63866826, 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-58482457:ctest-vn4-63866826, 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-06-23 13:00:45,885 - DEBUG - Response for create_network : {'network': {'id': '497c79f9-b7a0-43ae-bda5-066e2db55f5f', 'name': 'ctest-vn4-63866826', 'tenant_id': '00201e0f6a394f8f87ea3b3594724f06', 'project_id': '00201e0f6a394f8f87ea3b3594724f06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58482457', 'ctest-vn4-63866826'], 'port_security_enabled': True, 'description': ''}} 2026-06-23 13:00:46,054 - DEBUG - Response for create_subnet : {'subnet': {'id': '5139d19c-ac8b-427d-bd3f-70f8d7a8da3b', 'name': '', 'tenant_id': '00201e0f6a394f8f87ea3b3594724f06', 'network_id': '497c79f9-b7a0-43ae-bda5-066e2db55f5f', 'ip_version': 4, 'cidr': '173.200.40.192/26', 'allocation_pools': [{'start': '173.200.40.194', 'end': '173.200.40.254'}], 'gateway_ip': '173.200.40.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.200.40.194', 'tags': [], 'project_id': '00201e0f6a394f8f87ea3b3594724f06'}} 2026-06-23 13:00:46,256 - DEBUG - Response for create_subnet : {'subnet': {'id': '40858886-5821-41a5-b589-8e9f810348f9', 'name': '', 'tenant_id': '00201e0f6a394f8f87ea3b3594724f06', 'network_id': '497c79f9-b7a0-43ae-bda5-066e2db55f5f', 'ip_version': 6, 'cidr': '3fed:2241:c70c:f040:23ba:a43d::/96', 'allocation_pools': [{'start': '3fed:2241:c70c:f040:23ba:a43d:0:2', 'end': '3fed:2241:c70c:f040:23ba:a43d:ffff:fffe'}], 'gateway_ip': '3fed:2241:c70c:f040:23ba:a43d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fed:2241:c70c:f040:23ba:a43d:0:2', 'tags': [], 'project_id': '00201e0f6a394f8f87ea3b3594724f06'}} 2026-06-23 13:00:46,271 - INFO - Created VN ctest-vn4-63866826 2026-06-23 13:00:46,320 - DEBUG - VN ctest-vn4-63866826 UUID is 497c79f9-b7a0-43ae-bda5-066e2db55f5f 2026-06-23 13:00:46,503 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '497c79f9-b7a0-43ae-bda5-066e2db55f5f', 'name': 'ctest-vn4-63866826', 'tenant_id': '00201e0f6a394f8f87ea3b3594724f06', 'project_id': '00201e0f6a394f8f87ea3b3594724f06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5139d19c-ac8b-427d-bd3f-70f8d7a8da3b', '40858886-5821-41a5-b589-8e9f810348f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58482457', 'ctest-vn4-63866826'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58482457', 'ctest-policy1-55883809']], 'subnet_ipam': [{'subnet_cidr': '173.200.40.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fed:2241:c70c:f040:23ba:a43d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-23 13:00:46,668 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-23 13:00:46,982 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-23 13:00:47,004 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2fe366e8-a833-401d-9c2d-c729da59e53b 2026-06-23 13:00:47,015 - DEBUG - Requesting: http://10.0.0.38:8082/project/00201e0f-6a39-4f8f-87ea-3b3594724f06 2026-06-23 13:00:47,088 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/497c79f9-b7a0-43ae-bda5-066e2db55f5f 2026-06-23 13:00:47,098 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/497c79f9-b7a0-43ae-bda5-066e2db55f5f 2026-06-23 13:00:47,106 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7f6d1e0e-dc1d-4daf-ad13-0d839bac428a 2026-06-23 13:00:47,112 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7f6d1e0e-dc1d-4daf-ad13-0d839bac428a 2026-06-23 13:00:47,118 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2e33c0f0-5d39-40de-a521-1cbf9d7c7094 2026-06-23 13:00:47,124 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-23 13:00:47,124 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/497c79f9-b7a0-43ae-bda5-066e2db55f5f 2026-06-23 13:00:47,132 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7f6d1e0e-dc1d-4daf-ad13-0d839bac428a 2026-06-23 13:00:47,144 - INFO - Verified VN network id 11 for VN 497c79f9-b7a0-43ae-bda5-066e2db55f5f 2026-06-23 13:00:47,144 - INFO - Verifications in API Server for VN ctest-vn4-63866826 passed 2026-06-23 13:00:47,144 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/497c79f9-b7a0-43ae-bda5-066e2db55f5f 2026-06-23 13:00:47,152 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7f6d1e0e-dc1d-4daf-ad13-0d839bac428a 2026-06-23 13:00:47,157 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7f6d1e0e-dc1d-4daf-ad13-0d839bac428a 2026-06-23 13:00:47,162 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2e33c0f0-5d39-40de-a521-1cbf9d7c7094 2026-06-23 13:00:47,172 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58482457:ctest-vn4-63866826', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58482457', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5295241375315411886', 'uuid-lslong': '13665335714608668511'}, 'enable': 'true', 'created': '2026-06-23T13:00:45', 'last-modified': '2026-06-23T13:00:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.693552'} 2026-06-23 13:00:47,177 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-23 13:00:47,177 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-63866826 passed 2026-06-23 13:00:47,177 - DEBUG - ====Verifying policy data for ctest-vn4-63866826 in API_Server ====== 2026-06-23 13:00:47,177 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-23 13:00:47,182 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2fe366e8-a833-401d-9c2d-c729da59e53b 2026-06-23 13:00:47,190 - DEBUG - Requesting: http://10.0.0.38:8082/project/00201e0f-6a39-4f8f-87ea-3b3594724f06 2026-06-23 13:00:47,261 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/497c79f9-b7a0-43ae-bda5-066e2db55f5f 2026-06-23 13:00:47,269 - DEBUG - ==>Verifying data for policy with id: 61cf93ca-93ce-48f1-968e-2f7cda11febb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58482457', 'ctest-policy1-55883809'] 2026-06-23 13:00:47,269 - INFO - VN ctest-vn4-63866826 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-23 13:00:47,269 - DEBUG - Verifying the vn in opserver 2026-06-23 13:00:47,269 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58482457:ctest-vn4-63866826 virtual network link through opserver 10.0.0.38 2026-06-23 13:00:47,270 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-23 13:00:47,593 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-23 13:00:47,638 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58482457:ctest-vn4-63866826', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58482457:ctest-vn4-63866826?flat'} 2026-06-23 13:00:47,638 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58482457:ctest-vn4-63866826 is found in opserver 2026-06-23 13:00:47,646 - DEBUG - Do not have enough data to verify VN in agent 2026-06-23 13:00:47,650 - DEBUG - VRF ids for VN ctest-vn4-63866826: {} 2026-06-23 13:00:47,650 - DEBUG - ====Verifying data for ctest-policy1-55883809 in API_Server ====== 2026-06-23 13:00:47,650 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-23 13:00:47,655 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2fe366e8-a833-401d-9c2d-c729da59e53b 2026-06-23 13:00:47,664 - DEBUG - Requesting: http://10.0.0.38:8082/project/00201e0f-6a39-4f8f-87ea-3b3594724f06 2026-06-23 13:00:47,732 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/61cf93ca-93ce-48f1-968e-2f7cda11febb 2026-06-23 13:00:47,740 - INFO - Verified policy ctest-policy1-55883809 in API Server, Result: True 2026-06-23 13:00:47,740 - INFO - Done with setup and verification, moving onto test .. 2026-06-23 13:00:47,746 - INFO - Deleting VN ctest-vn4-63866826 2026-06-23 13:00:47,859 - DEBUG - Response for deleting network () 2026-06-23 13:00:47,859 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7f6d1e0e-dc1d-4daf-ad13-0d839bac428a 2026-06-23 13:00:47,864 - DEBUG - Response Code: 404 2026-06-23 13:00:47,864 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-23 13:00:47,869 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2fe366e8-a833-401d-9c2d-c729da59e53b 2026-06-23 13:00:47,921 - DEBUG - Requesting: http://10.0.0.38:8082/project/00201e0f-6a39-4f8f-87ea-3b3594724f06 2026-06-23 13:00:47,988 - INFO - Validated that VN ctest-vn4-63866826 is not found in API Server 2026-06-23 13:00:47,995 - DEBUG - VN ctest-vn4-63866826 is not present in Agent 10.0.0.38 2026-06-23 13:00:47,996 - INFO - Validated that VN ctest-vn4-63866826 is not in any agent 2026-06-23 13:00:48,006 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-63866826 info 2026-06-23 13:00:48,025 - INFO - Deleted policy ctest-policy1-55883809 2026-06-23 13:00:48,184 - DEBUG - policy ctest-policy1-55883809 is not found in API Server 2026-06-23 13:00:48,440 - DEBUG - No XMPP flaps were noticed during the test