2026-06-18 13:17:44,218 - INFO - Domain Default found not creating 2026-06-18 13:17:44,376 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51798329 not found, creating it 2026-06-18 13:17:44,992 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51798329, ID : 2f6d238b-8c98-45ae-b778-490e21e290df 2026-06-18 13:17:46,668 - INFO - ================================================================================ 2026-06-18 13:17:46,669 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 13:17:47,924 - WARNING - Test is running with cores: {'10.0.0.129': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5981-1.1781787175']} 2026-06-18 13:17:47,942 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0', '10.20.0.254': '0'}, '10.0.0.27': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2026-06-18 13:17:47,942 - INFO - Initial checks done. Running the testcase now 2026-06-18 13:17:47,942 - INFO - 2026-06-18 13:17:47,942 - INFO - ================================================================================ 2026-06-18 13:17:47,942 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 13:17:47,942 - 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-06-18 13:17:49,199 - WARNING - Test is running with cores: {'10.0.0.129': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5981-1.1781787175']} 2026-06-18 13:17:49,214 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0', '10.20.0.254': '0'}, '10.0.0.27': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2026-06-18 13:17:49,214 - INFO - Initial checks done. Running the testcase now 2026-06-18 13:17:49,214 - INFO - 2026-06-18 13:17:49,622 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393, 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-51798329:ctest-vn4-20964393, 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-51798329:ctest-vn4-20964393, 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-51798329:ctest-vn4-20964393, 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-06-18 13:17:50,294 - DEBUG - Response for create_network : {'network': {'id': '6dfb6cb4-a84c-4fb8-ad4c-dd50bbd9fddd', 'name': 'ctest-vn4-20964393', 'tenant_id': '2f6d238b8c9845aeb778490e21e290df', 'project_id': '2f6d238b8c9845aeb778490e21e290df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51798329', 'ctest-vn4-20964393'], 'port_security_enabled': True, 'description': ''}} 2026-06-18 13:17:50,575 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f7f7872-22fd-44ff-af57-ded287d12f9a', 'name': '', 'tenant_id': '2f6d238b8c9845aeb778490e21e290df', 'network_id': '6dfb6cb4-a84c-4fb8-ad4c-dd50bbd9fddd', 'ip_version': 4, 'cidr': '112.91.121.0/26', 'allocation_pools': [{'start': '112.91.121.2', 'end': '112.91.121.62'}], 'gateway_ip': '112.91.121.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.91.121.2', 'tags': [], 'project_id': '2f6d238b8c9845aeb778490e21e290df'}} 2026-06-18 13:17:50,832 - DEBUG - Response for create_subnet : {'subnet': {'id': '27b1cb57-35fe-4b07-b43d-e0a1f67681f5', 'name': '', 'tenant_id': '2f6d238b8c9845aeb778490e21e290df', 'network_id': '6dfb6cb4-a84c-4fb8-ad4c-dd50bbd9fddd', 'ip_version': 6, 'cidr': '3aaf:6fc3:7b10:bcac:ef0b:c6c3::/96', 'allocation_pools': [{'start': '3aaf:6fc3:7b10:bcac:ef0b:c6c3:0:2', 'end': '3aaf:6fc3:7b10:bcac:ef0b:c6c3:ffff:fffe'}], 'gateway_ip': '3aaf:6fc3:7b10:bcac:ef0b:c6c3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3aaf:6fc3:7b10:bcac:ef0b:c6c3:0:2', 'tags': [], 'project_id': '2f6d238b8c9845aeb778490e21e290df'}} 2026-06-18 13:17:50,857 - INFO - Created VN ctest-vn4-20964393 2026-06-18 13:17:50,872 - DEBUG - VN ctest-vn4-20964393 UUID is 6dfb6cb4-a84c-4fb8-ad4c-dd50bbd9fddd 2026-06-18 13:17:51,118 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6dfb6cb4-a84c-4fb8-ad4c-dd50bbd9fddd', 'name': 'ctest-vn4-20964393', 'tenant_id': '2f6d238b8c9845aeb778490e21e290df', 'project_id': '2f6d238b8c9845aeb778490e21e290df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f7f7872-22fd-44ff-af57-ded287d12f9a', '27b1cb57-35fe-4b07-b43d-e0a1f67681f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51798329', 'ctest-vn4-20964393'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51798329', 'ctest-policy1-51622409']], 'subnet_ipam': [{'subnet_cidr': '112.91.121.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3aaf:6fc3:7b10:bcac:ef0b:c6c3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-18 13:17:51,230 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-06-18 13:17:51,576 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-06-18 13:17:51,603 - DEBUG - Requesting: http://10.0.0.129:8082/domain/7c53ba43-baa0-454c-9d61-eea798de07ed 2026-06-18 13:17:51,621 - DEBUG - Requesting: http://10.0.0.129:8082/project/2f6d238b-8c98-45ae-b778-490e21e290df 2026-06-18 13:17:51,723 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6dfb6cb4-a84c-4fb8-ad4c-dd50bbd9fddd 2026-06-18 13:17:51,737 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6dfb6cb4-a84c-4fb8-ad4c-dd50bbd9fddd 2026-06-18 13:17:51,751 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/4945cb8f-9aa6-44a5-bb2d-70322c17454a 2026-06-18 13:17:51,761 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/4945cb8f-9aa6-44a5-bb2d-70322c17454a 2026-06-18 13:17:51,769 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/4a254bd0-bfb5-4df8-8d9d-26860387de33 2026-06-18 13:17:51,776 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 13:17:51,776 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6dfb6cb4-a84c-4fb8-ad4c-dd50bbd9fddd 2026-06-18 13:17:51,786 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/4945cb8f-9aa6-44a5-bb2d-70322c17454a 2026-06-18 13:17:51,806 - INFO - Verified VN network id 10 for VN 6dfb6cb4-a84c-4fb8-ad4c-dd50bbd9fddd 2026-06-18 13:17:51,806 - INFO - Verifications in API Server for VN ctest-vn4-20964393 passed 2026-06-18 13:17:51,806 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6dfb6cb4-a84c-4fb8-ad4c-dd50bbd9fddd 2026-06-18 13:17:51,820 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/4945cb8f-9aa6-44a5-bb2d-70322c17454a 2026-06-18 13:17:51,828 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/4945cb8f-9aa6-44a5-bb2d-70322c17454a 2026-06-18 13:17:51,837 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/4a254bd0-bfb5-4df8-8d9d-26860387de33 2026-06-18 13:17:51,850 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51798329', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7925047492462006200', 'uuid-lslong': '12487599205610290653'}, 'enable': 'true', 'created': '2026-06-18T13:17:50', 'last-modified': '2026-06-18T13:17:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.791358'} 2026-06-18 13:17:51,857 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 13:17:51,862 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51798329', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7925047492462006200', 'uuid-lslong': '12487599205610290653'}, 'enable': 'true', 'created': '2026-06-18T13:17:50', 'last-modified': '2026-06-18T13:17:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.801774'} 2026-06-18 13:17:51,869 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 13:17:51,875 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51798329', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7925047492462006200', 'uuid-lslong': '12487599205610290653'}, 'enable': 'true', 'created': '2026-06-18T13:17:50', 'last-modified': '2026-06-18T13:17:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.812325'} 2026-06-18 13:17:51,881 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 13:17:51,881 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20964393 passed 2026-06-18 13:17:51,881 - DEBUG - ====Verifying policy data for ctest-vn4-20964393 in API_Server ====== 2026-06-18 13:17:51,881 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-06-18 13:17:51,888 - DEBUG - Requesting: http://10.0.0.129:8082/domain/7c53ba43-baa0-454c-9d61-eea798de07ed 2026-06-18 13:17:51,900 - DEBUG - Requesting: http://10.0.0.129:8082/project/2f6d238b-8c98-45ae-b778-490e21e290df 2026-06-18 13:17:51,996 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6dfb6cb4-a84c-4fb8-ad4c-dd50bbd9fddd 2026-06-18 13:17:52,013 - DEBUG - ==>Verifying data for policy with id: 1aef71f5-f1b0-4120-b2ce-16e5b4f7e500, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51798329', 'ctest-policy1-51622409'] 2026-06-18 13:17:52,013 - INFO - VN ctest-vn4-20964393 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-18 13:17:52,013 - DEBUG - Verifying the vn in opserver 2026-06-18 13:17:52,013 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393 virtual network link through opserver 10.0.0.129 2026-06-18 13:17:52,014 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-18 13:17:52,344 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-18 13:17:52,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393?flat'} 2026-06-18 13:17:52,408 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393 virtual network link through opserver 10.0.0.241 2026-06-18 13:17:52,408 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-06-18 13:17:52,741 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-06-18 13:17:52,796 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393?flat'} 2026-06-18 13:17:52,796 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393 virtual network link through opserver 10.0.0.242 2026-06-18 13:17:52,797 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-06-18 13:17:53,129 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-06-18 13:17:53,185 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393?flat'} 2026-06-18 13:17:53,185 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51798329:ctest-vn4-20964393 is found in opserver 2026-06-18 13:17:53,205 - DEBUG - Do not have enough data to verify VN in agent 2026-06-18 13:17:53,214 - DEBUG - VRF ids for VN ctest-vn4-20964393: {} 2026-06-18 13:17:53,214 - DEBUG - ====Verifying data for ctest-policy1-51622409 in API_Server ====== 2026-06-18 13:17:53,214 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-06-18 13:17:53,220 - DEBUG - Requesting: http://10.0.0.129:8082/domain/7c53ba43-baa0-454c-9d61-eea798de07ed 2026-06-18 13:17:53,232 - DEBUG - Requesting: http://10.0.0.129:8082/project/2f6d238b-8c98-45ae-b778-490e21e290df 2026-06-18 13:17:53,336 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/1aef71f5-f1b0-4120-b2ce-16e5b4f7e500 2026-06-18 13:17:53,352 - INFO - Verified policy ctest-policy1-51622409 in API Server, Result: True 2026-06-18 13:17:53,352 - INFO - Done with setup and verification, moving onto test .. 2026-06-18 13:17:53,372 - INFO - Deleting VN ctest-vn4-20964393 2026-06-18 13:17:53,628 - DEBUG - Response for deleting network () 2026-06-18 13:17:53,628 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/4945cb8f-9aa6-44a5-bb2d-70322c17454a 2026-06-18 13:17:53,635 - DEBUG - Response Code: 404 2026-06-18 13:17:53,635 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-06-18 13:17:53,643 - DEBUG - Requesting: http://10.0.0.129:8082/domain/7c53ba43-baa0-454c-9d61-eea798de07ed 2026-06-18 13:17:53,698 - DEBUG - Requesting: http://10.0.0.129:8082/project/2f6d238b-8c98-45ae-b778-490e21e290df 2026-06-18 13:17:53,798 - INFO - Validated that VN ctest-vn4-20964393 is not found in API Server 2026-06-18 13:17:53,811 - DEBUG - VN ctest-vn4-20964393 is not present in Agent 10.0.0.141 2026-06-18 13:17:53,820 - DEBUG - VN ctest-vn4-20964393 is not present in Agent 10.0.0.27 2026-06-18 13:17:53,820 - INFO - Validated that VN ctest-vn4-20964393 is not in any agent 2026-06-18 13:17:53,854 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20964393 info 2026-06-18 13:17:53,899 - INFO - Deleted policy ctest-policy1-51622409 2026-06-18 13:17:54,097 - DEBUG - policy ctest-policy1-51622409 is not found in API Server 2026-06-18 13:17:55,356 - DEBUG - No XMPP flaps were noticed during the test