2026-02-26 02:30:12,270 - INFO - Domain Default found not creating 2026-02-26 02:30:12,420 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82281198 not found, creating it 2026-02-26 02:30:12,860 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82281198, ID : 2f558ed5-f7c5-4943-82d9-7bb7d841b56f 2026-02-26 02:30:14,307 - INFO - ================================================================================ 2026-02-26 02:30:14,307 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 02:30:14,560 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.201': '0'}} with 2026-02-26 02:30:14,560 - INFO - Initial checks done. Running the testcase now 2026-02-26 02:30:14,560 - INFO - 2026-02-26 02:30:14,560 - INFO - ================================================================================ 2026-02-26 02:30:14,560 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 02:30:14,560 - 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-02-26 02:30:14,848 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.201': '0'}} with 2026-02-26 02:30:14,848 - INFO - Initial checks done. Running the testcase now 2026-02-26 02:30:14,848 - INFO - 2026-02-26 02:30:15,190 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82281198:ctest-vn4-57998291, 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-82281198:ctest-vn4-57998291, 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-82281198:ctest-vn4-57998291, 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-82281198:ctest-vn4-57998291, 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-02-26 02:30:15,679 - DEBUG - Response for create_network : {'network': {'id': '7df49d38-1fe4-4685-94e0-c8167520a983', 'name': 'ctest-vn4-57998291', 'tenant_id': '2f558ed5f7c5494382d97bb7d841b56f', 'project_id': '2f558ed5f7c5494382d97bb7d841b56f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82281198', 'ctest-vn4-57998291'], 'port_security_enabled': True, 'description': ''}} 2026-02-26 02:30:15,823 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a2261f2-2e2e-4300-81db-8e094387a5c7', 'name': '', 'tenant_id': '2f558ed5f7c5494382d97bb7d841b56f', 'network_id': '7df49d38-1fe4-4685-94e0-c8167520a983', 'ip_version': 4, 'cidr': '61.80.183.192/26', 'allocation_pools': [{'start': '61.80.183.194', 'end': '61.80.183.254'}], 'gateway_ip': '61.80.183.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.80.183.194', 'tags': [], 'project_id': '2f558ed5f7c5494382d97bb7d841b56f'}} 2026-02-26 02:30:15,961 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a95c0294-e57b-4b94-986f-e7ff71da183c', 'name': '', 'tenant_id': '2f558ed5f7c5494382d97bb7d841b56f', 'network_id': '7df49d38-1fe4-4685-94e0-c8167520a983', 'ip_version': 6, 'cidr': '3ee3:9536:d68e:2ec5:956e:a391::/96', 'allocation_pools': [{'start': '3ee3:9536:d68e:2ec5:956e:a391:0:2', 'end': '3ee3:9536:d68e:2ec5:956e:a391:ffff:fffe'}], 'gateway_ip': '3ee3:9536:d68e:2ec5:956e:a391:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ee3:9536:d68e:2ec5:956e:a391:0:2', 'tags': [], 'project_id': '2f558ed5f7c5494382d97bb7d841b56f'}} 2026-02-26 02:30:15,981 - INFO - Created VN ctest-vn4-57998291 2026-02-26 02:30:16,031 - DEBUG - VN ctest-vn4-57998291 UUID is 7df49d38-1fe4-4685-94e0-c8167520a983 2026-02-26 02:30:16,222 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7df49d38-1fe4-4685-94e0-c8167520a983', 'name': 'ctest-vn4-57998291', 'tenant_id': '2f558ed5f7c5494382d97bb7d841b56f', 'project_id': '2f558ed5f7c5494382d97bb7d841b56f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a2261f2-2e2e-4300-81db-8e094387a5c7', 'a95c0294-e57b-4b94-986f-e7ff71da183c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82281198', 'ctest-vn4-57998291'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82281198', 'ctest-policy1-90826386']], 'subnet_ipam': [{'subnet_cidr': '61.80.183.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ee3:9536:d68e:2ec5:956e:a391::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-26 02:30:16,383 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-26 02:30:16,673 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-26 02:30:16,701 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d4c06cf8-20c4-46ba-ab79-a7dc9dd9d2a1 2026-02-26 02:30:16,712 - DEBUG - Requesting: http://10.0.0.22:8082/project/2f558ed5-f7c5-4943-82d9-7bb7d841b56f 2026-02-26 02:30:16,788 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7df49d38-1fe4-4685-94e0-c8167520a983 2026-02-26 02:30:16,799 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7df49d38-1fe4-4685-94e0-c8167520a983 2026-02-26 02:30:16,807 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41bdd8c-1157-447c-8bb8-f03ab8f5a3a8 2026-02-26 02:30:16,814 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41bdd8c-1157-447c-8bb8-f03ab8f5a3a8 2026-02-26 02:30:16,820 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d698c126-2e38-4eae-b356-5b5ae6b4a1c0 2026-02-26 02:30:16,827 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 02:30:16,827 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7df49d38-1fe4-4685-94e0-c8167520a983 2026-02-26 02:30:16,835 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41bdd8c-1157-447c-8bb8-f03ab8f5a3a8 2026-02-26 02:30:16,848 - INFO - Verified VN network id 11 for VN 7df49d38-1fe4-4685-94e0-c8167520a983 2026-02-26 02:30:16,848 - INFO - Verifications in API Server for VN ctest-vn4-57998291 passed 2026-02-26 02:30:16,848 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7df49d38-1fe4-4685-94e0-c8167520a983 2026-02-26 02:30:16,857 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41bdd8c-1157-447c-8bb8-f03ab8f5a3a8 2026-02-26 02:30:16,863 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41bdd8c-1157-447c-8bb8-f03ab8f5a3a8 2026-02-26 02:30:16,870 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d698c126-2e38-4eae-b356-5b5ae6b4a1c0 2026-02-26 02:30:16,880 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82281198:ctest-vn4-57998291', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82281198', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9076052013437175429', 'uuid-lslong': '10727794311176432003'}, 'enable': 'true', 'created': '2026-02-26T02:30:15', 'last-modified': '2026-02-26T02:30:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690602'} 2026-02-26 02:30:16,886 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 02:30:16,886 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-57998291 passed 2026-02-26 02:30:16,886 - DEBUG - ====Verifying policy data for ctest-vn4-57998291 in API_Server ====== 2026-02-26 02:30:16,886 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-26 02:30:16,891 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d4c06cf8-20c4-46ba-ab79-a7dc9dd9d2a1 2026-02-26 02:30:16,901 - DEBUG - Requesting: http://10.0.0.22:8082/project/2f558ed5-f7c5-4943-82d9-7bb7d841b56f 2026-02-26 02:30:16,968 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7df49d38-1fe4-4685-94e0-c8167520a983 2026-02-26 02:30:16,976 - DEBUG - ==>Verifying data for policy with id: 904f1bb6-4e47-42d0-ab26-369ebd2e974c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82281198', 'ctest-policy1-90826386'] 2026-02-26 02:30:16,977 - INFO - VN ctest-vn4-57998291 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-26 02:30:16,977 - DEBUG - Verifying the vn in opserver 2026-02-26 02:30:16,977 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82281198:ctest-vn4-57998291 virtual network link through opserver 10.0.0.22 2026-02-26 02:30:16,977 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-26 02:30:17,265 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-26 02:30:17,321 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82281198:ctest-vn4-57998291', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82281198:ctest-vn4-57998291?flat'} 2026-02-26 02:30:17,321 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82281198:ctest-vn4-57998291 is found in opserver 2026-02-26 02:30:17,329 - DEBUG - Do not have enough data to verify VN in agent 2026-02-26 02:30:17,333 - DEBUG - VRF ids for VN ctest-vn4-57998291: {} 2026-02-26 02:30:17,334 - DEBUG - ====Verifying data for ctest-policy1-90826386 in API_Server ====== 2026-02-26 02:30:17,334 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-26 02:30:17,339 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d4c06cf8-20c4-46ba-ab79-a7dc9dd9d2a1 2026-02-26 02:30:17,350 - DEBUG - Requesting: http://10.0.0.22:8082/project/2f558ed5-f7c5-4943-82d9-7bb7d841b56f 2026-02-26 02:30:17,418 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/904f1bb6-4e47-42d0-ab26-369ebd2e974c 2026-02-26 02:30:17,428 - INFO - Verified policy ctest-policy1-90826386 in API Server, Result: True 2026-02-26 02:30:17,428 - INFO - Done with setup and verification, moving onto test .. 2026-02-26 02:30:17,436 - INFO - Deleting VN ctest-vn4-57998291 2026-02-26 02:30:17,542 - DEBUG - Response for deleting network () 2026-02-26 02:30:17,542 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f41bdd8c-1157-447c-8bb8-f03ab8f5a3a8 2026-02-26 02:30:17,547 - DEBUG - Response Code: 404 2026-02-26 02:30:17,547 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-26 02:30:17,551 - DEBUG - Requesting: http://10.0.0.22:8082/domain/d4c06cf8-20c4-46ba-ab79-a7dc9dd9d2a1 2026-02-26 02:30:17,605 - DEBUG - Requesting: http://10.0.0.22:8082/project/2f558ed5-f7c5-4943-82d9-7bb7d841b56f 2026-02-26 02:30:17,681 - INFO - Validated that VN ctest-vn4-57998291 is not found in API Server 2026-02-26 02:30:17,691 - DEBUG - VN ctest-vn4-57998291 is not present in Agent 10.0.0.22 2026-02-26 02:30:17,691 - INFO - Validated that VN ctest-vn4-57998291 is not in any agent 2026-02-26 02:30:17,703 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-57998291 info 2026-02-26 02:30:17,732 - INFO - Deleted policy ctest-policy1-90826386 2026-02-26 02:30:17,895 - DEBUG - policy ctest-policy1-90826386 is not found in API Server 2026-02-26 02:30:18,148 - DEBUG - No XMPP flaps were noticed during the test 2026-02-26 02:30:18,148 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-26 02:30:18,148 - INFO - -------------------------------------------------------------------------------- 2026-02-26 02:30:18,435 - DEBUG - No XMPP flaps were noticed during the test 2026-02-26 02:30:18,435 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-26 02:30:18,435 - INFO - -------------------------------------------------------------------------------- 2026-02-26 02:30:19,094 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-82281198, ID : 2f558ed5-f7c5-4943-82d9-7bb7d841b56f