2026-10-21 16:46:11,682 - INFO - Domain Default found not creating 2026-10-21 16:46:11,880 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-41011996 not found, creating it 2026-10-21 16:46:12,420 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-41011996, ID : 88b62325-fcee-4bc6-8bd0-059286507e60 2026-10-21 16:46:14,436 - INFO - ================================================================================ 2026-10-21 16:46:14,436 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-21 16:46:14,696 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.25': '0'}} with 2026-10-21 16:46:14,696 - INFO - Initial checks done. Running the testcase now 2026-10-21 16:46:14,696 - INFO - 2026-10-21 16:46:14,696 - INFO - ================================================================================ 2026-10-21 16:46:14,697 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-21 16:46:14,697 - 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-21 16:46:15,015 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.25': '0'}} with 2026-10-21 16:46:15,015 - INFO - Initial checks done. Running the testcase now 2026-10-21 16:46:15,015 - INFO - 2026-10-21 16:46:15,459 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41011996:ctest-vn4-66175130, 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-41011996:ctest-vn4-66175130, 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-41011996:ctest-vn4-66175130, 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-41011996:ctest-vn4-66175130, 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-21 16:46:16,064 - DEBUG - Response for create_network : {'network': {'id': '0f8a769e-88c0-4bef-8836-c3683145b9f4', 'name': 'ctest-vn4-66175130', 'tenant_id': '88b62325fcee4bc68bd0059286507e60', 'project_id': '88b62325fcee4bc68bd0059286507e60', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41011996', 'ctest-vn4-66175130'], 'port_security_enabled': True, 'description': ''}} 2026-10-21 16:46:16,244 - DEBUG - Response for create_subnet : {'subnet': {'id': '80222023-387b-4af3-b3fa-a6fa98849e0f', 'name': '', 'tenant_id': '88b62325fcee4bc68bd0059286507e60', 'network_id': '0f8a769e-88c0-4bef-8836-c3683145b9f4', 'ip_version': 4, 'cidr': '146.62.245.128/26', 'allocation_pools': [{'start': '146.62.245.130', 'end': '146.62.245.190'}], 'gateway_ip': '146.62.245.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.62.245.130', 'tags': [], 'project_id': '88b62325fcee4bc68bd0059286507e60'}} 2026-10-21 16:46:16,480 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0871a83-1626-4ed2-9c22-c895a56e808d', 'name': '', 'tenant_id': '88b62325fcee4bc68bd0059286507e60', 'network_id': '0f8a769e-88c0-4bef-8836-c3683145b9f4', 'ip_version': 6, 'cidr': '2d24:e8b1:138a:19ad:1cad:e3df::/96', 'allocation_pools': [{'start': '2d24:e8b1:138a:19ad:1cad:e3df:0:2', 'end': '2d24:e8b1:138a:19ad:1cad:e3df:ffff:fffe'}], 'gateway_ip': '2d24:e8b1:138a:19ad:1cad:e3df:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d24:e8b1:138a:19ad:1cad:e3df:0:2', 'tags': [], 'project_id': '88b62325fcee4bc68bd0059286507e60'}} 2026-10-21 16:46:16,501 - INFO - Created VN ctest-vn4-66175130 2026-10-21 16:46:16,557 - DEBUG - VN ctest-vn4-66175130 UUID is 0f8a769e-88c0-4bef-8836-c3683145b9f4 2026-10-21 16:46:16,783 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f8a769e-88c0-4bef-8836-c3683145b9f4', 'name': 'ctest-vn4-66175130', 'tenant_id': '88b62325fcee4bc68bd0059286507e60', 'project_id': '88b62325fcee4bc68bd0059286507e60', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['80222023-387b-4af3-b3fa-a6fa98849e0f', 'f0871a83-1626-4ed2-9c22-c895a56e808d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41011996', 'ctest-vn4-66175130'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41011996', 'ctest-policy1-56311119']], 'subnet_ipam': [{'subnet_cidr': '146.62.245.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d24:e8b1:138a:19ad:1cad:e3df::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-21 16:46:16,949 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-21 16:46:17,333 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-21 16:46:17,375 - DEBUG - Requesting: http://10.0.0.190:8082/domain/73689576-5f3a-4cc7-b619-3c307fcdb943 2026-10-21 16:46:17,390 - DEBUG - Requesting: http://10.0.0.190:8082/project/88b62325-fcee-4bc6-8bd0-059286507e60 2026-10-21 16:46:17,468 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/0f8a769e-88c0-4bef-8836-c3683145b9f4 2026-10-21 16:46:17,483 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/0f8a769e-88c0-4bef-8836-c3683145b9f4 2026-10-21 16:46:17,494 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/d2dc7df6-bb0c-4241-9a93-6a5ce1a837d9 2026-10-21 16:46:17,508 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/d2dc7df6-bb0c-4241-9a93-6a5ce1a837d9 2026-10-21 16:46:17,518 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/3d01c63f-8b0b-43b7-87c3-f4cd358691ec 2026-10-21 16:46:17,528 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-21 16:46:17,528 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/0f8a769e-88c0-4bef-8836-c3683145b9f4 2026-10-21 16:46:17,543 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/d2dc7df6-bb0c-4241-9a93-6a5ce1a837d9 2026-10-21 16:46:17,559 - INFO - Verified VN network id 10 for VN 0f8a769e-88c0-4bef-8836-c3683145b9f4 2026-10-21 16:46:17,559 - INFO - Verifications in API Server for VN ctest-vn4-66175130 passed 2026-10-21 16:46:17,559 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/0f8a769e-88c0-4bef-8836-c3683145b9f4 2026-10-21 16:46:17,569 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/d2dc7df6-bb0c-4241-9a93-6a5ce1a837d9 2026-10-21 16:46:17,577 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/d2dc7df6-bb0c-4241-9a93-6a5ce1a837d9 2026-10-21 16:46:17,587 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/3d01c63f-8b0b-43b7-87c3-f4cd358691ec 2026-10-21 16:46:17,604 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41011996:ctest-vn4-66175130', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-41011996', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1119837880626203631', 'uuid-lslong': '9815247290171242996'}, 'enable': 'true', 'created': '2026-10-21T16:46:16', 'last-modified': '2026-10-21T16:46:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.847159'} 2026-10-21 16:46:17,614 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-21 16:46:17,614 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66175130 passed 2026-10-21 16:46:17,615 - DEBUG - ====Verifying policy data for ctest-vn4-66175130 in API_Server ====== 2026-10-21 16:46:17,615 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-21 16:46:17,621 - DEBUG - Requesting: http://10.0.0.190:8082/domain/73689576-5f3a-4cc7-b619-3c307fcdb943 2026-10-21 16:46:17,632 - DEBUG - Requesting: http://10.0.0.190:8082/project/88b62325-fcee-4bc6-8bd0-059286507e60 2026-10-21 16:46:17,717 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/0f8a769e-88c0-4bef-8836-c3683145b9f4 2026-10-21 16:46:17,729 - DEBUG - ==>Verifying data for policy with id: acd13692-708c-4c7e-befe-e6f5a20dbf42, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41011996', 'ctest-policy1-56311119'] 2026-10-21 16:46:17,729 - INFO - VN ctest-vn4-66175130 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-21 16:46:17,730 - DEBUG - Verifying the vn in opserver 2026-10-21 16:46:17,730 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41011996:ctest-vn4-66175130 virtual network link through opserver 10.0.0.190 2026-10-21 16:46:17,730 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-10-21 16:46:18,103 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-10-21 16:46:18,162 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41011996:ctest-vn4-66175130', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41011996:ctest-vn4-66175130?flat'} 2026-10-21 16:46:18,162 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41011996:ctest-vn4-66175130 is found in opserver 2026-10-21 16:46:18,173 - DEBUG - Do not have enough data to verify VN in agent 2026-10-21 16:46:18,179 - DEBUG - VRF ids for VN ctest-vn4-66175130: {} 2026-10-21 16:46:18,179 - DEBUG - ====Verifying data for ctest-policy1-56311119 in API_Server ====== 2026-10-21 16:46:18,179 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-21 16:46:18,185 - DEBUG - Requesting: http://10.0.0.190:8082/domain/73689576-5f3a-4cc7-b619-3c307fcdb943 2026-10-21 16:46:18,195 - DEBUG - Requesting: http://10.0.0.190:8082/project/88b62325-fcee-4bc6-8bd0-059286507e60 2026-10-21 16:46:18,269 - DEBUG - Requesting: http://10.0.0.190:8082/network-policy/acd13692-708c-4c7e-befe-e6f5a20dbf42 2026-10-21 16:46:18,279 - INFO - Verified policy ctest-policy1-56311119 in API Server, Result: True 2026-10-21 16:46:18,279 - INFO - Done with setup and verification, moving onto test .. 2026-10-21 16:46:18,287 - INFO - Deleting VN ctest-vn4-66175130 2026-10-21 16:46:18,420 - DEBUG - Response for deleting network () 2026-10-21 16:46:18,420 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/d2dc7df6-bb0c-4241-9a93-6a5ce1a837d9 2026-10-21 16:46:18,426 - DEBUG - Response Code: 404 2026-10-21 16:46:18,426 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-21 16:46:18,432 - DEBUG - Requesting: http://10.0.0.190:8082/domain/73689576-5f3a-4cc7-b619-3c307fcdb943 2026-10-21 16:46:18,486 - DEBUG - Requesting: http://10.0.0.190:8082/project/88b62325-fcee-4bc6-8bd0-059286507e60 2026-10-21 16:46:18,557 - INFO - Validated that VN ctest-vn4-66175130 is not found in API Server 2026-10-21 16:46:18,568 - DEBUG - VN ctest-vn4-66175130 is not present in Agent 10.0.0.190 2026-10-21 16:46:18,568 - INFO - Validated that VN ctest-vn4-66175130 is not in any agent 2026-10-21 16:46:18,585 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66175130 info 2026-10-21 16:46:18,610 - INFO - Deleted policy ctest-policy1-56311119 2026-10-21 16:46:18,785 - DEBUG - policy ctest-policy1-56311119 is not found in API Server 2026-10-21 16:46:19,054 - DEBUG - No XMPP flaps were noticed during the test