2026-01-21 19:26:48,769 - INFO - Domain Default found not creating 2026-01-21 19:26:48,940 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03675608 not found, creating it 2026-01-21 19:26:49,502 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03675608, ID : f127127c-ad61-4a4d-a6f7-513c88c61cd3 2026-01-21 19:26:51,097 - INFO - ================================================================================ 2026-01-21 19:26:51,097 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-21 19:26:52,383 - WARNING - Test is running with cores: {'10.0.0.22': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5053-2.1769021933']} 2026-01-21 19:26:52,396 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.18': '0', '10.20.0.14': '0'}, '10.0.0.27': {'10.20.0.18': '0', '10.20.0.254': '0'}} with 2026-01-21 19:26:52,396 - INFO - Initial checks done. Running the testcase now 2026-01-21 19:26:52,397 - INFO - 2026-01-21 19:26:52,397 - INFO - ================================================================================ 2026-01-21 19:26:52,397 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-21 19:26:52,397 - 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-21 19:26:53,703 - WARNING - Test is running with cores: {'10.0.0.22': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5053-2.1769021933']} 2026-01-21 19:26:53,715 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.18': '0', '10.20.0.14': '0'}, '10.0.0.27': {'10.20.0.18': '0', '10.20.0.254': '0'}} with 2026-01-21 19:26:53,715 - INFO - Initial checks done. Running the testcase now 2026-01-21 19:26:53,715 - INFO - 2026-01-21 19:26:54,145 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708, 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-03675608:ctest-vn4-47524708, 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-03675608:ctest-vn4-47524708, 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-03675608:ctest-vn4-47524708, 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-21 19:26:54,840 - DEBUG - Response for create_network : {'network': {'id': 'e16a6547-843c-46b9-8541-ec8f608df39d', 'name': 'ctest-vn4-47524708', 'tenant_id': 'f127127cad614a4da6f7513c88c61cd3', 'project_id': 'f127127cad614a4da6f7513c88c61cd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03675608', 'ctest-vn4-47524708'], 'port_security_enabled': True, 'description': ''}} 2026-01-21 19:26:55,187 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a553e35b-c0d9-4de9-bc84-5583d1f8c398', 'name': '', 'tenant_id': 'f127127cad614a4da6f7513c88c61cd3', 'network_id': 'e16a6547-843c-46b9-8541-ec8f608df39d', 'ip_version': 4, 'cidr': '211.24.142.64/26', 'allocation_pools': [{'start': '211.24.142.66', 'end': '211.24.142.126'}], 'gateway_ip': '211.24.142.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.24.142.66', 'tags': [], 'project_id': 'f127127cad614a4da6f7513c88c61cd3'}} 2026-01-21 19:26:55,441 - DEBUG - Response for create_subnet : {'subnet': {'id': '851104ff-017c-47a0-be78-462c0ce59e6f', 'name': '', 'tenant_id': 'f127127cad614a4da6f7513c88c61cd3', 'network_id': 'e16a6547-843c-46b9-8541-ec8f608df39d', 'ip_version': 6, 'cidr': '2d9d:ef1b:4710:fd17:e880:c168::/96', 'allocation_pools': [{'start': '2d9d:ef1b:4710:fd17:e880:c168:0:2', 'end': '2d9d:ef1b:4710:fd17:e880:c168:ffff:fffe'}], 'gateway_ip': '2d9d:ef1b:4710:fd17:e880:c168:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d9d:ef1b:4710:fd17:e880:c168:0:2', 'tags': [], 'project_id': 'f127127cad614a4da6f7513c88c61cd3'}} 2026-01-21 19:26:55,469 - INFO - Created VN ctest-vn4-47524708 2026-01-21 19:26:55,480 - DEBUG - VN ctest-vn4-47524708 UUID is e16a6547-843c-46b9-8541-ec8f608df39d 2026-01-21 19:26:55,765 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e16a6547-843c-46b9-8541-ec8f608df39d', 'name': 'ctest-vn4-47524708', 'tenant_id': 'f127127cad614a4da6f7513c88c61cd3', 'project_id': 'f127127cad614a4da6f7513c88c61cd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a553e35b-c0d9-4de9-bc84-5583d1f8c398', '851104ff-017c-47a0-be78-462c0ce59e6f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03675608', 'ctest-vn4-47524708'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03675608', 'ctest-policy1-73035164']], 'subnet_ipam': [{'subnet_cidr': '211.24.142.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d9d:ef1b:4710:fd17:e880:c168::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-21 19:26:55,864 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-21 19:26:56,179 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-21 19:26:56,213 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5b45d892-1ee8-46c2-be27-6fc179d77bb5 2026-01-21 19:26:56,231 - DEBUG - Requesting: http://10.0.0.33:8082/project/f127127c-ad61-4a4d-a6f7-513c88c61cd3 2026-01-21 19:26:56,353 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e16a6547-843c-46b9-8541-ec8f608df39d 2026-01-21 19:26:56,366 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e16a6547-843c-46b9-8541-ec8f608df39d 2026-01-21 19:26:56,377 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/eb527a8e-2ad9-4470-84c2-178ec120d18a 2026-01-21 19:26:56,390 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/eb527a8e-2ad9-4470-84c2-178ec120d18a 2026-01-21 19:26:56,399 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/563c03fd-15b4-42fb-b24d-7693f0ee19db 2026-01-21 19:26:56,411 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-21 19:26:56,411 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e16a6547-843c-46b9-8541-ec8f608df39d 2026-01-21 19:26:56,423 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/eb527a8e-2ad9-4470-84c2-178ec120d18a 2026-01-21 19:26:56,443 - INFO - Verified VN network id 11 for VN e16a6547-843c-46b9-8541-ec8f608df39d 2026-01-21 19:26:56,443 - INFO - Verifications in API Server for VN ctest-vn4-47524708 passed 2026-01-21 19:26:56,443 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e16a6547-843c-46b9-8541-ec8f608df39d 2026-01-21 19:26:56,456 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/eb527a8e-2ad9-4470-84c2-178ec120d18a 2026-01-21 19:26:56,465 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/eb527a8e-2ad9-4470-84c2-178ec120d18a 2026-01-21 19:26:56,475 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/563c03fd-15b4-42fb-b24d-7693f0ee19db 2026-01-21 19:26:56,491 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03675608', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16242906363900741305', 'uuid-lslong': '9602215981075002269'}, 'enable': 'true', 'created': '2026-01-21T19:26:54', 'last-modified': '2026-01-21T19:26:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.827325'} 2026-01-21 19:26:56,497 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-21 19:26:56,503 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03675608', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16242906363900741305', 'uuid-lslong': '9602215981075002269'}, 'enable': 'true', 'created': '2026-01-21T19:26:54', 'last-modified': '2026-01-21T19:26:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.829217'} 2026-01-21 19:26:56,513 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-21 19:26:56,519 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03675608', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16242906363900741305', 'uuid-lslong': '9602215981075002269'}, 'enable': 'true', 'created': '2026-01-21T19:26:54', 'last-modified': '2026-01-21T19:26:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.855637'} 2026-01-21 19:26:56,525 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-21 19:26:56,525 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47524708 passed 2026-01-21 19:26:56,525 - DEBUG - ====Verifying policy data for ctest-vn4-47524708 in API_Server ====== 2026-01-21 19:26:56,525 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-21 19:26:56,534 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5b45d892-1ee8-46c2-be27-6fc179d77bb5 2026-01-21 19:26:56,547 - DEBUG - Requesting: http://10.0.0.33:8082/project/f127127c-ad61-4a4d-a6f7-513c88c61cd3 2026-01-21 19:26:56,667 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e16a6547-843c-46b9-8541-ec8f608df39d 2026-01-21 19:26:56,678 - DEBUG - ==>Verifying data for policy with id: afcb60f6-fac7-497f-af05-854e54a96edc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03675608', 'ctest-policy1-73035164'] 2026-01-21 19:26:56,678 - INFO - VN ctest-vn4-47524708 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-21 19:26:56,678 - DEBUG - Verifying the vn in opserver 2026-01-21 19:26:56,678 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708 virtual network link through opserver 10.0.0.33 2026-01-21 19:26:56,678 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-21 19:26:56,979 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-21 19:26:57,070 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708?flat'} 2026-01-21 19:26:57,070 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708 virtual network link through opserver 10.0.0.22 2026-01-21 19:26:57,070 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-21 19:26:57,387 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-21 19:26:57,514 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708?flat'} 2026-01-21 19:26:57,514 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708 virtual network link through opserver 10.0.0.249 2026-01-21 19:26:57,514 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-21 19:26:57,809 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-21 19:26:57,872 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708?flat'} 2026-01-21 19:26:57,872 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03675608:ctest-vn4-47524708 is found in opserver 2026-01-21 19:26:57,894 - DEBUG - Do not have enough data to verify VN in agent 2026-01-21 19:26:57,903 - DEBUG - VRF ids for VN ctest-vn4-47524708: {} 2026-01-21 19:26:57,903 - DEBUG - ====Verifying data for ctest-policy1-73035164 in API_Server ====== 2026-01-21 19:26:57,903 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-21 19:26:57,910 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5b45d892-1ee8-46c2-be27-6fc179d77bb5 2026-01-21 19:26:57,922 - DEBUG - Requesting: http://10.0.0.33:8082/project/f127127c-ad61-4a4d-a6f7-513c88c61cd3 2026-01-21 19:26:58,053 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/afcb60f6-fac7-497f-af05-854e54a96edc 2026-01-21 19:26:58,066 - INFO - Verified policy ctest-policy1-73035164 in API Server, Result: True 2026-01-21 19:26:58,066 - INFO - Done with setup and verification, moving onto test .. 2026-01-21 19:26:58,079 - INFO - Deleting VN ctest-vn4-47524708 2026-01-21 19:26:58,313 - DEBUG - Response for deleting network () 2026-01-21 19:26:58,313 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/eb527a8e-2ad9-4470-84c2-178ec120d18a 2026-01-21 19:26:58,326 - DEBUG - Response Code: 404 2026-01-21 19:26:58,326 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-21 19:26:58,338 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5b45d892-1ee8-46c2-be27-6fc179d77bb5 2026-01-21 19:26:58,395 - DEBUG - Requesting: http://10.0.0.33:8082/project/f127127c-ad61-4a4d-a6f7-513c88c61cd3 2026-01-21 19:26:58,493 - INFO - Validated that VN ctest-vn4-47524708 is not found in API Server 2026-01-21 19:26:58,504 - DEBUG - VN ctest-vn4-47524708 is not present in Agent 10.0.0.19 2026-01-21 19:26:58,513 - DEBUG - VN ctest-vn4-47524708 is not present in Agent 10.0.0.27 2026-01-21 19:26:58,513 - INFO - Validated that VN ctest-vn4-47524708 is not in any agent 2026-01-21 19:26:58,547 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47524708 info 2026-01-21 19:26:58,588 - INFO - Deleted policy ctest-policy1-73035164 2026-01-21 19:26:58,785 - DEBUG - policy ctest-policy1-73035164 is not found in API Server 2026-01-21 19:27:00,111 - DEBUG - No XMPP flaps were noticed during the test