2026-06-22 05:56:54,775 - INFO - Domain Default found not creating 2026-06-22 05:56:54,911 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05488730 not found, creating it 2026-06-22 05:56:55,425 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05488730, ID : fd9eeafa-ab2f-4a54-a5f8-f530f0537dbf 2026-06-22 05:56:56,975 - INFO - ================================================================================ 2026-06-22 05:56:56,975 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 05:56:58,231 - WARNING - Test is running with cores: {'10.0.0.50': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-6019-2.1782106310']} 2026-06-22 05:56:58,244 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0', '10.20.0.254': '0'}, '10.0.0.22': {'10.20.0.14': '0', '10.20.0.17': '0'}} with 2026-06-22 05:56:58,244 - INFO - Initial checks done. Running the testcase now 2026-06-22 05:56:58,244 - INFO - 2026-06-22 05:56:58,244 - INFO - ================================================================================ 2026-06-22 05:56:58,244 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 05:56:58,244 - 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-22 05:56:59,502 - WARNING - Test is running with cores: {'10.0.0.50': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-6019-2.1782106310']} 2026-06-22 05:56:59,516 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0', '10.20.0.254': '0'}, '10.0.0.22': {'10.20.0.14': '0', '10.20.0.17': '0'}} with 2026-06-22 05:56:59,516 - INFO - Initial checks done. Running the testcase now 2026-06-22 05:56:59,517 - INFO - 2026-06-22 05:56:59,890 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482, 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-05488730:ctest-vn4-44600482, 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-05488730:ctest-vn4-44600482, 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-05488730:ctest-vn4-44600482, 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-22 05:57:00,496 - DEBUG - Response for create_network : {'network': {'id': '61b3de35-6b20-430e-b77a-3a07f009429c', 'name': 'ctest-vn4-44600482', 'tenant_id': 'fd9eeafaab2f4a54a5f8f530f0537dbf', 'project_id': 'fd9eeafaab2f4a54a5f8f530f0537dbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05488730', 'ctest-vn4-44600482'], 'port_security_enabled': True, 'description': ''}} 2026-06-22 05:57:00,772 - DEBUG - Response for create_subnet : {'subnet': {'id': '465e2268-eae1-4a7f-a6e0-2ec0370e3634', 'name': '', 'tenant_id': 'fd9eeafaab2f4a54a5f8f530f0537dbf', 'network_id': '61b3de35-6b20-430e-b77a-3a07f009429c', 'ip_version': 4, 'cidr': '175.232.126.64/26', 'allocation_pools': [{'start': '175.232.126.66', 'end': '175.232.126.126'}], 'gateway_ip': '175.232.126.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.232.126.66', 'tags': [], 'project_id': 'fd9eeafaab2f4a54a5f8f530f0537dbf'}} 2026-06-22 05:57:01,005 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc272c76-ec19-4491-81e7-17d6d14b4a68', 'name': '', 'tenant_id': 'fd9eeafaab2f4a54a5f8f530f0537dbf', 'network_id': '61b3de35-6b20-430e-b77a-3a07f009429c', 'ip_version': 6, 'cidr': '3bf5:2cbd:3588:b9e8:6e03:b674::/96', 'allocation_pools': [{'start': '3bf5:2cbd:3588:b9e8:6e03:b674:0:2', 'end': '3bf5:2cbd:3588:b9e8:6e03:b674:ffff:fffe'}], 'gateway_ip': '3bf5:2cbd:3588:b9e8:6e03:b674:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3bf5:2cbd:3588:b9e8:6e03:b674:0:2', 'tags': [], 'project_id': 'fd9eeafaab2f4a54a5f8f530f0537dbf'}} 2026-06-22 05:57:01,026 - INFO - Created VN ctest-vn4-44600482 2026-06-22 05:57:01,040 - DEBUG - VN ctest-vn4-44600482 UUID is 61b3de35-6b20-430e-b77a-3a07f009429c 2026-06-22 05:57:01,269 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61b3de35-6b20-430e-b77a-3a07f009429c', 'name': 'ctest-vn4-44600482', 'tenant_id': 'fd9eeafaab2f4a54a5f8f530f0537dbf', 'project_id': 'fd9eeafaab2f4a54a5f8f530f0537dbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['465e2268-eae1-4a7f-a6e0-2ec0370e3634', 'dc272c76-ec19-4491-81e7-17d6d14b4a68'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05488730', 'ctest-vn4-44600482'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05488730', 'ctest-policy1-81672161']], 'subnet_ipam': [{'subnet_cidr': '175.232.126.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3bf5:2cbd:3588:b9e8:6e03:b674::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-22 05:57:01,361 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 05:57:01,678 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 05:57:01,704 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60eaa01a-5eb5-4d13-b4b0-03e5337f378e 2026-06-22 05:57:01,719 - DEBUG - Requesting: http://10.0.0.38:8082/project/fd9eeafa-ab2f-4a54-a5f8-f530f0537dbf 2026-06-22 05:57:01,822 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61b3de35-6b20-430e-b77a-3a07f009429c 2026-06-22 05:57:01,838 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61b3de35-6b20-430e-b77a-3a07f009429c 2026-06-22 05:57:01,848 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3b0805c-ddec-4e50-b0a1-77f8a1ad0daa 2026-06-22 05:57:01,855 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3b0805c-ddec-4e50-b0a1-77f8a1ad0daa 2026-06-22 05:57:01,862 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/300c0453-e939-4618-b4be-1b1dbf4d7e67 2026-06-22 05:57:01,868 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 05:57:01,868 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61b3de35-6b20-430e-b77a-3a07f009429c 2026-06-22 05:57:01,877 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3b0805c-ddec-4e50-b0a1-77f8a1ad0daa 2026-06-22 05:57:01,894 - INFO - Verified VN network id 11 for VN 61b3de35-6b20-430e-b77a-3a07f009429c 2026-06-22 05:57:01,894 - INFO - Verifications in API Server for VN ctest-vn4-44600482 passed 2026-06-22 05:57:01,894 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61b3de35-6b20-430e-b77a-3a07f009429c 2026-06-22 05:57:01,905 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3b0805c-ddec-4e50-b0a1-77f8a1ad0daa 2026-06-22 05:57:01,912 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3b0805c-ddec-4e50-b0a1-77f8a1ad0daa 2026-06-22 05:57:01,919 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/300c0453-e939-4618-b4be-1b1dbf4d7e67 2026-06-22 05:57:01,929 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05488730', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7040214963522126606', 'uuid-lslong': '13220943461865833116'}, 'enable': 'true', 'created': '2026-06-22T05:57:00', 'last-modified': '2026-06-22T05:57:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715324'} 2026-06-22 05:57:01,934 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 05:57:01,942 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05488730', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7040214963522126606', 'uuid-lslong': '13220943461865833116'}, 'enable': 'true', 'created': '2026-06-22T05:57:00', 'last-modified': '2026-06-22T05:57:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722221'} 2026-06-22 05:57:01,948 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 05:57:01,953 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05488730', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7040214963522126606', 'uuid-lslong': '13220943461865833116'}, 'enable': 'true', 'created': '2026-06-22T05:57:00', 'last-modified': '2026-06-22T05:57:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.751218'} 2026-06-22 05:57:01,958 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 05:57:01,959 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44600482 passed 2026-06-22 05:57:01,959 - DEBUG - ====Verifying policy data for ctest-vn4-44600482 in API_Server ====== 2026-06-22 05:57:01,959 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 05:57:01,965 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60eaa01a-5eb5-4d13-b4b0-03e5337f378e 2026-06-22 05:57:01,975 - DEBUG - Requesting: http://10.0.0.38:8082/project/fd9eeafa-ab2f-4a54-a5f8-f530f0537dbf 2026-06-22 05:57:02,066 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/61b3de35-6b20-430e-b77a-3a07f009429c 2026-06-22 05:57:02,078 - DEBUG - ==>Verifying data for policy with id: b24652a4-b11e-4053-8170-52680a8d35ce, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05488730', 'ctest-policy1-81672161'] 2026-06-22 05:57:02,078 - INFO - VN ctest-vn4-44600482 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-22 05:57:02,078 - DEBUG - Verifying the vn in opserver 2026-06-22 05:57:02,078 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482 virtual network link through opserver 10.0.0.38 2026-06-22 05:57:02,078 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-22 05:57:02,396 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-22 05:57:02,455 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482?flat'} 2026-06-22 05:57:02,455 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482 virtual network link through opserver 10.0.0.50 2026-06-22 05:57:02,455 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-22 05:57:02,776 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-22 05:57:02,831 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482?flat'} 2026-06-22 05:57:02,831 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482 virtual network link through opserver 10.0.0.33 2026-06-22 05:57:02,831 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-22 05:57:03,158 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-22 05:57:03,210 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482?flat'} 2026-06-22 05:57:03,210 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05488730:ctest-vn4-44600482 is found in opserver 2026-06-22 05:57:03,231 - DEBUG - Do not have enough data to verify VN in agent 2026-06-22 05:57:03,240 - DEBUG - VRF ids for VN ctest-vn4-44600482: {} 2026-06-22 05:57:03,240 - DEBUG - ====Verifying data for ctest-policy1-81672161 in API_Server ====== 2026-06-22 05:57:03,240 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 05:57:03,246 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60eaa01a-5eb5-4d13-b4b0-03e5337f378e 2026-06-22 05:57:03,256 - DEBUG - Requesting: http://10.0.0.38:8082/project/fd9eeafa-ab2f-4a54-a5f8-f530f0537dbf 2026-06-22 05:57:03,350 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/b24652a4-b11e-4053-8170-52680a8d35ce 2026-06-22 05:57:03,359 - INFO - Verified policy ctest-policy1-81672161 in API Server, Result: True 2026-06-22 05:57:03,359 - INFO - Done with setup and verification, moving onto test .. 2026-06-22 05:57:03,371 - INFO - Deleting VN ctest-vn4-44600482 2026-06-22 05:57:03,561 - DEBUG - Response for deleting network () 2026-06-22 05:57:03,561 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f3b0805c-ddec-4e50-b0a1-77f8a1ad0daa 2026-06-22 05:57:03,569 - DEBUG - Response Code: 404 2026-06-22 05:57:03,569 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-22 05:57:03,582 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60eaa01a-5eb5-4d13-b4b0-03e5337f378e 2026-06-22 05:57:03,637 - DEBUG - Requesting: http://10.0.0.38:8082/project/fd9eeafa-ab2f-4a54-a5f8-f530f0537dbf 2026-06-22 05:57:03,744 - INFO - Validated that VN ctest-vn4-44600482 is not found in API Server 2026-06-22 05:57:03,754 - DEBUG - VN ctest-vn4-44600482 is not present in Agent 10.0.0.249 2026-06-22 05:57:03,766 - DEBUG - VN ctest-vn4-44600482 is not present in Agent 10.0.0.22 2026-06-22 05:57:03,766 - INFO - Validated that VN ctest-vn4-44600482 is not in any agent 2026-06-22 05:57:03,795 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44600482 info 2026-06-22 05:57:03,836 - INFO - Deleted policy ctest-policy1-81672161 2026-06-22 05:57:04,036 - DEBUG - policy ctest-policy1-81672161 is not found in API Server 2026-06-22 05:57:05,341 - DEBUG - No XMPP flaps were noticed during the test
2026-06-22 05:57:05,342 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-06-22 05:57:05,343 - INFO - -------------------------------------------------------------------------------- 2026-06-22 05:57:06,669 - DEBUG - No XMPP flaps were noticed during the test
2026-06-22 05:57:06,669 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-06-22 05:57:06,669 - INFO - -------------------------------------------------------------------------------- 2026-06-22 05:57:07,415 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-05488730, ID : fd9eeafa-ab2f-4a54-a5f8-f530f0537dbf