2026-01-20 09:50:42,081 - INFO - Domain Default found not creating 2026-01-20 09:50:42,274 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68142069 not found, creating it 2026-01-20 09:50:42,755 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68142069, ID : b58add3d-6e93-4e31-a367-41ed6f17a9b0 2026-01-20 09:50:44,446 - INFO - ================================================================================ 2026-01-20 09:50:44,446 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-20 09:50:44,707 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-20 09:50:44,707 - INFO - Initial checks done. Running the testcase now 2026-01-20 09:50:44,708 - INFO - 2026-01-20 09:50:44,708 - INFO - ================================================================================ 2026-01-20 09:50:44,708 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-20 09:50:44,708 - 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-20 09:50:44,993 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-20 09:50:44,994 - INFO - Initial checks done. Running the testcase now 2026-01-20 09:50:44,994 - INFO - 2026-01-20 09:50:45,403 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68142069:ctest-vn4-86822095, 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-68142069:ctest-vn4-86822095, 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-68142069:ctest-vn4-86822095, 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-68142069:ctest-vn4-86822095, 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-20 09:50:45,945 - DEBUG - Response for create_network : {'network': {'id': '400feec9-e091-461c-aa3a-6a4ddb8ab6f1', 'name': 'ctest-vn4-86822095', 'tenant_id': 'b58add3d6e934e31a36741ed6f17a9b0', 'project_id': 'b58add3d6e934e31a36741ed6f17a9b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68142069', 'ctest-vn4-86822095'], 'port_security_enabled': True, 'description': ''}} 2026-01-20 09:50:46,153 - DEBUG - Response for create_subnet : {'subnet': {'id': '07326baf-a6ac-4ec1-952c-4576945396af', 'name': '', 'tenant_id': 'b58add3d6e934e31a36741ed6f17a9b0', 'network_id': '400feec9-e091-461c-aa3a-6a4ddb8ab6f1', 'ip_version': 4, 'cidr': '206.138.201.192/26', 'allocation_pools': [{'start': '206.138.201.194', 'end': '206.138.201.254'}], 'gateway_ip': '206.138.201.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.138.201.194', 'tags': [], 'project_id': 'b58add3d6e934e31a36741ed6f17a9b0'}} 2026-01-20 09:50:46,374 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a988217-73fc-40f6-94ab-4a5479edef1e', 'name': '', 'tenant_id': 'b58add3d6e934e31a36741ed6f17a9b0', 'network_id': '400feec9-e091-461c-aa3a-6a4ddb8ab6f1', 'ip_version': 6, 'cidr': '3905:5965:45a0:2b1f:fb5b:dd91::/96', 'allocation_pools': [{'start': '3905:5965:45a0:2b1f:fb5b:dd91:0:2', 'end': '3905:5965:45a0:2b1f:fb5b:dd91:ffff:fffe'}], 'gateway_ip': '3905:5965:45a0:2b1f:fb5b:dd91:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3905:5965:45a0:2b1f:fb5b:dd91:0:2', 'tags': [], 'project_id': 'b58add3d6e934e31a36741ed6f17a9b0'}} 2026-01-20 09:50:46,399 - INFO - Created VN ctest-vn4-86822095 2026-01-20 09:50:46,456 - DEBUG - VN ctest-vn4-86822095 UUID is 400feec9-e091-461c-aa3a-6a4ddb8ab6f1 2026-01-20 09:50:46,696 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '400feec9-e091-461c-aa3a-6a4ddb8ab6f1', 'name': 'ctest-vn4-86822095', 'tenant_id': 'b58add3d6e934e31a36741ed6f17a9b0', 'project_id': 'b58add3d6e934e31a36741ed6f17a9b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['07326baf-a6ac-4ec1-952c-4576945396af', '0a988217-73fc-40f6-94ab-4a5479edef1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68142069', 'ctest-vn4-86822095'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68142069', 'ctest-policy1-08301512']], 'subnet_ipam': [{'subnet_cidr': '206.138.201.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3905:5965:45a0:2b1f:fb5b:dd91::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-20 09:50:46,856 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 09:50:47,197 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 09:50:47,235 - DEBUG - Requesting: http://10.0.0.38:8082/domain/922c58e8-af30-4f1e-bda5-d2cb26aee5e7 2026-01-20 09:50:47,251 - DEBUG - Requesting: http://10.0.0.38:8082/project/b58add3d-6e93-4e31-a367-41ed6f17a9b0 2026-01-20 09:50:47,335 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/400feec9-e091-461c-aa3a-6a4ddb8ab6f1 2026-01-20 09:50:47,350 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/400feec9-e091-461c-aa3a-6a4ddb8ab6f1 2026-01-20 09:50:47,363 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95d76713-1351-44c5-89dd-bc1c91c35d99 2026-01-20 09:50:47,374 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95d76713-1351-44c5-89dd-bc1c91c35d99 2026-01-20 09:50:47,385 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/26c7eb06-8571-4292-9de0-172343632230 2026-01-20 09:50:47,395 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-20 09:50:47,396 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/400feec9-e091-461c-aa3a-6a4ddb8ab6f1 2026-01-20 09:50:47,411 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95d76713-1351-44c5-89dd-bc1c91c35d99 2026-01-20 09:50:47,435 - INFO - Verified VN network id 11 for VN 400feec9-e091-461c-aa3a-6a4ddb8ab6f1 2026-01-20 09:50:47,435 - INFO - Verifications in API Server for VN ctest-vn4-86822095 passed 2026-01-20 09:50:47,435 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/400feec9-e091-461c-aa3a-6a4ddb8ab6f1 2026-01-20 09:50:47,450 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95d76713-1351-44c5-89dd-bc1c91c35d99 2026-01-20 09:50:47,461 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95d76713-1351-44c5-89dd-bc1c91c35d99 2026-01-20 09:50:47,470 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/26c7eb06-8571-4292-9de0-172343632230 2026-01-20 09:50:47,484 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68142069:ctest-vn4-86822095', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68142069', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4616170693901501980', 'uuid-lslong': '12266233417725294321'}, 'enable': 'true', 'created': '2026-01-20T09:50:45', 'last-modified': '2026-01-20T09:50:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.821406'} 2026-01-20 09:50:47,492 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-20 09:50:47,492 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-86822095 passed 2026-01-20 09:50:47,492 - DEBUG - ====Verifying policy data for ctest-vn4-86822095 in API_Server ====== 2026-01-20 09:50:47,492 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 09:50:47,499 - DEBUG - Requesting: http://10.0.0.38:8082/domain/922c58e8-af30-4f1e-bda5-d2cb26aee5e7 2026-01-20 09:50:47,514 - DEBUG - Requesting: http://10.0.0.38:8082/project/b58add3d-6e93-4e31-a367-41ed6f17a9b0 2026-01-20 09:50:47,593 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/400feec9-e091-461c-aa3a-6a4ddb8ab6f1 2026-01-20 09:50:47,605 - DEBUG - ==>Verifying data for policy with id: a81df880-a143-431a-b876-aab08a206fd5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68142069', 'ctest-policy1-08301512'] 2026-01-20 09:50:47,605 - INFO - VN ctest-vn4-86822095 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-20 09:50:47,605 - DEBUG - Verifying the vn in opserver 2026-01-20 09:50:47,605 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68142069:ctest-vn4-86822095 virtual network link through opserver 10.0.0.38 2026-01-20 09:50:47,605 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-20 09:50:47,941 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-20 09:50:48,017 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68142069:ctest-vn4-86822095', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68142069:ctest-vn4-86822095?flat'} 2026-01-20 09:50:48,017 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68142069:ctest-vn4-86822095 is found in opserver 2026-01-20 09:50:48,027 - DEBUG - Do not have enough data to verify VN in agent 2026-01-20 09:50:48,032 - DEBUG - VRF ids for VN ctest-vn4-86822095: {} 2026-01-20 09:50:48,032 - DEBUG - ====Verifying data for ctest-policy1-08301512 in API_Server ====== 2026-01-20 09:50:48,032 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 09:50:48,039 - DEBUG - Requesting: http://10.0.0.38:8082/domain/922c58e8-af30-4f1e-bda5-d2cb26aee5e7 2026-01-20 09:50:48,052 - DEBUG - Requesting: http://10.0.0.38:8082/project/b58add3d-6e93-4e31-a367-41ed6f17a9b0 2026-01-20 09:50:48,127 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/a81df880-a143-431a-b876-aab08a206fd5 2026-01-20 09:50:48,136 - INFO - Verified policy ctest-policy1-08301512 in API Server, Result: True 2026-01-20 09:50:48,136 - INFO - Done with setup and verification, moving onto test .. 2026-01-20 09:50:48,145 - INFO - Deleting VN ctest-vn4-86822095 2026-01-20 09:50:48,279 - DEBUG - Response for deleting network () 2026-01-20 09:50:48,279 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/95d76713-1351-44c5-89dd-bc1c91c35d99 2026-01-20 09:50:48,285 - DEBUG - Response Code: 404 2026-01-20 09:50:48,285 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 09:50:48,290 - DEBUG - Requesting: http://10.0.0.38:8082/domain/922c58e8-af30-4f1e-bda5-d2cb26aee5e7 2026-01-20 09:50:48,347 - DEBUG - Requesting: http://10.0.0.38:8082/project/b58add3d-6e93-4e31-a367-41ed6f17a9b0 2026-01-20 09:50:48,429 - INFO - Validated that VN ctest-vn4-86822095 is not found in API Server 2026-01-20 09:50:48,440 - DEBUG - VN ctest-vn4-86822095 is not present in Agent 10.0.0.38 2026-01-20 09:50:48,440 - INFO - Validated that VN ctest-vn4-86822095 is not in any agent 2026-01-20 09:50:48,459 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-86822095 info 2026-01-20 09:50:48,492 - INFO - Deleted policy ctest-policy1-08301512 2026-01-20 09:50:48,664 - DEBUG - policy ctest-policy1-08301512 is not found in API Server 2026-01-20 09:50:48,926 - DEBUG - No XMPP flaps were noticed during the test