2026-06-18 02:24:51,966 - INFO - Domain Default found not creating 2026-06-18 02:24:52,127 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-90503004 not found, creating it 2026-06-18 02:24:52,694 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-90503004, ID : 1acbf3f2-9221-4371-adb7-c1250f8a0a46 2026-06-18 02:24:54,344 - INFO - ================================================================================ 2026-06-18 02:24:54,344 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 02:24:55,614 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0', '10.20.0.129': '0'}, '10.0.0.240': {'10.20.0.193': '0', '10.20.0.129': '0'}} with 2026-06-18 02:24:55,614 - INFO - Initial checks done. Running the testcase now 2026-06-18 02:24:55,614 - INFO - 2026-06-18 02:24:55,614 - INFO - ================================================================================ 2026-06-18 02:24:55,615 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 02:24:55,615 - 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-06-18 02:24:56,878 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0', '10.20.0.129': '0'}, '10.0.0.240': {'10.20.0.193': '0', '10.20.0.129': '0'}} with 2026-06-18 02:24:56,878 - INFO - Initial checks done. Running the testcase now 2026-06-18 02:24:56,878 - INFO - 2026-06-18 02:24:57,262 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035, 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-90503004:ctest-vn4-50701035, 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-90503004:ctest-vn4-50701035, 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-90503004:ctest-vn4-50701035, 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-06-18 02:24:57,895 - DEBUG - Response for create_network : {'network': {'id': '6f8fa903-5593-4f5a-a48f-99111f569b0a', 'name': 'ctest-vn4-50701035', 'tenant_id': '1acbf3f292214371adb7c1250f8a0a46', 'project_id': '1acbf3f292214371adb7c1250f8a0a46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90503004', 'ctest-vn4-50701035'], 'port_security_enabled': True, 'description': ''}} 2026-06-18 02:24:58,149 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4e36728-37e6-4bfd-847a-fdfb979ed591', 'name': '', 'tenant_id': '1acbf3f292214371adb7c1250f8a0a46', 'network_id': '6f8fa903-5593-4f5a-a48f-99111f569b0a', 'ip_version': 4, 'cidr': '144.230.241.0/26', 'allocation_pools': [{'start': '144.230.241.2', 'end': '144.230.241.62'}], 'gateway_ip': '144.230.241.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.230.241.2', 'tags': [], 'project_id': '1acbf3f292214371adb7c1250f8a0a46'}} 2026-06-18 02:24:58,329 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e8d4f7b-e05d-46c0-86d7-a3bc95abb7e2', 'name': '', 'tenant_id': '1acbf3f292214371adb7c1250f8a0a46', 'network_id': '6f8fa903-5593-4f5a-a48f-99111f569b0a', 'ip_version': 6, 'cidr': '3ee0:c24a:1214:2adb:a9b7:4919::/96', 'allocation_pools': [{'start': '3ee0:c24a:1214:2adb:a9b7:4919:0:2', 'end': '3ee0:c24a:1214:2adb:a9b7:4919:ffff:fffe'}], 'gateway_ip': '3ee0:c24a:1214:2adb:a9b7:4919:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ee0:c24a:1214:2adb:a9b7:4919:0:2', 'tags': [], 'project_id': '1acbf3f292214371adb7c1250f8a0a46'}} 2026-06-18 02:24:58,364 - INFO - Created VN ctest-vn4-50701035 2026-06-18 02:24:58,374 - DEBUG - VN ctest-vn4-50701035 UUID is 6f8fa903-5593-4f5a-a48f-99111f569b0a 2026-06-18 02:24:58,569 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f8fa903-5593-4f5a-a48f-99111f569b0a', 'name': 'ctest-vn4-50701035', 'tenant_id': '1acbf3f292214371adb7c1250f8a0a46', 'project_id': '1acbf3f292214371adb7c1250f8a0a46', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b4e36728-37e6-4bfd-847a-fdfb979ed591', '2e8d4f7b-e05d-46c0-86d7-a3bc95abb7e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90503004', 'ctest-vn4-50701035'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90503004', 'ctest-policy1-73936425']], 'subnet_ipam': [{'subnet_cidr': '144.230.241.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ee0:c24a:1214:2adb:a9b7:4919::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-18 02:24:58,692 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-06-18 02:24:59,017 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-06-18 02:24:59,043 - DEBUG - Requesting: http://10.0.0.27:8082/domain/112b4fa0-b7c4-429e-b96c-45fc5d86f423 2026-06-18 02:24:59,054 - DEBUG - Requesting: http://10.0.0.27:8082/project/1acbf3f2-9221-4371-adb7-c1250f8a0a46 2026-06-18 02:24:59,152 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6f8fa903-5593-4f5a-a48f-99111f569b0a 2026-06-18 02:24:59,169 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6f8fa903-5593-4f5a-a48f-99111f569b0a 2026-06-18 02:24:59,179 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/30e77f55-8cae-4905-b7c2-2b8266564bc0 2026-06-18 02:24:59,187 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/30e77f55-8cae-4905-b7c2-2b8266564bc0 2026-06-18 02:24:59,193 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0eba8a04-2f8e-4376-8504-4467b72b83f7 2026-06-18 02:24:59,199 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 02:24:59,200 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6f8fa903-5593-4f5a-a48f-99111f569b0a 2026-06-18 02:24:59,208 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/30e77f55-8cae-4905-b7c2-2b8266564bc0 2026-06-18 02:24:59,222 - INFO - Verified VN network id 13 for VN 6f8fa903-5593-4f5a-a48f-99111f569b0a 2026-06-18 02:24:59,222 - INFO - Verifications in API Server for VN ctest-vn4-50701035 passed 2026-06-18 02:24:59,222 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6f8fa903-5593-4f5a-a48f-99111f569b0a 2026-06-18 02:24:59,233 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/30e77f55-8cae-4905-b7c2-2b8266564bc0 2026-06-18 02:24:59,240 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/30e77f55-8cae-4905-b7c2-2b8266564bc0 2026-06-18 02:24:59,247 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/0eba8a04-2f8e-4376-8504-4467b72b83f7 2026-06-18 02:24:59,258 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90503004', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8038829691665338202', 'uuid-lslong': '11857864642709068554'}, 'enable': 'true', 'created': '2026-06-18T02:24:57', 'last-modified': '2026-06-18T02:24:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.733438'} 2026-06-18 02:24:59,264 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 02:24:59,269 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90503004', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8038829691665338202', 'uuid-lslong': '11857864642709068554'}, 'enable': 'true', 'created': '2026-06-18T02:24:57', 'last-modified': '2026-06-18T02:24:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.739378'} 2026-06-18 02:24:59,274 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 02:24:59,279 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90503004', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8038829691665338202', 'uuid-lslong': '11857864642709068554'}, 'enable': 'true', 'created': '2026-06-18T02:24:57', 'last-modified': '2026-06-18T02:24:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.756854'} 2026-06-18 02:24:59,284 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 02:24:59,285 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-50701035 passed 2026-06-18 02:24:59,285 - DEBUG - ====Verifying policy data for ctest-vn4-50701035 in API_Server ====== 2026-06-18 02:24:59,285 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-06-18 02:24:59,291 - DEBUG - Requesting: http://10.0.0.27:8082/domain/112b4fa0-b7c4-429e-b96c-45fc5d86f423 2026-06-18 02:24:59,302 - DEBUG - Requesting: http://10.0.0.27:8082/project/1acbf3f2-9221-4371-adb7-c1250f8a0a46 2026-06-18 02:24:59,404 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6f8fa903-5593-4f5a-a48f-99111f569b0a 2026-06-18 02:24:59,414 - DEBUG - ==>Verifying data for policy with id: 155e2ed1-e4cf-4bc3-9615-6426a4f43a57, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90503004', 'ctest-policy1-73936425'] 2026-06-18 02:24:59,415 - INFO - VN ctest-vn4-50701035 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-18 02:24:59,415 - DEBUG - Verifying the vn in opserver 2026-06-18 02:24:59,415 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035 virtual network link through opserver 10.0.0.27 2026-06-18 02:24:59,415 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-06-18 02:24:59,764 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-06-18 02:24:59,818 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035?flat'} 2026-06-18 02:24:59,818 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035 virtual network link through opserver 10.0.0.33 2026-06-18 02:24:59,818 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-18 02:25:00,148 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-18 02:25:00,210 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035?flat'} 2026-06-18 02:25:00,210 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035 virtual network link through opserver 10.0.0.23 2026-06-18 02:25:00,210 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-06-18 02:25:00,572 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-06-18 02:25:00,627 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035?flat'} 2026-06-18 02:25:00,627 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90503004:ctest-vn4-50701035 is found in opserver 2026-06-18 02:25:00,651 - DEBUG - Do not have enough data to verify VN in agent 2026-06-18 02:25:00,661 - DEBUG - VRF ids for VN ctest-vn4-50701035: {} 2026-06-18 02:25:00,661 - DEBUG - ====Verifying data for ctest-policy1-73936425 in API_Server ====== 2026-06-18 02:25:00,661 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-06-18 02:25:00,667 - DEBUG - Requesting: http://10.0.0.27:8082/domain/112b4fa0-b7c4-429e-b96c-45fc5d86f423 2026-06-18 02:25:00,680 - DEBUG - Requesting: http://10.0.0.27:8082/project/1acbf3f2-9221-4371-adb7-c1250f8a0a46 2026-06-18 02:25:00,769 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/155e2ed1-e4cf-4bc3-9615-6426a4f43a57 2026-06-18 02:25:00,783 - INFO - Verified policy ctest-policy1-73936425 in API Server, Result: True 2026-06-18 02:25:00,783 - INFO - Done with setup and verification, moving onto test .. 2026-06-18 02:25:00,794 - INFO - Deleting VN ctest-vn4-50701035 2026-06-18 02:25:01,027 - DEBUG - Response for deleting network () 2026-06-18 02:25:01,027 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/30e77f55-8cae-4905-b7c2-2b8266564bc0 2026-06-18 02:25:01,036 - DEBUG - Response Code: 404 2026-06-18 02:25:01,037 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-06-18 02:25:01,047 - DEBUG - Requesting: http://10.0.0.27:8082/domain/112b4fa0-b7c4-429e-b96c-45fc5d86f423 2026-06-18 02:25:01,105 - DEBUG - Requesting: http://10.0.0.27:8082/project/1acbf3f2-9221-4371-adb7-c1250f8a0a46 2026-06-18 02:25:01,222 - INFO - Validated that VN ctest-vn4-50701035 is not found in API Server 2026-06-18 02:25:01,235 - DEBUG - VN ctest-vn4-50701035 is not present in Agent 10.0.0.130 2026-06-18 02:25:01,248 - DEBUG - VN ctest-vn4-50701035 is not present in Agent 10.0.0.240 2026-06-18 02:25:01,248 - INFO - Validated that VN ctest-vn4-50701035 is not in any agent 2026-06-18 02:25:01,292 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-50701035 info 2026-06-18 02:25:01,327 - INFO - Deleted policy ctest-policy1-73936425 2026-06-18 02:25:01,512 - DEBUG - policy ctest-policy1-73936425 is not found in API Server 2026-06-18 02:25:02,806 - DEBUG - No XMPP flaps were noticed during the test