2026-02-20 02:25:13,028 - INFO - Domain Default found not creating 2026-02-20 02:25:13,177 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25706335 not found, creating it 2026-02-20 02:25:13,614 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25706335, ID : 6a0b6fca-cbec-4f69-864c-91709fdadc03 2026-02-20 02:25:15,068 - INFO - ================================================================================ 2026-02-20 02:25:15,068 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 02:25:15,322 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-20 02:25:15,322 - INFO - Initial checks done. Running the testcase now 2026-02-20 02:25:15,323 - INFO - 2026-02-20 02:25:15,323 - INFO - ================================================================================ 2026-02-20 02:25:15,323 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 02:25:15,323 - 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-02-20 02:25:15,609 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-20 02:25:15,610 - INFO - Initial checks done. Running the testcase now 2026-02-20 02:25:15,610 - INFO - 2026-02-20 02:25:15,958 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25706335:ctest-vn4-19434636, 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-25706335:ctest-vn4-19434636, 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-25706335:ctest-vn4-19434636, 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-25706335:ctest-vn4-19434636, 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-02-20 02:25:16,455 - DEBUG - Response for create_network : {'network': {'id': '8804c710-6522-403f-87b5-2684cf7a5d52', 'name': 'ctest-vn4-19434636', 'tenant_id': '6a0b6fcacbec4f69864c91709fdadc03', 'project_id': '6a0b6fcacbec4f69864c91709fdadc03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25706335', 'ctest-vn4-19434636'], 'port_security_enabled': True, 'description': ''}} 2026-02-20 02:25:16,658 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c16a7d34-b925-4db1-aac6-05cb7dc37833', 'name': '', 'tenant_id': '6a0b6fcacbec4f69864c91709fdadc03', 'network_id': '8804c710-6522-403f-87b5-2684cf7a5d52', 'ip_version': 4, 'cidr': '5.44.160.128/26', 'allocation_pools': [{'start': '5.44.160.130', 'end': '5.44.160.190'}], 'gateway_ip': '5.44.160.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.44.160.130', 'tags': [], 'project_id': '6a0b6fcacbec4f69864c91709fdadc03'}} 2026-02-20 02:25:16,785 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa186d3d-68cb-4f00-b4ba-c8b3bf79dd73', 'name': '', 'tenant_id': '6a0b6fcacbec4f69864c91709fdadc03', 'network_id': '8804c710-6522-403f-87b5-2684cf7a5d52', 'ip_version': 6, 'cidr': '3138:e561:3b16:ef12:502d:764a::/96', 'allocation_pools': [{'start': '3138:e561:3b16:ef12:502d:764a:0:2', 'end': '3138:e561:3b16:ef12:502d:764a:ffff:fffe'}], 'gateway_ip': '3138:e561:3b16:ef12:502d:764a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3138:e561:3b16:ef12:502d:764a:0:2', 'tags': [], 'project_id': '6a0b6fcacbec4f69864c91709fdadc03'}} 2026-02-20 02:25:16,801 - INFO - Created VN ctest-vn4-19434636 2026-02-20 02:25:16,853 - DEBUG - VN ctest-vn4-19434636 UUID is 8804c710-6522-403f-87b5-2684cf7a5d52 2026-02-20 02:25:17,030 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8804c710-6522-403f-87b5-2684cf7a5d52', 'name': 'ctest-vn4-19434636', 'tenant_id': '6a0b6fcacbec4f69864c91709fdadc03', 'project_id': '6a0b6fcacbec4f69864c91709fdadc03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c16a7d34-b925-4db1-aac6-05cb7dc37833', 'aa186d3d-68cb-4f00-b4ba-c8b3bf79dd73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25706335', 'ctest-vn4-19434636'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25706335', 'ctest-policy1-21153276']], 'subnet_ipam': [{'subnet_cidr': '5.44.160.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3138:e561:3b16:ef12:502d:764a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-20 02:25:17,193 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-20 02:25:17,486 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-20 02:25:17,513 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d6adf67b-528c-461b-9fa7-49a7da0fb7e7 2026-02-20 02:25:17,524 - DEBUG - Requesting: http://10.0.0.50:8082/project/6a0b6fca-cbec-4f69-864c-91709fdadc03 2026-02-20 02:25:17,589 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8804c710-6522-403f-87b5-2684cf7a5d52 2026-02-20 02:25:17,599 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8804c710-6522-403f-87b5-2684cf7a5d52 2026-02-20 02:25:17,607 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cee896c8-7e0d-45de-89b4-9a32481d5bc7 2026-02-20 02:25:17,613 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cee896c8-7e0d-45de-89b4-9a32481d5bc7 2026-02-20 02:25:17,618 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c0519c9c-1322-429d-9c6a-189bb01c1218 2026-02-20 02:25:17,624 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 02:25:17,624 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8804c710-6522-403f-87b5-2684cf7a5d52 2026-02-20 02:25:17,631 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cee896c8-7e0d-45de-89b4-9a32481d5bc7 2026-02-20 02:25:17,643 - INFO - Verified VN network id 11 for VN 8804c710-6522-403f-87b5-2684cf7a5d52 2026-02-20 02:25:17,643 - INFO - Verifications in API Server for VN ctest-vn4-19434636 passed 2026-02-20 02:25:17,643 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8804c710-6522-403f-87b5-2684cf7a5d52 2026-02-20 02:25:17,650 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cee896c8-7e0d-45de-89b4-9a32481d5bc7 2026-02-20 02:25:17,656 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cee896c8-7e0d-45de-89b4-9a32481d5bc7 2026-02-20 02:25:17,661 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c0519c9c-1322-429d-9c6a-189bb01c1218 2026-02-20 02:25:17,670 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25706335:ctest-vn4-19434636', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25706335', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9801177562295189567', 'uuid-lslong': '9778764517763341650'}, 'enable': 'true', 'created': '2026-02-20T02:25:16', 'last-modified': '2026-02-20T02:25:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.668882'} 2026-02-20 02:25:17,675 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 02:25:17,675 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-19434636 passed 2026-02-20 02:25:17,675 - DEBUG - ====Verifying policy data for ctest-vn4-19434636 in API_Server ====== 2026-02-20 02:25:17,675 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-20 02:25:17,680 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d6adf67b-528c-461b-9fa7-49a7da0fb7e7 2026-02-20 02:25:17,691 - DEBUG - Requesting: http://10.0.0.50:8082/project/6a0b6fca-cbec-4f69-864c-91709fdadc03 2026-02-20 02:25:17,757 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8804c710-6522-403f-87b5-2684cf7a5d52 2026-02-20 02:25:17,765 - DEBUG - ==>Verifying data for policy with id: ccc7c9eb-e876-4f72-99f9-bfb2b76aab6b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25706335', 'ctest-policy1-21153276'] 2026-02-20 02:25:17,765 - INFO - VN ctest-vn4-19434636 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-20 02:25:17,765 - DEBUG - Verifying the vn in opserver 2026-02-20 02:25:17,765 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25706335:ctest-vn4-19434636 virtual network link through opserver 10.0.0.50 2026-02-20 02:25:17,765 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-20 02:25:18,059 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-20 02:25:18,122 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25706335:ctest-vn4-19434636', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25706335:ctest-vn4-19434636?flat'} 2026-02-20 02:25:18,122 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25706335:ctest-vn4-19434636 is found in opserver 2026-02-20 02:25:18,130 - DEBUG - Do not have enough data to verify VN in agent 2026-02-20 02:25:18,133 - DEBUG - VRF ids for VN ctest-vn4-19434636: {} 2026-02-20 02:25:18,134 - DEBUG - ====Verifying data for ctest-policy1-21153276 in API_Server ====== 2026-02-20 02:25:18,134 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-20 02:25:18,140 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d6adf67b-528c-461b-9fa7-49a7da0fb7e7 2026-02-20 02:25:18,148 - DEBUG - Requesting: http://10.0.0.50:8082/project/6a0b6fca-cbec-4f69-864c-91709fdadc03 2026-02-20 02:25:18,211 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/ccc7c9eb-e876-4f72-99f9-bfb2b76aab6b 2026-02-20 02:25:18,219 - INFO - Verified policy ctest-policy1-21153276 in API Server, Result: True 2026-02-20 02:25:18,219 - INFO - Done with setup and verification, moving onto test .. 2026-02-20 02:25:18,225 - INFO - Deleting VN ctest-vn4-19434636 2026-02-20 02:25:18,329 - DEBUG - Response for deleting network () 2026-02-20 02:25:18,329 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cee896c8-7e0d-45de-89b4-9a32481d5bc7 2026-02-20 02:25:18,333 - DEBUG - Response Code: 404 2026-02-20 02:25:18,333 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-20 02:25:18,337 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d6adf67b-528c-461b-9fa7-49a7da0fb7e7 2026-02-20 02:25:18,393 - DEBUG - Requesting: http://10.0.0.50:8082/project/6a0b6fca-cbec-4f69-864c-91709fdadc03 2026-02-20 02:25:18,461 - INFO - Validated that VN ctest-vn4-19434636 is not found in API Server 2026-02-20 02:25:18,469 - DEBUG - VN ctest-vn4-19434636 is not present in Agent 10.0.0.50 2026-02-20 02:25:18,469 - INFO - Validated that VN ctest-vn4-19434636 is not in any agent 2026-02-20 02:25:18,484 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-19434636 info 2026-02-20 02:25:18,505 - INFO - Deleted policy ctest-policy1-21153276 2026-02-20 02:25:18,661 - DEBUG - policy ctest-policy1-21153276 is not found in API Server 2026-02-20 02:25:18,917 - DEBUG - No XMPP flaps were noticed during the test
2026-02-20 02:25:18,917 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-02-20 02:25:18,918 - INFO - -------------------------------------------------------------------------------- 2026-02-20 02:25:19,205 - DEBUG - No XMPP flaps were noticed during the test
2026-02-20 02:25:19,205 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-20 02:25:19,205 - INFO - -------------------------------------------------------------------------------- 2026-02-20 02:25:19,881 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25706335, ID : 6a0b6fca-cbec-4f69-864c-91709fdadc03