2026-10-29 22:19:58,149 - INFO - Domain Default found not creating 2026-10-29 22:19:58,454 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67454918 not found, creating it 2026-10-29 22:19:59,022 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67454918, ID : d01625c2-d177-4266-8d33-fecad491fb9e 2026-10-29 22:20:01,249 - INFO - ================================================================================ 2026-10-29 22:20:01,249 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-29 22:20:01,530 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.17': '0'}} with 2026-10-29 22:20:01,531 - INFO - Initial checks done. Running the testcase now 2026-10-29 22:20:01,531 - INFO - 2026-10-29 22:20:01,531 - INFO - ================================================================================ 2026-10-29 22:20:01,531 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-29 22:20:01,531 - 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-29 22:20:01,836 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.17': '0'}} with 2026-10-29 22:20:01,836 - INFO - Initial checks done. Running the testcase now 2026-10-29 22:20:01,837 - INFO - 2026-10-29 22:20:02,385 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67454918:ctest-vn4-16790115, 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-67454918:ctest-vn4-16790115, 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-67454918:ctest-vn4-16790115, 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-67454918:ctest-vn4-16790115, 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-29 22:20:03,039 - DEBUG - Response for create_network : {'network': {'id': '2911ad41-d14f-4b7a-bc45-637231ee5f9e', 'name': 'ctest-vn4-16790115', 'tenant_id': 'd01625c2d17742668d33fecad491fb9e', 'project_id': 'd01625c2d17742668d33fecad491fb9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67454918', 'ctest-vn4-16790115'], 'port_security_enabled': True, 'description': ''}} 2026-10-29 22:20:03,292 - DEBUG - Response for create_subnet : {'subnet': {'id': '9802c8bf-33c9-4b42-b15d-060eec5f8e6a', 'name': '', 'tenant_id': 'd01625c2d17742668d33fecad491fb9e', 'network_id': '2911ad41-d14f-4b7a-bc45-637231ee5f9e', 'ip_version': 4, 'cidr': '108.38.20.0/26', 'allocation_pools': [{'start': '108.38.20.2', 'end': '108.38.20.62'}], 'gateway_ip': '108.38.20.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.38.20.2', 'tags': [], 'project_id': 'd01625c2d17742668d33fecad491fb9e'}} 2026-10-29 22:20:03,488 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f12540d1-156d-4f01-ba8d-58b1327f68aa', 'name': '', 'tenant_id': 'd01625c2d17742668d33fecad491fb9e', 'network_id': '2911ad41-d14f-4b7a-bc45-637231ee5f9e', 'ip_version': 6, 'cidr': '3431:64b8:9d17:ea7a:1297:ffbc::/96', 'allocation_pools': [{'start': '3431:64b8:9d17:ea7a:1297:ffbc:0:2', 'end': '3431:64b8:9d17:ea7a:1297:ffbc:ffff:fffe'}], 'gateway_ip': '3431:64b8:9d17:ea7a:1297:ffbc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3431:64b8:9d17:ea7a:1297:ffbc:0:2', 'tags': [], 'project_id': 'd01625c2d17742668d33fecad491fb9e'}} 2026-10-29 22:20:03,516 - INFO - Created VN ctest-vn4-16790115 2026-10-29 22:20:03,575 - DEBUG - VN ctest-vn4-16790115 UUID is 2911ad41-d14f-4b7a-bc45-637231ee5f9e 2026-10-29 22:20:03,844 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2911ad41-d14f-4b7a-bc45-637231ee5f9e', 'name': 'ctest-vn4-16790115', 'tenant_id': 'd01625c2d17742668d33fecad491fb9e', 'project_id': 'd01625c2d17742668d33fecad491fb9e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['9802c8bf-33c9-4b42-b15d-060eec5f8e6a', 'f12540d1-156d-4f01-ba8d-58b1327f68aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67454918', 'ctest-vn4-16790115'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67454918', 'ctest-policy1-38024533']], 'subnet_ipam': [{'subnet_cidr': '108.38.20.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3431:64b8:9d17:ea7a:1297:ffbc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-29 22:20:04,024 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-10-29 22:20:04,425 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-10-29 22:20:04,467 - DEBUG - Requesting: http://10.0.0.188:8082/domain/5805aed6-a7dd-4f0b-840e-d4f65d7cc378 2026-10-29 22:20:04,486 - DEBUG - Requesting: http://10.0.0.188:8082/project/d01625c2-d177-4266-8d33-fecad491fb9e 2026-10-29 22:20:04,581 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/2911ad41-d14f-4b7a-bc45-637231ee5f9e 2026-10-29 22:20:04,602 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/2911ad41-d14f-4b7a-bc45-637231ee5f9e 2026-10-29 22:20:04,618 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/fa0dcb2e-dff8-4897-af88-7fd9cb855095 2026-10-29 22:20:04,629 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/fa0dcb2e-dff8-4897-af88-7fd9cb855095 2026-10-29 22:20:04,640 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/5e123f25-33b5-428c-83e6-b38c76934a2a 2026-10-29 22:20:04,651 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-29 22:20:04,651 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/2911ad41-d14f-4b7a-bc45-637231ee5f9e 2026-10-29 22:20:04,665 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/fa0dcb2e-dff8-4897-af88-7fd9cb855095 2026-10-29 22:20:04,688 - INFO - Verified VN network id 12 for VN 2911ad41-d14f-4b7a-bc45-637231ee5f9e 2026-10-29 22:20:04,688 - INFO - Verifications in API Server for VN ctest-vn4-16790115 passed 2026-10-29 22:20:04,688 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/2911ad41-d14f-4b7a-bc45-637231ee5f9e 2026-10-29 22:20:04,704 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/fa0dcb2e-dff8-4897-af88-7fd9cb855095 2026-10-29 22:20:04,715 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/fa0dcb2e-dff8-4897-af88-7fd9cb855095 2026-10-29 22:20:04,729 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/5e123f25-33b5-428c-83e6-b38c76934a2a 2026-10-29 22:20:04,747 - DEBUG - Control-node 10.0.0.188 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67454918:ctest-vn4-16790115', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67454918', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2959336928355240826', 'uuid-lslong': '13566358794638614430'}, 'enable': 'true', 'created': '2026-10-29T22:20:02', 'last-modified': '2026-10-29T22:20:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.949385'} 2026-10-29 22:20:04,759 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-29 22:20:04,759 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16790115 passed 2026-10-29 22:20:04,759 - DEBUG - ====Verifying policy data for ctest-vn4-16790115 in API_Server ====== 2026-10-29 22:20:04,759 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-10-29 22:20:04,769 - DEBUG - Requesting: http://10.0.0.188:8082/domain/5805aed6-a7dd-4f0b-840e-d4f65d7cc378 2026-10-29 22:20:04,786 - DEBUG - Requesting: http://10.0.0.188:8082/project/d01625c2-d177-4266-8d33-fecad491fb9e 2026-10-29 22:20:04,874 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/2911ad41-d14f-4b7a-bc45-637231ee5f9e 2026-10-29 22:20:04,890 - DEBUG - ==>Verifying data for policy with id: 11a55776-1fb5-4a2d-82fa-d7d075e9ad01, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67454918', 'ctest-policy1-38024533'] 2026-10-29 22:20:04,890 - INFO - VN ctest-vn4-16790115 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-29 22:20:04,890 - DEBUG - Verifying the vn in opserver 2026-10-29 22:20:04,891 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67454918:ctest-vn4-16790115 virtual network link through opserver 10.0.0.188 2026-10-29 22:20:04,891 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks 2026-10-29 22:20:05,324 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks 2026-10-29 22:20:05,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67454918:ctest-vn4-16790115', 'href': 'http://10.0.0.188:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67454918:ctest-vn4-16790115?flat'} 2026-10-29 22:20:05,405 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67454918:ctest-vn4-16790115 is found in opserver 2026-10-29 22:20:05,422 - DEBUG - Do not have enough data to verify VN in agent 2026-10-29 22:20:05,434 - DEBUG - VRF ids for VN ctest-vn4-16790115: {} 2026-10-29 22:20:05,435 - DEBUG - ====Verifying data for ctest-policy1-38024533 in API_Server ====== 2026-10-29 22:20:05,435 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-10-29 22:20:05,444 - DEBUG - Requesting: http://10.0.0.188:8082/domain/5805aed6-a7dd-4f0b-840e-d4f65d7cc378 2026-10-29 22:20:05,465 - DEBUG - Requesting: http://10.0.0.188:8082/project/d01625c2-d177-4266-8d33-fecad491fb9e 2026-10-29 22:20:05,559 - DEBUG - Requesting: http://10.0.0.188:8082/network-policy/11a55776-1fb5-4a2d-82fa-d7d075e9ad01 2026-10-29 22:20:05,574 - INFO - Verified policy ctest-policy1-38024533 in API Server, Result: True 2026-10-29 22:20:05,575 - INFO - Done with setup and verification, moving onto test .. 2026-10-29 22:20:05,593 - INFO - Deleting VN ctest-vn4-16790115 2026-10-29 22:20:06,255 - DEBUG - Response for deleting network () 2026-10-29 22:20:06,255 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/fa0dcb2e-dff8-4897-af88-7fd9cb855095 2026-10-29 22:20:06,264 - DEBUG - Response Code: 404 2026-10-29 22:20:06,264 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-10-29 22:20:06,277 - DEBUG - Requesting: http://10.0.0.188:8082/domain/5805aed6-a7dd-4f0b-840e-d4f65d7cc378 2026-10-29 22:20:06,305 - DEBUG - Requesting: http://10.0.0.188:8082/project/d01625c2-d177-4266-8d33-fecad491fb9e 2026-10-29 22:20:06,417 - INFO - Validated that VN ctest-vn4-16790115 is not found in API Server 2026-10-29 22:20:06,444 - DEBUG - VN ctest-vn4-16790115 is not present in Agent 10.0.0.188 2026-10-29 22:20:06,444 - INFO - Validated that VN ctest-vn4-16790115 is not in any agent 2026-10-29 22:20:06,472 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16790115 info 2026-10-29 22:20:06,518 - INFO - Deleted policy ctest-policy1-38024533 2026-10-29 22:20:06,746 - DEBUG - policy ctest-policy1-38024533 is not found in API Server 2026-10-29 22:20:07,039 - DEBUG - No XMPP flaps were noticed during the test