2026-08-20 13:12:46,940 - INFO - Domain Default found not creating 2026-08-20 13:12:47,092 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-54283319 not found, creating it 2026-08-20 13:12:47,587 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-54283319, ID : 284837d8-3ded-4a53-8849-b5082ae7ce7a 2026-08-20 13:12:49,226 - INFO - ================================================================================ 2026-08-20 13:12:49,226 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 13:12:49,509 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-08-20 13:12:49,509 - INFO - Initial checks done. Running the testcase now 2026-08-20 13:12:49,509 - INFO - 2026-08-20 13:12:49,509 - INFO - ================================================================================ 2026-08-20 13:12:49,509 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 13:12:49,510 - 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-08-20 13:12:49,789 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-08-20 13:12:49,790 - INFO - Initial checks done. Running the testcase now 2026-08-20 13:12:49,790 - INFO - 2026-08-20 13:12:50,180 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54283319:ctest-vn4-74724417, 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-54283319:ctest-vn4-74724417, 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-54283319:ctest-vn4-74724417, 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-54283319:ctest-vn4-74724417, 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-08-20 13:12:50,707 - DEBUG - Response for create_network : {'network': {'id': '1d5cf3e3-5de0-4bc8-b1c9-11ad1a5b1069', 'name': 'ctest-vn4-74724417', 'tenant_id': '284837d83ded4a538849b5082ae7ce7a', 'project_id': '284837d83ded4a538849b5082ae7ce7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54283319', 'ctest-vn4-74724417'], 'port_security_enabled': True, 'description': ''}} 2026-08-20 13:12:50,909 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee8ad70b-f282-4917-a8a6-b1d801eb5b3a', 'name': '', 'tenant_id': '284837d83ded4a538849b5082ae7ce7a', 'network_id': '1d5cf3e3-5de0-4bc8-b1c9-11ad1a5b1069', 'ip_version': 4, 'cidr': '41.77.199.128/26', 'allocation_pools': [{'start': '41.77.199.130', 'end': '41.77.199.190'}], 'gateway_ip': '41.77.199.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.77.199.130', 'tags': [], 'project_id': '284837d83ded4a538849b5082ae7ce7a'}} 2026-08-20 13:12:51,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '68fc7504-b5db-4c98-bb7a-272c66b40503', 'name': '', 'tenant_id': '284837d83ded4a538849b5082ae7ce7a', 'network_id': '1d5cf3e3-5de0-4bc8-b1c9-11ad1a5b1069', 'ip_version': 6, 'cidr': '260a:9249:29cd:85b8:f823:6f4e::/96', 'allocation_pools': [{'start': '260a:9249:29cd:85b8:f823:6f4e:0:2', 'end': '260a:9249:29cd:85b8:f823:6f4e:ffff:fffe'}], 'gateway_ip': '260a:9249:29cd:85b8:f823:6f4e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '260a:9249:29cd:85b8:f823:6f4e:0:2', 'tags': [], 'project_id': '284837d83ded4a538849b5082ae7ce7a'}} 2026-08-20 13:12:51,076 - INFO - Created VN ctest-vn4-74724417 2026-08-20 13:12:51,128 - DEBUG - VN ctest-vn4-74724417 UUID is 1d5cf3e3-5de0-4bc8-b1c9-11ad1a5b1069 2026-08-20 13:12:51,351 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d5cf3e3-5de0-4bc8-b1c9-11ad1a5b1069', 'name': 'ctest-vn4-74724417', 'tenant_id': '284837d83ded4a538849b5082ae7ce7a', 'project_id': '284837d83ded4a538849b5082ae7ce7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee8ad70b-f282-4917-a8a6-b1d801eb5b3a', '68fc7504-b5db-4c98-bb7a-272c66b40503'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54283319', 'ctest-vn4-74724417'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54283319', 'ctest-policy1-33926829']], 'subnet_ipam': [{'subnet_cidr': '41.77.199.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '260a:9249:29cd:85b8:f823:6f4e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-20 13:12:51,516 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-20 13:12:51,852 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-20 13:12:51,884 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6eeac589-f333-49ff-9097-325edeaeeec3 2026-08-20 13:12:51,901 - DEBUG - Requesting: http://10.0.0.50:8082/project/284837d8-3ded-4a53-8849-b5082ae7ce7a 2026-08-20 13:12:51,982 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d5cf3e3-5de0-4bc8-b1c9-11ad1a5b1069 2026-08-20 13:12:51,997 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d5cf3e3-5de0-4bc8-b1c9-11ad1a5b1069 2026-08-20 13:12:52,011 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f06e833d-7760-4b46-aaed-80efaeba1063 2026-08-20 13:12:52,021 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f06e833d-7760-4b46-aaed-80efaeba1063 2026-08-20 13:12:52,031 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4a7865d4-abe0-42a0-87a1-a493b03ddfbe 2026-08-20 13:12:52,040 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 13:12:52,040 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d5cf3e3-5de0-4bc8-b1c9-11ad1a5b1069 2026-08-20 13:12:52,051 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f06e833d-7760-4b46-aaed-80efaeba1063 2026-08-20 13:12:52,067 - INFO - Verified VN network id 11 for VN 1d5cf3e3-5de0-4bc8-b1c9-11ad1a5b1069 2026-08-20 13:12:52,067 - INFO - Verifications in API Server for VN ctest-vn4-74724417 passed 2026-08-20 13:12:52,068 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d5cf3e3-5de0-4bc8-b1c9-11ad1a5b1069 2026-08-20 13:12:52,079 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f06e833d-7760-4b46-aaed-80efaeba1063 2026-08-20 13:12:52,088 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f06e833d-7760-4b46-aaed-80efaeba1063 2026-08-20 13:12:52,096 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4a7865d4-abe0-42a0-87a1-a493b03ddfbe 2026-08-20 13:12:52,111 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54283319:ctest-vn4-74724417', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-54283319', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2115834082815396808', 'uuid-lslong': '12810790050201276521'}, 'enable': 'true', 'created': '2026-08-20T13:12:50', 'last-modified': '2026-08-20T13:12:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.802662'} 2026-08-20 13:12:52,118 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 13:12:52,118 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74724417 passed 2026-08-20 13:12:52,118 - DEBUG - ====Verifying policy data for ctest-vn4-74724417 in API_Server ====== 2026-08-20 13:12:52,118 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-20 13:12:52,126 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6eeac589-f333-49ff-9097-325edeaeeec3 2026-08-20 13:12:52,141 - DEBUG - Requesting: http://10.0.0.50:8082/project/284837d8-3ded-4a53-8849-b5082ae7ce7a 2026-08-20 13:12:52,218 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1d5cf3e3-5de0-4bc8-b1c9-11ad1a5b1069 2026-08-20 13:12:52,231 - DEBUG - ==>Verifying data for policy with id: db507ec8-2332-4d6a-932a-6c2d0285e671, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54283319', 'ctest-policy1-33926829'] 2026-08-20 13:12:52,231 - INFO - VN ctest-vn4-74724417 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-20 13:12:52,231 - DEBUG - Verifying the vn in opserver 2026-08-20 13:12:52,231 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54283319:ctest-vn4-74724417 virtual network link through opserver 10.0.0.50 2026-08-20 13:12:52,231 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-20 13:12:52,552 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-20 13:12:52,612 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54283319:ctest-vn4-74724417', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54283319:ctest-vn4-74724417?flat'} 2026-08-20 13:12:52,612 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54283319:ctest-vn4-74724417 is found in opserver 2026-08-20 13:12:52,622 - DEBUG - Do not have enough data to verify VN in agent 2026-08-20 13:12:52,627 - DEBUG - VRF ids for VN ctest-vn4-74724417: {} 2026-08-20 13:12:52,627 - DEBUG - ====Verifying data for ctest-policy1-33926829 in API_Server ====== 2026-08-20 13:12:52,628 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-20 13:12:52,635 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6eeac589-f333-49ff-9097-325edeaeeec3 2026-08-20 13:12:52,649 - DEBUG - Requesting: http://10.0.0.50:8082/project/284837d8-3ded-4a53-8849-b5082ae7ce7a 2026-08-20 13:12:52,721 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/db507ec8-2332-4d6a-932a-6c2d0285e671 2026-08-20 13:12:52,732 - INFO - Verified policy ctest-policy1-33926829 in API Server, Result: True 2026-08-20 13:12:52,733 - INFO - Done with setup and verification, moving onto test .. 2026-08-20 13:12:52,741 - INFO - Deleting VN ctest-vn4-74724417 2026-08-20 13:12:52,871 - DEBUG - Response for deleting network () 2026-08-20 13:12:52,872 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f06e833d-7760-4b46-aaed-80efaeba1063 2026-08-20 13:12:52,877 - DEBUG - Response Code: 404 2026-08-20 13:12:52,877 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-20 13:12:52,883 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6eeac589-f333-49ff-9097-325edeaeeec3 2026-08-20 13:12:52,937 - DEBUG - Requesting: http://10.0.0.50:8082/project/284837d8-3ded-4a53-8849-b5082ae7ce7a 2026-08-20 13:12:53,010 - INFO - Validated that VN ctest-vn4-74724417 is not found in API Server 2026-08-20 13:12:53,020 - DEBUG - VN ctest-vn4-74724417 is not present in Agent 10.0.0.50 2026-08-20 13:12:53,020 - INFO - Validated that VN ctest-vn4-74724417 is not in any agent 2026-08-20 13:12:53,034 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74724417 info 2026-08-20 13:12:53,063 - INFO - Deleted policy ctest-policy1-33926829 2026-08-20 13:12:53,236 - DEBUG - policy ctest-policy1-33926829 is not found in API Server 2026-08-20 13:12:53,489 - DEBUG - No XMPP flaps were noticed during the test 2026-08-20 13:12:53,489 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-20 13:12:53,489 - INFO - -------------------------------------------------------------------------------- 2026-08-20 13:12:53,781 - DEBUG - No XMPP flaps were noticed during the test 2026-08-20 13:12:53,781 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-20 13:12:53,781 - INFO - -------------------------------------------------------------------------------- 2026-08-20 13:12:54,521 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-54283319, ID : 284837d8-3ded-4a53-8849-b5082ae7ce7a