2026-09-17 11:27:59,146 - INFO - Domain Default found not creating 2026-09-17 11:27:59,331 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44700230 not found, creating it 2026-09-17 11:27:59,816 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44700230, ID : 400df59b-a6ad-4692-bd20-fa7ca6125d66 2026-09-17 11:28:01,489 - INFO - ================================================================================ 2026-09-17 11:28:01,489 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 11:28:01,749 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.25': '0'}} with 2026-09-17 11:28:01,749 - INFO - Initial checks done. Running the testcase now 2026-09-17 11:28:01,749 - INFO - 2026-09-17 11:28:01,749 - INFO - ================================================================================ 2026-09-17 11:28:01,749 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-17 11:28:01,749 - 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-09-17 11:28:02,055 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.25': '0'}} with 2026-09-17 11:28:02,055 - INFO - Initial checks done. Running the testcase now 2026-09-17 11:28:02,055 - INFO - 2026-09-17 11:28:02,472 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44700230:ctest-vn4-04230723, 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-44700230:ctest-vn4-04230723, 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-44700230:ctest-vn4-04230723, 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-44700230:ctest-vn4-04230723, 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-09-17 11:28:03,116 - DEBUG - Response for create_network : {'network': {'id': '60303712-f7bf-405e-b150-2a5dd1149812', 'name': 'ctest-vn4-04230723', 'tenant_id': '400df59ba6ad4692bd20fa7ca6125d66', 'project_id': '400df59ba6ad4692bd20fa7ca6125d66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44700230', 'ctest-vn4-04230723'], 'port_security_enabled': True, 'description': ''}} 2026-09-17 11:28:03,374 - DEBUG - Response for create_subnet : {'subnet': {'id': '273c7edf-16b4-4e2f-b5a9-564824b255ac', 'name': '', 'tenant_id': '400df59ba6ad4692bd20fa7ca6125d66', 'network_id': '60303712-f7bf-405e-b150-2a5dd1149812', 'ip_version': 4, 'cidr': '78.108.150.128/26', 'allocation_pools': [{'start': '78.108.150.130', 'end': '78.108.150.190'}], 'gateway_ip': '78.108.150.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.108.150.130', 'tags': [], 'project_id': '400df59ba6ad4692bd20fa7ca6125d66'}} 2026-09-17 11:28:03,560 - DEBUG - Response for create_subnet : {'subnet': {'id': '16cfd00b-a7d8-4dfa-8c44-63050a85b3b0', 'name': '', 'tenant_id': '400df59ba6ad4692bd20fa7ca6125d66', 'network_id': '60303712-f7bf-405e-b150-2a5dd1149812', 'ip_version': 6, 'cidr': '3a6b:a730:6e81:89a3:a575:e0ea::/96', 'allocation_pools': [{'start': '3a6b:a730:6e81:89a3:a575:e0ea:0:2', 'end': '3a6b:a730:6e81:89a3:a575:e0ea:ffff:fffe'}], 'gateway_ip': '3a6b:a730:6e81:89a3:a575:e0ea:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a6b:a730:6e81:89a3:a575:e0ea:0:2', 'tags': [], 'project_id': '400df59ba6ad4692bd20fa7ca6125d66'}} 2026-09-17 11:28:03,586 - INFO - Created VN ctest-vn4-04230723 2026-09-17 11:28:03,642 - DEBUG - VN ctest-vn4-04230723 UUID is 60303712-f7bf-405e-b150-2a5dd1149812 2026-09-17 11:28:03,907 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60303712-f7bf-405e-b150-2a5dd1149812', 'name': 'ctest-vn4-04230723', 'tenant_id': '400df59ba6ad4692bd20fa7ca6125d66', 'project_id': '400df59ba6ad4692bd20fa7ca6125d66', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['273c7edf-16b4-4e2f-b5a9-564824b255ac', '16cfd00b-a7d8-4dfa-8c44-63050a85b3b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44700230', 'ctest-vn4-04230723'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44700230', 'ctest-policy1-51271517']], 'subnet_ipam': [{'subnet_cidr': '78.108.150.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a6b:a730:6e81:89a3:a575:e0ea::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-17 11:28:04,062 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-09-17 11:28:04,405 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-09-17 11:28:04,434 - DEBUG - Requesting: http://10.0.0.188:8082/domain/c368d39e-df47-4cd2-afdc-8f3f26b88dc3 2026-09-17 11:28:04,448 - DEBUG - Requesting: http://10.0.0.188:8082/project/400df59b-a6ad-4692-bd20-fa7ca6125d66 2026-09-17 11:28:04,524 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/60303712-f7bf-405e-b150-2a5dd1149812 2026-09-17 11:28:04,544 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/60303712-f7bf-405e-b150-2a5dd1149812 2026-09-17 11:28:04,556 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/1cf9fcab-83dd-4b9a-9724-89045ca2d6fc 2026-09-17 11:28:04,563 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/1cf9fcab-83dd-4b9a-9724-89045ca2d6fc 2026-09-17 11:28:04,572 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/7bc976fa-3b1e-41e8-9e14-65966e852422 2026-09-17 11:28:04,580 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 11:28:04,580 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/60303712-f7bf-405e-b150-2a5dd1149812 2026-09-17 11:28:04,590 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/1cf9fcab-83dd-4b9a-9724-89045ca2d6fc 2026-09-17 11:28:04,604 - INFO - Verified VN network id 12 for VN 60303712-f7bf-405e-b150-2a5dd1149812 2026-09-17 11:28:04,605 - INFO - Verifications in API Server for VN ctest-vn4-04230723 passed 2026-09-17 11:28:04,605 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/60303712-f7bf-405e-b150-2a5dd1149812 2026-09-17 11:28:04,614 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/1cf9fcab-83dd-4b9a-9724-89045ca2d6fc 2026-09-17 11:28:04,621 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/1cf9fcab-83dd-4b9a-9724-89045ca2d6fc 2026-09-17 11:28:04,628 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/7bc976fa-3b1e-41e8-9e14-65966e852422 2026-09-17 11:28:04,643 - DEBUG - Control-node 10.0.0.188 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44700230:ctest-vn4-04230723', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44700230', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6931100381128638558', 'uuid-lslong': '12776758725278210066'}, 'enable': 'true', 'created': '2026-09-17T11:28:03', 'last-modified': '2026-09-17T11:28:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.781892'} 2026-09-17 11:28:04,651 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-17 11:28:04,651 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04230723 passed 2026-09-17 11:28:04,651 - DEBUG - ====Verifying policy data for ctest-vn4-04230723 in API_Server ====== 2026-09-17 11:28:04,652 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-09-17 11:28:04,662 - DEBUG - Requesting: http://10.0.0.188:8082/domain/c368d39e-df47-4cd2-afdc-8f3f26b88dc3 2026-09-17 11:28:04,676 - DEBUG - Requesting: http://10.0.0.188:8082/project/400df59b-a6ad-4692-bd20-fa7ca6125d66 2026-09-17 11:28:04,760 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/60303712-f7bf-405e-b150-2a5dd1149812 2026-09-17 11:28:04,774 - DEBUG - ==>Verifying data for policy with id: 60ec4f7f-90f0-4904-baf8-e40aafc8ee88, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44700230', 'ctest-policy1-51271517'] 2026-09-17 11:28:04,774 - INFO - VN ctest-vn4-04230723 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-17 11:28:04,774 - DEBUG - Verifying the vn in opserver 2026-09-17 11:28:04,774 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44700230:ctest-vn4-04230723 virtual network link through opserver 10.0.0.188 2026-09-17 11:28:04,775 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks 2026-09-17 11:28:05,123 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks 2026-09-17 11:28:05,198 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44700230:ctest-vn4-04230723', 'href': 'http://10.0.0.188:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44700230:ctest-vn4-04230723?flat'} 2026-09-17 11:28:05,198 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44700230:ctest-vn4-04230723 is found in opserver 2026-09-17 11:28:05,210 - DEBUG - Do not have enough data to verify VN in agent 2026-09-17 11:28:05,215 - DEBUG - VRF ids for VN ctest-vn4-04230723: {} 2026-09-17 11:28:05,216 - DEBUG - ====Verifying data for ctest-policy1-51271517 in API_Server ====== 2026-09-17 11:28:05,216 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-09-17 11:28:05,222 - DEBUG - Requesting: http://10.0.0.188:8082/domain/c368d39e-df47-4cd2-afdc-8f3f26b88dc3 2026-09-17 11:28:05,232 - DEBUG - Requesting: http://10.0.0.188:8082/project/400df59b-a6ad-4692-bd20-fa7ca6125d66 2026-09-17 11:28:05,307 - DEBUG - Requesting: http://10.0.0.188:8082/network-policy/60ec4f7f-90f0-4904-baf8-e40aafc8ee88 2026-09-17 11:28:05,319 - INFO - Verified policy ctest-policy1-51271517 in API Server, Result: True 2026-09-17 11:28:05,319 - INFO - Done with setup and verification, moving onto test .. 2026-09-17 11:28:05,331 - INFO - Deleting VN ctest-vn4-04230723 2026-09-17 11:28:05,491 - DEBUG - Response for deleting network () 2026-09-17 11:28:05,491 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/1cf9fcab-83dd-4b9a-9724-89045ca2d6fc 2026-09-17 11:28:05,498 - DEBUG - Response Code: 404 2026-09-17 11:28:05,498 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-09-17 11:28:05,504 - DEBUG - Requesting: http://10.0.0.188:8082/domain/c368d39e-df47-4cd2-afdc-8f3f26b88dc3 2026-09-17 11:28:05,559 - DEBUG - Requesting: http://10.0.0.188:8082/project/400df59b-a6ad-4692-bd20-fa7ca6125d66 2026-09-17 11:28:05,645 - INFO - Validated that VN ctest-vn4-04230723 is not found in API Server 2026-09-17 11:28:05,656 - DEBUG - VN ctest-vn4-04230723 is not present in Agent 10.0.0.188 2026-09-17 11:28:05,656 - INFO - Validated that VN ctest-vn4-04230723 is not in any agent 2026-09-17 11:28:05,677 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04230723 info 2026-09-17 11:28:05,711 - INFO - Deleted policy ctest-policy1-51271517 2026-09-17 11:28:05,878 - DEBUG - policy ctest-policy1-51271517 is not found in API Server 2026-09-17 11:28:06,138 - DEBUG - No XMPP flaps were noticed during the test