2026-01-30 18:15:44,675 - INFO - Domain Default found not creating 2026-01-30 18:15:44,843 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25630737 not found, creating it 2026-01-30 18:15:45,309 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25630737, ID : b653ccbd-8b63-474c-a9ef-30be9c154c84 2026-01-30 18:15:46,746 - INFO - ================================================================================ 2026-01-30 18:15:46,746 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 18:15:46,993 - WARNING - Test is running with cores: {'10.0.0.38': ['core.isc-loop-0001.70298.cn-jenkins-deploy-platform-ansible-os-5150-1.1769796495']} 2026-01-30 18:15:46,999 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-30 18:15:46,999 - INFO - Initial checks done. Running the testcase now 2026-01-30 18:15:46,999 - INFO - 2026-01-30 18:15:46,999 - INFO - ================================================================================ 2026-01-30 18:15:46,999 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 18:15:46,999 - 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-30 18:15:47,282 - WARNING - Test is running with cores: {'10.0.0.38': ['core.isc-loop-0001.70298.cn-jenkins-deploy-platform-ansible-os-5150-1.1769796495']} 2026-01-30 18:15:47,287 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-30 18:15:47,287 - INFO - Initial checks done. Running the testcase now 2026-01-30 18:15:47,287 - INFO - 2026-01-30 18:15:47,638 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25630737:ctest-vn4-12180297, 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-25630737:ctest-vn4-12180297, 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-25630737:ctest-vn4-12180297, 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-25630737:ctest-vn4-12180297, 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-30 18:15:48,155 - DEBUG - Response for create_network : {'network': {'id': 'e9ef24d7-359f-4555-a938-745f12945c55', 'name': 'ctest-vn4-12180297', 'tenant_id': 'b653ccbd8b63474ca9ef30be9c154c84', 'project_id': 'b653ccbd8b63474ca9ef30be9c154c84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25630737', 'ctest-vn4-12180297'], 'port_security_enabled': True, 'description': ''}} 2026-01-30 18:15:48,391 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e1f9ea9-6db3-4f4d-a5c7-c56931e998ec', 'name': '', 'tenant_id': 'b653ccbd8b63474ca9ef30be9c154c84', 'network_id': 'e9ef24d7-359f-4555-a938-745f12945c55', 'ip_version': 4, 'cidr': '9.198.31.64/26', 'allocation_pools': [{'start': '9.198.31.66', 'end': '9.198.31.126'}], 'gateway_ip': '9.198.31.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.198.31.66', 'tags': [], 'project_id': 'b653ccbd8b63474ca9ef30be9c154c84'}} 2026-01-30 18:15:48,558 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb9a15eb-f5c9-49ce-bbb7-b42abaa98d40', 'name': '', 'tenant_id': 'b653ccbd8b63474ca9ef30be9c154c84', 'network_id': 'e9ef24d7-359f-4555-a938-745f12945c55', 'ip_version': 6, 'cidr': '304d:33af:1150:2496:8dda:23ab::/96', 'allocation_pools': [{'start': '304d:33af:1150:2496:8dda:23ab:0:2', 'end': '304d:33af:1150:2496:8dda:23ab:ffff:fffe'}], 'gateway_ip': '304d:33af:1150:2496:8dda:23ab:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '304d:33af:1150:2496:8dda:23ab:0:2', 'tags': [], 'project_id': 'b653ccbd8b63474ca9ef30be9c154c84'}} 2026-01-30 18:15:48,579 - INFO - Created VN ctest-vn4-12180297 2026-01-30 18:15:48,630 - DEBUG - VN ctest-vn4-12180297 UUID is e9ef24d7-359f-4555-a938-745f12945c55 2026-01-30 18:15:48,832 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e9ef24d7-359f-4555-a938-745f12945c55', 'name': 'ctest-vn4-12180297', 'tenant_id': 'b653ccbd8b63474ca9ef30be9c154c84', 'project_id': 'b653ccbd8b63474ca9ef30be9c154c84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e1f9ea9-6db3-4f4d-a5c7-c56931e998ec', 'eb9a15eb-f5c9-49ce-bbb7-b42abaa98d40'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25630737', 'ctest-vn4-12180297'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25630737', 'ctest-policy1-25479544']], 'subnet_ipam': [{'subnet_cidr': '9.198.31.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '304d:33af:1150:2496:8dda:23ab::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-30 18:15:48,990 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 18:15:49,282 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 18:15:49,314 - DEBUG - Requesting: http://10.0.0.38:8082/domain/71249230-828c-4cf5-81a5-4ae014891930 2026-01-30 18:15:49,325 - DEBUG - Requesting: http://10.0.0.38:8082/project/b653ccbd-8b63-474c-a9ef-30be9c154c84 2026-01-30 18:15:49,395 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e9ef24d7-359f-4555-a938-745f12945c55 2026-01-30 18:15:49,406 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e9ef24d7-359f-4555-a938-745f12945c55 2026-01-30 18:15:49,414 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e9f298f-2326-4f6b-947e-097a829bf18a 2026-01-30 18:15:49,420 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e9f298f-2326-4f6b-947e-097a829bf18a 2026-01-30 18:15:49,427 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a474a5fe-fe4f-4276-bbc7-75905feb30b9 2026-01-30 18:15:49,433 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 18:15:49,433 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e9ef24d7-359f-4555-a938-745f12945c55 2026-01-30 18:15:49,442 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e9f298f-2326-4f6b-947e-097a829bf18a 2026-01-30 18:15:49,455 - INFO - Verified VN network id 11 for VN e9ef24d7-359f-4555-a938-745f12945c55 2026-01-30 18:15:49,455 - INFO - Verifications in API Server for VN ctest-vn4-12180297 passed 2026-01-30 18:15:49,455 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e9ef24d7-359f-4555-a938-745f12945c55 2026-01-30 18:15:49,463 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e9f298f-2326-4f6b-947e-097a829bf18a 2026-01-30 18:15:49,469 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e9f298f-2326-4f6b-947e-097a829bf18a 2026-01-30 18:15:49,475 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a474a5fe-fe4f-4276-bbc7-75905feb30b9 2026-01-30 18:15:49,484 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25630737:ctest-vn4-12180297', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25630737', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16856732437007254869', 'uuid-lslong': '12193623942788045909'}, 'enable': 'true', 'created': '2026-01-30T18:15:48', 'last-modified': '2026-01-30T18:15:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681813'} 2026-01-30 18:15:49,489 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 18:15:49,490 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12180297 passed 2026-01-30 18:15:49,490 - DEBUG - ====Verifying policy data for ctest-vn4-12180297 in API_Server ====== 2026-01-30 18:15:49,490 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 18:15:49,494 - DEBUG - Requesting: http://10.0.0.38:8082/domain/71249230-828c-4cf5-81a5-4ae014891930 2026-01-30 18:15:49,503 - DEBUG - Requesting: http://10.0.0.38:8082/project/b653ccbd-8b63-474c-a9ef-30be9c154c84 2026-01-30 18:15:49,570 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e9ef24d7-359f-4555-a938-745f12945c55 2026-01-30 18:15:49,579 - DEBUG - ==>Verifying data for policy with id: c6a5a724-7c1b-43de-9dd3-ab847d071022, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25630737', 'ctest-policy1-25479544'] 2026-01-30 18:15:49,579 - INFO - VN ctest-vn4-12180297 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-30 18:15:49,579 - DEBUG - Verifying the vn in opserver 2026-01-30 18:15:49,579 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25630737:ctest-vn4-12180297 virtual network link through opserver 10.0.0.38 2026-01-30 18:15:49,579 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-30 18:15:49,873 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-30 18:15:49,941 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25630737:ctest-vn4-12180297', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25630737:ctest-vn4-12180297?flat'} 2026-01-30 18:15:49,941 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25630737:ctest-vn4-12180297 is found in opserver 2026-01-30 18:15:49,951 - DEBUG - Do not have enough data to verify VN in agent 2026-01-30 18:15:49,956 - DEBUG - VRF ids for VN ctest-vn4-12180297: {} 2026-01-30 18:15:49,956 - DEBUG - ====Verifying data for ctest-policy1-25479544 in API_Server ====== 2026-01-30 18:15:49,957 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 18:15:49,961 - DEBUG - Requesting: http://10.0.0.38:8082/domain/71249230-828c-4cf5-81a5-4ae014891930 2026-01-30 18:15:49,972 - DEBUG - Requesting: http://10.0.0.38:8082/project/b653ccbd-8b63-474c-a9ef-30be9c154c84 2026-01-30 18:15:50,042 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c6a5a724-7c1b-43de-9dd3-ab847d071022 2026-01-30 18:15:50,051 - INFO - Verified policy ctest-policy1-25479544 in API Server, Result: True 2026-01-30 18:15:50,051 - INFO - Done with setup and verification, moving onto test .. 2026-01-30 18:15:50,058 - INFO - Deleting VN ctest-vn4-12180297 2026-01-30 18:15:50,175 - DEBUG - Response for deleting network () 2026-01-30 18:15:50,175 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e9f298f-2326-4f6b-947e-097a829bf18a 2026-01-30 18:15:50,180 - DEBUG - Response Code: 404 2026-01-30 18:15:50,180 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-30 18:15:50,185 - DEBUG - Requesting: http://10.0.0.38:8082/domain/71249230-828c-4cf5-81a5-4ae014891930 2026-01-30 18:15:50,238 - DEBUG - Requesting: http://10.0.0.38:8082/project/b653ccbd-8b63-474c-a9ef-30be9c154c84 2026-01-30 18:15:50,308 - INFO - Validated that VN ctest-vn4-12180297 is not found in API Server 2026-01-30 18:15:50,318 - DEBUG - VN ctest-vn4-12180297 is not present in Agent 10.0.0.38 2026-01-30 18:15:50,319 - INFO - Validated that VN ctest-vn4-12180297 is not in any agent 2026-01-30 18:15:50,330 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12180297 info 2026-01-30 18:15:50,353 - INFO - Deleted policy ctest-policy1-25479544 2026-01-30 18:15:50,518 - DEBUG - policy ctest-policy1-25479544 is not found in API Server 2026-01-30 18:15:50,774 - DEBUG - No XMPP flaps were noticed during the test 2026-01-30 18:15:50,774 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-30 18:15:50,774 - INFO - -------------------------------------------------------------------------------- 2026-01-30 18:15:51,062 - DEBUG - No XMPP flaps were noticed during the test 2026-01-30 18:15:51,062 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-30 18:15:51,063 - INFO - -------------------------------------------------------------------------------- 2026-01-30 18:15:51,727 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25630737, ID : b653ccbd-8b63-474c-a9ef-30be9c154c84