2026-06-18 14:58:35,274 - INFO - Domain Default found not creating 2026-06-18 14:58:35,397 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-27071295 not found, creating it 2026-06-18 14:58:35,846 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-27071295, ID : df026d6d-ce4e-4e84-9b80-7ef6528a3c16 2026-06-18 14:58:37,208 - INFO - ================================================================================ 2026-06-18 14:58:37,208 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 14:58:37,460 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-18 14:58:37,460 - INFO - Initial checks done. Running the testcase now 2026-06-18 14:58:37,460 - INFO - 2026-06-18 14:58:37,460 - INFO - ================================================================================ 2026-06-18 14:58:37,460 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 14:58:37,460 - 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-06-18 14:58:37,752 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-18 14:58:37,752 - INFO - Initial checks done. Running the testcase now 2026-06-18 14:58:37,752 - INFO - 2026-06-18 14:58:38,115 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27071295:ctest-vn4-15599655, 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-27071295:ctest-vn4-15599655, 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-27071295:ctest-vn4-15599655, 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-27071295:ctest-vn4-15599655, 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-06-18 14:58:38,571 - DEBUG - Response for create_network : {'network': {'id': 'f07216b7-83c3-4efc-bbe1-cec2ba272efe', 'name': 'ctest-vn4-15599655', 'tenant_id': 'df026d6dce4e4e849b807ef6528a3c16', 'project_id': 'df026d6dce4e4e849b807ef6528a3c16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27071295', 'ctest-vn4-15599655'], 'port_security_enabled': True, 'description': ''}} 2026-06-18 14:58:38,718 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7b265a3-d5d0-4e52-839c-4b6aa9258061', 'name': '', 'tenant_id': 'df026d6dce4e4e849b807ef6528a3c16', 'network_id': 'f07216b7-83c3-4efc-bbe1-cec2ba272efe', 'ip_version': 4, 'cidr': '19.89.119.0/26', 'allocation_pools': [{'start': '19.89.119.2', 'end': '19.89.119.62'}], 'gateway_ip': '19.89.119.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.89.119.2', 'tags': [], 'project_id': 'df026d6dce4e4e849b807ef6528a3c16'}} 2026-06-18 14:58:38,908 - DEBUG - Response for create_subnet : {'subnet': {'id': '362b1782-18f8-4993-97e3-761d7d6dd8fe', 'name': '', 'tenant_id': 'df026d6dce4e4e849b807ef6528a3c16', 'network_id': 'f07216b7-83c3-4efc-bbe1-cec2ba272efe', 'ip_version': 6, 'cidr': '2ede:8be8:69b9:c283:bdc3:71e0::/96', 'allocation_pools': [{'start': '2ede:8be8:69b9:c283:bdc3:71e0:0:2', 'end': '2ede:8be8:69b9:c283:bdc3:71e0:ffff:fffe'}], 'gateway_ip': '2ede:8be8:69b9:c283:bdc3:71e0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ede:8be8:69b9:c283:bdc3:71e0:0:2', 'tags': [], 'project_id': 'df026d6dce4e4e849b807ef6528a3c16'}} 2026-06-18 14:58:38,922 - INFO - Created VN ctest-vn4-15599655 2026-06-18 14:58:38,971 - DEBUG - VN ctest-vn4-15599655 UUID is f07216b7-83c3-4efc-bbe1-cec2ba272efe 2026-06-18 14:58:39,136 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f07216b7-83c3-4efc-bbe1-cec2ba272efe', 'name': 'ctest-vn4-15599655', 'tenant_id': 'df026d6dce4e4e849b807ef6528a3c16', 'project_id': 'df026d6dce4e4e849b807ef6528a3c16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7b265a3-d5d0-4e52-839c-4b6aa9258061', '362b1782-18f8-4993-97e3-761d7d6dd8fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27071295', 'ctest-vn4-15599655'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27071295', 'ctest-policy1-38953800']], 'subnet_ipam': [{'subnet_cidr': '19.89.119.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ede:8be8:69b9:c283:bdc3:71e0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-18 14:58:39,295 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-18 14:58:39,608 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-18 14:58:39,629 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9685a3ee-9a60-4f5d-a54a-83280f625c37 2026-06-18 14:58:39,640 - DEBUG - Requesting: http://10.0.0.33:8082/project/df026d6d-ce4e-4e84-9b80-7ef6528a3c16 2026-06-18 14:58:39,711 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f07216b7-83c3-4efc-bbe1-cec2ba272efe 2026-06-18 14:58:39,721 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f07216b7-83c3-4efc-bbe1-cec2ba272efe 2026-06-18 14:58:39,729 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/51f64140-4686-472a-9ace-c464d6df54ba 2026-06-18 14:58:39,734 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/51f64140-4686-472a-9ace-c464d6df54ba 2026-06-18 14:58:39,739 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/62d869f2-e876-4291-a57e-ea5f3e5e6b0e 2026-06-18 14:58:39,744 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 14:58:39,744 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f07216b7-83c3-4efc-bbe1-cec2ba272efe 2026-06-18 14:58:39,751 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/51f64140-4686-472a-9ace-c464d6df54ba 2026-06-18 14:58:39,761 - INFO - Verified VN network id 11 for VN f07216b7-83c3-4efc-bbe1-cec2ba272efe 2026-06-18 14:58:39,761 - INFO - Verifications in API Server for VN ctest-vn4-15599655 passed 2026-06-18 14:58:39,761 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f07216b7-83c3-4efc-bbe1-cec2ba272efe 2026-06-18 14:58:39,768 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/51f64140-4686-472a-9ace-c464d6df54ba 2026-06-18 14:58:39,772 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/51f64140-4686-472a-9ace-c464d6df54ba 2026-06-18 14:58:39,777 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/62d869f2-e876-4291-a57e-ea5f3e5e6b0e 2026-06-18 14:58:39,785 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27071295:ctest-vn4-15599655', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27071295', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17325935693893160700', 'uuid-lslong': '13538329290594529022'}, 'enable': 'true', 'created': '2026-06-18T14:58:38', 'last-modified': '2026-06-18T14:58:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.673569'} 2026-06-18 14:58:39,790 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 14:58:39,790 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15599655 passed 2026-06-18 14:58:39,790 - DEBUG - ====Verifying policy data for ctest-vn4-15599655 in API_Server ====== 2026-06-18 14:58:39,790 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-18 14:58:39,795 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9685a3ee-9a60-4f5d-a54a-83280f625c37 2026-06-18 14:58:39,804 - DEBUG - Requesting: http://10.0.0.33:8082/project/df026d6d-ce4e-4e84-9b80-7ef6528a3c16 2026-06-18 14:58:39,868 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f07216b7-83c3-4efc-bbe1-cec2ba272efe 2026-06-18 14:58:39,877 - DEBUG - ==>Verifying data for policy with id: c120714a-5b2a-45d9-b0a7-929025ff0d37, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27071295', 'ctest-policy1-38953800'] 2026-06-18 14:58:39,877 - INFO - VN ctest-vn4-15599655 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-18 14:58:39,877 - DEBUG - Verifying the vn in opserver 2026-06-18 14:58:39,877 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27071295:ctest-vn4-15599655 virtual network link through opserver 10.0.0.33 2026-06-18 14:58:39,877 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-18 14:58:40,190 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-18 14:58:40,232 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27071295:ctest-vn4-15599655', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27071295:ctest-vn4-15599655?flat'} 2026-06-18 14:58:40,232 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27071295:ctest-vn4-15599655 is found in opserver 2026-06-18 14:58:40,240 - DEBUG - Do not have enough data to verify VN in agent 2026-06-18 14:58:40,244 - DEBUG - VRF ids for VN ctest-vn4-15599655: {} 2026-06-18 14:58:40,245 - DEBUG - ====Verifying data for ctest-policy1-38953800 in API_Server ====== 2026-06-18 14:58:40,245 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-18 14:58:40,250 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9685a3ee-9a60-4f5d-a54a-83280f625c37 2026-06-18 14:58:40,259 - DEBUG - Requesting: http://10.0.0.33:8082/project/df026d6d-ce4e-4e84-9b80-7ef6528a3c16 2026-06-18 14:58:40,329 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/c120714a-5b2a-45d9-b0a7-929025ff0d37 2026-06-18 14:58:40,336 - INFO - Verified policy ctest-policy1-38953800 in API Server, Result: True 2026-06-18 14:58:40,336 - INFO - Done with setup and verification, moving onto test .. 2026-06-18 14:58:40,342 - INFO - Deleting VN ctest-vn4-15599655 2026-06-18 14:58:40,429 - DEBUG - Response for deleting network () 2026-06-18 14:58:40,429 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/51f64140-4686-472a-9ace-c464d6df54ba 2026-06-18 14:58:40,433 - DEBUG - Response Code: 404 2026-06-18 14:58:40,433 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-18 14:58:40,436 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9685a3ee-9a60-4f5d-a54a-83280f625c37 2026-06-18 14:58:40,492 - DEBUG - Requesting: http://10.0.0.33:8082/project/df026d6d-ce4e-4e84-9b80-7ef6528a3c16 2026-06-18 14:58:40,560 - INFO - Validated that VN ctest-vn4-15599655 is not found in API Server 2026-06-18 14:58:40,568 - DEBUG - VN ctest-vn4-15599655 is not present in Agent 10.0.0.33 2026-06-18 14:58:40,568 - INFO - Validated that VN ctest-vn4-15599655 is not in any agent 2026-06-18 14:58:40,579 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15599655 info 2026-06-18 14:58:40,597 - INFO - Deleted policy ctest-policy1-38953800 2026-06-18 14:58:40,755 - DEBUG - policy ctest-policy1-38953800 is not found in API Server 2026-06-18 14:58:41,008 - DEBUG - No XMPP flaps were noticed during the test 2026-06-18 14:58:41,008 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-18 14:58:41,008 - INFO - -------------------------------------------------------------------------------- 2026-06-18 14:58:41,295 - DEBUG - No XMPP flaps were noticed during the test 2026-06-18 14:58:41,295 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-18 14:58:41,295 - INFO - -------------------------------------------------------------------------------- 2026-06-18 14:58:41,944 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-27071295, ID : df026d6d-ce4e-4e84-9b80-7ef6528a3c16