2026-02-09 13:03:27,634 - INFO - Domain Default found not creating 2026-02-09 13:03:28,492 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04464451 not found, creating it 2026-02-09 13:03:28,955 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04464451, ID : 9a3b66f0-108a-4425-bb8f-5ef5d0737656 2026-02-09 13:03:30,537 - INFO - ================================================================================ 2026-02-09 13:03:30,537 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 13:03:30,805 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-02-09 13:03:30,806 - INFO - Initial checks done. Running the testcase now 2026-02-09 13:03:30,806 - INFO - 2026-02-09 13:03:30,806 - INFO - ================================================================================ 2026-02-09 13:03:30,806 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 13:03:30,806 - 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-02-09 13:03:31,087 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-02-09 13:03:31,087 - INFO - Initial checks done. Running the testcase now 2026-02-09 13:03:31,087 - INFO - 2026-02-09 13:03:31,469 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04464451:ctest-vn4-26576192, 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-04464451:ctest-vn4-26576192, 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-04464451:ctest-vn4-26576192, 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-04464451:ctest-vn4-26576192, 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-02-09 13:03:32,029 - DEBUG - Response for create_network : {'network': {'id': '3f5abdd9-5239-4262-9e9f-4086b4870544', 'name': 'ctest-vn4-26576192', 'tenant_id': '9a3b66f0108a4425bb8f5ef5d0737656', 'project_id': '9a3b66f0108a4425bb8f5ef5d0737656', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04464451', 'ctest-vn4-26576192'], 'port_security_enabled': True, 'description': ''}} 2026-02-09 13:03:32,218 - DEBUG - Response for create_subnet : {'subnet': {'id': 'abda0559-e9c2-4241-a7ee-f9462aca92f7', 'name': '', 'tenant_id': '9a3b66f0108a4425bb8f5ef5d0737656', 'network_id': '3f5abdd9-5239-4262-9e9f-4086b4870544', 'ip_version': 4, 'cidr': '124.179.206.192/26', 'allocation_pools': [{'start': '124.179.206.194', 'end': '124.179.206.254'}], 'gateway_ip': '124.179.206.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.179.206.194', 'tags': [], 'project_id': '9a3b66f0108a4425bb8f5ef5d0737656'}} 2026-02-09 13:03:32,382 - DEBUG - Response for create_subnet : {'subnet': {'id': '9bdd47b2-3f1c-4128-9ad4-2330d6c27e94', 'name': '', 'tenant_id': '9a3b66f0108a4425bb8f5ef5d0737656', 'network_id': '3f5abdd9-5239-4262-9e9f-4086b4870544', 'ip_version': 6, 'cidr': '3f0b:520b:e8c1:d5ec:46a1:2f99::/96', 'allocation_pools': [{'start': '3f0b:520b:e8c1:d5ec:46a1:2f99:0:2', 'end': '3f0b:520b:e8c1:d5ec:46a1:2f99:ffff:fffe'}], 'gateway_ip': '3f0b:520b:e8c1:d5ec:46a1:2f99:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f0b:520b:e8c1:d5ec:46a1:2f99:0:2', 'tags': [], 'project_id': '9a3b66f0108a4425bb8f5ef5d0737656'}} 2026-02-09 13:03:32,402 - INFO - Created VN ctest-vn4-26576192 2026-02-09 13:03:32,454 - DEBUG - VN ctest-vn4-26576192 UUID is 3f5abdd9-5239-4262-9e9f-4086b4870544 2026-02-09 13:03:32,665 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3f5abdd9-5239-4262-9e9f-4086b4870544', 'name': 'ctest-vn4-26576192', 'tenant_id': '9a3b66f0108a4425bb8f5ef5d0737656', 'project_id': '9a3b66f0108a4425bb8f5ef5d0737656', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['abda0559-e9c2-4241-a7ee-f9462aca92f7', '9bdd47b2-3f1c-4128-9ad4-2330d6c27e94'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04464451', 'ctest-vn4-26576192'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04464451', 'ctest-policy1-49628021']], 'subnet_ipam': [{'subnet_cidr': '124.179.206.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f0b:520b:e8c1:d5ec:46a1:2f99::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-09 13:03:32,830 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-09 13:03:33,127 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-09 13:03:33,161 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b8109032-be3d-42a2-8bd3-b98017a8aec0 2026-02-09 13:03:33,174 - DEBUG - Requesting: http://10.0.0.141:8082/project/9a3b66f0-108a-4425-bb8f-5ef5d0737656 2026-02-09 13:03:33,245 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3f5abdd9-5239-4262-9e9f-4086b4870544 2026-02-09 13:03:33,257 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3f5abdd9-5239-4262-9e9f-4086b4870544 2026-02-09 13:03:33,267 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e6592284-f087-47f8-82fb-14f60c35769a 2026-02-09 13:03:33,275 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e6592284-f087-47f8-82fb-14f60c35769a 2026-02-09 13:03:33,282 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/5ad2a110-63fb-4a4f-9962-d6b0678ed566 2026-02-09 13:03:33,288 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 13:03:33,289 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3f5abdd9-5239-4262-9e9f-4086b4870544 2026-02-09 13:03:33,297 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e6592284-f087-47f8-82fb-14f60c35769a 2026-02-09 13:03:33,312 - INFO - Verified VN network id 11 for VN 3f5abdd9-5239-4262-9e9f-4086b4870544 2026-02-09 13:03:33,312 - INFO - Verifications in API Server for VN ctest-vn4-26576192 passed 2026-02-09 13:03:33,312 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3f5abdd9-5239-4262-9e9f-4086b4870544 2026-02-09 13:03:33,322 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e6592284-f087-47f8-82fb-14f60c35769a 2026-02-09 13:03:33,329 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e6592284-f087-47f8-82fb-14f60c35769a 2026-02-09 13:03:33,338 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/5ad2a110-63fb-4a4f-9962-d6b0678ed566 2026-02-09 13:03:33,352 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04464451:ctest-vn4-26576192', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04464451', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4565169913378456162', 'uuid-lslong': '11429925326588151108'}, 'enable': 'true', 'created': '2026-02-09T13:03:31', 'last-modified': '2026-02-09T13:03:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711391'} 2026-02-09 13:03:33,359 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 13:03:33,359 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26576192 passed 2026-02-09 13:03:33,359 - DEBUG - ====Verifying policy data for ctest-vn4-26576192 in API_Server ====== 2026-02-09 13:03:33,359 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-09 13:03:33,365 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b8109032-be3d-42a2-8bd3-b98017a8aec0 2026-02-09 13:03:33,379 - DEBUG - Requesting: http://10.0.0.141:8082/project/9a3b66f0-108a-4425-bb8f-5ef5d0737656 2026-02-09 13:03:33,448 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3f5abdd9-5239-4262-9e9f-4086b4870544 2026-02-09 13:03:33,458 - DEBUG - ==>Verifying data for policy with id: 60abcd34-5212-4358-89cf-df2026050f55, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04464451', 'ctest-policy1-49628021'] 2026-02-09 13:03:33,458 - INFO - VN ctest-vn4-26576192 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-09 13:03:33,459 - DEBUG - Verifying the vn in opserver 2026-02-09 13:03:33,459 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04464451:ctest-vn4-26576192 virtual network link through opserver 10.0.0.141 2026-02-09 13:03:33,459 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-09 13:03:33,760 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-09 13:03:33,833 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04464451:ctest-vn4-26576192', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04464451:ctest-vn4-26576192?flat'} 2026-02-09 13:03:33,833 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04464451:ctest-vn4-26576192 is found in opserver 2026-02-09 13:03:33,843 - DEBUG - Do not have enough data to verify VN in agent 2026-02-09 13:03:33,848 - DEBUG - VRF ids for VN ctest-vn4-26576192: {} 2026-02-09 13:03:33,849 - DEBUG - ====Verifying data for ctest-policy1-49628021 in API_Server ====== 2026-02-09 13:03:33,849 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-09 13:03:33,854 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b8109032-be3d-42a2-8bd3-b98017a8aec0 2026-02-09 13:03:33,866 - DEBUG - Requesting: http://10.0.0.141:8082/project/9a3b66f0-108a-4425-bb8f-5ef5d0737656 2026-02-09 13:03:33,936 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/60abcd34-5212-4358-89cf-df2026050f55 2026-02-09 13:03:33,946 - INFO - Verified policy ctest-policy1-49628021 in API Server, Result: True 2026-02-09 13:03:33,946 - INFO - Done with setup and verification, moving onto test .. 2026-02-09 13:03:33,955 - INFO - Deleting VN ctest-vn4-26576192 2026-02-09 13:03:34,088 - DEBUG - Response for deleting network () 2026-02-09 13:03:34,088 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/e6592284-f087-47f8-82fb-14f60c35769a 2026-02-09 13:03:34,093 - DEBUG - Response Code: 404 2026-02-09 13:03:34,093 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-09 13:03:34,099 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b8109032-be3d-42a2-8bd3-b98017a8aec0 2026-02-09 13:03:34,155 - DEBUG - Requesting: http://10.0.0.141:8082/project/9a3b66f0-108a-4425-bb8f-5ef5d0737656 2026-02-09 13:03:34,228 - INFO - Validated that VN ctest-vn4-26576192 is not found in API Server 2026-02-09 13:03:34,239 - DEBUG - VN ctest-vn4-26576192 is not present in Agent 10.0.0.141 2026-02-09 13:03:34,239 - INFO - Validated that VN ctest-vn4-26576192 is not in any agent 2026-02-09 13:03:34,255 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26576192 info 2026-02-09 13:03:34,275 - INFO - Deleted policy ctest-policy1-49628021 2026-02-09 13:03:34,450 - DEBUG - policy ctest-policy1-49628021 is not found in API Server 2026-02-09 13:03:34,725 - DEBUG - No XMPP flaps were noticed during the test