2025-10-22 19:11:53,164 - INFO - Domain Default found not creating 2025-10-22 19:11:53,312 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-12678409 not found, creating it 2025-10-22 19:11:53,770 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-12678409, ID : 7d4c4f92-2d75-4a0a-899b-2de9c8d8c5a4 2025-10-22 19:11:55,214 - INFO - ================================================================================ 2025-10-22 19:11:55,214 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 19:11:55,469 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-10-22 19:11:55,469 - INFO - Initial checks done. Running the testcase now 2025-10-22 19:11:55,469 - INFO - 2025-10-22 19:11:55,469 - INFO - ================================================================================ 2025-10-22 19:11:55,469 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 19:11:55,469 - 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. 2025-10-22 19:11:55,757 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-10-22 19:11:55,757 - INFO - Initial checks done. Running the testcase now 2025-10-22 19:11:55,757 - INFO - 2025-10-22 19:11:56,113 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12678409:ctest-vn4-37777153, 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-12678409:ctest-vn4-37777153, 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-12678409:ctest-vn4-37777153, 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-12678409:ctest-vn4-37777153, 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] 2025-10-22 19:11:56,631 - DEBUG - Response for create_network : {'network': {'id': '18c97630-f376-4b6b-b419-bd22d06d6bdb', 'name': 'ctest-vn4-37777153', 'tenant_id': '7d4c4f922d754a0a899b2de9c8d8c5a4', 'project_id': '7d4c4f922d754a0a899b2de9c8d8c5a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12678409', 'ctest-vn4-37777153'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 19:11:56,838 - DEBUG - Response for create_subnet : {'subnet': {'id': '61e3d85d-995b-4fde-abab-795e593ebe5f', 'name': '', 'tenant_id': '7d4c4f922d754a0a899b2de9c8d8c5a4', 'network_id': '18c97630-f376-4b6b-b419-bd22d06d6bdb', 'ip_version': 4, 'cidr': '84.2.186.192/26', 'allocation_pools': [{'start': '84.2.186.194', 'end': '84.2.186.254'}], 'gateway_ip': '84.2.186.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.2.186.194', 'tags': [], 'project_id': '7d4c4f922d754a0a899b2de9c8d8c5a4'}} 2025-10-22 19:11:56,980 - DEBUG - Response for create_subnet : {'subnet': {'id': '34dd7560-3aa6-4dc8-b4d6-3d06a6743395', 'name': '', 'tenant_id': '7d4c4f922d754a0a899b2de9c8d8c5a4', 'network_id': '18c97630-f376-4b6b-b419-bd22d06d6bdb', 'ip_version': 6, 'cidr': '32d1:bf92:3e50:d1d7:3dc0:90d0::/96', 'allocation_pools': [{'start': '32d1:bf92:3e50:d1d7:3dc0:90d0:0:2', 'end': '32d1:bf92:3e50:d1d7:3dc0:90d0:ffff:fffe'}], 'gateway_ip': '32d1:bf92:3e50:d1d7:3dc0:90d0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32d1:bf92:3e50:d1d7:3dc0:90d0:0:2', 'tags': [], 'project_id': '7d4c4f922d754a0a899b2de9c8d8c5a4'}} 2025-10-22 19:11:57,000 - INFO - Created VN ctest-vn4-37777153 2025-10-22 19:11:57,052 - DEBUG - VN ctest-vn4-37777153 UUID is 18c97630-f376-4b6b-b419-bd22d06d6bdb 2025-10-22 19:11:57,264 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '18c97630-f376-4b6b-b419-bd22d06d6bdb', 'name': 'ctest-vn4-37777153', 'tenant_id': '7d4c4f922d754a0a899b2de9c8d8c5a4', 'project_id': '7d4c4f922d754a0a899b2de9c8d8c5a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['61e3d85d-995b-4fde-abab-795e593ebe5f', '34dd7560-3aa6-4dc8-b4d6-3d06a6743395'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12678409', 'ctest-vn4-37777153'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12678409', 'ctest-policy1-73881880']], 'subnet_ipam': [{'subnet_cidr': '84.2.186.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32d1:bf92:3e50:d1d7:3dc0:90d0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 19:11:57,412 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-22 19:11:57,706 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-22 19:11:57,742 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4fa4561c-cadb-41af-a3b5-05e18d999394 2025-10-22 19:11:57,755 - DEBUG - Requesting: http://10.0.0.249:8082/project/7d4c4f92-2d75-4a0a-899b-2de9c8d8c5a4 2025-10-22 19:11:57,830 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/18c97630-f376-4b6b-b419-bd22d06d6bdb 2025-10-22 19:11:57,845 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/18c97630-f376-4b6b-b419-bd22d06d6bdb 2025-10-22 19:11:57,856 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac8b434d-a7d7-4be5-89d5-a47eeb2bd5fa 2025-10-22 19:11:57,863 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac8b434d-a7d7-4be5-89d5-a47eeb2bd5fa 2025-10-22 19:11:57,870 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/da6fdf79-aacc-45f4-87bd-d4aa0bce00a2 2025-10-22 19:11:57,877 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 19:11:57,877 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/18c97630-f376-4b6b-b419-bd22d06d6bdb 2025-10-22 19:11:57,888 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac8b434d-a7d7-4be5-89d5-a47eeb2bd5fa 2025-10-22 19:11:57,980 - INFO - Verified VN network id 11 for VN 18c97630-f376-4b6b-b419-bd22d06d6bdb 2025-10-22 19:11:57,981 - INFO - Verifications in API Server for VN ctest-vn4-37777153 passed 2025-10-22 19:11:57,981 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/18c97630-f376-4b6b-b419-bd22d06d6bdb 2025-10-22 19:11:57,990 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac8b434d-a7d7-4be5-89d5-a47eeb2bd5fa 2025-10-22 19:11:57,997 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac8b434d-a7d7-4be5-89d5-a47eeb2bd5fa 2025-10-22 19:11:58,004 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/da6fdf79-aacc-45f4-87bd-d4aa0bce00a2 2025-10-22 19:11:58,015 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12678409:ctest-vn4-37777153', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-12678409', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1786088679844236139', 'uuid-lslong': '12977611758468164571'}, 'enable': 'true', 'created': '2025-10-22T19:11:56', 'last-modified': '2025-10-22T19:11:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.791391'} 2025-10-22 19:11:58,022 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 19:11:58,022 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37777153 passed 2025-10-22 19:11:58,022 - DEBUG - ====Verifying policy data for ctest-vn4-37777153 in API_Server ====== 2025-10-22 19:11:58,022 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-22 19:11:58,027 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4fa4561c-cadb-41af-a3b5-05e18d999394 2025-10-22 19:11:58,038 - DEBUG - Requesting: http://10.0.0.249:8082/project/7d4c4f92-2d75-4a0a-899b-2de9c8d8c5a4 2025-10-22 19:11:58,112 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/18c97630-f376-4b6b-b419-bd22d06d6bdb 2025-10-22 19:11:58,124 - DEBUG - ==>Verifying data for policy with id: 559d01b3-a60e-457c-a1b5-e974750eb55e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12678409', 'ctest-policy1-73881880'] 2025-10-22 19:11:58,124 - INFO - VN ctest-vn4-37777153 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 19:11:58,124 - DEBUG - Verifying the vn in opserver 2025-10-22 19:11:58,124 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12678409:ctest-vn4-37777153 virtual network link through opserver 10.0.0.249 2025-10-22 19:11:58,125 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-22 19:11:58,419 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-22 19:11:58,480 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12678409:ctest-vn4-37777153', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12678409:ctest-vn4-37777153?flat'} 2025-10-22 19:11:58,481 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12678409:ctest-vn4-37777153 is found in opserver 2025-10-22 19:11:58,490 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 19:11:58,494 - DEBUG - VRF ids for VN ctest-vn4-37777153: {} 2025-10-22 19:11:58,495 - DEBUG - ====Verifying data for ctest-policy1-73881880 in API_Server ====== 2025-10-22 19:11:58,495 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-22 19:11:58,500 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4fa4561c-cadb-41af-a3b5-05e18d999394 2025-10-22 19:11:58,511 - DEBUG - Requesting: http://10.0.0.249:8082/project/7d4c4f92-2d75-4a0a-899b-2de9c8d8c5a4 2025-10-22 19:11:58,587 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/559d01b3-a60e-457c-a1b5-e974750eb55e 2025-10-22 19:11:58,597 - INFO - Verified policy ctest-policy1-73881880 in API Server, Result: True 2025-10-22 19:11:58,598 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 19:11:58,607 - INFO - Deleting VN ctest-vn4-37777153 2025-10-22 19:11:58,728 - DEBUG - Response for deleting network () 2025-10-22 19:11:58,728 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac8b434d-a7d7-4be5-89d5-a47eeb2bd5fa 2025-10-22 19:11:58,734 - DEBUG - Response Code: 404 2025-10-22 19:11:58,734 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-22 19:11:58,740 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4fa4561c-cadb-41af-a3b5-05e18d999394 2025-10-22 19:11:58,797 - DEBUG - Requesting: http://10.0.0.249:8082/project/7d4c4f92-2d75-4a0a-899b-2de9c8d8c5a4 2025-10-22 19:11:58,876 - INFO - Validated that VN ctest-vn4-37777153 is not found in API Server 2025-10-22 19:11:58,887 - DEBUG - VN ctest-vn4-37777153 is not present in Agent 10.0.0.249 2025-10-22 19:11:58,887 - INFO - Validated that VN ctest-vn4-37777153 is not in any agent 2025-10-22 19:11:58,902 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37777153 info 2025-10-22 19:11:58,925 - INFO - Deleted policy ctest-policy1-73881880 2025-10-22 19:11:59,087 - DEBUG - policy ctest-policy1-73881880 is not found in API Server 2025-10-22 19:11:59,342 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 19:11:59,342 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-22 19:11:59,342 - INFO - -------------------------------------------------------------------------------- 2025-10-22 19:11:59,633 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 19:11:59,633 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-22 19:11:59,633 - INFO - -------------------------------------------------------------------------------- 2025-10-22 19:12:00,315 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-12678409, ID : 7d4c4f92-2d75-4a0a-899b-2de9c8d8c5a4