2026-03-23 06:13:01,494 - INFO - Domain Default found not creating 2026-03-23 06:13:01,682 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28084996 not found, creating it 2026-03-23 06:13:02,318 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28084996, ID : c36a5de7-c020-4c3d-8221-e969b804c660 2026-03-23 06:13:03,734 - INFO - ================================================================================ 2026-03-23 06:13:03,734 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-23 06:13:05,028 - WARNING - Test is running with cores: {'10.0.0.33': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5515-3.1774244755']} 2026-03-23 06:13:05,040 - 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.254': '0'}} with 2026-03-23 06:13:05,040 - INFO - Initial checks done. Running the testcase now 2026-03-23 06:13:05,040 - INFO - 2026-03-23 06:13:05,040 - INFO - ================================================================================ 2026-03-23 06:13:05,040 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-23 06:13:05,040 - 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-03-23 06:13:06,304 - WARNING - Test is running with cores: {'10.0.0.33': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5515-3.1774244755']} 2026-03-23 06:13:06,317 - 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.254': '0'}} with 2026-03-23 06:13:06,317 - INFO - Initial checks done. Running the testcase now 2026-03-23 06:13:06,318 - INFO - 2026-03-23 06:13:06,676 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649, 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-28084996:ctest-vn4-31885649, 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-28084996:ctest-vn4-31885649, 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-28084996:ctest-vn4-31885649, 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-03-23 06:13:07,295 - DEBUG - Response for create_network : {'network': {'id': '41bc5e89-4aeb-4184-b626-620ecbd943a5', 'name': 'ctest-vn4-31885649', 'tenant_id': 'c36a5de7c0204c3d8221e969b804c660', 'project_id': 'c36a5de7c0204c3d8221e969b804c660', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28084996', 'ctest-vn4-31885649'], 'port_security_enabled': True, 'description': ''}} 2026-03-23 06:13:07,666 - DEBUG - Response for create_subnet : {'subnet': {'id': '00e67b00-9df8-4577-8998-3ebc4938eea1', 'name': '', 'tenant_id': 'c36a5de7c0204c3d8221e969b804c660', 'network_id': '41bc5e89-4aeb-4184-b626-620ecbd943a5', 'ip_version': 4, 'cidr': '166.76.7.192/26', 'allocation_pools': [{'start': '166.76.7.194', 'end': '166.76.7.254'}], 'gateway_ip': '166.76.7.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.76.7.194', 'tags': [], 'project_id': 'c36a5de7c0204c3d8221e969b804c660'}} 2026-03-23 06:13:07,927 - DEBUG - Response for create_subnet : {'subnet': {'id': '104c524a-145a-410a-9372-7fd10a337270', 'name': '', 'tenant_id': 'c36a5de7c0204c3d8221e969b804c660', 'network_id': '41bc5e89-4aeb-4184-b626-620ecbd943a5', 'ip_version': 6, 'cidr': '30a9:4589:f4db:d02b:568:c2f6::/96', 'allocation_pools': [{'start': '30a9:4589:f4db:d02b:568:c2f6:0:2', 'end': '30a9:4589:f4db:d02b:568:c2f6:ffff:fffe'}], 'gateway_ip': '30a9:4589:f4db:d02b:568:c2f6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30a9:4589:f4db:d02b:568:c2f6:0:2', 'tags': [], 'project_id': 'c36a5de7c0204c3d8221e969b804c660'}} 2026-03-23 06:13:07,952 - INFO - Created VN ctest-vn4-31885649 2026-03-23 06:13:07,963 - DEBUG - VN ctest-vn4-31885649 UUID is 41bc5e89-4aeb-4184-b626-620ecbd943a5 2026-03-23 06:13:08,187 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41bc5e89-4aeb-4184-b626-620ecbd943a5', 'name': 'ctest-vn4-31885649', 'tenant_id': 'c36a5de7c0204c3d8221e969b804c660', 'project_id': 'c36a5de7c0204c3d8221e969b804c660', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00e67b00-9df8-4577-8998-3ebc4938eea1', '104c524a-145a-410a-9372-7fd10a337270'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28084996', 'ctest-vn4-31885649'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28084996', 'ctest-policy1-70616964']], 'subnet_ipam': [{'subnet_cidr': '166.76.7.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30a9:4589:f4db:d02b:568:c2f6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-23 06:13:08,271 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-23 06:13:08,568 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-23 06:13:08,595 - DEBUG - Requesting: http://10.0.0.38:8082/domain/19002491-cc47-43ed-ab00-1b0f52f8fe40 2026-03-23 06:13:08,607 - DEBUG - Requesting: http://10.0.0.38:8082/project/c36a5de7-c020-4c3d-8221-e969b804c660 2026-03-23 06:13:08,700 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/41bc5e89-4aeb-4184-b626-620ecbd943a5 2026-03-23 06:13:08,714 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/41bc5e89-4aeb-4184-b626-620ecbd943a5 2026-03-23 06:13:08,724 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e34da732-3b03-4193-ae8e-f4d8105de3b8 2026-03-23 06:13:08,732 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e34da732-3b03-4193-ae8e-f4d8105de3b8 2026-03-23 06:13:08,739 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/905d367b-e8b3-4eee-9715-0a6427af7f34 2026-03-23 06:13:08,746 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-23 06:13:08,746 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/41bc5e89-4aeb-4184-b626-620ecbd943a5 2026-03-23 06:13:08,754 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e34da732-3b03-4193-ae8e-f4d8105de3b8 2026-03-23 06:13:08,769 - INFO - Verified VN network id 11 for VN 41bc5e89-4aeb-4184-b626-620ecbd943a5 2026-03-23 06:13:08,769 - INFO - Verifications in API Server for VN ctest-vn4-31885649 passed 2026-03-23 06:13:08,769 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/41bc5e89-4aeb-4184-b626-620ecbd943a5 2026-03-23 06:13:08,777 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e34da732-3b03-4193-ae8e-f4d8105de3b8 2026-03-23 06:13:08,783 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e34da732-3b03-4193-ae8e-f4d8105de3b8 2026-03-23 06:13:08,789 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/905d367b-e8b3-4eee-9715-0a6427af7f34 2026-03-23 06:13:08,800 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28084996', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4736764851847381380', 'uuid-lslong': '13125285979706966949'}, 'enable': 'true', 'created': '2026-03-23T06:13:07', 'last-modified': '2026-03-23T06:13:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.655589'} 2026-03-23 06:13:08,806 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-23 06:13:08,810 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28084996', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4736764851847381380', 'uuid-lslong': '13125285979706966949'}, 'enable': 'true', 'created': '2026-03-23T06:13:07', 'last-modified': '2026-03-23T06:13:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.668056'} 2026-03-23 06:13:08,815 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-23 06:13:08,820 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28084996', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4736764851847381380', 'uuid-lslong': '13125285979706966949'}, 'enable': 'true', 'created': '2026-03-23T06:13:07', 'last-modified': '2026-03-23T06:13:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.677501'} 2026-03-23 06:13:08,825 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-23 06:13:08,825 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31885649 passed 2026-03-23 06:13:08,825 - DEBUG - ====Verifying policy data for ctest-vn4-31885649 in API_Server ====== 2026-03-23 06:13:08,825 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-23 06:13:08,831 - DEBUG - Requesting: http://10.0.0.38:8082/domain/19002491-cc47-43ed-ab00-1b0f52f8fe40 2026-03-23 06:13:08,841 - DEBUG - Requesting: http://10.0.0.38:8082/project/c36a5de7-c020-4c3d-8221-e969b804c660 2026-03-23 06:13:08,938 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/41bc5e89-4aeb-4184-b626-620ecbd943a5 2026-03-23 06:13:08,957 - DEBUG - ==>Verifying data for policy with id: 45fc7dcc-00f2-4349-a84d-99a21e3ee80f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28084996', 'ctest-policy1-70616964'] 2026-03-23 06:13:08,957 - INFO - VN ctest-vn4-31885649 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-23 06:13:08,957 - DEBUG - Verifying the vn in opserver 2026-03-23 06:13:08,957 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649 virtual network link through opserver 10.0.0.38 2026-03-23 06:13:08,957 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-23 06:13:09,257 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-23 06:13:09,319 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649?flat'} 2026-03-23 06:13:09,319 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649 virtual network link through opserver 10.0.0.50 2026-03-23 06:13:09,319 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-23 06:13:09,610 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-23 06:13:09,670 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649?flat'} 2026-03-23 06:13:09,670 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649 virtual network link through opserver 10.0.0.33 2026-03-23 06:13:09,671 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-23 06:13:09,963 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-23 06:13:10,027 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649?flat'} 2026-03-23 06:13:10,027 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28084996:ctest-vn4-31885649 is found in opserver 2026-03-23 06:13:10,047 - DEBUG - Do not have enough data to verify VN in agent 2026-03-23 06:13:10,056 - DEBUG - VRF ids for VN ctest-vn4-31885649: {} 2026-03-23 06:13:10,057 - DEBUG - ====Verifying data for ctest-policy1-70616964 in API_Server ====== 2026-03-23 06:13:10,057 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-23 06:13:10,063 - DEBUG - Requesting: http://10.0.0.38:8082/domain/19002491-cc47-43ed-ab00-1b0f52f8fe40 2026-03-23 06:13:10,074 - DEBUG - Requesting: http://10.0.0.38:8082/project/c36a5de7-c020-4c3d-8221-e969b804c660 2026-03-23 06:13:10,177 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/45fc7dcc-00f2-4349-a84d-99a21e3ee80f 2026-03-23 06:13:10,187 - INFO - Verified policy ctest-policy1-70616964 in API Server, Result: True 2026-03-23 06:13:10,187 - INFO - Done with setup and verification, moving onto test .. 2026-03-23 06:13:10,199 - INFO - Deleting VN ctest-vn4-31885649 2026-03-23 06:13:10,376 - DEBUG - Response for deleting network () 2026-03-23 06:13:10,376 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e34da732-3b03-4193-ae8e-f4d8105de3b8 2026-03-23 06:13:10,381 - DEBUG - Response Code: 404 2026-03-23 06:13:10,381 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-23 06:13:10,386 - DEBUG - Requesting: http://10.0.0.38:8082/domain/19002491-cc47-43ed-ab00-1b0f52f8fe40 2026-03-23 06:13:10,441 - DEBUG - Requesting: http://10.0.0.38:8082/project/c36a5de7-c020-4c3d-8221-e969b804c660 2026-03-23 06:13:10,523 - INFO - Validated that VN ctest-vn4-31885649 is not found in API Server 2026-03-23 06:13:10,537 - DEBUG - VN ctest-vn4-31885649 is not present in Agent 10.0.0.249 2026-03-23 06:13:10,550 - DEBUG - VN ctest-vn4-31885649 is not present in Agent 10.0.0.22 2026-03-23 06:13:10,550 - INFO - Validated that VN ctest-vn4-31885649 is not in any agent 2026-03-23 06:13:10,582 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31885649 info 2026-03-23 06:13:10,620 - INFO - Deleted policy ctest-policy1-70616964 2026-03-23 06:13:10,800 - DEBUG - policy ctest-policy1-70616964 is not found in API Server 2026-03-23 06:13:12,081 - DEBUG - No XMPP flaps were noticed during the test