2026-10-05 12:57:03,186 - INFO - Domain Default found not creating 2026-10-05 12:57:03,332 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05163056 not found, creating it 2026-10-05 12:57:03,752 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05163056, ID : 205216c0-e8ea-4bea-be46-11e058aa8cbd 2026-10-05 12:57:05,315 - INFO - ================================================================================ 2026-10-05 12:57:05,315 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-05 12:57:05,572 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-10-05 12:57:05,572 - INFO - Initial checks done. Running the testcase now 2026-10-05 12:57:05,572 - INFO - 2026-10-05 12:57:05,572 - INFO - ================================================================================ 2026-10-05 12:57:05,572 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-05 12:57:05,572 - 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-05 12:57:05,860 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-10-05 12:57:05,860 - INFO - Initial checks done. Running the testcase now 2026-10-05 12:57:05,860 - INFO - 2026-10-05 12:57:06,282 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05163056:ctest-vn4-55098431, 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-05163056:ctest-vn4-55098431, 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-05163056:ctest-vn4-55098431, 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-05163056:ctest-vn4-55098431, 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-05 12:57:06,773 - DEBUG - Response for create_network : {'network': {'id': '11c09f6e-7f46-4d71-9cf0-1a2db226cd4c', 'name': 'ctest-vn4-55098431', 'tenant_id': '205216c0e8ea4beabe4611e058aa8cbd', 'project_id': '205216c0e8ea4beabe4611e058aa8cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05163056', 'ctest-vn4-55098431'], 'port_security_enabled': True, 'description': ''}} 2026-10-05 12:57:06,965 - DEBUG - Response for create_subnet : {'subnet': {'id': '0499903c-63bd-4261-99d2-e8910e9c8101', 'name': '', 'tenant_id': '205216c0e8ea4beabe4611e058aa8cbd', 'network_id': '11c09f6e-7f46-4d71-9cf0-1a2db226cd4c', 'ip_version': 4, 'cidr': '202.10.54.192/26', 'allocation_pools': [{'start': '202.10.54.194', 'end': '202.10.54.254'}], 'gateway_ip': '202.10.54.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.10.54.194', 'tags': [], 'project_id': '205216c0e8ea4beabe4611e058aa8cbd'}} 2026-10-05 12:57:07,176 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b369929-ae58-49d5-98b6-3b6491e5a3ac', 'name': '', 'tenant_id': '205216c0e8ea4beabe4611e058aa8cbd', 'network_id': '11c09f6e-7f46-4d71-9cf0-1a2db226cd4c', 'ip_version': 6, 'cidr': '29f4:663f:108e:4e4b:b3a1:601d::/96', 'allocation_pools': [{'start': '29f4:663f:108e:4e4b:b3a1:601d:0:2', 'end': '29f4:663f:108e:4e4b:b3a1:601d:ffff:fffe'}], 'gateway_ip': '29f4:663f:108e:4e4b:b3a1:601d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29f4:663f:108e:4e4b:b3a1:601d:0:2', 'tags': [], 'project_id': '205216c0e8ea4beabe4611e058aa8cbd'}} 2026-10-05 12:57:07,194 - INFO - Created VN ctest-vn4-55098431 2026-10-05 12:57:07,243 - DEBUG - VN ctest-vn4-55098431 UUID is 11c09f6e-7f46-4d71-9cf0-1a2db226cd4c 2026-10-05 12:57:07,418 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11c09f6e-7f46-4d71-9cf0-1a2db226cd4c', 'name': 'ctest-vn4-55098431', 'tenant_id': '205216c0e8ea4beabe4611e058aa8cbd', 'project_id': '205216c0e8ea4beabe4611e058aa8cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['0499903c-63bd-4261-99d2-e8910e9c8101', '0b369929-ae58-49d5-98b6-3b6491e5a3ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05163056', 'ctest-vn4-55098431'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05163056', 'ctest-policy1-97952856']], 'subnet_ipam': [{'subnet_cidr': '202.10.54.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '29f4:663f:108e:4e4b:b3a1:601d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-05 12:57:07,579 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-05 12:57:07,936 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-05 12:57:08,303 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c5cc6312-bf1c-48ed-8e93-fab234f39675 2026-10-05 12:57:08,313 - DEBUG - Requesting: http://10.0.0.50:8082/project/205216c0-e8ea-4bea-be46-11e058aa8cbd 2026-10-05 12:57:08,391 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11c09f6e-7f46-4d71-9cf0-1a2db226cd4c 2026-10-05 12:57:08,402 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11c09f6e-7f46-4d71-9cf0-1a2db226cd4c 2026-10-05 12:57:08,410 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b9f507eb-9cb3-4af7-a547-87a28abe52fc 2026-10-05 12:57:08,415 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b9f507eb-9cb3-4af7-a547-87a28abe52fc 2026-10-05 12:57:08,420 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/50a66bc5-9014-4cc5-8213-a16f7e50fb4d 2026-10-05 12:57:08,424 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-05 12:57:08,424 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11c09f6e-7f46-4d71-9cf0-1a2db226cd4c 2026-10-05 12:57:08,432 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b9f507eb-9cb3-4af7-a547-87a28abe52fc 2026-10-05 12:57:08,442 - INFO - Verified VN network id 12 for VN 11c09f6e-7f46-4d71-9cf0-1a2db226cd4c 2026-10-05 12:57:08,442 - INFO - Verifications in API Server for VN ctest-vn4-55098431 passed 2026-10-05 12:57:08,442 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11c09f6e-7f46-4d71-9cf0-1a2db226cd4c 2026-10-05 12:57:08,451 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b9f507eb-9cb3-4af7-a547-87a28abe52fc 2026-10-05 12:57:08,456 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b9f507eb-9cb3-4af7-a547-87a28abe52fc 2026-10-05 12:57:08,460 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/50a66bc5-9014-4cc5-8213-a16f7e50fb4d 2026-10-05 12:57:08,471 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05163056:ctest-vn4-55098431', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05163056', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1279197591103753585', 'uuid-lslong': '11308567447892053324'}, 'enable': 'true', 'created': '2026-10-05T12:57:06', 'last-modified': '2026-10-05T12:57:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.081457'} 2026-10-05 12:57:08,476 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-05 12:57:08,477 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55098431 passed 2026-10-05 12:57:08,477 - DEBUG - ====Verifying policy data for ctest-vn4-55098431 in API_Server ====== 2026-10-05 12:57:08,477 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-05 12:57:08,480 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c5cc6312-bf1c-48ed-8e93-fab234f39675 2026-10-05 12:57:08,488 - DEBUG - Requesting: http://10.0.0.50:8082/project/205216c0-e8ea-4bea-be46-11e058aa8cbd 2026-10-05 12:57:08,555 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/11c09f6e-7f46-4d71-9cf0-1a2db226cd4c 2026-10-05 12:57:08,563 - DEBUG - ==>Verifying data for policy with id: eeb40fd1-1eee-4582-ba8f-4e3c9e939dd1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05163056', 'ctest-policy1-97952856'] 2026-10-05 12:57:08,563 - INFO - VN ctest-vn4-55098431 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-05 12:57:08,563 - DEBUG - Verifying the vn in opserver 2026-10-05 12:57:08,563 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05163056:ctest-vn4-55098431 virtual network link through opserver 10.0.0.50 2026-10-05 12:57:08,563 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-10-05 12:57:09,036 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-10-05 12:57:09,087 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05163056:ctest-vn4-55098431', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05163056:ctest-vn4-55098431?flat'} 2026-10-05 12:57:09,087 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05163056:ctest-vn4-55098431 is found in opserver 2026-10-05 12:57:09,095 - DEBUG - Do not have enough data to verify VN in agent 2026-10-05 12:57:09,100 - DEBUG - VRF ids for VN ctest-vn4-55098431: {} 2026-10-05 12:57:09,100 - DEBUG - ====Verifying data for ctest-policy1-97952856 in API_Server ====== 2026-10-05 12:57:09,100 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-05 12:57:09,104 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c5cc6312-bf1c-48ed-8e93-fab234f39675 2026-10-05 12:57:09,112 - DEBUG - Requesting: http://10.0.0.50:8082/project/205216c0-e8ea-4bea-be46-11e058aa8cbd 2026-10-05 12:57:09,177 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/eeb40fd1-1eee-4582-ba8f-4e3c9e939dd1 2026-10-05 12:57:09,184 - INFO - Verified policy ctest-policy1-97952856 in API Server, Result: True 2026-10-05 12:57:09,184 - INFO - Done with setup and verification, moving onto test .. 2026-10-05 12:57:09,191 - INFO - Deleting VN ctest-vn4-55098431 2026-10-05 12:57:09,292 - DEBUG - Response for deleting network () 2026-10-05 12:57:09,292 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b9f507eb-9cb3-4af7-a547-87a28abe52fc 2026-10-05 12:57:09,296 - DEBUG - Response Code: 404 2026-10-05 12:57:09,296 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-10-05 12:57:09,301 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c5cc6312-bf1c-48ed-8e93-fab234f39675 2026-10-05 12:57:09,350 - DEBUG - Requesting: http://10.0.0.50:8082/project/205216c0-e8ea-4bea-be46-11e058aa8cbd 2026-10-05 12:57:09,414 - INFO - Validated that VN ctest-vn4-55098431 is not found in API Server 2026-10-05 12:57:09,424 - DEBUG - VN ctest-vn4-55098431 is not present in Agent 10.0.0.50 2026-10-05 12:57:09,424 - INFO - Validated that VN ctest-vn4-55098431 is not in any agent 2026-10-05 12:57:09,437 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55098431 info 2026-10-05 12:57:09,456 - INFO - Deleted policy ctest-policy1-97952856 2026-10-05 12:57:09,618 - DEBUG - policy ctest-policy1-97952856 is not found in API Server 2026-10-05 12:57:09,875 - DEBUG - No XMPP flaps were noticed during the test