2026-01-20 19:43:15,767 - INFO - Domain Default found not creating 2026-01-20 19:43:16,109 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30430870 not found, creating it 2026-01-20 19:43:16,834 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30430870, ID : 08a0f112-eeb3-4fef-a117-d2e2edb45ed6 2026-01-20 19:43:18,721 - INFO - ================================================================================ 2026-01-20 19:43:18,721 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-20 19:43:20,092 - WARNING - Test is running with cores: {'10.0.0.73': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5051-3.1768936401']} 2026-01-20 19:43:20,110 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.252': '0', '10.20.0.249': '0'}, '10.0.0.133': {'10.20.0.249': '0', '10.20.0.252': '0'}} with 2026-01-20 19:43:20,110 - INFO - Initial checks done. Running the testcase now 2026-01-20 19:43:20,110 - INFO - 2026-01-20 19:43:20,110 - INFO - ================================================================================ 2026-01-20 19:43:20,110 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-20 19:43:20,110 - 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-01-20 19:43:21,477 - WARNING - Test is running with cores: {'10.0.0.73': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5051-3.1768936401']} 2026-01-20 19:43:21,493 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.252': '0', '10.20.0.249': '0'}, '10.0.0.133': {'10.20.0.249': '0', '10.20.0.252': '0'}} with 2026-01-20 19:43:21,493 - INFO - Initial checks done. Running the testcase now 2026-01-20 19:43:21,493 - INFO - 2026-01-20 19:43:21,928 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230, 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-30430870:ctest-vn4-15431230, 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-30430870:ctest-vn4-15431230, 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-30430870:ctest-vn4-15431230, 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-01-20 19:43:22,747 - DEBUG - Response for create_network : {'network': {'id': 'ffded8f7-dffe-4f4c-8190-ee9a7f135b37', 'name': 'ctest-vn4-15431230', 'tenant_id': '08a0f112eeb34fefa117d2e2edb45ed6', 'project_id': '08a0f112eeb34fefa117d2e2edb45ed6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30430870', 'ctest-vn4-15431230'], 'port_security_enabled': True, 'description': ''}} 2026-01-20 19:43:23,102 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a69bb5c7-2011-467e-978f-97cef8b9411a', 'name': '', 'tenant_id': '08a0f112eeb34fefa117d2e2edb45ed6', 'network_id': 'ffded8f7-dffe-4f4c-8190-ee9a7f135b37', 'ip_version': 4, 'cidr': '151.4.160.192/26', 'allocation_pools': [{'start': '151.4.160.194', 'end': '151.4.160.254'}], 'gateway_ip': '151.4.160.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.4.160.194', 'tags': [], 'project_id': '08a0f112eeb34fefa117d2e2edb45ed6'}} 2026-01-20 19:43:23,384 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e484ceb0-b144-41fd-b3ee-dab177aaa509', 'name': '', 'tenant_id': '08a0f112eeb34fefa117d2e2edb45ed6', 'network_id': 'ffded8f7-dffe-4f4c-8190-ee9a7f135b37', 'ip_version': 6, 'cidr': '2b86:132c:e386:e70d:9d94:6f72::/96', 'allocation_pools': [{'start': '2b86:132c:e386:e70d:9d94:6f72:0:2', 'end': '2b86:132c:e386:e70d:9d94:6f72:ffff:fffe'}], 'gateway_ip': '2b86:132c:e386:e70d:9d94:6f72:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b86:132c:e386:e70d:9d94:6f72:0:2', 'tags': [], 'project_id': '08a0f112eeb34fefa117d2e2edb45ed6'}} 2026-01-20 19:43:23,417 - INFO - Created VN ctest-vn4-15431230 2026-01-20 19:43:23,431 - DEBUG - VN ctest-vn4-15431230 UUID is ffded8f7-dffe-4f4c-8190-ee9a7f135b37 2026-01-20 19:43:23,706 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffded8f7-dffe-4f4c-8190-ee9a7f135b37', 'name': 'ctest-vn4-15431230', 'tenant_id': '08a0f112eeb34fefa117d2e2edb45ed6', 'project_id': '08a0f112eeb34fefa117d2e2edb45ed6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a69bb5c7-2011-467e-978f-97cef8b9411a', 'e484ceb0-b144-41fd-b3ee-dab177aaa509'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30430870', 'ctest-vn4-15431230'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30430870', 'ctest-policy1-13371937']], 'subnet_ipam': [{'subnet_cidr': '151.4.160.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b86:132c:e386:e70d:9d94:6f72::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-20 19:43:23,823 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-01-20 19:43:24,137 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-01-20 19:43:24,208 - DEBUG - Requesting: http://10.0.0.65:8082/domain/e79d0ded-05e0-4fce-9cc2-48d79f990c62 2026-01-20 19:43:24,248 - DEBUG - Requesting: http://10.0.0.65:8082/project/08a0f112-eeb3-4fef-a117-d2e2edb45ed6 2026-01-20 19:43:24,377 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ffded8f7-dffe-4f4c-8190-ee9a7f135b37 2026-01-20 19:43:24,389 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ffded8f7-dffe-4f4c-8190-ee9a7f135b37 2026-01-20 19:43:24,401 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/8c662549-6229-497c-8538-fa58afa1f9bd 2026-01-20 19:43:24,410 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/8c662549-6229-497c-8538-fa58afa1f9bd 2026-01-20 19:43:24,419 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d21e97ef-969b-4eb7-90e5-40bd4b6118bf 2026-01-20 19:43:24,426 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-20 19:43:24,426 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ffded8f7-dffe-4f4c-8190-ee9a7f135b37 2026-01-20 19:43:24,438 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/8c662549-6229-497c-8538-fa58afa1f9bd 2026-01-20 19:43:24,462 - INFO - Verified VN network id 9 for VN ffded8f7-dffe-4f4c-8190-ee9a7f135b37 2026-01-20 19:43:24,462 - INFO - Verifications in API Server for VN ctest-vn4-15431230 passed 2026-01-20 19:43:24,462 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ffded8f7-dffe-4f4c-8190-ee9a7f135b37 2026-01-20 19:43:24,475 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/8c662549-6229-497c-8538-fa58afa1f9bd 2026-01-20 19:43:24,483 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/8c662549-6229-497c-8538-fa58afa1f9bd 2026-01-20 19:43:24,492 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d21e97ef-969b-4eb7-90e5-40bd4b6118bf 2026-01-20 19:43:24,505 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30430870', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18437412483627896652', 'uuid-lslong': '9336224374863387447'}, 'enable': 'true', 'created': '2026-01-20T19:43:22', 'last-modified': '2026-01-20T19:43:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.859264'} 2026-01-20 19:43:24,512 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-20 19:43:24,518 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30430870', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18437412483627896652', 'uuid-lslong': '9336224374863387447'}, 'enable': 'true', 'created': '2026-01-20T19:43:22', 'last-modified': '2026-01-20T19:43:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.885771'} 2026-01-20 19:43:24,524 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-20 19:43:24,534 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30430870', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18437412483627896652', 'uuid-lslong': '9336224374863387447'}, 'enable': 'true', 'created': '2026-01-20T19:43:22', 'last-modified': '2026-01-20T19:43:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.905908'} 2026-01-20 19:43:24,544 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-20 19:43:24,544 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15431230 passed 2026-01-20 19:43:24,544 - DEBUG - ====Verifying policy data for ctest-vn4-15431230 in API_Server ====== 2026-01-20 19:43:24,544 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-01-20 19:43:24,552 - DEBUG - Requesting: http://10.0.0.65:8082/domain/e79d0ded-05e0-4fce-9cc2-48d79f990c62 2026-01-20 19:43:24,568 - DEBUG - Requesting: http://10.0.0.65:8082/project/08a0f112-eeb3-4fef-a117-d2e2edb45ed6 2026-01-20 19:43:24,666 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/ffded8f7-dffe-4f4c-8190-ee9a7f135b37 2026-01-20 19:43:24,690 - DEBUG - ==>Verifying data for policy with id: 4446c838-af3d-4361-8c88-94a3fd8d0885, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30430870', 'ctest-policy1-13371937'] 2026-01-20 19:43:24,690 - INFO - VN ctest-vn4-15431230 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-20 19:43:24,690 - DEBUG - Verifying the vn in opserver 2026-01-20 19:43:24,691 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230 virtual network link through opserver 10.0.0.65 2026-01-20 19:43:24,691 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-01-20 19:43:25,008 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-01-20 19:43:25,101 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230?flat'} 2026-01-20 19:43:25,101 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230 virtual network link through opserver 10.0.0.130 2026-01-20 19:43:25,101 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-01-20 19:43:25,413 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-01-20 19:43:25,487 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230?flat'} 2026-01-20 19:43:25,487 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230 virtual network link through opserver 10.0.0.73 2026-01-20 19:43:25,487 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-01-20 19:43:25,788 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-01-20 19:43:25,878 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230?flat'} 2026-01-20 19:43:25,878 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30430870:ctest-vn4-15431230 is found in opserver 2026-01-20 19:43:25,901 - DEBUG - Do not have enough data to verify VN in agent 2026-01-20 19:43:25,916 - DEBUG - VRF ids for VN ctest-vn4-15431230: {} 2026-01-20 19:43:25,917 - DEBUG - ====Verifying data for ctest-policy1-13371937 in API_Server ====== 2026-01-20 19:43:25,917 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-01-20 19:43:25,925 - DEBUG - Requesting: http://10.0.0.65:8082/domain/e79d0ded-05e0-4fce-9cc2-48d79f990c62 2026-01-20 19:43:25,937 - DEBUG - Requesting: http://10.0.0.65:8082/project/08a0f112-eeb3-4fef-a117-d2e2edb45ed6 2026-01-20 19:43:26,072 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/4446c838-af3d-4361-8c88-94a3fd8d0885 2026-01-20 19:43:26,084 - INFO - Verified policy ctest-policy1-13371937 in API Server, Result: True 2026-01-20 19:43:26,085 - INFO - Done with setup and verification, moving onto test .. 2026-01-20 19:43:26,099 - INFO - Deleting VN ctest-vn4-15431230 2026-01-20 19:43:26,354 - DEBUG - Response for deleting network () 2026-01-20 19:43:26,354 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/8c662549-6229-497c-8538-fa58afa1f9bd 2026-01-20 19:43:26,364 - DEBUG - Response Code: 404 2026-01-20 19:43:26,364 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-01-20 19:43:26,370 - DEBUG - Requesting: http://10.0.0.65:8082/domain/e79d0ded-05e0-4fce-9cc2-48d79f990c62 2026-01-20 19:43:26,447 - DEBUG - Requesting: http://10.0.0.65:8082/project/08a0f112-eeb3-4fef-a117-d2e2edb45ed6 2026-01-20 19:43:26,546 - INFO - Validated that VN ctest-vn4-15431230 is not found in API Server 2026-01-20 19:43:26,557 - DEBUG - VN ctest-vn4-15431230 is not present in Agent 10.0.0.131 2026-01-20 19:43:26,569 - DEBUG - VN ctest-vn4-15431230 is not present in Agent 10.0.0.133 2026-01-20 19:43:26,569 - INFO - Validated that VN ctest-vn4-15431230 is not in any agent 2026-01-20 19:43:26,610 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15431230 info 2026-01-20 19:43:26,660 - INFO - Deleted policy ctest-policy1-13371937 2026-01-20 19:43:26,851 - DEBUG - policy ctest-policy1-13371937 is not found in API Server 2026-01-20 19:43:28,238 - DEBUG - No XMPP flaps were noticed during the test