2026-02-11 21:14:14,101 - INFO - Domain Default found not creating 2026-02-11 21:14:14,269 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88524829 not found, creating it 2026-02-11 21:14:14,708 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88524829, ID : f4305e38-258b-4699-ba9b-c7b8ed574c67 2026-02-11 21:14:16,200 - INFO - ================================================================================ 2026-02-11 21:14:16,200 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 21:14:16,453 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-11 21:14:16,453 - INFO - Initial checks done. Running the testcase now 2026-02-11 21:14:16,453 - INFO - 2026-02-11 21:14:16,453 - INFO - ================================================================================ 2026-02-11 21:14:16,453 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 21:14:16,454 - 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-02-11 21:14:16,744 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-11 21:14:16,744 - INFO - Initial checks done. Running the testcase now 2026-02-11 21:14:16,744 - INFO - 2026-02-11 21:14:17,109 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88524829:ctest-vn4-20298781, 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-88524829:ctest-vn4-20298781, 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-88524829:ctest-vn4-20298781, 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-88524829:ctest-vn4-20298781, 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-02-11 21:14:17,619 - DEBUG - Response for create_network : {'network': {'id': 'd716bae8-93c7-4a16-bef8-4592b14d2d45', 'name': 'ctest-vn4-20298781', 'tenant_id': 'f4305e38258b4699ba9bc7b8ed574c67', 'project_id': 'f4305e38258b4699ba9bc7b8ed574c67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88524829', 'ctest-vn4-20298781'], 'port_security_enabled': True, 'description': ''}} 2026-02-11 21:14:17,828 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cfb2b687-c5d7-4329-ad6d-089bcf07ed33', 'name': '', 'tenant_id': 'f4305e38258b4699ba9bc7b8ed574c67', 'network_id': 'd716bae8-93c7-4a16-bef8-4592b14d2d45', 'ip_version': 4, 'cidr': '189.148.75.0/26', 'allocation_pools': [{'start': '189.148.75.2', 'end': '189.148.75.62'}], 'gateway_ip': '189.148.75.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.148.75.2', 'tags': [], 'project_id': 'f4305e38258b4699ba9bc7b8ed574c67'}} 2026-02-11 21:14:17,968 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ac9bbdd-a9a0-40d2-81a9-53c4f035368e', 'name': '', 'tenant_id': 'f4305e38258b4699ba9bc7b8ed574c67', 'network_id': 'd716bae8-93c7-4a16-bef8-4592b14d2d45', 'ip_version': 6, 'cidr': '2bdb:d901:a5f5:7b8e:3caa:c512::/96', 'allocation_pools': [{'start': '2bdb:d901:a5f5:7b8e:3caa:c512:0:2', 'end': '2bdb:d901:a5f5:7b8e:3caa:c512:ffff:fffe'}], 'gateway_ip': '2bdb:d901:a5f5:7b8e:3caa:c512:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bdb:d901:a5f5:7b8e:3caa:c512:0:2', 'tags': [], 'project_id': 'f4305e38258b4699ba9bc7b8ed574c67'}} 2026-02-11 21:14:17,988 - INFO - Created VN ctest-vn4-20298781 2026-02-11 21:14:18,039 - DEBUG - VN ctest-vn4-20298781 UUID is d716bae8-93c7-4a16-bef8-4592b14d2d45 2026-02-11 21:14:18,244 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd716bae8-93c7-4a16-bef8-4592b14d2d45', 'name': 'ctest-vn4-20298781', 'tenant_id': 'f4305e38258b4699ba9bc7b8ed574c67', 'project_id': 'f4305e38258b4699ba9bc7b8ed574c67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cfb2b687-c5d7-4329-ad6d-089bcf07ed33', '8ac9bbdd-a9a0-40d2-81a9-53c4f035368e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88524829', 'ctest-vn4-20298781'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88524829', 'ctest-policy1-28272901']], 'subnet_ipam': [{'subnet_cidr': '189.148.75.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bdb:d901:a5f5:7b8e:3caa:c512::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-11 21:14:18,407 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-11 21:14:18,710 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-11 21:14:18,741 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c2ee7ce7-7988-486b-8a0e-a01d13737066 2026-02-11 21:14:18,752 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4305e38-258b-4699-ba9b-c7b8ed574c67 2026-02-11 21:14:18,820 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d716bae8-93c7-4a16-bef8-4592b14d2d45 2026-02-11 21:14:18,830 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d716bae8-93c7-4a16-bef8-4592b14d2d45 2026-02-11 21:14:18,838 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/14f2b789-e376-4743-a7b3-cf7df4f32c5b 2026-02-11 21:14:18,844 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/14f2b789-e376-4743-a7b3-cf7df4f32c5b 2026-02-11 21:14:18,849 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5f50f6be-626d-4ebb-8bc6-cb03bd5b5e08 2026-02-11 21:14:18,854 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 21:14:18,854 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d716bae8-93c7-4a16-bef8-4592b14d2d45 2026-02-11 21:14:18,862 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/14f2b789-e376-4743-a7b3-cf7df4f32c5b 2026-02-11 21:14:18,874 - INFO - Verified VN network id 12 for VN d716bae8-93c7-4a16-bef8-4592b14d2d45 2026-02-11 21:14:18,874 - INFO - Verifications in API Server for VN ctest-vn4-20298781 passed 2026-02-11 21:14:18,874 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d716bae8-93c7-4a16-bef8-4592b14d2d45 2026-02-11 21:14:18,883 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/14f2b789-e376-4743-a7b3-cf7df4f32c5b 2026-02-11 21:14:18,889 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/14f2b789-e376-4743-a7b3-cf7df4f32c5b 2026-02-11 21:14:18,895 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5f50f6be-626d-4ebb-8bc6-cb03bd5b5e08 2026-02-11 21:14:18,906 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88524829:ctest-vn4-20298781', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88524829', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15498780675716631062', 'uuid-lslong': '13760825157772717381'}, 'enable': 'true', 'created': '2026-02-11T21:14:17', 'last-modified': '2026-02-11T21:14:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.695585'} 2026-02-11 21:14:18,911 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 21:14:18,911 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20298781 passed 2026-02-11 21:14:18,912 - DEBUG - ====Verifying policy data for ctest-vn4-20298781 in API_Server ====== 2026-02-11 21:14:18,912 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-11 21:14:18,917 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c2ee7ce7-7988-486b-8a0e-a01d13737066 2026-02-11 21:14:18,927 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4305e38-258b-4699-ba9b-c7b8ed574c67 2026-02-11 21:14:18,999 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/d716bae8-93c7-4a16-bef8-4592b14d2d45 2026-02-11 21:14:19,008 - DEBUG - ==>Verifying data for policy with id: 70128e35-7fc6-47b6-8567-2ab67bb0d954, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88524829', 'ctest-policy1-28272901'] 2026-02-11 21:14:19,008 - INFO - VN ctest-vn4-20298781 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-11 21:14:19,008 - DEBUG - Verifying the vn in opserver 2026-02-11 21:14:19,008 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88524829:ctest-vn4-20298781 virtual network link through opserver 10.0.0.22 2026-02-11 21:14:19,008 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-11 21:14:19,301 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-11 21:14:19,360 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88524829:ctest-vn4-20298781', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88524829:ctest-vn4-20298781?flat'} 2026-02-11 21:14:19,360 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88524829:ctest-vn4-20298781 is found in opserver 2026-02-11 21:14:19,369 - DEBUG - Do not have enough data to verify VN in agent 2026-02-11 21:14:19,373 - DEBUG - VRF ids for VN ctest-vn4-20298781: {} 2026-02-11 21:14:19,374 - DEBUG - ====Verifying data for ctest-policy1-28272901 in API_Server ====== 2026-02-11 21:14:19,374 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-11 21:14:19,379 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c2ee7ce7-7988-486b-8a0e-a01d13737066 2026-02-11 21:14:19,391 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4305e38-258b-4699-ba9b-c7b8ed574c67 2026-02-11 21:14:19,472 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/70128e35-7fc6-47b6-8567-2ab67bb0d954 2026-02-11 21:14:19,481 - INFO - Verified policy ctest-policy1-28272901 in API Server, Result: True 2026-02-11 21:14:19,481 - INFO - Done with setup and verification, moving onto test .. 2026-02-11 21:14:19,488 - INFO - Deleting VN ctest-vn4-20298781 2026-02-11 21:14:19,594 - DEBUG - Response for deleting network () 2026-02-11 21:14:19,595 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/14f2b789-e376-4743-a7b3-cf7df4f32c5b 2026-02-11 21:14:19,600 - DEBUG - Response Code: 404 2026-02-11 21:14:19,600 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-11 21:14:19,606 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c2ee7ce7-7988-486b-8a0e-a01d13737066 2026-02-11 21:14:19,660 - DEBUG - Requesting: http://10.0.0.22:8082/project/f4305e38-258b-4699-ba9b-c7b8ed574c67 2026-02-11 21:14:19,730 - INFO - Validated that VN ctest-vn4-20298781 is not found in API Server 2026-02-11 21:14:19,740 - DEBUG - VN ctest-vn4-20298781 is not present in Agent 10.0.0.22 2026-02-11 21:14:19,740 - INFO - Validated that VN ctest-vn4-20298781 is not in any agent 2026-02-11 21:14:19,754 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20298781 info 2026-02-11 21:14:19,779 - INFO - Deleted policy ctest-policy1-28272901 2026-02-11 21:14:19,939 - DEBUG - policy ctest-policy1-28272901 is not found in API Server 2026-02-11 21:14:20,201 - DEBUG - No XMPP flaps were noticed during the test