2026-10-22 11:08:22,211 - INFO - Domain Default found not creating 2026-10-22 11:08:22,410 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19109608 not found, creating it 2026-10-22 11:08:22,882 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19109608, ID : 3edf5260-45bd-4827-8c8a-12bd4a837689 2026-10-22 11:08:24,607 - INFO - ================================================================================ 2026-10-22 11:08:24,608 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-22 11:08:24,867 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-10-22 11:08:24,867 - INFO - Initial checks done. Running the testcase now 2026-10-22 11:08:24,867 - INFO - 2026-10-22 11:08:24,867 - INFO - ================================================================================ 2026-10-22 11:08:24,867 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-22 11:08:24,868 - 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-10-22 11:08:25,164 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-10-22 11:08:25,164 - INFO - Initial checks done. Running the testcase now 2026-10-22 11:08:25,164 - INFO - 2026-10-22 11:08:25,589 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19109608:ctest-vn4-27601582, 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-19109608:ctest-vn4-27601582, 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-19109608:ctest-vn4-27601582, 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-19109608:ctest-vn4-27601582, 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-10-22 11:08:26,098 - DEBUG - Response for create_network : {'network': {'id': '59e432ef-e823-4958-8703-884206b75c1b', 'name': 'ctest-vn4-27601582', 'tenant_id': '3edf526045bd48278c8a12bd4a837689', 'project_id': '3edf526045bd48278c8a12bd4a837689', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19109608', 'ctest-vn4-27601582'], 'port_security_enabled': True, 'description': ''}} 2026-10-22 11:08:26,276 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0dc16c8-fa78-4deb-8d56-2d2e3f04869f', 'name': '', 'tenant_id': '3edf526045bd48278c8a12bd4a837689', 'network_id': '59e432ef-e823-4958-8703-884206b75c1b', 'ip_version': 4, 'cidr': '158.244.128.128/26', 'allocation_pools': [{'start': '158.244.128.130', 'end': '158.244.128.190'}], 'gateway_ip': '158.244.128.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.244.128.130', 'tags': [], 'project_id': '3edf526045bd48278c8a12bd4a837689'}} 2026-10-22 11:08:26,449 - DEBUG - Response for create_subnet : {'subnet': {'id': '70b62321-7dea-499a-9a64-8ef35b9de521', 'name': '', 'tenant_id': '3edf526045bd48278c8a12bd4a837689', 'network_id': '59e432ef-e823-4958-8703-884206b75c1b', 'ip_version': 6, 'cidr': '2409:9ae5:3ca3:e3c:28ec:9a96::/96', 'allocation_pools': [{'start': '2409:9ae5:3ca3:e3c:28ec:9a96:0:2', 'end': '2409:9ae5:3ca3:e3c:28ec:9a96:ffff:fffe'}], 'gateway_ip': '2409:9ae5:3ca3:e3c:28ec:9a96:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2409:9ae5:3ca3:e3c:28ec:9a96:0:2', 'tags': [], 'project_id': '3edf526045bd48278c8a12bd4a837689'}} 2026-10-22 11:08:26,469 - INFO - Created VN ctest-vn4-27601582 2026-10-22 11:08:26,520 - DEBUG - VN ctest-vn4-27601582 UUID is 59e432ef-e823-4958-8703-884206b75c1b 2026-10-22 11:08:26,731 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '59e432ef-e823-4958-8703-884206b75c1b', 'name': 'ctest-vn4-27601582', 'tenant_id': '3edf526045bd48278c8a12bd4a837689', 'project_id': '3edf526045bd48278c8a12bd4a837689', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['c0dc16c8-fa78-4deb-8d56-2d2e3f04869f', '70b62321-7dea-499a-9a64-8ef35b9de521'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19109608', 'ctest-vn4-27601582'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19109608', 'ctest-policy1-65165273']], 'subnet_ipam': [{'subnet_cidr': '158.244.128.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2409:9ae5:3ca3:e3c:28ec:9a96::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-22 11:08:26,893 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-22 11:08:27,256 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-22 11:08:27,284 - DEBUG - Requesting: http://10.0.0.50:8082/domain/409e4379-f588-4ff7-920d-6ed27f22b0e9 2026-10-22 11:08:27,297 - DEBUG - Requesting: http://10.0.0.50:8082/project/3edf5260-45bd-4827-8c8a-12bd4a837689 2026-10-22 11:08:27,372 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/59e432ef-e823-4958-8703-884206b75c1b 2026-10-22 11:08:27,385 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/59e432ef-e823-4958-8703-884206b75c1b 2026-10-22 11:08:27,395 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ebc349e-6947-4162-bd69-5363d5197f22 2026-10-22 11:08:27,401 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ebc349e-6947-4162-bd69-5363d5197f22 2026-10-22 11:08:27,408 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7640c854-eb35-42ac-98e8-db284e1bf629 2026-10-22 11:08:27,415 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-22 11:08:27,415 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/59e432ef-e823-4958-8703-884206b75c1b 2026-10-22 11:08:27,424 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ebc349e-6947-4162-bd69-5363d5197f22 2026-10-22 11:08:27,438 - INFO - Verified VN network id 12 for VN 59e432ef-e823-4958-8703-884206b75c1b 2026-10-22 11:08:27,438 - INFO - Verifications in API Server for VN ctest-vn4-27601582 passed 2026-10-22 11:08:27,438 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/59e432ef-e823-4958-8703-884206b75c1b 2026-10-22 11:08:27,447 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ebc349e-6947-4162-bd69-5363d5197f22 2026-10-22 11:08:27,455 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ebc349e-6947-4162-bd69-5363d5197f22 2026-10-22 11:08:27,461 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7640c854-eb35-42ac-98e8-db284e1bf629 2026-10-22 11:08:27,473 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19109608:ctest-vn4-27601582', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19109608', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6477358170038815064', 'uuid-lslong': '9728769437212302363'}, 'enable': 'true', 'created': '2026-10-22T11:08:26', 'last-modified': '2026-10-22T11:08:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.775844'} 2026-10-22 11:08:27,480 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-22 11:08:27,480 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27601582 passed 2026-10-22 11:08:27,481 - DEBUG - ====Verifying policy data for ctest-vn4-27601582 in API_Server ====== 2026-10-22 11:08:27,481 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-22 11:08:27,486 - DEBUG - Requesting: http://10.0.0.50:8082/domain/409e4379-f588-4ff7-920d-6ed27f22b0e9 2026-10-22 11:08:27,497 - DEBUG - Requesting: http://10.0.0.50:8082/project/3edf5260-45bd-4827-8c8a-12bd4a837689 2026-10-22 11:08:27,569 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/59e432ef-e823-4958-8703-884206b75c1b 2026-10-22 11:08:27,579 - DEBUG - ==>Verifying data for policy with id: ae313081-2eb0-4a1a-b0b6-5d530bbbeb32, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19109608', 'ctest-policy1-65165273'] 2026-10-22 11:08:27,579 - INFO - VN ctest-vn4-27601582 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-22 11:08:27,579 - DEBUG - Verifying the vn in opserver 2026-10-22 11:08:27,579 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19109608:ctest-vn4-27601582 virtual network link through opserver 10.0.0.50 2026-10-22 11:08:27,580 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-10-22 11:08:27,941 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-10-22 11:08:27,996 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19109608:ctest-vn4-27601582', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19109608:ctest-vn4-27601582?flat'} 2026-10-22 11:08:27,996 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19109608:ctest-vn4-27601582 is found in opserver 2026-10-22 11:08:28,008 - DEBUG - Do not have enough data to verify VN in agent 2026-10-22 11:08:28,012 - DEBUG - VRF ids for VN ctest-vn4-27601582: {} 2026-10-22 11:08:28,013 - DEBUG - ====Verifying data for ctest-policy1-65165273 in API_Server ====== 2026-10-22 11:08:28,013 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-22 11:08:28,018 - DEBUG - Requesting: http://10.0.0.50:8082/domain/409e4379-f588-4ff7-920d-6ed27f22b0e9 2026-10-22 11:08:28,028 - DEBUG - Requesting: http://10.0.0.50:8082/project/3edf5260-45bd-4827-8c8a-12bd4a837689 2026-10-22 11:08:28,099 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/ae313081-2eb0-4a1a-b0b6-5d530bbbeb32 2026-10-22 11:08:28,110 - INFO - Verified policy ctest-policy1-65165273 in API Server, Result: True 2026-10-22 11:08:28,110 - INFO - Done with setup and verification, moving onto test .. 2026-10-22 11:08:28,117 - INFO - Deleting VN ctest-vn4-27601582 2026-10-22 11:08:28,234 - DEBUG - Response for deleting network () 2026-10-22 11:08:28,235 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ebc349e-6947-4162-bd69-5363d5197f22 2026-10-22 11:08:28,240 - DEBUG - Response Code: 404 2026-10-22 11:08:28,240 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-22 11:08:28,246 - DEBUG - Requesting: http://10.0.0.50:8082/domain/409e4379-f588-4ff7-920d-6ed27f22b0e9 2026-10-22 11:08:28,299 - DEBUG - Requesting: http://10.0.0.50:8082/project/3edf5260-45bd-4827-8c8a-12bd4a837689 2026-10-22 11:08:28,370 - INFO - Validated that VN ctest-vn4-27601582 is not found in API Server 2026-10-22 11:08:28,380 - DEBUG - VN ctest-vn4-27601582 is not present in Agent 10.0.0.50 2026-10-22 11:08:28,380 - INFO - Validated that VN ctest-vn4-27601582 is not in any agent 2026-10-22 11:08:28,395 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27601582 info 2026-10-22 11:08:28,430 - INFO - Deleted policy ctest-policy1-65165273 2026-10-22 11:08:28,592 - DEBUG - policy ctest-policy1-65165273 is not found in API Server 2026-10-22 11:08:28,854 - DEBUG - No XMPP flaps were noticed during the test 2026-10-22 11:08:28,854 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-10-22 11:08:28,854 - INFO - -------------------------------------------------------------------------------- 2026-10-22 11:08:29,158 - DEBUG - No XMPP flaps were noticed during the test 2026-10-22 11:08:29,158 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-10-22 11:08:29,159 - INFO - -------------------------------------------------------------------------------- 2026-10-22 11:08:29,965 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-19109608, ID : 3edf5260-45bd-4827-8c8a-12bd4a837689