2026-10-26 15:07:21,233 - INFO - Domain Default found not creating 2026-10-26 15:07:21,490 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82458016 not found, creating it 2026-10-26 15:07:22,066 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82458016, ID : 0653cc29-7965-49f0-ba01-4c742b856cf2 2026-10-26 15:07:24,325 - INFO - ================================================================================ 2026-10-26 15:07:24,325 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 15:07:24,611 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-10-26 15:07:24,611 - INFO - Initial checks done. Running the testcase now 2026-10-26 15:07:24,611 - INFO - 2026-10-26 15:07:24,611 - INFO - ================================================================================ 2026-10-26 15:07:24,611 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 15:07:24,611 - 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-26 15:07:24,915 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-10-26 15:07:24,915 - INFO - Initial checks done. Running the testcase now 2026-10-26 15:07:24,915 - INFO - 2026-10-26 15:07:25,424 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82458016:ctest-vn4-51691691, 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-82458016:ctest-vn4-51691691, 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-82458016:ctest-vn4-51691691, 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-82458016:ctest-vn4-51691691, 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-26 15:07:26,021 - DEBUG - Response for create_network : {'network': {'id': '739ed863-774b-4aeb-aeb3-20556e30ecc1', 'name': 'ctest-vn4-51691691', 'tenant_id': '0653cc29796549f0ba014c742b856cf2', 'project_id': '0653cc29796549f0ba014c742b856cf2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82458016', 'ctest-vn4-51691691'], 'port_security_enabled': True, 'description': ''}} 2026-10-26 15:07:26,208 - DEBUG - Response for create_subnet : {'subnet': {'id': '6988284a-71eb-4bdb-b7c7-bec0a4ccabe8', 'name': '', 'tenant_id': '0653cc29796549f0ba014c742b856cf2', 'network_id': '739ed863-774b-4aeb-aeb3-20556e30ecc1', 'ip_version': 4, 'cidr': '104.137.62.128/26', 'allocation_pools': [{'start': '104.137.62.130', 'end': '104.137.62.190'}], 'gateway_ip': '104.137.62.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.137.62.130', 'tags': [], 'project_id': '0653cc29796549f0ba014c742b856cf2'}} 2026-10-26 15:07:26,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '2449e250-25c6-49a5-9ad7-c59b80f5fa6f', 'name': '', 'tenant_id': '0653cc29796549f0ba014c742b856cf2', 'network_id': '739ed863-774b-4aeb-aeb3-20556e30ecc1', 'ip_version': 6, 'cidr': '34aa:c1e2:dcef:a365:d46e:cac6::/96', 'allocation_pools': [{'start': '34aa:c1e2:dcef:a365:d46e:cac6:0:2', 'end': '34aa:c1e2:dcef:a365:d46e:cac6:ffff:fffe'}], 'gateway_ip': '34aa:c1e2:dcef:a365:d46e:cac6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34aa:c1e2:dcef:a365:d46e:cac6:0:2', 'tags': [], 'project_id': '0653cc29796549f0ba014c742b856cf2'}} 2026-10-26 15:07:26,476 - INFO - Created VN ctest-vn4-51691691 2026-10-26 15:07:26,534 - DEBUG - VN ctest-vn4-51691691 UUID is 739ed863-774b-4aeb-aeb3-20556e30ecc1 2026-10-26 15:07:26,792 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '739ed863-774b-4aeb-aeb3-20556e30ecc1', 'name': 'ctest-vn4-51691691', 'tenant_id': '0653cc29796549f0ba014c742b856cf2', 'project_id': '0653cc29796549f0ba014c742b856cf2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['6988284a-71eb-4bdb-b7c7-bec0a4ccabe8', '2449e250-25c6-49a5-9ad7-c59b80f5fa6f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82458016', 'ctest-vn4-51691691'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82458016', 'ctest-policy1-35345504']], 'subnet_ipam': [{'subnet_cidr': '104.137.62.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34aa:c1e2:dcef:a365:d46e:cac6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-26 15:07:26,966 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-26 15:07:27,379 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-26 15:07:27,419 - DEBUG - Requesting: http://10.0.0.161:8082/domain/25cfa2e6-6f87-4fc5-95ab-e0013c9f0920 2026-10-26 15:07:27,440 - DEBUG - Requesting: http://10.0.0.161:8082/project/0653cc29-7965-49f0-ba01-4c742b856cf2 2026-10-26 15:07:27,533 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/739ed863-774b-4aeb-aeb3-20556e30ecc1 2026-10-26 15:07:27,551 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/739ed863-774b-4aeb-aeb3-20556e30ecc1 2026-10-26 15:07:27,565 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3e3af7b9-e583-441f-bf4f-1ef2487f11e6 2026-10-26 15:07:27,575 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3e3af7b9-e583-441f-bf4f-1ef2487f11e6 2026-10-26 15:07:27,584 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/09102a59-9256-4eb3-88cf-3ab1cd6090d5 2026-10-26 15:07:27,593 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 15:07:27,593 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/739ed863-774b-4aeb-aeb3-20556e30ecc1 2026-10-26 15:07:27,605 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3e3af7b9-e583-441f-bf4f-1ef2487f11e6 2026-10-26 15:07:27,625 - INFO - Verified VN network id 10 for VN 739ed863-774b-4aeb-aeb3-20556e30ecc1 2026-10-26 15:07:27,625 - INFO - Verifications in API Server for VN ctest-vn4-51691691 passed 2026-10-26 15:07:27,625 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/739ed863-774b-4aeb-aeb3-20556e30ecc1 2026-10-26 15:07:27,645 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3e3af7b9-e583-441f-bf4f-1ef2487f11e6 2026-10-26 15:07:27,660 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3e3af7b9-e583-441f-bf4f-1ef2487f11e6 2026-10-26 15:07:27,671 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/09102a59-9256-4eb3-88cf-3ab1cd6090d5 2026-10-26 15:07:27,690 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82458016:ctest-vn4-51691691', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82458016', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8331334282396781291', 'uuid-lslong': '12588440934723677377'}, 'enable': 'true', 'created': '2026-10-26T15:07:25', 'last-modified': '2026-10-26T15:07:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.937276'} 2026-10-26 15:07:27,700 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 15:07:27,700 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51691691 passed 2026-10-26 15:07:27,701 - DEBUG - ====Verifying policy data for ctest-vn4-51691691 in API_Server ====== 2026-10-26 15:07:27,702 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-26 15:07:27,711 - DEBUG - Requesting: http://10.0.0.161:8082/domain/25cfa2e6-6f87-4fc5-95ab-e0013c9f0920 2026-10-26 15:07:27,728 - DEBUG - Requesting: http://10.0.0.161:8082/project/0653cc29-7965-49f0-ba01-4c742b856cf2 2026-10-26 15:07:27,820 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/739ed863-774b-4aeb-aeb3-20556e30ecc1 2026-10-26 15:07:27,835 - DEBUG - ==>Verifying data for policy with id: 2daeb9f7-d448-457d-a86b-ee374c52a644, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82458016', 'ctest-policy1-35345504'] 2026-10-26 15:07:27,835 - INFO - VN ctest-vn4-51691691 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-26 15:07:27,835 - DEBUG - Verifying the vn in opserver 2026-10-26 15:07:27,835 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82458016:ctest-vn4-51691691 virtual network link through opserver 10.0.0.161 2026-10-26 15:07:27,835 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-26 15:07:28,236 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-26 15:07:28,319 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82458016:ctest-vn4-51691691', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82458016:ctest-vn4-51691691?flat'} 2026-10-26 15:07:28,319 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82458016:ctest-vn4-51691691 is found in opserver 2026-10-26 15:07:28,334 - DEBUG - Do not have enough data to verify VN in agent 2026-10-26 15:07:28,341 - DEBUG - VRF ids for VN ctest-vn4-51691691: {} 2026-10-26 15:07:28,342 - DEBUG - ====Verifying data for ctest-policy1-35345504 in API_Server ====== 2026-10-26 15:07:28,342 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-26 15:07:28,352 - DEBUG - Requesting: http://10.0.0.161:8082/domain/25cfa2e6-6f87-4fc5-95ab-e0013c9f0920 2026-10-26 15:07:28,372 - DEBUG - Requesting: http://10.0.0.161:8082/project/0653cc29-7965-49f0-ba01-4c742b856cf2 2026-10-26 15:07:28,458 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/2daeb9f7-d448-457d-a86b-ee374c52a644 2026-10-26 15:07:28,474 - INFO - Verified policy ctest-policy1-35345504 in API Server, Result: True 2026-10-26 15:07:28,474 - INFO - Done with setup and verification, moving onto test .. 2026-10-26 15:07:28,489 - INFO - Deleting VN ctest-vn4-51691691 2026-10-26 15:07:28,693 - DEBUG - Response for deleting network () 2026-10-26 15:07:28,693 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3e3af7b9-e583-441f-bf4f-1ef2487f11e6 2026-10-26 15:07:28,699 - DEBUG - Response Code: 404 2026-10-26 15:07:28,699 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-26 15:07:28,708 - DEBUG - Requesting: http://10.0.0.161:8082/domain/25cfa2e6-6f87-4fc5-95ab-e0013c9f0920 2026-10-26 15:07:28,765 - DEBUG - Requesting: http://10.0.0.161:8082/project/0653cc29-7965-49f0-ba01-4c742b856cf2 2026-10-26 15:07:28,843 - INFO - Validated that VN ctest-vn4-51691691 is not found in API Server 2026-10-26 15:07:28,864 - DEBUG - VN ctest-vn4-51691691 is not present in Agent 10.0.0.161 2026-10-26 15:07:28,865 - INFO - Validated that VN ctest-vn4-51691691 is not in any agent 2026-10-26 15:07:28,888 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51691691 info 2026-10-26 15:07:28,927 - INFO - Deleted policy ctest-policy1-35345504 2026-10-26 15:07:29,126 - DEBUG - policy ctest-policy1-35345504 is not found in API Server 2026-10-26 15:07:29,409 - DEBUG - No XMPP flaps were noticed during the test 2026-10-26 15:07:29,409 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-10-26 15:07:29,409 - INFO - -------------------------------------------------------------------------------- 2026-10-26 15:07:29,709 - DEBUG - No XMPP flaps were noticed during the test 2026-10-26 15:07:29,709 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-10-26 15:07:29,709 - INFO - -------------------------------------------------------------------------------- 2026-10-26 15:07:30,641 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-82458016, ID : 0653cc29-7965-49f0-ba01-4c742b856cf2