2026-06-08 06:20:14,660 - INFO - Domain Default found not creating 2026-06-08 06:20:14,864 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25154327 not found, creating it 2026-06-08 06:20:15,400 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25154327, ID : cc407159-c64b-453c-879a-5f56dde1aa4a 2026-06-08 06:20:17,167 - INFO - ================================================================================ 2026-06-08 06:20:17,167 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-08 06:20:18,448 - WARNING - Test is running with cores: {'10.0.0.38': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5902-1.1780898019'], '10.0.0.33': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5902-3.1780898019']} 2026-06-08 06:20:18,461 - 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.254': '0', '10.20.0.17': '0'}} with 2026-06-08 06:20:18,461 - INFO - Initial checks done. Running the testcase now 2026-06-08 06:20:18,461 - INFO - 2026-06-08 06:20:18,461 - INFO - ================================================================================ 2026-06-08 06:20:18,462 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-08 06:20:18,462 - 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-08 06:20:19,736 - WARNING - Test is running with cores: {'10.0.0.38': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5902-1.1780898019'], '10.0.0.33': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5902-3.1780898019']} 2026-06-08 06:20:19,750 - 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.254': '0', '10.20.0.17': '0'}} with 2026-06-08 06:20:19,750 - INFO - Initial checks done. Running the testcase now 2026-06-08 06:20:19,750 - INFO - 2026-06-08 06:20:20,096 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026, 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-25154327:ctest-vn4-35114026, 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-25154327:ctest-vn4-35114026, 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-25154327:ctest-vn4-35114026, 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-08 06:20:20,736 - DEBUG - Response for create_network : {'network': {'id': '1923c5a9-fb81-4657-b5c5-91c9db91ba15', 'name': 'ctest-vn4-35114026', 'tenant_id': 'cc407159c64b453c879a5f56dde1aa4a', 'project_id': 'cc407159c64b453c879a5f56dde1aa4a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25154327', 'ctest-vn4-35114026'], 'port_security_enabled': True, 'description': ''}} 2026-06-08 06:20:21,049 - DEBUG - Response for create_subnet : {'subnet': {'id': '72aa85ea-d3e1-45bc-9746-0030d9538489', 'name': '', 'tenant_id': 'cc407159c64b453c879a5f56dde1aa4a', 'network_id': '1923c5a9-fb81-4657-b5c5-91c9db91ba15', 'ip_version': 4, 'cidr': '198.61.81.0/26', 'allocation_pools': [{'start': '198.61.81.2', 'end': '198.61.81.62'}], 'gateway_ip': '198.61.81.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.61.81.2', 'tags': [], 'project_id': 'cc407159c64b453c879a5f56dde1aa4a'}} 2026-06-08 06:20:21,269 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df4bc5d7-282a-4624-b6dc-37164cd98446', 'name': '', 'tenant_id': 'cc407159c64b453c879a5f56dde1aa4a', 'network_id': '1923c5a9-fb81-4657-b5c5-91c9db91ba15', 'ip_version': 6, 'cidr': '32e0:20a4:da93:52c6:7c1:6716::/96', 'allocation_pools': [{'start': '32e0:20a4:da93:52c6:7c1:6716:0:2', 'end': '32e0:20a4:da93:52c6:7c1:6716:ffff:fffe'}], 'gateway_ip': '32e0:20a4:da93:52c6:7c1:6716:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32e0:20a4:da93:52c6:7c1:6716:0:2', 'tags': [], 'project_id': 'cc407159c64b453c879a5f56dde1aa4a'}} 2026-06-08 06:20:21,302 - INFO - Created VN ctest-vn4-35114026 2026-06-08 06:20:21,316 - DEBUG - VN ctest-vn4-35114026 UUID is 1923c5a9-fb81-4657-b5c5-91c9db91ba15 2026-06-08 06:20:21,560 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1923c5a9-fb81-4657-b5c5-91c9db91ba15', 'name': 'ctest-vn4-35114026', 'tenant_id': 'cc407159c64b453c879a5f56dde1aa4a', 'project_id': 'cc407159c64b453c879a5f56dde1aa4a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72aa85ea-d3e1-45bc-9746-0030d9538489', 'df4bc5d7-282a-4624-b6dc-37164cd98446'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25154327', 'ctest-vn4-35114026'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25154327', 'ctest-policy1-00318848']], 'subnet_ipam': [{'subnet_cidr': '198.61.81.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32e0:20a4:da93:52c6:7c1:6716::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-08 06:20:21,681 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 06:20:21,945 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 06:20:21,977 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ff885fe6-2413-4985-853a-0c3bd0a6a9a3 2026-06-08 06:20:21,994 - DEBUG - Requesting: http://10.0.0.38:8082/project/cc407159-c64b-453c-879a-5f56dde1aa4a 2026-06-08 06:20:22,102 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1923c5a9-fb81-4657-b5c5-91c9db91ba15 2026-06-08 06:20:22,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1923c5a9-fb81-4657-b5c5-91c9db91ba15 2026-06-08 06:20:22,127 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9453f97c-e9ae-4790-91cb-00319e172519 2026-06-08 06:20:22,136 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9453f97c-e9ae-4790-91cb-00319e172519 2026-06-08 06:20:22,146 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df3255e9-4a7d-418b-a595-4960f76099ba 2026-06-08 06:20:22,154 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 06:20:22,154 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1923c5a9-fb81-4657-b5c5-91c9db91ba15 2026-06-08 06:20:22,165 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9453f97c-e9ae-4790-91cb-00319e172519 2026-06-08 06:20:22,183 - INFO - Verified VN network id 10 for VN 1923c5a9-fb81-4657-b5c5-91c9db91ba15 2026-06-08 06:20:22,184 - INFO - Verifications in API Server for VN ctest-vn4-35114026 passed 2026-06-08 06:20:22,184 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1923c5a9-fb81-4657-b5c5-91c9db91ba15 2026-06-08 06:20:22,199 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9453f97c-e9ae-4790-91cb-00319e172519 2026-06-08 06:20:22,208 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9453f97c-e9ae-4790-91cb-00319e172519 2026-06-08 06:20:22,218 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df3255e9-4a7d-418b-a595-4960f76099ba 2026-06-08 06:20:22,244 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25154327', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1811508808992769623', 'uuid-lslong': '13098035387435170325'}, 'enable': 'true', 'created': '2026-06-08T06:20:20', 'last-modified': '2026-06-08T06:20:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.729975'} 2026-06-08 06:20:22,252 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 06:20:22,259 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25154327', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1811508808992769623', 'uuid-lslong': '13098035387435170325'}, 'enable': 'true', 'created': '2026-06-08T06:20:20', 'last-modified': '2026-06-08T06:20:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.739385'} 2026-06-08 06:20:22,270 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 06:20:22,281 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25154327', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1811508808992769623', 'uuid-lslong': '13098035387435170325'}, 'enable': 'true', 'created': '2026-06-08T06:20:20', 'last-modified': '2026-06-08T06:20:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.749304'} 2026-06-08 06:20:22,288 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 06:20:22,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-35114026 passed 2026-06-08 06:20:22,289 - DEBUG - ====Verifying policy data for ctest-vn4-35114026 in API_Server ====== 2026-06-08 06:20:22,289 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 06:20:22,296 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ff885fe6-2413-4985-853a-0c3bd0a6a9a3 2026-06-08 06:20:22,309 - DEBUG - Requesting: http://10.0.0.38:8082/project/cc407159-c64b-453c-879a-5f56dde1aa4a 2026-06-08 06:20:22,407 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1923c5a9-fb81-4657-b5c5-91c9db91ba15 2026-06-08 06:20:22,417 - DEBUG - ==>Verifying data for policy with id: 31a01873-5cf7-43b2-bbb5-e6f82ea374db, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25154327', 'ctest-policy1-00318848'] 2026-06-08 06:20:22,417 - INFO - VN ctest-vn4-35114026 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-08 06:20:22,417 - DEBUG - Verifying the vn in opserver 2026-06-08 06:20:22,417 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026 virtual network link through opserver 10.0.0.38 2026-06-08 06:20:22,418 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-08 06:20:22,684 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-08 06:20:22,759 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026?flat'} 2026-06-08 06:20:22,759 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026 virtual network link through opserver 10.0.0.50 2026-06-08 06:20:22,759 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-08 06:20:23,027 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-08 06:20:23,100 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026?flat'} 2026-06-08 06:20:23,100 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026 virtual network link through opserver 10.0.0.33 2026-06-08 06:20:23,100 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-08 06:20:23,409 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-08 06:20:23,473 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026?flat'} 2026-06-08 06:20:23,473 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25154327:ctest-vn4-35114026 is found in opserver 2026-06-08 06:20:23,495 - DEBUG - Do not have enough data to verify VN in agent 2026-06-08 06:20:23,508 - DEBUG - VRF ids for VN ctest-vn4-35114026: {} 2026-06-08 06:20:23,508 - DEBUG - ====Verifying data for ctest-policy1-00318848 in API_Server ====== 2026-06-08 06:20:23,508 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 06:20:23,515 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ff885fe6-2413-4985-853a-0c3bd0a6a9a3 2026-06-08 06:20:23,527 - DEBUG - Requesting: http://10.0.0.38:8082/project/cc407159-c64b-453c-879a-5f56dde1aa4a 2026-06-08 06:20:23,660 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/31a01873-5cf7-43b2-bbb5-e6f82ea374db 2026-06-08 06:20:23,674 - INFO - Verified policy ctest-policy1-00318848 in API Server, Result: True 2026-06-08 06:20:23,674 - INFO - Done with setup and verification, moving onto test .. 2026-06-08 06:20:23,687 - INFO - Deleting VN ctest-vn4-35114026 2026-06-08 06:20:23,909 - DEBUG - Response for deleting network () 2026-06-08 06:20:23,909 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9453f97c-e9ae-4790-91cb-00319e172519 2026-06-08 06:20:23,919 - DEBUG - Response Code: 404 2026-06-08 06:20:23,919 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 06:20:23,933 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ff885fe6-2413-4985-853a-0c3bd0a6a9a3 2026-06-08 06:20:23,950 - DEBUG - Requesting: http://10.0.0.38:8082/project/cc407159-c64b-453c-879a-5f56dde1aa4a 2026-06-08 06:20:24,056 - INFO - Validated that VN ctest-vn4-35114026 is not found in API Server 2026-06-08 06:20:24,069 - DEBUG - VN ctest-vn4-35114026 is not present in Agent 10.0.0.249 2026-06-08 06:20:24,079 - DEBUG - VN ctest-vn4-35114026 is not present in Agent 10.0.0.22 2026-06-08 06:20:24,079 - INFO - Validated that VN ctest-vn4-35114026 is not in any agent 2026-06-08 06:20:24,118 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-35114026 info 2026-06-08 06:20:24,168 - INFO - Deleted policy ctest-policy1-00318848 2026-06-08 06:20:24,376 - DEBUG - policy ctest-policy1-00318848 is not found in API Server 2026-06-08 06:20:25,658 - DEBUG - No XMPP flaps were noticed during the test