2026-01-22 16:13:06,893 - INFO - Domain Default found not creating 2026-01-22 16:13:07,180 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-62354483 not found, creating it 2026-01-22 16:13:07,795 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-62354483, ID : 96a844fc-9a55-4386-9841-bca9fd946ff0 2026-01-22 16:13:09,315 - INFO - ================================================================================ 2026-01-22 16:13:09,315 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 16:13:10,604 - WARNING - Test is running with cores: {'10.0.0.65': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5062-3.1769096738']} 2026-01-22 16:13:10,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.252': '0', '10.20.0.249': '0'}, '10.0.0.73': {'10.20.0.5': '0', '10.20.0.252': '0'}} with 2026-01-22 16:13:10,617 - INFO - Initial checks done. Running the testcase now 2026-01-22 16:13:10,617 - INFO - 2026-01-22 16:13:10,617 - INFO - ================================================================================ 2026-01-22 16:13:10,617 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-22 16:13:10,617 - 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-22 16:13:11,912 - WARNING - Test is running with cores: {'10.0.0.65': ['core.contrail-collec.1.cn-jenkins-deploy-platform-ansible-os-5062-3.1769096738']} 2026-01-22 16:13:11,925 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.252': '0', '10.20.0.249': '0'}, '10.0.0.73': {'10.20.0.5': '0', '10.20.0.252': '0'}} with 2026-01-22 16:13:11,925 - INFO - Initial checks done. Running the testcase now 2026-01-22 16:13:11,925 - INFO - 2026-01-22 16:13:12,306 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340, 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-62354483:ctest-vn4-42505340, 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-62354483:ctest-vn4-42505340, 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-62354483:ctest-vn4-42505340, 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-22 16:13:12,949 - DEBUG - Response for create_network : {'network': {'id': '15628db7-c7e1-46ac-9909-c71def8b7093', 'name': 'ctest-vn4-42505340', 'tenant_id': '96a844fc9a5543869841bca9fd946ff0', 'project_id': '96a844fc9a5543869841bca9fd946ff0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62354483', 'ctest-vn4-42505340'], 'port_security_enabled': True, 'description': ''}} 2026-01-22 16:13:13,290 - DEBUG - Response for create_subnet : {'subnet': {'id': '383bcfeb-c62d-4cf2-866c-6e19dfc62b3c', 'name': '', 'tenant_id': '96a844fc9a5543869841bca9fd946ff0', 'network_id': '15628db7-c7e1-46ac-9909-c71def8b7093', 'ip_version': 4, 'cidr': '183.117.130.128/26', 'allocation_pools': [{'start': '183.117.130.130', 'end': '183.117.130.190'}], 'gateway_ip': '183.117.130.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.117.130.130', 'tags': [], 'project_id': '96a844fc9a5543869841bca9fd946ff0'}} 2026-01-22 16:13:13,536 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe5fac64-b5ac-4115-afb3-f38f2cb0d624', 'name': '', 'tenant_id': '96a844fc9a5543869841bca9fd946ff0', 'network_id': '15628db7-c7e1-46ac-9909-c71def8b7093', 'ip_version': 6, 'cidr': '2800:c7c6:1121:474f:7777:283e::/96', 'allocation_pools': [{'start': '2800:c7c6:1121:474f:7777:283e:0:2', 'end': '2800:c7c6:1121:474f:7777:283e:ffff:fffe'}], 'gateway_ip': '2800:c7c6:1121:474f:7777:283e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2800:c7c6:1121:474f:7777:283e:0:2', 'tags': [], 'project_id': '96a844fc9a5543869841bca9fd946ff0'}} 2026-01-22 16:13:13,562 - INFO - Created VN ctest-vn4-42505340 2026-01-22 16:13:13,582 - DEBUG - VN ctest-vn4-42505340 UUID is 15628db7-c7e1-46ac-9909-c71def8b7093 2026-01-22 16:13:13,835 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15628db7-c7e1-46ac-9909-c71def8b7093', 'name': 'ctest-vn4-42505340', 'tenant_id': '96a844fc9a5543869841bca9fd946ff0', 'project_id': '96a844fc9a5543869841bca9fd946ff0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['383bcfeb-c62d-4cf2-866c-6e19dfc62b3c', 'fe5fac64-b5ac-4115-afb3-f38f2cb0d624'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62354483', 'ctest-vn4-42505340'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62354483', 'ctest-policy1-02397168']], 'subnet_ipam': [{'subnet_cidr': '183.117.130.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2800:c7c6:1121:474f:7777:283e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-22 16:13:13,960 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-22 16:13:14,256 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-22 16:13:14,288 - DEBUG - Requesting: http://10.0.0.23:8082/domain/801ea07a-2288-434f-a602-075a9d2169e6 2026-01-22 16:13:14,303 - DEBUG - Requesting: http://10.0.0.23:8082/project/96a844fc-9a55-4386-9841-bca9fd946ff0 2026-01-22 16:13:14,418 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/15628db7-c7e1-46ac-9909-c71def8b7093 2026-01-22 16:13:14,435 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/15628db7-c7e1-46ac-9909-c71def8b7093 2026-01-22 16:13:14,449 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bc390522-39af-4bc8-87be-e404201b601e 2026-01-22 16:13:14,458 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bc390522-39af-4bc8-87be-e404201b601e 2026-01-22 16:13:14,467 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0e61a3f6-2d6a-415c-8dab-78f7cb69571a 2026-01-22 16:13:14,475 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-22 16:13:14,475 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/15628db7-c7e1-46ac-9909-c71def8b7093 2026-01-22 16:13:14,485 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bc390522-39af-4bc8-87be-e404201b601e 2026-01-22 16:13:14,505 - INFO - Verified VN network id 11 for VN 15628db7-c7e1-46ac-9909-c71def8b7093 2026-01-22 16:13:14,505 - INFO - Verifications in API Server for VN ctest-vn4-42505340 passed 2026-01-22 16:13:14,505 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/15628db7-c7e1-46ac-9909-c71def8b7093 2026-01-22 16:13:14,517 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bc390522-39af-4bc8-87be-e404201b601e 2026-01-22 16:13:14,525 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bc390522-39af-4bc8-87be-e404201b601e 2026-01-22 16:13:14,533 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/0e61a3f6-2d6a-415c-8dab-78f7cb69571a 2026-01-22 16:13:14,547 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62354483', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1540949842986092204', 'uuid-lslong': '11027564093980242067'}, 'enable': 'true', 'created': '2026-01-22T16:13:12', 'last-modified': '2026-01-22T16:13:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.765876'} 2026-01-22 16:13:14,553 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-22 16:13:14,562 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62354483', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1540949842986092204', 'uuid-lslong': '11027564093980242067'}, 'enable': 'true', 'created': '2026-01-22T16:13:12', 'last-modified': '2026-01-22T16:13:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.770090'} 2026-01-22 16:13:14,569 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-22 16:13:14,574 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62354483', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1540949842986092204', 'uuid-lslong': '11027564093980242067'}, 'enable': 'true', 'created': '2026-01-22T16:13:12', 'last-modified': '2026-01-22T16:13:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.785009'} 2026-01-22 16:13:14,582 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-01-22 16:13:14,582 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42505340 passed 2026-01-22 16:13:14,582 - DEBUG - ====Verifying policy data for ctest-vn4-42505340 in API_Server ====== 2026-01-22 16:13:14,582 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-22 16:13:14,589 - DEBUG - Requesting: http://10.0.0.23:8082/domain/801ea07a-2288-434f-a602-075a9d2169e6 2026-01-22 16:13:14,599 - DEBUG - Requesting: http://10.0.0.23:8082/project/96a844fc-9a55-4386-9841-bca9fd946ff0 2026-01-22 16:13:14,688 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/15628db7-c7e1-46ac-9909-c71def8b7093 2026-01-22 16:13:14,702 - DEBUG - ==>Verifying data for policy with id: 02dcc4b2-0827-4e62-8157-5eea7a3d88b3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62354483', 'ctest-policy1-02397168'] 2026-01-22 16:13:14,702 - INFO - VN ctest-vn4-42505340 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-22 16:13:14,702 - DEBUG - Verifying the vn in opserver 2026-01-22 16:13:14,702 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340 virtual network link through opserver 10.0.0.23 2026-01-22 16:13:14,702 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-22 16:13:14,999 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-22 16:13:15,064 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340?flat'} 2026-01-22 16:13:15,064 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340 virtual network link through opserver 10.0.0.240 2026-01-22 16:13:15,064 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-22 16:13:15,354 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-22 16:13:15,462 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340?flat'} 2026-01-22 16:13:15,462 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340 virtual network link through opserver 10.0.0.65 2026-01-22 16:13:15,462 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-01-22 16:13:15,783 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-01-22 16:13:15,854 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340?flat'} 2026-01-22 16:13:15,854 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62354483:ctest-vn4-42505340 is found in opserver 2026-01-22 16:13:15,875 - DEBUG - Do not have enough data to verify VN in agent 2026-01-22 16:13:15,886 - DEBUG - VRF ids for VN ctest-vn4-42505340: {} 2026-01-22 16:13:15,887 - DEBUG - ====Verifying data for ctest-policy1-02397168 in API_Server ====== 2026-01-22 16:13:15,887 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-22 16:13:15,895 - DEBUG - Requesting: http://10.0.0.23:8082/domain/801ea07a-2288-434f-a602-075a9d2169e6 2026-01-22 16:13:15,906 - DEBUG - Requesting: http://10.0.0.23:8082/project/96a844fc-9a55-4386-9841-bca9fd946ff0 2026-01-22 16:13:16,013 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/02dcc4b2-0827-4e62-8157-5eea7a3d88b3 2026-01-22 16:13:16,030 - INFO - Verified policy ctest-policy1-02397168 in API Server, Result: True 2026-01-22 16:13:16,030 - INFO - Done with setup and verification, moving onto test .. 2026-01-22 16:13:16,044 - INFO - Deleting VN ctest-vn4-42505340 2026-01-22 16:13:16,264 - DEBUG - Response for deleting network () 2026-01-22 16:13:16,264 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bc390522-39af-4bc8-87be-e404201b601e 2026-01-22 16:13:16,280 - DEBUG - Response Code: 404 2026-01-22 16:13:16,281 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2026-01-22 16:13:16,287 - DEBUG - Requesting: http://10.0.0.23:8082/domain/801ea07a-2288-434f-a602-075a9d2169e6 2026-01-22 16:13:16,344 - DEBUG - Requesting: http://10.0.0.23:8082/project/96a844fc-9a55-4386-9841-bca9fd946ff0 2026-01-22 16:13:16,433 - INFO - Validated that VN ctest-vn4-42505340 is not found in API Server 2026-01-22 16:13:16,444 - DEBUG - VN ctest-vn4-42505340 is not present in Agent 10.0.0.130 2026-01-22 16:13:16,454 - DEBUG - VN ctest-vn4-42505340 is not present in Agent 10.0.0.73 2026-01-22 16:13:16,454 - INFO - Validated that VN ctest-vn4-42505340 is not in any agent 2026-01-22 16:13:16,488 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42505340 info 2026-01-22 16:13:16,530 - INFO - Deleted policy ctest-policy1-02397168 2026-01-22 16:13:16,733 - DEBUG - policy ctest-policy1-02397168 is not found in API Server 2026-01-22 16:13:18,061 - DEBUG - No XMPP flaps were noticed during the test 2026-01-22 16:13:18,061 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2026-01-22 16:13:18,062 - INFO - -------------------------------------------------------------------------------- 2026-01-22 16:13:19,379 - DEBUG - No XMPP flaps were noticed during the test 2026-01-22 16:13:19,379 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-01-22 16:13:19,379 - INFO - -------------------------------------------------------------------------------- 2026-01-22 16:13:20,288 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-62354483, ID : 96a844fc-9a55-4386-9841-bca9fd946ff0