2026-09-03 11:57:59,926 - INFO - Domain Default found not creating 2026-09-03 11:58:00,134 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36774969 not found, creating it 2026-09-03 11:58:00,712 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36774969, ID : c8c4e0c1-1e07-4ac8-a4fa-cb6752b4196e 2026-09-03 11:58:02,736 - INFO - ================================================================================ 2026-09-03 11:58:02,736 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-03 11:58:03,016 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.14': '0'}} with 2026-09-03 11:58:03,016 - INFO - Initial checks done. Running the testcase now 2026-09-03 11:58:03,016 - INFO - 2026-09-03 11:58:03,016 - INFO - ================================================================================ 2026-09-03 11:58:03,016 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-03 11:58:03,017 - 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-03 11:58:03,323 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.14': '0'}} with 2026-09-03 11:58:03,323 - INFO - Initial checks done. Running the testcase now 2026-09-03 11:58:03,323 - INFO - 2026-09-03 11:58:03,783 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36774969:ctest-vn4-74664726, 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-36774969:ctest-vn4-74664726, 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-36774969:ctest-vn4-74664726, 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-36774969:ctest-vn4-74664726, 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-03 11:58:04,378 - DEBUG - Response for create_network : {'network': {'id': 'de537ffa-01fd-4939-8a67-92879d7e6710', 'name': 'ctest-vn4-74664726', 'tenant_id': 'c8c4e0c11e074ac8a4facb6752b4196e', 'project_id': 'c8c4e0c11e074ac8a4facb6752b4196e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36774969', 'ctest-vn4-74664726'], 'port_security_enabled': True, 'description': ''}} 2026-09-03 11:58:04,630 - DEBUG - Response for create_subnet : {'subnet': {'id': '4774cd57-b1d4-4156-99ae-61e8855c2ba3', 'name': '', 'tenant_id': 'c8c4e0c11e074ac8a4facb6752b4196e', 'network_id': 'de537ffa-01fd-4939-8a67-92879d7e6710', 'ip_version': 4, 'cidr': '134.223.142.128/26', 'allocation_pools': [{'start': '134.223.142.130', 'end': '134.223.142.190'}], 'gateway_ip': '134.223.142.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.223.142.130', 'tags': [], 'project_id': 'c8c4e0c11e074ac8a4facb6752b4196e'}} 2026-09-03 11:58:04,821 - DEBUG - Response for create_subnet : {'subnet': {'id': '81333a3c-bd2a-4851-9446-3479eb876d3f', 'name': '', 'tenant_id': 'c8c4e0c11e074ac8a4facb6752b4196e', 'network_id': 'de537ffa-01fd-4939-8a67-92879d7e6710', 'ip_version': 6, 'cidr': '2077:cd4c:ad74:1000:ffd:203d::/96', 'allocation_pools': [{'start': '2077:cd4c:ad74:1000:ffd:203d:0:2', 'end': '2077:cd4c:ad74:1000:ffd:203d:ffff:fffe'}], 'gateway_ip': '2077:cd4c:ad74:1000:ffd:203d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2077:cd4c:ad74:1000:ffd:203d:0:2', 'tags': [], 'project_id': 'c8c4e0c11e074ac8a4facb6752b4196e'}} 2026-09-03 11:58:04,845 - INFO - Created VN ctest-vn4-74664726 2026-09-03 11:58:04,903 - DEBUG - VN ctest-vn4-74664726 UUID is de537ffa-01fd-4939-8a67-92879d7e6710 2026-09-03 11:58:05,179 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de537ffa-01fd-4939-8a67-92879d7e6710', 'name': 'ctest-vn4-74664726', 'tenant_id': 'c8c4e0c11e074ac8a4facb6752b4196e', 'project_id': 'c8c4e0c11e074ac8a4facb6752b4196e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['4774cd57-b1d4-4156-99ae-61e8855c2ba3', '81333a3c-bd2a-4851-9446-3479eb876d3f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36774969', 'ctest-vn4-74664726'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36774969', 'ctest-policy1-62626019']], 'subnet_ipam': [{'subnet_cidr': '134.223.142.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2077:cd4c:ad74:1000:ffd:203d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-03 11:58:05,355 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-09-03 11:58:05,746 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-09-03 11:58:05,781 - DEBUG - Requesting: http://10.0.0.162:8082/domain/e5ce8e97-353b-4dcd-b783-44e78990d6ab 2026-09-03 11:58:05,798 - DEBUG - Requesting: http://10.0.0.162:8082/project/c8c4e0c1-1e07-4ac8-a4fa-cb6752b4196e 2026-09-03 11:58:05,891 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/de537ffa-01fd-4939-8a67-92879d7e6710 2026-09-03 11:58:05,908 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/de537ffa-01fd-4939-8a67-92879d7e6710 2026-09-03 11:58:05,924 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/e85fc471-9055-4335-a9f7-d3a67b0ce9b8 2026-09-03 11:58:05,935 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/e85fc471-9055-4335-a9f7-d3a67b0ce9b8 2026-09-03 11:58:05,945 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/90c716d5-cc83-4a98-9acf-9b49d96ef6f2 2026-09-03 11:58:05,953 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-03 11:58:05,953 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/de537ffa-01fd-4939-8a67-92879d7e6710 2026-09-03 11:58:05,967 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/e85fc471-9055-4335-a9f7-d3a67b0ce9b8 2026-09-03 11:58:05,988 - INFO - Verified VN network id 12 for VN de537ffa-01fd-4939-8a67-92879d7e6710 2026-09-03 11:58:05,989 - INFO - Verifications in API Server for VN ctest-vn4-74664726 passed 2026-09-03 11:58:05,989 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/de537ffa-01fd-4939-8a67-92879d7e6710 2026-09-03 11:58:06,006 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/e85fc471-9055-4335-a9f7-d3a67b0ce9b8 2026-09-03 11:58:06,018 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/e85fc471-9055-4335-a9f7-d3a67b0ce9b8 2026-09-03 11:58:06,029 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/90c716d5-cc83-4a98-9acf-9b49d96ef6f2 2026-09-03 11:58:06,048 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36774969:ctest-vn4-74664726', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36774969', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16020289011238914361', 'uuid-lslong': '9973101010995799824'}, 'enable': 'true', 'created': '2026-09-03T11:58:04', 'last-modified': '2026-09-03T11:58:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.917006'} 2026-09-03 11:58:06,057 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-03 11:58:06,057 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74664726 passed 2026-09-03 11:58:06,057 - DEBUG - ====Verifying policy data for ctest-vn4-74664726 in API_Server ====== 2026-09-03 11:58:06,057 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-09-03 11:58:06,064 - DEBUG - Requesting: http://10.0.0.162:8082/domain/e5ce8e97-353b-4dcd-b783-44e78990d6ab 2026-09-03 11:58:06,080 - DEBUG - Requesting: http://10.0.0.162:8082/project/c8c4e0c1-1e07-4ac8-a4fa-cb6752b4196e 2026-09-03 11:58:06,161 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/de537ffa-01fd-4939-8a67-92879d7e6710 2026-09-03 11:58:06,173 - DEBUG - ==>Verifying data for policy with id: 9611f5de-8e95-494a-8e0b-f08b632557e5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36774969', 'ctest-policy1-62626019'] 2026-09-03 11:58:06,173 - INFO - VN ctest-vn4-74664726 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-03 11:58:06,173 - DEBUG - Verifying the vn in opserver 2026-09-03 11:58:06,174 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36774969:ctest-vn4-74664726 virtual network link through opserver 10.0.0.162 2026-09-03 11:58:06,174 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-09-03 11:58:06,556 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-09-03 11:58:06,622 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36774969:ctest-vn4-74664726', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36774969:ctest-vn4-74664726?flat'} 2026-09-03 11:58:06,622 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36774969:ctest-vn4-74664726 is found in opserver 2026-09-03 11:58:06,636 - DEBUG - Do not have enough data to verify VN in agent 2026-09-03 11:58:06,643 - DEBUG - VRF ids for VN ctest-vn4-74664726: {} 2026-09-03 11:58:06,643 - DEBUG - ====Verifying data for ctest-policy1-62626019 in API_Server ====== 2026-09-03 11:58:06,644 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-09-03 11:58:06,651 - DEBUG - Requesting: http://10.0.0.162:8082/domain/e5ce8e97-353b-4dcd-b783-44e78990d6ab 2026-09-03 11:58:06,666 - DEBUG - Requesting: http://10.0.0.162:8082/project/c8c4e0c1-1e07-4ac8-a4fa-cb6752b4196e 2026-09-03 11:58:06,757 - DEBUG - Requesting: http://10.0.0.162:8082/network-policy/9611f5de-8e95-494a-8e0b-f08b632557e5 2026-09-03 11:58:06,770 - INFO - Verified policy ctest-policy1-62626019 in API Server, Result: True 2026-09-03 11:58:06,770 - INFO - Done with setup and verification, moving onto test .. 2026-09-03 11:58:06,785 - INFO - Deleting VN ctest-vn4-74664726 2026-09-03 11:58:06,970 - DEBUG - Response for deleting network () 2026-09-03 11:58:06,971 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/e85fc471-9055-4335-a9f7-d3a67b0ce9b8 2026-09-03 11:58:06,979 - DEBUG - Response Code: 404 2026-09-03 11:58:06,979 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-09-03 11:58:06,990 - DEBUG - Requesting: http://10.0.0.162:8082/domain/e5ce8e97-353b-4dcd-b783-44e78990d6ab 2026-09-03 11:58:07,049 - DEBUG - Requesting: http://10.0.0.162:8082/project/c8c4e0c1-1e07-4ac8-a4fa-cb6752b4196e 2026-09-03 11:58:07,132 - INFO - Validated that VN ctest-vn4-74664726 is not found in API Server 2026-09-03 11:58:07,145 - DEBUG - VN ctest-vn4-74664726 is not present in Agent 10.0.0.162 2026-09-03 11:58:07,145 - INFO - Validated that VN ctest-vn4-74664726 is not in any agent 2026-09-03 11:58:07,165 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74664726 info 2026-09-03 11:58:07,203 - INFO - Deleted policy ctest-policy1-62626019 2026-09-03 11:58:07,386 - DEBUG - policy ctest-policy1-62626019 is not found in API Server 2026-09-03 11:58:07,664 - DEBUG - No XMPP flaps were noticed during the test 2026-09-03 11:58:07,664 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-03 11:58:07,664 - INFO - -------------------------------------------------------------------------------- 2026-09-03 11:58:07,963 - DEBUG - No XMPP flaps were noticed during the test 2026-09-03 11:58:07,963 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-03 11:58:07,963 - INFO - -------------------------------------------------------------------------------- 2026-09-03 11:58:08,781 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36774969, ID : c8c4e0c1-1e07-4ac8-a4fa-cb6752b4196e