2025-08-18 02:10:06,311 - INFO - Domain Default found not creating 2025-08-18 02:10:06,446 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17237807 not found, creating it 2025-08-18 02:10:06,881 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17237807, ID : c90cdc3d-c1ff-4cef-a047-1b0c033965b5 2025-08-18 02:10:08,215 - INFO - ================================================================================ 2025-08-18 02:10:08,216 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 02:10:08,473 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.14': '0'}} with 2025-08-18 02:10:08,473 - INFO - Initial checks done. Running the testcase now 2025-08-18 02:10:08,473 - INFO - 2025-08-18 02:10:08,473 - INFO - ================================================================================ 2025-08-18 02:10:08,473 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 02:10:08,473 - 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-08-18 02:10:08,764 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.14': '0'}} with 2025-08-18 02:10:08,764 - INFO - Initial checks done. Running the testcase now 2025-08-18 02:10:08,764 - INFO - 2025-08-18 02:10:09,105 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17237807:ctest-vn4-36206928, 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-17237807:ctest-vn4-36206928, 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-17237807:ctest-vn4-36206928, 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-17237807:ctest-vn4-36206928, 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-08-18 02:10:09,637 - DEBUG - Response for create_network : {'network': {'id': '3335d758-71f5-4ebc-8f70-0363123552dc', 'name': 'ctest-vn4-36206928', 'tenant_id': 'c90cdc3dc1ff4cefa0471b0c033965b5', 'project_id': 'c90cdc3dc1ff4cefa0471b0c033965b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17237807', 'ctest-vn4-36206928'], 'port_security_enabled': True, 'description': ''}} 2025-08-18 02:10:09,850 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e16fe4c4-0214-46df-a2de-085aa3fc8150', 'name': '', 'tenant_id': 'c90cdc3dc1ff4cefa0471b0c033965b5', 'network_id': '3335d758-71f5-4ebc-8f70-0363123552dc', 'ip_version': 4, 'cidr': '89.216.133.0/26', 'allocation_pools': [{'start': '89.216.133.2', 'end': '89.216.133.62'}], 'gateway_ip': '89.216.133.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.216.133.2', 'tags': [], 'project_id': 'c90cdc3dc1ff4cefa0471b0c033965b5'}} 2025-08-18 02:10:10,011 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f502fc33-51eb-4739-86d2-0de4633df4dc', 'name': '', 'tenant_id': 'c90cdc3dc1ff4cefa0471b0c033965b5', 'network_id': '3335d758-71f5-4ebc-8f70-0363123552dc', 'ip_version': 6, 'cidr': '340b:872c:6b00:493b:553c:9c62::/96', 'allocation_pools': [{'start': '340b:872c:6b00:493b:553c:9c62:0:2', 'end': '340b:872c:6b00:493b:553c:9c62:ffff:fffe'}], 'gateway_ip': '340b:872c:6b00:493b:553c:9c62:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '340b:872c:6b00:493b:553c:9c62:0:2', 'tags': [], 'project_id': 'c90cdc3dc1ff4cefa0471b0c033965b5'}} 2025-08-18 02:10:10,029 - INFO - Created VN ctest-vn4-36206928 2025-08-18 02:10:10,079 - DEBUG - VN ctest-vn4-36206928 UUID is 3335d758-71f5-4ebc-8f70-0363123552dc 2025-08-18 02:10:10,269 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3335d758-71f5-4ebc-8f70-0363123552dc', 'name': 'ctest-vn4-36206928', 'tenant_id': 'c90cdc3dc1ff4cefa0471b0c033965b5', 'project_id': 'c90cdc3dc1ff4cefa0471b0c033965b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e16fe4c4-0214-46df-a2de-085aa3fc8150', 'f502fc33-51eb-4739-86d2-0de4633df4dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17237807', 'ctest-vn4-36206928'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17237807', 'ctest-policy1-26007183']], 'subnet_ipam': [{'subnet_cidr': '89.216.133.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '340b:872c:6b00:493b:553c:9c62::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-18 02:10:10,443 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-08-18 02:10:10,730 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-08-18 02:10:10,754 - DEBUG - Requesting: http://10.0.0.131:8082/domain/d7b0301e-7175-4a31-99d9-6e9b2c3288c9 2025-08-18 02:10:10,766 - DEBUG - Requesting: http://10.0.0.131:8082/project/c90cdc3d-c1ff-4cef-a047-1b0c033965b5 2025-08-18 02:10:10,839 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/3335d758-71f5-4ebc-8f70-0363123552dc 2025-08-18 02:10:10,850 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/3335d758-71f5-4ebc-8f70-0363123552dc 2025-08-18 02:10:10,860 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/53d0a152-3318-4ca8-8636-16f05fcfcf41 2025-08-18 02:10:10,866 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/53d0a152-3318-4ca8-8636-16f05fcfcf41 2025-08-18 02:10:10,872 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/dbf7c66f-4650-4af4-bc44-0440b0920659 2025-08-18 02:10:10,877 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 02:10:10,878 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/3335d758-71f5-4ebc-8f70-0363123552dc 2025-08-18 02:10:10,886 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/53d0a152-3318-4ca8-8636-16f05fcfcf41 2025-08-18 02:10:10,899 - INFO - Verified VN network id 11 for VN 3335d758-71f5-4ebc-8f70-0363123552dc 2025-08-18 02:10:10,899 - INFO - Verifications in API Server for VN ctest-vn4-36206928 passed 2025-08-18 02:10:10,899 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/3335d758-71f5-4ebc-8f70-0363123552dc 2025-08-18 02:10:10,908 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/53d0a152-3318-4ca8-8636-16f05fcfcf41 2025-08-18 02:10:10,914 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/53d0a152-3318-4ca8-8636-16f05fcfcf41 2025-08-18 02:10:10,920 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/dbf7c66f-4650-4af4-bc44-0440b0920659 2025-08-18 02:10:10,931 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17237807:ctest-vn4-36206928', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17237807', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3690092244568985276', 'uuid-lslong': '10335764868857418460'}, 'enable': 'true', 'created': '2025-08-18T02:10:09', 'last-modified': '2025-08-18T02:10:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688478'} 2025-08-18 02:10:10,937 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 02:10:10,938 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36206928 passed 2025-08-18 02:10:10,939 - DEBUG - ====Verifying policy data for ctest-vn4-36206928 in API_Server ====== 2025-08-18 02:10:10,939 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-08-18 02:10:10,944 - DEBUG - Requesting: http://10.0.0.131:8082/domain/d7b0301e-7175-4a31-99d9-6e9b2c3288c9 2025-08-18 02:10:10,955 - DEBUG - Requesting: http://10.0.0.131:8082/project/c90cdc3d-c1ff-4cef-a047-1b0c033965b5 2025-08-18 02:10:11,025 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/3335d758-71f5-4ebc-8f70-0363123552dc 2025-08-18 02:10:11,035 - DEBUG - ==>Verifying data for policy with id: 7f606e9e-765b-44f6-9206-51eda286b646, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17237807', 'ctest-policy1-26007183'] 2025-08-18 02:10:11,035 - INFO - VN ctest-vn4-36206928 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-18 02:10:11,035 - DEBUG - Verifying the vn in opserver 2025-08-18 02:10:11,035 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17237807:ctest-vn4-36206928 virtual network link through opserver 10.0.0.131 2025-08-18 02:10:11,035 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-08-18 02:10:11,322 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-08-18 02:10:11,369 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17237807:ctest-vn4-36206928', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17237807:ctest-vn4-36206928?flat'} 2025-08-18 02:10:11,369 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17237807:ctest-vn4-36206928 is found in opserver 2025-08-18 02:10:11,379 - DEBUG - Do not have enough data to verify VN in agent 2025-08-18 02:10:11,384 - DEBUG - VRF ids for VN ctest-vn4-36206928: {} 2025-08-18 02:10:11,385 - DEBUG - ====Verifying data for ctest-policy1-26007183 in API_Server ====== 2025-08-18 02:10:11,385 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-08-18 02:10:11,390 - DEBUG - Requesting: http://10.0.0.131:8082/domain/d7b0301e-7175-4a31-99d9-6e9b2c3288c9 2025-08-18 02:10:11,400 - DEBUG - Requesting: http://10.0.0.131:8082/project/c90cdc3d-c1ff-4cef-a047-1b0c033965b5 2025-08-18 02:10:11,468 - DEBUG - Requesting: http://10.0.0.131:8082/network-policy/7f606e9e-765b-44f6-9206-51eda286b646 2025-08-18 02:10:11,477 - INFO - Verified policy ctest-policy1-26007183 in API Server, Result: True 2025-08-18 02:10:11,478 - INFO - Done with setup and verification, moving onto test .. 2025-08-18 02:10:11,484 - INFO - Deleting VN ctest-vn4-36206928 2025-08-18 02:10:11,590 - DEBUG - Response for deleting network () 2025-08-18 02:10:11,590 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/53d0a152-3318-4ca8-8636-16f05fcfcf41 2025-08-18 02:10:11,594 - DEBUG - Response Code: 404 2025-08-18 02:10:11,594 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-08-18 02:10:11,599 - DEBUG - Requesting: http://10.0.0.131:8082/domain/d7b0301e-7175-4a31-99d9-6e9b2c3288c9 2025-08-18 02:10:11,651 - DEBUG - Requesting: http://10.0.0.131:8082/project/c90cdc3d-c1ff-4cef-a047-1b0c033965b5 2025-08-18 02:10:11,724 - INFO - Validated that VN ctest-vn4-36206928 is not found in API Server 2025-08-18 02:10:11,734 - DEBUG - VN ctest-vn4-36206928 is not present in Agent 10.0.0.131 2025-08-18 02:10:11,734 - INFO - Validated that VN ctest-vn4-36206928 is not in any agent 2025-08-18 02:10:11,748 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36206928 info 2025-08-18 02:10:11,769 - INFO - Deleted policy ctest-policy1-26007183 2025-08-18 02:10:11,931 - DEBUG - policy ctest-policy1-26007183 is not found in API Server 2025-08-18 02:10:12,192 - DEBUG - No XMPP flaps were noticed during the test
2025-08-18 02:10:12,192 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-18 02:10:12,192 - INFO - -------------------------------------------------------------------------------- 2025-08-18 02:10:12,476 - DEBUG - No XMPP flaps were noticed during the test
2025-08-18 02:10:12,476 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-18 02:10:12,476 - INFO - -------------------------------------------------------------------------------- 2025-08-18 02:10:13,118 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-17237807, ID : c90cdc3d-c1ff-4cef-a047-1b0c033965b5