2026-01-28 12:13:08,958 - INFO - Domain Default found not creating 2026-01-28 12:13:09,127 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-21524154 not found, creating it 2026-01-28 12:13:09,627 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-21524154, ID : 16185e7b-d9fc-4d75-9dea-64a5d61432ac 2026-01-28 12:13:11,235 - INFO - ================================================================================ 2026-01-28 12:13:11,235 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 12:13:11,495 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.254': '0'}} with 2026-01-28 12:13:11,495 - INFO - Initial checks done. Running the testcase now 2026-01-28 12:13:11,495 - INFO - 2026-01-28 12:13:11,495 - INFO - ================================================================================ 2026-01-28 12:13:11,495 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 12:13:11,495 - 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 12:13:11,798 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.254': '0'}} with 2026-01-28 12:13:11,798 - INFO - Initial checks done. Running the testcase now 2026-01-28 12:13:11,798 - INFO - 2026-01-28 12:13:12,149 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21524154:ctest-vn4-90426151, 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-21524154:ctest-vn4-90426151, 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-21524154:ctest-vn4-90426151, 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-21524154:ctest-vn4-90426151, 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 12:13:12,692 - DEBUG - Response for create_network : {'network': {'id': '02231629-2629-4c9e-be74-4eadd49514cd', 'name': 'ctest-vn4-90426151', 'tenant_id': '16185e7bd9fc4d759dea64a5d61432ac', 'project_id': '16185e7bd9fc4d759dea64a5d61432ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21524154', 'ctest-vn4-90426151'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 12:13:12,857 - DEBUG - Response for create_subnet : {'subnet': {'id': '100f9390-cedf-4253-bea0-a0503d0f6834', 'name': '', 'tenant_id': '16185e7bd9fc4d759dea64a5d61432ac', 'network_id': '02231629-2629-4c9e-be74-4eadd49514cd', 'ip_version': 4, 'cidr': '17.180.128.0/26', 'allocation_pools': [{'start': '17.180.128.2', 'end': '17.180.128.62'}], 'gateway_ip': '17.180.128.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.180.128.2', 'tags': [], 'project_id': '16185e7bd9fc4d759dea64a5d61432ac'}} 2026-01-28 12:13:13,000 - DEBUG - Response for create_subnet : {'subnet': {'id': '65115060-ea0c-4822-a2b0-694c8cead995', 'name': '', 'tenant_id': '16185e7bd9fc4d759dea64a5d61432ac', 'network_id': '02231629-2629-4c9e-be74-4eadd49514cd', 'ip_version': 6, 'cidr': '2b5d:64b8:39a1:d2e4:21d2:dabe::/96', 'allocation_pools': [{'start': '2b5d:64b8:39a1:d2e4:21d2:dabe:0:2', 'end': '2b5d:64b8:39a1:d2e4:21d2:dabe:ffff:fffe'}], 'gateway_ip': '2b5d:64b8:39a1:d2e4:21d2:dabe:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b5d:64b8:39a1:d2e4:21d2:dabe:0:2', 'tags': [], 'project_id': '16185e7bd9fc4d759dea64a5d61432ac'}} 2026-01-28 12:13:13,025 - INFO - Created VN ctest-vn4-90426151 2026-01-28 12:13:13,078 - DEBUG - VN ctest-vn4-90426151 UUID is 02231629-2629-4c9e-be74-4eadd49514cd 2026-01-28 12:13:13,295 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '02231629-2629-4c9e-be74-4eadd49514cd', 'name': 'ctest-vn4-90426151', 'tenant_id': '16185e7bd9fc4d759dea64a5d61432ac', 'project_id': '16185e7bd9fc4d759dea64a5d61432ac', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['100f9390-cedf-4253-bea0-a0503d0f6834', '65115060-ea0c-4822-a2b0-694c8cead995'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21524154', 'ctest-vn4-90426151'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21524154', 'ctest-policy1-61987995']], 'subnet_ipam': [{'subnet_cidr': '17.180.128.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b5d:64b8:39a1:d2e4:21d2:dabe::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 12:13:13,469 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-28 12:13:13,778 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-28 12:13:13,811 - DEBUG - Requesting: http://10.0.0.241:8082/domain/bae887ce-73ae-49a9-9922-372f0a9c1304 2026-01-28 12:13:13,822 - DEBUG - Requesting: http://10.0.0.241:8082/project/16185e7b-d9fc-4d75-9dea-64a5d61432ac 2026-01-28 12:13:13,896 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/02231629-2629-4c9e-be74-4eadd49514cd 2026-01-28 12:13:13,909 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/02231629-2629-4c9e-be74-4eadd49514cd 2026-01-28 12:13:13,920 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ee229e22-144a-4558-aae3-f62b08b36127 2026-01-28 12:13:13,928 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ee229e22-144a-4558-aae3-f62b08b36127 2026-01-28 12:13:13,935 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/17b53925-a507-4407-beee-81bc5760b5ba 2026-01-28 12:13:13,941 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 12:13:13,941 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/02231629-2629-4c9e-be74-4eadd49514cd 2026-01-28 12:13:13,951 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ee229e22-144a-4558-aae3-f62b08b36127 2026-01-28 12:13:13,965 - INFO - Verified VN network id 11 for VN 02231629-2629-4c9e-be74-4eadd49514cd 2026-01-28 12:13:13,966 - INFO - Verifications in API Server for VN ctest-vn4-90426151 passed 2026-01-28 12:13:13,966 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/02231629-2629-4c9e-be74-4eadd49514cd 2026-01-28 12:13:13,975 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ee229e22-144a-4558-aae3-f62b08b36127 2026-01-28 12:13:13,983 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ee229e22-144a-4558-aae3-f62b08b36127 2026-01-28 12:13:13,992 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/17b53925-a507-4407-beee-81bc5760b5ba 2026-01-28 12:13:14,005 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21524154:ctest-vn4-90426151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-21524154', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '153991178250439838', 'uuid-lslong': '13723680473007592653'}, 'enable': 'true', 'created': '2026-01-28T12:13:12', 'last-modified': '2026-01-28T12:13:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735105'} 2026-01-28 12:13:14,012 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 12:13:14,012 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-90426151 passed 2026-01-28 12:13:14,012 - DEBUG - ====Verifying policy data for ctest-vn4-90426151 in API_Server ====== 2026-01-28 12:13:14,012 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-28 12:13:14,018 - DEBUG - Requesting: http://10.0.0.241:8082/domain/bae887ce-73ae-49a9-9922-372f0a9c1304 2026-01-28 12:13:14,030 - DEBUG - Requesting: http://10.0.0.241:8082/project/16185e7b-d9fc-4d75-9dea-64a5d61432ac 2026-01-28 12:13:14,100 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/02231629-2629-4c9e-be74-4eadd49514cd 2026-01-28 12:13:14,110 - DEBUG - ==>Verifying data for policy with id: 47f21f31-4245-4250-b5ba-3c7101f11e8b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-21524154', 'ctest-policy1-61987995'] 2026-01-28 12:13:14,111 - INFO - VN ctest-vn4-90426151 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 12:13:14,111 - DEBUG - Verifying the vn in opserver 2026-01-28 12:13:14,111 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21524154:ctest-vn4-90426151 virtual network link through opserver 10.0.0.241 2026-01-28 12:13:14,111 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-01-28 12:13:14,408 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-01-28 12:13:14,478 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21524154:ctest-vn4-90426151', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21524154:ctest-vn4-90426151?flat'} 2026-01-28 12:13:14,478 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-21524154:ctest-vn4-90426151 is found in opserver 2026-01-28 12:13:14,489 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 12:13:14,495 - DEBUG - VRF ids for VN ctest-vn4-90426151: {} 2026-01-28 12:13:14,496 - DEBUG - ====Verifying data for ctest-policy1-61987995 in API_Server ====== 2026-01-28 12:13:14,496 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-28 12:13:14,502 - DEBUG - Requesting: http://10.0.0.241:8082/domain/bae887ce-73ae-49a9-9922-372f0a9c1304 2026-01-28 12:13:14,516 - DEBUG - Requesting: http://10.0.0.241:8082/project/16185e7b-d9fc-4d75-9dea-64a5d61432ac 2026-01-28 12:13:14,593 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/47f21f31-4245-4250-b5ba-3c7101f11e8b 2026-01-28 12:13:14,602 - INFO - Verified policy ctest-policy1-61987995 in API Server, Result: True 2026-01-28 12:13:14,602 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 12:13:14,611 - INFO - Deleting VN ctest-vn4-90426151 2026-01-28 12:13:14,728 - DEBUG - Response for deleting network () 2026-01-28 12:13:14,728 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/ee229e22-144a-4558-aae3-f62b08b36127 2026-01-28 12:13:14,734 - DEBUG - Response Code: 404 2026-01-28 12:13:14,734 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-01-28 12:13:14,750 - DEBUG - Requesting: http://10.0.0.241:8082/domain/bae887ce-73ae-49a9-9922-372f0a9c1304 2026-01-28 12:13:14,807 - DEBUG - Requesting: http://10.0.0.241:8082/project/16185e7b-d9fc-4d75-9dea-64a5d61432ac 2026-01-28 12:13:14,882 - INFO - Validated that VN ctest-vn4-90426151 is not found in API Server 2026-01-28 12:13:14,892 - DEBUG - VN ctest-vn4-90426151 is not present in Agent 10.0.0.241 2026-01-28 12:13:14,893 - INFO - Validated that VN ctest-vn4-90426151 is not in any agent 2026-01-28 12:13:14,909 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-90426151 info 2026-01-28 12:13:14,936 - INFO - Deleted policy ctest-policy1-61987995 2026-01-28 12:13:15,109 - DEBUG - policy ctest-policy1-61987995 is not found in API Server 2026-01-28 12:13:15,370 - DEBUG - No XMPP flaps were noticed during the test