2026-08-20 19:33:40,563 - INFO - Domain Default found not creating 2026-08-20 19:33:40,754 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77752406 not found, creating it 2026-08-20 19:33:41,285 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77752406, ID : 956fe7e7-ea1c-410e-8c0e-743abae666f5 2026-08-20 19:33:42,933 - INFO - ================================================================================ 2026-08-20 19:33:42,933 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 19:33:43,197 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.254': '0'}} with 2026-08-20 19:33:43,197 - INFO - Initial checks done. Running the testcase now 2026-08-20 19:33:43,198 - INFO - 2026-08-20 19:33:43,198 - INFO - ================================================================================ 2026-08-20 19:33:43,198 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 19:33:43,198 - 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 19:33:43,488 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.254': '0'}} with 2026-08-20 19:33:43,488 - INFO - Initial checks done. Running the testcase now 2026-08-20 19:33:43,489 - INFO - 2026-08-20 19:33:43,914 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77752406:ctest-vn4-38983813, 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-77752406:ctest-vn4-38983813, 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-77752406:ctest-vn4-38983813, 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-77752406:ctest-vn4-38983813, 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 19:33:44,454 - DEBUG - Response for create_network : {'network': {'id': 'ae5011bc-7a8d-4ae6-87b2-912a7fe94c91', 'name': 'ctest-vn4-38983813', 'tenant_id': '956fe7e7ea1c410e8c0e743abae666f5', 'project_id': '956fe7e7ea1c410e8c0e743abae666f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77752406', 'ctest-vn4-38983813'], 'port_security_enabled': True, 'description': ''}} 2026-08-20 19:33:44,639 - DEBUG - Response for create_subnet : {'subnet': {'id': '4226f103-579d-4569-8f0b-fc3cd93fa118', 'name': '', 'tenant_id': '956fe7e7ea1c410e8c0e743abae666f5', 'network_id': 'ae5011bc-7a8d-4ae6-87b2-912a7fe94c91', 'ip_version': 4, 'cidr': '105.165.234.128/26', 'allocation_pools': [{'start': '105.165.234.130', 'end': '105.165.234.190'}], 'gateway_ip': '105.165.234.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.165.234.130', 'tags': [], 'project_id': '956fe7e7ea1c410e8c0e743abae666f5'}} 2026-08-20 19:33:44,821 - DEBUG - Response for create_subnet : {'subnet': {'id': '178b832e-a23b-40ed-b8bd-c2c534a34926', 'name': '', 'tenant_id': '956fe7e7ea1c410e8c0e743abae666f5', 'network_id': 'ae5011bc-7a8d-4ae6-87b2-912a7fe94c91', 'ip_version': 6, 'cidr': '394e:2212:34f6:6e47:362c:3c3f::/96', 'allocation_pools': [{'start': '394e:2212:34f6:6e47:362c:3c3f:0:2', 'end': '394e:2212:34f6:6e47:362c:3c3f:ffff:fffe'}], 'gateway_ip': '394e:2212:34f6:6e47:362c:3c3f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '394e:2212:34f6:6e47:362c:3c3f:0:2', 'tags': [], 'project_id': '956fe7e7ea1c410e8c0e743abae666f5'}} 2026-08-20 19:33:44,844 - INFO - Created VN ctest-vn4-38983813 2026-08-20 19:33:44,898 - DEBUG - VN ctest-vn4-38983813 UUID is ae5011bc-7a8d-4ae6-87b2-912a7fe94c91 2026-08-20 19:33:45,143 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae5011bc-7a8d-4ae6-87b2-912a7fe94c91', 'name': 'ctest-vn4-38983813', 'tenant_id': '956fe7e7ea1c410e8c0e743abae666f5', 'project_id': '956fe7e7ea1c410e8c0e743abae666f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4226f103-579d-4569-8f0b-fc3cd93fa118', '178b832e-a23b-40ed-b8bd-c2c534a34926'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77752406', 'ctest-vn4-38983813'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77752406', 'ctest-policy1-71188636']], 'subnet_ipam': [{'subnet_cidr': '105.165.234.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '394e:2212:34f6:6e47:362c:3c3f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-20 19:33:45,314 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-20 19:33:45,686 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-20 19:33:45,718 - DEBUG - Requesting: http://10.0.0.189:8082/domain/eaacb39e-cadf-4029-83dc-14c90db4b95c 2026-08-20 19:33:45,731 - DEBUG - Requesting: http://10.0.0.189:8082/project/956fe7e7-ea1c-410e-8c0e-743abae666f5 2026-08-20 19:33:45,814 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/ae5011bc-7a8d-4ae6-87b2-912a7fe94c91 2026-08-20 19:33:45,828 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/ae5011bc-7a8d-4ae6-87b2-912a7fe94c91 2026-08-20 19:33:45,839 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/82a4a5cb-b0f9-4be9-8f54-1210c26500a5 2026-08-20 19:33:45,846 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/82a4a5cb-b0f9-4be9-8f54-1210c26500a5 2026-08-20 19:33:45,853 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/ffb465d6-720e-4e3b-99f6-e6d6b05518cf 2026-08-20 19:33:45,860 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 19:33:45,860 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/ae5011bc-7a8d-4ae6-87b2-912a7fe94c91 2026-08-20 19:33:45,870 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/82a4a5cb-b0f9-4be9-8f54-1210c26500a5 2026-08-20 19:33:45,885 - INFO - Verified VN network id 11 for VN ae5011bc-7a8d-4ae6-87b2-912a7fe94c91 2026-08-20 19:33:45,885 - INFO - Verifications in API Server for VN ctest-vn4-38983813 passed 2026-08-20 19:33:45,886 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/ae5011bc-7a8d-4ae6-87b2-912a7fe94c91 2026-08-20 19:33:45,895 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/82a4a5cb-b0f9-4be9-8f54-1210c26500a5 2026-08-20 19:33:45,903 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/82a4a5cb-b0f9-4be9-8f54-1210c26500a5 2026-08-20 19:33:45,910 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/ffb465d6-720e-4e3b-99f6-e6d6b05518cf 2026-08-20 19:33:45,924 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77752406:ctest-vn4-38983813', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77752406', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12560558861943917286', 'uuid-lslong': '9778037352695418001'}, 'enable': 'true', 'created': '2026-08-20T19:33:44', 'last-modified': '2026-08-20T19:33:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.821925'} 2026-08-20 19:33:45,930 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 19:33:45,930 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38983813 passed 2026-08-20 19:33:45,931 - DEBUG - ====Verifying policy data for ctest-vn4-38983813 in API_Server ====== 2026-08-20 19:33:45,931 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-20 19:33:45,936 - DEBUG - Requesting: http://10.0.0.189:8082/domain/eaacb39e-cadf-4029-83dc-14c90db4b95c 2026-08-20 19:33:45,947 - DEBUG - Requesting: http://10.0.0.189:8082/project/956fe7e7-ea1c-410e-8c0e-743abae666f5 2026-08-20 19:33:46,024 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/ae5011bc-7a8d-4ae6-87b2-912a7fe94c91 2026-08-20 19:33:46,035 - DEBUG - ==>Verifying data for policy with id: f9c1ef65-a329-41ab-93b3-6509bfada4dc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77752406', 'ctest-policy1-71188636'] 2026-08-20 19:33:46,035 - INFO - VN ctest-vn4-38983813 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-20 19:33:46,035 - DEBUG - Verifying the vn in opserver 2026-08-20 19:33:46,035 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77752406:ctest-vn4-38983813 virtual network link through opserver 10.0.0.189 2026-08-20 19:33:46,035 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-08-20 19:33:46,404 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-08-20 19:33:46,459 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77752406:ctest-vn4-38983813', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77752406:ctest-vn4-38983813?flat'} 2026-08-20 19:33:46,459 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77752406:ctest-vn4-38983813 is found in opserver 2026-08-20 19:33:46,472 - DEBUG - Do not have enough data to verify VN in agent 2026-08-20 19:33:46,476 - DEBUG - VRF ids for VN ctest-vn4-38983813: {} 2026-08-20 19:33:46,477 - DEBUG - ====Verifying data for ctest-policy1-71188636 in API_Server ====== 2026-08-20 19:33:46,477 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-20 19:33:46,484 - DEBUG - Requesting: http://10.0.0.189:8082/domain/eaacb39e-cadf-4029-83dc-14c90db4b95c 2026-08-20 19:33:46,495 - DEBUG - Requesting: http://10.0.0.189:8082/project/956fe7e7-ea1c-410e-8c0e-743abae666f5 2026-08-20 19:33:46,571 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/f9c1ef65-a329-41ab-93b3-6509bfada4dc 2026-08-20 19:33:46,581 - INFO - Verified policy ctest-policy1-71188636 in API Server, Result: True 2026-08-20 19:33:46,582 - INFO - Done with setup and verification, moving onto test .. 2026-08-20 19:33:46,591 - INFO - Deleting VN ctest-vn4-38983813 2026-08-20 19:33:46,736 - DEBUG - Response for deleting network () 2026-08-20 19:33:46,737 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/82a4a5cb-b0f9-4be9-8f54-1210c26500a5 2026-08-20 19:33:46,742 - DEBUG - Response Code: 404 2026-08-20 19:33:46,744 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-08-20 19:33:46,750 - DEBUG - Requesting: http://10.0.0.189:8082/domain/eaacb39e-cadf-4029-83dc-14c90db4b95c 2026-08-20 19:33:46,803 - DEBUG - Requesting: http://10.0.0.189:8082/project/956fe7e7-ea1c-410e-8c0e-743abae666f5 2026-08-20 19:33:46,882 - INFO - Validated that VN ctest-vn4-38983813 is not found in API Server 2026-08-20 19:33:46,894 - DEBUG - VN ctest-vn4-38983813 is not present in Agent 10.0.0.189 2026-08-20 19:33:46,894 - INFO - Validated that VN ctest-vn4-38983813 is not in any agent 2026-08-20 19:33:46,911 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38983813 info 2026-08-20 19:33:46,942 - INFO - Deleted policy ctest-policy1-71188636 2026-08-20 19:33:47,110 - DEBUG - policy ctest-policy1-71188636 is not found in API Server 2026-08-20 19:33:47,380 - DEBUG - No XMPP flaps were noticed during the test 2026-08-20 19:33:47,380 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-20 19:33:47,380 - INFO - -------------------------------------------------------------------------------- 2026-08-20 19:33:47,669 - DEBUG - No XMPP flaps were noticed during the test 2026-08-20 19:33:47,669 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-20 19:33:47,672 - INFO - -------------------------------------------------------------------------------- 2026-08-20 19:33:48,455 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-77752406, ID : 956fe7e7-ea1c-410e-8c0e-743abae666f5