2025-12-08 10:11:26,570 - INFO - Domain Default found not creating 2025-12-08 10:11:26,738 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-79535441 not found, creating it 2025-12-08 10:11:27,181 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-79535441, ID : 4231ff4a-d331-4c65-9399-e56c8c63ff7d 2025-12-08 10:11:28,613 - INFO - ================================================================================ 2025-12-08 10:11:28,613 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 10:11:28,868 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2025-12-08 10:11:28,869 - INFO - Initial checks done. Running the testcase now 2025-12-08 10:11:28,869 - INFO - 2025-12-08 10:11:28,869 - INFO - ================================================================================ 2025-12-08 10:11:28,869 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 10:11:28,869 - 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-12-08 10:11:29,156 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2025-12-08 10:11:29,156 - INFO - Initial checks done. Running the testcase now 2025-12-08 10:11:29,156 - INFO - 2025-12-08 10:11:29,507 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79535441:ctest-vn4-53743292, 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-79535441:ctest-vn4-53743292, 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-79535441:ctest-vn4-53743292, 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-79535441:ctest-vn4-53743292, 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-12-08 10:11:30,011 - DEBUG - Response for create_network : {'network': {'id': '7a1fe0d0-a56d-4d66-b656-48f428bb7578', 'name': 'ctest-vn4-53743292', 'tenant_id': '4231ff4ad3314c659399e56c8c63ff7d', 'project_id': '4231ff4ad3314c659399e56c8c63ff7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79535441', 'ctest-vn4-53743292'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 10:11:30,201 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad61b901-ce01-4854-88a5-3a798da1cef4', 'name': '', 'tenant_id': '4231ff4ad3314c659399e56c8c63ff7d', 'network_id': '7a1fe0d0-a56d-4d66-b656-48f428bb7578', 'ip_version': 4, 'cidr': '134.102.27.128/26', 'allocation_pools': [{'start': '134.102.27.130', 'end': '134.102.27.190'}], 'gateway_ip': '134.102.27.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.102.27.130', 'tags': [], 'project_id': '4231ff4ad3314c659399e56c8c63ff7d'}} 2025-12-08 10:11:30,332 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8461617-d42b-4927-ae83-3dd2ec893426', 'name': '', 'tenant_id': '4231ff4ad3314c659399e56c8c63ff7d', 'network_id': '7a1fe0d0-a56d-4d66-b656-48f428bb7578', 'ip_version': 6, 'cidr': '2fb1:28ef:b0f0:4429:3d93:bf2c::/96', 'allocation_pools': [{'start': '2fb1:28ef:b0f0:4429:3d93:bf2c:0:2', 'end': '2fb1:28ef:b0f0:4429:3d93:bf2c:ffff:fffe'}], 'gateway_ip': '2fb1:28ef:b0f0:4429:3d93:bf2c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2fb1:28ef:b0f0:4429:3d93:bf2c:0:2', 'tags': [], 'project_id': '4231ff4ad3314c659399e56c8c63ff7d'}} 2025-12-08 10:11:30,353 - INFO - Created VN ctest-vn4-53743292 2025-12-08 10:11:30,403 - DEBUG - VN ctest-vn4-53743292 UUID is 7a1fe0d0-a56d-4d66-b656-48f428bb7578 2025-12-08 10:11:30,589 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a1fe0d0-a56d-4d66-b656-48f428bb7578', 'name': 'ctest-vn4-53743292', 'tenant_id': '4231ff4ad3314c659399e56c8c63ff7d', 'project_id': '4231ff4ad3314c659399e56c8c63ff7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad61b901-ce01-4854-88a5-3a798da1cef4', 'b8461617-d42b-4927-ae83-3dd2ec893426'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79535441', 'ctest-vn4-53743292'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79535441', 'ctest-policy1-29473404']], 'subnet_ipam': [{'subnet_cidr': '134.102.27.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2fb1:28ef:b0f0:4429:3d93:bf2c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-08 10:11:30,751 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-08 10:11:31,043 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-08 10:11:31,081 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9b8e0cd7-5ec5-4a6c-86dc-fdeae14f1c22 2025-12-08 10:11:31,093 - DEBUG - Requesting: http://10.0.0.22:8082/project/4231ff4a-d331-4c65-9399-e56c8c63ff7d 2025-12-08 10:11:31,162 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7a1fe0d0-a56d-4d66-b656-48f428bb7578 2025-12-08 10:11:31,176 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7a1fe0d0-a56d-4d66-b656-48f428bb7578 2025-12-08 10:11:31,187 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/17fb7834-7118-4d61-aa1b-c1d69eab0dfb 2025-12-08 10:11:31,194 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/17fb7834-7118-4d61-aa1b-c1d69eab0dfb 2025-12-08 10:11:31,200 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3a845635-ea60-4102-8a63-7fdeb0c311ef 2025-12-08 10:11:31,206 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 10:11:31,206 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7a1fe0d0-a56d-4d66-b656-48f428bb7578 2025-12-08 10:11:31,215 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/17fb7834-7118-4d61-aa1b-c1d69eab0dfb 2025-12-08 10:11:31,227 - INFO - Verified VN network id 11 for VN 7a1fe0d0-a56d-4d66-b656-48f428bb7578 2025-12-08 10:11:31,228 - INFO - Verifications in API Server for VN ctest-vn4-53743292 passed 2025-12-08 10:11:31,228 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7a1fe0d0-a56d-4d66-b656-48f428bb7578 2025-12-08 10:11:31,236 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/17fb7834-7118-4d61-aa1b-c1d69eab0dfb 2025-12-08 10:11:31,242 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/17fb7834-7118-4d61-aa1b-c1d69eab0dfb 2025-12-08 10:11:31,249 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/3a845635-ea60-4102-8a63-7fdeb0c311ef 2025-12-08 10:11:31,262 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79535441:ctest-vn4-53743292', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-79535441', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8799999383638461798', 'uuid-lslong': '13138769176392594808'}, 'enable': 'true', 'created': '2025-12-08T10:11:29', 'last-modified': '2025-12-08T10:11:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.698859'} 2025-12-08 10:11:31,268 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 10:11:31,268 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-53743292 passed 2025-12-08 10:11:31,268 - DEBUG - ====Verifying policy data for ctest-vn4-53743292 in API_Server ====== 2025-12-08 10:11:31,268 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-08 10:11:31,273 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9b8e0cd7-5ec5-4a6c-86dc-fdeae14f1c22 2025-12-08 10:11:31,283 - DEBUG - Requesting: http://10.0.0.22:8082/project/4231ff4a-d331-4c65-9399-e56c8c63ff7d 2025-12-08 10:11:31,353 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/7a1fe0d0-a56d-4d66-b656-48f428bb7578 2025-12-08 10:11:31,362 - DEBUG - ==>Verifying data for policy with id: 5041261f-ce6b-4332-a183-3954eb412b85, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79535441', 'ctest-policy1-29473404'] 2025-12-08 10:11:31,362 - INFO - VN ctest-vn4-53743292 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-08 10:11:31,362 - DEBUG - Verifying the vn in opserver 2025-12-08 10:11:31,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79535441:ctest-vn4-53743292 virtual network link through opserver 10.0.0.22 2025-12-08 10:11:31,363 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-08 10:11:31,659 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-12-08 10:11:31,723 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79535441:ctest-vn4-53743292', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79535441:ctest-vn4-53743292?flat'} 2025-12-08 10:11:31,723 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79535441:ctest-vn4-53743292 is found in opserver 2025-12-08 10:11:31,733 - DEBUG - Do not have enough data to verify VN in agent 2025-12-08 10:11:31,737 - DEBUG - VRF ids for VN ctest-vn4-53743292: {} 2025-12-08 10:11:31,737 - DEBUG - ====Verifying data for ctest-policy1-29473404 in API_Server ====== 2025-12-08 10:11:31,737 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-08 10:11:31,742 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9b8e0cd7-5ec5-4a6c-86dc-fdeae14f1c22 2025-12-08 10:11:31,752 - DEBUG - Requesting: http://10.0.0.22:8082/project/4231ff4a-d331-4c65-9399-e56c8c63ff7d 2025-12-08 10:11:31,821 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/5041261f-ce6b-4332-a183-3954eb412b85 2025-12-08 10:11:31,830 - INFO - Verified policy ctest-policy1-29473404 in API Server, Result: True 2025-12-08 10:11:31,830 - INFO - Done with setup and verification, moving onto test .. 2025-12-08 10:11:31,837 - INFO - Deleting VN ctest-vn4-53743292 2025-12-08 10:11:31,952 - DEBUG - Response for deleting network () 2025-12-08 10:11:31,952 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/17fb7834-7118-4d61-aa1b-c1d69eab0dfb 2025-12-08 10:11:31,957 - DEBUG - Response Code: 404 2025-12-08 10:11:31,957 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-12-08 10:11:31,962 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9b8e0cd7-5ec5-4a6c-86dc-fdeae14f1c22 2025-12-08 10:11:32,016 - DEBUG - Requesting: http://10.0.0.22:8082/project/4231ff4a-d331-4c65-9399-e56c8c63ff7d 2025-12-08 10:11:32,087 - INFO - Validated that VN ctest-vn4-53743292 is not found in API Server 2025-12-08 10:11:32,097 - DEBUG - VN ctest-vn4-53743292 is not present in Agent 10.0.0.22 2025-12-08 10:11:32,097 - INFO - Validated that VN ctest-vn4-53743292 is not in any agent 2025-12-08 10:11:32,110 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-53743292 info 2025-12-08 10:11:32,134 - INFO - Deleted policy ctest-policy1-29473404 2025-12-08 10:11:32,303 - DEBUG - policy ctest-policy1-29473404 is not found in API Server 2025-12-08 10:11:32,568 - DEBUG - No XMPP flaps were noticed during the test 2025-12-08 10:11:32,568 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-08 10:11:32,568 - INFO - -------------------------------------------------------------------------------- 2025-12-08 10:11:32,859 - DEBUG - No XMPP flaps were noticed during the test 2025-12-08 10:11:32,859 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-08 10:11:32,860 - INFO - -------------------------------------------------------------------------------- 2025-12-08 10:11:33,533 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-79535441, ID : 4231ff4a-d331-4c65-9399-e56c8c63ff7d