2026-05-25 14:03:37,734 - INFO - Domain Default found not creating 2026-05-25 14:03:37,891 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99376026 not found, creating it 2026-05-25 14:03:38,357 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99376026, ID : 1cbce297-7f9b-46fe-a9cf-9884cc949095 2026-05-25 14:03:39,827 - INFO - ================================================================================ 2026-05-25 14:03:39,827 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-25 14:03:40,083 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-05-25 14:03:40,083 - INFO - Initial checks done. Running the testcase now 2026-05-25 14:03:40,083 - INFO - 2026-05-25 14:03:40,083 - INFO - ================================================================================ 2026-05-25 14:03:40,083 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-25 14:03:40,083 - 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-05-25 14:03:40,373 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-05-25 14:03:40,373 - INFO - Initial checks done. Running the testcase now 2026-05-25 14:03:40,373 - INFO - 2026-05-25 14:03:40,804 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99376026:ctest-vn4-01226282, 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-99376026:ctest-vn4-01226282, 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-99376026:ctest-vn4-01226282, 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-99376026:ctest-vn4-01226282, 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-05-25 14:03:41,345 - DEBUG - Response for create_network : {'network': {'id': '66ef154b-77d3-468a-a496-304d6186274f', 'name': 'ctest-vn4-01226282', 'tenant_id': '1cbce2977f9b46fea9cf9884cc949095', 'project_id': '1cbce2977f9b46fea9cf9884cc949095', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99376026', 'ctest-vn4-01226282'], 'port_security_enabled': True, 'description': ''}} 2026-05-25 14:03:41,483 - DEBUG - Response for create_subnet : {'subnet': {'id': '95432d2b-c74b-4e04-8b02-a1119a1f3e71', 'name': '', 'tenant_id': '1cbce2977f9b46fea9cf9884cc949095', 'network_id': '66ef154b-77d3-468a-a496-304d6186274f', 'ip_version': 4, 'cidr': '178.248.33.0/26', 'allocation_pools': [{'start': '178.248.33.2', 'end': '178.248.33.62'}], 'gateway_ip': '178.248.33.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.248.33.2', 'tags': [], 'project_id': '1cbce2977f9b46fea9cf9884cc949095'}} 2026-05-25 14:03:41,692 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb6ccbef-8c9d-4c3a-9552-b0b165f81454', 'name': '', 'tenant_id': '1cbce2977f9b46fea9cf9884cc949095', 'network_id': '66ef154b-77d3-468a-a496-304d6186274f', 'ip_version': 6, 'cidr': '209e:a4ac:a695:cec4:8171:7368::/96', 'allocation_pools': [{'start': '209e:a4ac:a695:cec4:8171:7368:0:2', 'end': '209e:a4ac:a695:cec4:8171:7368:ffff:fffe'}], 'gateway_ip': '209e:a4ac:a695:cec4:8171:7368:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209e:a4ac:a695:cec4:8171:7368:0:2', 'tags': [], 'project_id': '1cbce2977f9b46fea9cf9884cc949095'}} 2026-05-25 14:03:41,710 - INFO - Created VN ctest-vn4-01226282 2026-05-25 14:03:41,758 - DEBUG - VN ctest-vn4-01226282 UUID is 66ef154b-77d3-468a-a496-304d6186274f 2026-05-25 14:03:41,940 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66ef154b-77d3-468a-a496-304d6186274f', 'name': 'ctest-vn4-01226282', 'tenant_id': '1cbce2977f9b46fea9cf9884cc949095', 'project_id': '1cbce2977f9b46fea9cf9884cc949095', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95432d2b-c74b-4e04-8b02-a1119a1f3e71', 'eb6ccbef-8c9d-4c3a-9552-b0b165f81454'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99376026', 'ctest-vn4-01226282'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99376026', 'ctest-policy1-66844330']], 'subnet_ipam': [{'subnet_cidr': '178.248.33.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '209e:a4ac:a695:cec4:8171:7368::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-25 14:03:42,098 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-25 14:03:42,394 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-25 14:03:42,422 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ef9b8e72-c2e4-4c37-855c-d72c44d85cfc 2026-05-25 14:03:42,433 - DEBUG - Requesting: http://10.0.0.38:8082/project/1cbce297-7f9b-46fe-a9cf-9884cc949095 2026-05-25 14:03:42,509 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/66ef154b-77d3-468a-a496-304d6186274f 2026-05-25 14:03:42,521 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/66ef154b-77d3-468a-a496-304d6186274f 2026-05-25 14:03:42,532 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccfc7a91-893b-40ae-880c-9c7da87cfd4c 2026-05-25 14:03:42,540 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccfc7a91-893b-40ae-880c-9c7da87cfd4c 2026-05-25 14:03:42,546 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c10f0c91-f333-4e49-8c08-420fb32e15e6 2026-05-25 14:03:42,551 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 14:03:42,551 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/66ef154b-77d3-468a-a496-304d6186274f 2026-05-25 14:03:42,559 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccfc7a91-893b-40ae-880c-9c7da87cfd4c 2026-05-25 14:03:42,571 - INFO - Verified VN network id 11 for VN 66ef154b-77d3-468a-a496-304d6186274f 2026-05-25 14:03:42,571 - INFO - Verifications in API Server for VN ctest-vn4-01226282 passed 2026-05-25 14:03:42,571 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/66ef154b-77d3-468a-a496-304d6186274f 2026-05-25 14:03:42,579 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccfc7a91-893b-40ae-880c-9c7da87cfd4c 2026-05-25 14:03:42,585 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccfc7a91-893b-40ae-880c-9c7da87cfd4c 2026-05-25 14:03:42,590 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c10f0c91-f333-4e49-8c08-420fb32e15e6 2026-05-25 14:03:42,600 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99376026:ctest-vn4-01226282', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99376026', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7417170525179561610', 'uuid-lslong': '11859719777633576783'}, 'enable': 'true', 'created': '2026-05-25T14:03:41', 'last-modified': '2026-05-25T14:03:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.684124'} 2026-05-25 14:03:42,606 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 14:03:42,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01226282 passed 2026-05-25 14:03:42,606 - DEBUG - ====Verifying policy data for ctest-vn4-01226282 in API_Server ====== 2026-05-25 14:03:42,606 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-25 14:03:42,611 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ef9b8e72-c2e4-4c37-855c-d72c44d85cfc 2026-05-25 14:03:42,621 - DEBUG - Requesting: http://10.0.0.38:8082/project/1cbce297-7f9b-46fe-a9cf-9884cc949095 2026-05-25 14:03:42,689 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/66ef154b-77d3-468a-a496-304d6186274f 2026-05-25 14:03:42,697 - DEBUG - ==>Verifying data for policy with id: 9cc63cc0-4468-45e1-bab4-52c8ab117593, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99376026', 'ctest-policy1-66844330'] 2026-05-25 14:03:42,697 - INFO - VN ctest-vn4-01226282 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-25 14:03:42,698 - DEBUG - Verifying the vn in opserver 2026-05-25 14:03:42,698 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99376026:ctest-vn4-01226282 virtual network link through opserver 10.0.0.38 2026-05-25 14:03:42,698 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-25 14:03:42,990 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-25 14:03:43,049 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99376026:ctest-vn4-01226282', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99376026:ctest-vn4-01226282?flat'} 2026-05-25 14:03:43,049 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99376026:ctest-vn4-01226282 is found in opserver 2026-05-25 14:03:43,058 - DEBUG - Do not have enough data to verify VN in agent 2026-05-25 14:03:43,063 - DEBUG - VRF ids for VN ctest-vn4-01226282: {} 2026-05-25 14:03:43,063 - DEBUG - ====Verifying data for ctest-policy1-66844330 in API_Server ====== 2026-05-25 14:03:43,063 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-25 14:03:43,069 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ef9b8e72-c2e4-4c37-855c-d72c44d85cfc 2026-05-25 14:03:43,079 - DEBUG - Requesting: http://10.0.0.38:8082/project/1cbce297-7f9b-46fe-a9cf-9884cc949095 2026-05-25 14:03:43,147 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/9cc63cc0-4468-45e1-bab4-52c8ab117593 2026-05-25 14:03:43,157 - INFO - Verified policy ctest-policy1-66844330 in API Server, Result: True 2026-05-25 14:03:43,157 - INFO - Done with setup and verification, moving onto test .. 2026-05-25 14:03:43,165 - INFO - Deleting VN ctest-vn4-01226282 2026-05-25 14:03:43,270 - DEBUG - Response for deleting network () 2026-05-25 14:03:43,270 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ccfc7a91-893b-40ae-880c-9c7da87cfd4c 2026-05-25 14:03:43,274 - DEBUG - Response Code: 404 2026-05-25 14:03:43,274 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-25 14:03:43,279 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ef9b8e72-c2e4-4c37-855c-d72c44d85cfc 2026-05-25 14:03:43,331 - DEBUG - Requesting: http://10.0.0.38:8082/project/1cbce297-7f9b-46fe-a9cf-9884cc949095 2026-05-25 14:03:43,405 - INFO - Validated that VN ctest-vn4-01226282 is not found in API Server 2026-05-25 14:03:43,413 - DEBUG - VN ctest-vn4-01226282 is not present in Agent 10.0.0.38 2026-05-25 14:03:43,413 - INFO - Validated that VN ctest-vn4-01226282 is not in any agent 2026-05-25 14:03:43,424 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01226282 info 2026-05-25 14:03:43,446 - INFO - Deleted policy ctest-policy1-66844330 2026-05-25 14:03:43,602 - DEBUG - policy ctest-policy1-66844330 is not found in API Server 2026-05-25 14:03:43,855 - DEBUG - No XMPP flaps were noticed during the test