2026-10-13 08:06:42,262 - INFO - Domain Default found not creating 2026-10-13 08:06:42,396 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95852551 not found, creating it 2026-10-13 08:06:42,835 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95852551, ID : 8132ee24-c261-44fa-83ec-e2c28bda2578 2026-10-13 08:06:44,423 - INFO - ================================================================================ 2026-10-13 08:06:44,423 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-13 08:06:44,683 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-10-13 08:06:44,683 - INFO - Initial checks done. Running the testcase now 2026-10-13 08:06:44,683 - INFO - 2026-10-13 08:06:44,683 - INFO - ================================================================================ 2026-10-13 08:06:44,683 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-13 08:06:44,683 - 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-13 08:06:44,970 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-10-13 08:06:44,970 - INFO - Initial checks done. Running the testcase now 2026-10-13 08:06:44,970 - INFO - 2026-10-13 08:06:45,437 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95852551:ctest-vn4-64376311, 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-95852551:ctest-vn4-64376311, 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-95852551:ctest-vn4-64376311, 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-95852551:ctest-vn4-64376311, 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-13 08:06:45,968 - DEBUG - Response for create_network : {'network': {'id': '2bb1bc8a-e65b-4297-a0fe-b1b3ea50da4c', 'name': 'ctest-vn4-64376311', 'tenant_id': '8132ee24c26144fa83ece2c28bda2578', 'project_id': '8132ee24c26144fa83ece2c28bda2578', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95852551', 'ctest-vn4-64376311'], 'port_security_enabled': True, 'description': ''}} 2026-10-13 08:06:46,203 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c254ba8-7a6e-43a4-bd29-546eeeb77f6e', 'name': '', 'tenant_id': '8132ee24c26144fa83ece2c28bda2578', 'network_id': '2bb1bc8a-e65b-4297-a0fe-b1b3ea50da4c', 'ip_version': 4, 'cidr': '168.220.28.64/26', 'allocation_pools': [{'start': '168.220.28.66', 'end': '168.220.28.126'}], 'gateway_ip': '168.220.28.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.220.28.66', 'tags': [], 'project_id': '8132ee24c26144fa83ece2c28bda2578'}} 2026-10-13 08:06:46,403 - DEBUG - Response for create_subnet : {'subnet': {'id': '72a3a4f5-2455-46cc-b521-7404bfcc01fd', 'name': '', 'tenant_id': '8132ee24c26144fa83ece2c28bda2578', 'network_id': '2bb1bc8a-e65b-4297-a0fe-b1b3ea50da4c', 'ip_version': 6, 'cidr': '3db9:1f56:84c1:3ce9:3d50:8a6b::/96', 'allocation_pools': [{'start': '3db9:1f56:84c1:3ce9:3d50:8a6b:0:2', 'end': '3db9:1f56:84c1:3ce9:3d50:8a6b:ffff:fffe'}], 'gateway_ip': '3db9:1f56:84c1:3ce9:3d50:8a6b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3db9:1f56:84c1:3ce9:3d50:8a6b:0:2', 'tags': [], 'project_id': '8132ee24c26144fa83ece2c28bda2578'}} 2026-10-13 08:06:46,420 - INFO - Created VN ctest-vn4-64376311 2026-10-13 08:06:46,470 - DEBUG - VN ctest-vn4-64376311 UUID is 2bb1bc8a-e65b-4297-a0fe-b1b3ea50da4c 2026-10-13 08:06:46,657 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bb1bc8a-e65b-4297-a0fe-b1b3ea50da4c', 'name': 'ctest-vn4-64376311', 'tenant_id': '8132ee24c26144fa83ece2c28bda2578', 'project_id': '8132ee24c26144fa83ece2c28bda2578', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['9c254ba8-7a6e-43a4-bd29-546eeeb77f6e', '72a3a4f5-2455-46cc-b521-7404bfcc01fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95852551', 'ctest-vn4-64376311'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95852551', 'ctest-policy1-16253111']], 'subnet_ipam': [{'subnet_cidr': '168.220.28.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3db9:1f56:84c1:3ce9:3d50:8a6b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-13 08:06:46,817 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-13 08:06:47,182 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-13 08:06:47,207 - DEBUG - Requesting: http://10.0.0.185:8082/domain/78b56cbc-1501-4971-be3e-84d6b062bdff 2026-10-13 08:06:47,218 - DEBUG - Requesting: http://10.0.0.185:8082/project/8132ee24-c261-44fa-83ec-e2c28bda2578 2026-10-13 08:06:47,290 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/2bb1bc8a-e65b-4297-a0fe-b1b3ea50da4c 2026-10-13 08:06:47,303 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/2bb1bc8a-e65b-4297-a0fe-b1b3ea50da4c 2026-10-13 08:06:47,314 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/d847e9eb-392c-469f-9697-6d4c2db390bd 2026-10-13 08:06:47,321 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/d847e9eb-392c-469f-9697-6d4c2db390bd 2026-10-13 08:06:47,327 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/3c587754-9b96-47fc-8e90-243455fbc850 2026-10-13 08:06:47,333 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-13 08:06:47,333 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/2bb1bc8a-e65b-4297-a0fe-b1b3ea50da4c 2026-10-13 08:06:47,341 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/d847e9eb-392c-469f-9697-6d4c2db390bd 2026-10-13 08:06:47,354 - INFO - Verified VN network id 12 for VN 2bb1bc8a-e65b-4297-a0fe-b1b3ea50da4c 2026-10-13 08:06:47,354 - INFO - Verifications in API Server for VN ctest-vn4-64376311 passed 2026-10-13 08:06:47,354 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/2bb1bc8a-e65b-4297-a0fe-b1b3ea50da4c 2026-10-13 08:06:47,365 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/d847e9eb-392c-469f-9697-6d4c2db390bd 2026-10-13 08:06:47,372 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/d847e9eb-392c-469f-9697-6d4c2db390bd 2026-10-13 08:06:47,379 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/3c587754-9b96-47fc-8e90-243455fbc850 2026-10-13 08:06:47,391 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95852551:ctest-vn4-64376311', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95852551', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3148504919264936599', 'uuid-lslong': '11600905076441406028'}, 'enable': 'true', 'created': '2026-10-13T08:06:45', 'last-modified': '2026-10-13T08:06:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.766638'} 2026-10-13 08:06:47,398 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-13 08:06:47,398 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64376311 passed 2026-10-13 08:06:47,398 - DEBUG - ====Verifying policy data for ctest-vn4-64376311 in API_Server ====== 2026-10-13 08:06:47,398 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-13 08:06:47,403 - DEBUG - Requesting: http://10.0.0.185:8082/domain/78b56cbc-1501-4971-be3e-84d6b062bdff 2026-10-13 08:06:47,412 - DEBUG - Requesting: http://10.0.0.185:8082/project/8132ee24-c261-44fa-83ec-e2c28bda2578 2026-10-13 08:06:47,478 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/2bb1bc8a-e65b-4297-a0fe-b1b3ea50da4c 2026-10-13 08:06:47,486 - DEBUG - ==>Verifying data for policy with id: cb51f833-3d91-4d59-8ecf-9aad40ef20ed, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95852551', 'ctest-policy1-16253111'] 2026-10-13 08:06:47,486 - INFO - VN ctest-vn4-64376311 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-13 08:06:47,486 - DEBUG - Verifying the vn in opserver 2026-10-13 08:06:47,487 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95852551:ctest-vn4-64376311 virtual network link through opserver 10.0.0.185 2026-10-13 08:06:47,487 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-10-13 08:06:47,847 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-10-13 08:06:47,896 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95852551:ctest-vn4-64376311', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95852551:ctest-vn4-64376311?flat'} 2026-10-13 08:06:47,896 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95852551:ctest-vn4-64376311 is found in opserver 2026-10-13 08:06:47,907 - DEBUG - Do not have enough data to verify VN in agent 2026-10-13 08:06:47,912 - DEBUG - VRF ids for VN ctest-vn4-64376311: {} 2026-10-13 08:06:47,912 - DEBUG - ====Verifying data for ctest-policy1-16253111 in API_Server ====== 2026-10-13 08:06:47,912 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-13 08:06:47,917 - DEBUG - Requesting: http://10.0.0.185:8082/domain/78b56cbc-1501-4971-be3e-84d6b062bdff 2026-10-13 08:06:47,926 - DEBUG - Requesting: http://10.0.0.185:8082/project/8132ee24-c261-44fa-83ec-e2c28bda2578 2026-10-13 08:06:47,994 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/cb51f833-3d91-4d59-8ecf-9aad40ef20ed 2026-10-13 08:06:48,003 - INFO - Verified policy ctest-policy1-16253111 in API Server, Result: True 2026-10-13 08:06:48,003 - INFO - Done with setup and verification, moving onto test .. 2026-10-13 08:06:48,010 - INFO - Deleting VN ctest-vn4-64376311 2026-10-13 08:06:48,113 - DEBUG - Response for deleting network () 2026-10-13 08:06:48,114 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/d847e9eb-392c-469f-9697-6d4c2db390bd 2026-10-13 08:06:48,118 - DEBUG - Response Code: 404 2026-10-13 08:06:48,118 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-10-13 08:06:48,122 - DEBUG - Requesting: http://10.0.0.185:8082/domain/78b56cbc-1501-4971-be3e-84d6b062bdff 2026-10-13 08:06:48,173 - DEBUG - Requesting: http://10.0.0.185:8082/project/8132ee24-c261-44fa-83ec-e2c28bda2578 2026-10-13 08:06:48,250 - INFO - Validated that VN ctest-vn4-64376311 is not found in API Server 2026-10-13 08:06:48,261 - DEBUG - VN ctest-vn4-64376311 is not present in Agent 10.0.0.185 2026-10-13 08:06:48,261 - INFO - Validated that VN ctest-vn4-64376311 is not in any agent 2026-10-13 08:06:48,274 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64376311 info 2026-10-13 08:06:48,295 - INFO - Deleted policy ctest-policy1-16253111 2026-10-13 08:06:48,465 - DEBUG - policy ctest-policy1-16253111 is not found in API Server 2026-10-13 08:06:48,718 - DEBUG - No XMPP flaps were noticed during the test 2026-10-13 08:06:48,718 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-10-13 08:06:48,718 - INFO - -------------------------------------------------------------------------------- 2026-10-13 08:06:49,008 - DEBUG - No XMPP flaps were noticed during the test 2026-10-13 08:06:49,009 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-10-13 08:06:49,009 - INFO - -------------------------------------------------------------------------------- 2026-10-13 08:06:49,800 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95852551, ID : 8132ee24-c261-44fa-83ec-e2c28bda2578