2026-02-20 12:28:13,044 - INFO - Domain Default found not creating 2026-02-20 12:28:13,212 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-63001678 not found, creating it 2026-02-20 12:28:13,663 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-63001678, ID : bf0373a4-170a-4732-9717-0b5f705a3de7 2026-02-20 12:28:15,116 - INFO - ================================================================================ 2026-02-20 12:28:15,116 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 12:28:15,372 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2026-02-20 12:28:15,372 - INFO - Initial checks done. Running the testcase now 2026-02-20 12:28:15,372 - INFO - 2026-02-20 12:28:15,373 - INFO - ================================================================================ 2026-02-20 12:28:15,373 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 12:28:15,373 - 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-20 12:28:15,664 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2026-02-20 12:28:15,664 - INFO - Initial checks done. Running the testcase now 2026-02-20 12:28:15,664 - INFO - 2026-02-20 12:28:16,025 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63001678:ctest-vn4-26347307, 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-63001678:ctest-vn4-26347307, 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-63001678:ctest-vn4-26347307, 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-63001678:ctest-vn4-26347307, 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-20 12:28:16,528 - DEBUG - Response for create_network : {'network': {'id': 'ac13b0b2-b7c7-416a-9cd4-aa379e135a73', 'name': 'ctest-vn4-26347307', 'tenant_id': 'bf0373a4170a473297170b5f705a3de7', 'project_id': 'bf0373a4170a473297170b5f705a3de7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63001678', 'ctest-vn4-26347307'], 'port_security_enabled': True, 'description': ''}} 2026-02-20 12:28:16,731 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae3f164b-bce9-484c-8684-9b1cd5b28427', 'name': '', 'tenant_id': 'bf0373a4170a473297170b5f705a3de7', 'network_id': 'ac13b0b2-b7c7-416a-9cd4-aa379e135a73', 'ip_version': 4, 'cidr': '206.127.196.0/26', 'allocation_pools': [{'start': '206.127.196.2', 'end': '206.127.196.62'}], 'gateway_ip': '206.127.196.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.127.196.2', 'tags': [], 'project_id': 'bf0373a4170a473297170b5f705a3de7'}} 2026-02-20 12:28:16,904 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ba209ff-4a43-4c62-86a2-07c2fc2ccc7d', 'name': '', 'tenant_id': 'bf0373a4170a473297170b5f705a3de7', 'network_id': 'ac13b0b2-b7c7-416a-9cd4-aa379e135a73', 'ip_version': 6, 'cidr': '2955:e513:adc8:bb8a:dcd5:58e::/96', 'allocation_pools': [{'start': '2955:e513:adc8:bb8a:dcd5:58e:0:2', 'end': '2955:e513:adc8:bb8a:dcd5:58e:ffff:fffe'}], 'gateway_ip': '2955:e513:adc8:bb8a:dcd5:58e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2955:e513:adc8:bb8a:dcd5:58e:0:2', 'tags': [], 'project_id': 'bf0373a4170a473297170b5f705a3de7'}} 2026-02-20 12:28:16,927 - INFO - Created VN ctest-vn4-26347307 2026-02-20 12:28:16,979 - DEBUG - VN ctest-vn4-26347307 UUID is ac13b0b2-b7c7-416a-9cd4-aa379e135a73 2026-02-20 12:28:17,177 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac13b0b2-b7c7-416a-9cd4-aa379e135a73', 'name': 'ctest-vn4-26347307', 'tenant_id': 'bf0373a4170a473297170b5f705a3de7', 'project_id': 'bf0373a4170a473297170b5f705a3de7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae3f164b-bce9-484c-8684-9b1cd5b28427', '3ba209ff-4a43-4c62-86a2-07c2fc2ccc7d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63001678', 'ctest-vn4-26347307'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63001678', 'ctest-policy1-28589073']], 'subnet_ipam': [{'subnet_cidr': '206.127.196.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2955:e513:adc8:bb8a:dcd5:58e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-20 12:28:17,348 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-20 12:28:17,652 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-20 12:28:17,687 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f4ba6413-773c-450c-94fd-be4e3306238d 2026-02-20 12:28:17,699 - DEBUG - Requesting: http://10.0.0.27:8082/project/bf0373a4-170a-4732-9717-0b5f705a3de7 2026-02-20 12:28:17,778 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ac13b0b2-b7c7-416a-9cd4-aa379e135a73 2026-02-20 12:28:17,791 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ac13b0b2-b7c7-416a-9cd4-aa379e135a73 2026-02-20 12:28:17,802 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ecefaf12-77f2-4dd1-8b22-191321f79b31 2026-02-20 12:28:17,809 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ecefaf12-77f2-4dd1-8b22-191321f79b31 2026-02-20 12:28:17,816 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f63986d4-02c9-41df-8e2c-17a32023c368 2026-02-20 12:28:17,822 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 12:28:17,822 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ac13b0b2-b7c7-416a-9cd4-aa379e135a73 2026-02-20 12:28:17,832 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ecefaf12-77f2-4dd1-8b22-191321f79b31 2026-02-20 12:28:17,848 - INFO - Verified VN network id 11 for VN ac13b0b2-b7c7-416a-9cd4-aa379e135a73 2026-02-20 12:28:17,848 - INFO - Verifications in API Server for VN ctest-vn4-26347307 passed 2026-02-20 12:28:17,849 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ac13b0b2-b7c7-416a-9cd4-aa379e135a73 2026-02-20 12:28:17,858 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ecefaf12-77f2-4dd1-8b22-191321f79b31 2026-02-20 12:28:17,865 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ecefaf12-77f2-4dd1-8b22-191321f79b31 2026-02-20 12:28:17,871 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/f63986d4-02c9-41df-8e2c-17a32023c368 2026-02-20 12:28:17,881 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63001678:ctest-vn4-26347307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63001678', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12399448480715063658', 'uuid-lslong': '11300844520831408755'}, 'enable': 'true', 'created': '2026-02-20T12:28:16', 'last-modified': '2026-02-20T12:28:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.737271'} 2026-02-20 12:28:17,886 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 12:28:17,886 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26347307 passed 2026-02-20 12:28:17,887 - DEBUG - ====Verifying policy data for ctest-vn4-26347307 in API_Server ====== 2026-02-20 12:28:17,887 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-20 12:28:17,892 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f4ba6413-773c-450c-94fd-be4e3306238d 2026-02-20 12:28:17,903 - DEBUG - Requesting: http://10.0.0.27:8082/project/bf0373a4-170a-4732-9717-0b5f705a3de7 2026-02-20 12:28:17,977 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ac13b0b2-b7c7-416a-9cd4-aa379e135a73 2026-02-20 12:28:17,986 - DEBUG - ==>Verifying data for policy with id: 1ccece7e-7e4a-40af-a138-69bfbfdd0e99, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63001678', 'ctest-policy1-28589073'] 2026-02-20 12:28:17,986 - INFO - VN ctest-vn4-26347307 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-20 12:28:17,986 - DEBUG - Verifying the vn in opserver 2026-02-20 12:28:17,986 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63001678:ctest-vn4-26347307 virtual network link through opserver 10.0.0.27 2026-02-20 12:28:17,986 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-20 12:28:18,277 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-20 12:28:18,335 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63001678:ctest-vn4-26347307', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63001678:ctest-vn4-26347307?flat'} 2026-02-20 12:28:18,336 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63001678:ctest-vn4-26347307 is found in opserver 2026-02-20 12:28:18,344 - DEBUG - Do not have enough data to verify VN in agent 2026-02-20 12:28:18,348 - DEBUG - VRF ids for VN ctest-vn4-26347307: {} 2026-02-20 12:28:18,348 - DEBUG - ====Verifying data for ctest-policy1-28589073 in API_Server ====== 2026-02-20 12:28:18,348 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-20 12:28:18,353 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f4ba6413-773c-450c-94fd-be4e3306238d 2026-02-20 12:28:18,362 - DEBUG - Requesting: http://10.0.0.27:8082/project/bf0373a4-170a-4732-9717-0b5f705a3de7 2026-02-20 12:28:18,434 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/1ccece7e-7e4a-40af-a138-69bfbfdd0e99 2026-02-20 12:28:18,443 - INFO - Verified policy ctest-policy1-28589073 in API Server, Result: True 2026-02-20 12:28:18,443 - INFO - Done with setup and verification, moving onto test .. 2026-02-20 12:28:18,449 - INFO - Deleting VN ctest-vn4-26347307 2026-02-20 12:28:18,552 - DEBUG - Response for deleting network () 2026-02-20 12:28:18,553 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ecefaf12-77f2-4dd1-8b22-191321f79b31 2026-02-20 12:28:18,557 - DEBUG - Response Code: 404 2026-02-20 12:28:18,557 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-20 12:28:18,562 - DEBUG - Requesting: http://10.0.0.27:8082/domain/f4ba6413-773c-450c-94fd-be4e3306238d 2026-02-20 12:28:18,616 - DEBUG - Requesting: http://10.0.0.27:8082/project/bf0373a4-170a-4732-9717-0b5f705a3de7 2026-02-20 12:28:18,687 - INFO - Validated that VN ctest-vn4-26347307 is not found in API Server 2026-02-20 12:28:18,696 - DEBUG - VN ctest-vn4-26347307 is not present in Agent 10.0.0.27 2026-02-20 12:28:18,696 - INFO - Validated that VN ctest-vn4-26347307 is not in any agent 2026-02-20 12:28:18,709 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26347307 info 2026-02-20 12:28:18,730 - INFO - Deleted policy ctest-policy1-28589073 2026-02-20 12:28:18,895 - DEBUG - policy ctest-policy1-28589073 is not found in API Server 2026-02-20 12:28:19,149 - DEBUG - No XMPP flaps were noticed during the test 2026-02-20 12:28:19,149 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-20 12:28:19,149 - INFO - -------------------------------------------------------------------------------- 2026-02-20 12:28:19,439 - DEBUG - No XMPP flaps were noticed during the test 2026-02-20 12:28:19,440 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-20 12:28:19,440 - INFO - -------------------------------------------------------------------------------- 2026-02-20 12:28:20,097 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-63001678, ID : bf0373a4-170a-4732-9717-0b5f705a3de7