2026-05-27 23:17:03,652 - INFO - Domain Default found not creating 2026-05-27 23:17:03,813 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82431663 not found, creating it 2026-05-27 23:17:04,310 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82431663, ID : 747724b0-dc5e-4c77-aa55-e6bb205fd56c 2026-05-27 23:17:05,943 - INFO - ================================================================================ 2026-05-27 23:17:05,943 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-27 23:17:06,198 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-05-27 23:17:06,198 - INFO - Initial checks done. Running the testcase now 2026-05-27 23:17:06,198 - INFO - 2026-05-27 23:17:06,198 - INFO - ================================================================================ 2026-05-27 23:17:06,198 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-27 23:17:06,199 - 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-27 23:17:06,485 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-05-27 23:17:06,485 - INFO - Initial checks done. Running the testcase now 2026-05-27 23:17:06,485 - INFO - 2026-05-27 23:17:06,888 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82431663:ctest-vn4-89200657, 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-82431663:ctest-vn4-89200657, 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-82431663:ctest-vn4-89200657, 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-82431663:ctest-vn4-89200657, 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-27 23:17:07,412 - DEBUG - Response for create_network : {'network': {'id': '9110857f-a4f0-44cf-be0d-4fa6d38cd6c9', 'name': 'ctest-vn4-89200657', 'tenant_id': '747724b0dc5e4c77aa55e6bb205fd56c', 'project_id': '747724b0dc5e4c77aa55e6bb205fd56c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82431663', 'ctest-vn4-89200657'], 'port_security_enabled': True, 'description': ''}} 2026-05-27 23:17:07,634 - DEBUG - Response for create_subnet : {'subnet': {'id': '59035db5-074f-42e8-a82b-a3a53374dd26', 'name': '', 'tenant_id': '747724b0dc5e4c77aa55e6bb205fd56c', 'network_id': '9110857f-a4f0-44cf-be0d-4fa6d38cd6c9', 'ip_version': 4, 'cidr': '84.62.168.192/26', 'allocation_pools': [{'start': '84.62.168.194', 'end': '84.62.168.254'}], 'gateway_ip': '84.62.168.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.62.168.194', 'tags': [], 'project_id': '747724b0dc5e4c77aa55e6bb205fd56c'}} 2026-05-27 23:17:07,832 - DEBUG - Response for create_subnet : {'subnet': {'id': '69ca76eb-dec7-468e-a23a-993872401c61', 'name': '', 'tenant_id': '747724b0dc5e4c77aa55e6bb205fd56c', 'network_id': '9110857f-a4f0-44cf-be0d-4fa6d38cd6c9', 'ip_version': 6, 'cidr': '2be9:1012:f0fb:3b04:8e93:e632::/96', 'allocation_pools': [{'start': '2be9:1012:f0fb:3b04:8e93:e632:0:2', 'end': '2be9:1012:f0fb:3b04:8e93:e632:ffff:fffe'}], 'gateway_ip': '2be9:1012:f0fb:3b04:8e93:e632:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2be9:1012:f0fb:3b04:8e93:e632:0:2', 'tags': [], 'project_id': '747724b0dc5e4c77aa55e6bb205fd56c'}} 2026-05-27 23:17:07,854 - INFO - Created VN ctest-vn4-89200657 2026-05-27 23:17:07,909 - DEBUG - VN ctest-vn4-89200657 UUID is 9110857f-a4f0-44cf-be0d-4fa6d38cd6c9 2026-05-27 23:17:08,120 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9110857f-a4f0-44cf-be0d-4fa6d38cd6c9', 'name': 'ctest-vn4-89200657', 'tenant_id': '747724b0dc5e4c77aa55e6bb205fd56c', 'project_id': '747724b0dc5e4c77aa55e6bb205fd56c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59035db5-074f-42e8-a82b-a3a53374dd26', '69ca76eb-dec7-468e-a23a-993872401c61'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82431663', 'ctest-vn4-89200657'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82431663', 'ctest-policy1-67569074']], 'subnet_ipam': [{'subnet_cidr': '84.62.168.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2be9:1012:f0fb:3b04:8e93:e632::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-27 23:17:08,280 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-27 23:17:08,616 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-27 23:17:08,648 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5af056cc-88a5-4d79-95ab-d646223dbdce 2026-05-27 23:17:08,662 - DEBUG - Requesting: http://10.0.0.141:8082/project/747724b0-dc5e-4c77-aa55-e6bb205fd56c 2026-05-27 23:17:08,745 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9110857f-a4f0-44cf-be0d-4fa6d38cd6c9 2026-05-27 23:17:08,760 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9110857f-a4f0-44cf-be0d-4fa6d38cd6c9 2026-05-27 23:17:08,770 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/5c693481-3b84-4af8-b271-08301a5a92ae 2026-05-27 23:17:08,778 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/5c693481-3b84-4af8-b271-08301a5a92ae 2026-05-27 23:17:08,785 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/7a6d2d33-3b0e-4545-b772-260ea3128aab 2026-05-27 23:17:08,792 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 23:17:08,792 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9110857f-a4f0-44cf-be0d-4fa6d38cd6c9 2026-05-27 23:17:08,801 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/5c693481-3b84-4af8-b271-08301a5a92ae 2026-05-27 23:17:08,816 - INFO - Verified VN network id 11 for VN 9110857f-a4f0-44cf-be0d-4fa6d38cd6c9 2026-05-27 23:17:08,816 - INFO - Verifications in API Server for VN ctest-vn4-89200657 passed 2026-05-27 23:17:08,816 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9110857f-a4f0-44cf-be0d-4fa6d38cd6c9 2026-05-27 23:17:08,826 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/5c693481-3b84-4af8-b271-08301a5a92ae 2026-05-27 23:17:08,833 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/5c693481-3b84-4af8-b271-08301a5a92ae 2026-05-27 23:17:08,839 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/7a6d2d33-3b0e-4545-b772-260ea3128aab 2026-05-27 23:17:08,850 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82431663:ctest-vn4-89200657', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82431663', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10453001518401471695', 'uuid-lslong': '13694689619835934409'}, 'enable': 'true', 'created': '2026-05-27T23:17:07', 'last-modified': '2026-05-27T23:17:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.754753'} 2026-05-27 23:17:08,857 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 23:17:08,857 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89200657 passed 2026-05-27 23:17:08,857 - DEBUG - ====Verifying policy data for ctest-vn4-89200657 in API_Server ====== 2026-05-27 23:17:08,857 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-27 23:17:08,863 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5af056cc-88a5-4d79-95ab-d646223dbdce 2026-05-27 23:17:08,874 - DEBUG - Requesting: http://10.0.0.141:8082/project/747724b0-dc5e-4c77-aa55-e6bb205fd56c 2026-05-27 23:17:08,948 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9110857f-a4f0-44cf-be0d-4fa6d38cd6c9 2026-05-27 23:17:08,958 - DEBUG - ==>Verifying data for policy with id: 2b6cef91-39bb-424b-84a3-7bd945f466c2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82431663', 'ctest-policy1-67569074'] 2026-05-27 23:17:08,958 - INFO - VN ctest-vn4-89200657 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-27 23:17:08,958 - DEBUG - Verifying the vn in opserver 2026-05-27 23:17:08,958 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82431663:ctest-vn4-89200657 virtual network link through opserver 10.0.0.141 2026-05-27 23:17:08,958 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-05-27 23:17:09,304 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-05-27 23:17:09,370 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82431663:ctest-vn4-89200657', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82431663:ctest-vn4-89200657?flat'} 2026-05-27 23:17:09,370 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82431663:ctest-vn4-89200657 is found in opserver 2026-05-27 23:17:09,381 - DEBUG - Do not have enough data to verify VN in agent 2026-05-27 23:17:09,386 - DEBUG - VRF ids for VN ctest-vn4-89200657: {} 2026-05-27 23:17:09,387 - DEBUG - ====Verifying data for ctest-policy1-67569074 in API_Server ====== 2026-05-27 23:17:09,387 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-27 23:17:09,393 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5af056cc-88a5-4d79-95ab-d646223dbdce 2026-05-27 23:17:09,407 - DEBUG - Requesting: http://10.0.0.141:8082/project/747724b0-dc5e-4c77-aa55-e6bb205fd56c 2026-05-27 23:17:09,481 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/2b6cef91-39bb-424b-84a3-7bd945f466c2 2026-05-27 23:17:09,490 - INFO - Verified policy ctest-policy1-67569074 in API Server, Result: True 2026-05-27 23:17:09,491 - INFO - Done with setup and verification, moving onto test .. 2026-05-27 23:17:09,498 - INFO - Deleting VN ctest-vn4-89200657 2026-05-27 23:17:09,615 - DEBUG - Response for deleting network () 2026-05-27 23:17:09,615 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/5c693481-3b84-4af8-b271-08301a5a92ae 2026-05-27 23:17:09,620 - DEBUG - Response Code: 404 2026-05-27 23:17:09,620 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-27 23:17:09,626 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5af056cc-88a5-4d79-95ab-d646223dbdce 2026-05-27 23:17:09,678 - DEBUG - Requesting: http://10.0.0.141:8082/project/747724b0-dc5e-4c77-aa55-e6bb205fd56c 2026-05-27 23:17:09,749 - INFO - Validated that VN ctest-vn4-89200657 is not found in API Server 2026-05-27 23:17:09,759 - DEBUG - VN ctest-vn4-89200657 is not present in Agent 10.0.0.141 2026-05-27 23:17:09,759 - INFO - Validated that VN ctest-vn4-89200657 is not in any agent 2026-05-27 23:17:09,772 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89200657 info 2026-05-27 23:17:09,796 - INFO - Deleted policy ctest-policy1-67569074 2026-05-27 23:17:09,960 - DEBUG - policy ctest-policy1-67569074 is not found in API Server 2026-05-27 23:17:10,218 - DEBUG - No XMPP flaps were noticed during the test
2026-05-27 23:17:10,218 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-27 23:17:10,218 - INFO - -------------------------------------------------------------------------------- 2026-05-27 23:17:10,505 - DEBUG - No XMPP flaps were noticed during the test
2026-05-27 23:17:10,505 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-05-27 23:17:10,505 - INFO - -------------------------------------------------------------------------------- 2026-05-27 23:17:11,233 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-82431663, ID : 747724b0-dc5e-4c77-aa55-e6bb205fd56c