2026-06-17 10:23:05,200 - INFO - Domain Default found not creating 2026-06-17 10:23:05,324 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-60089101 not found, creating it 2026-06-17 10:23:05,726 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-60089101, ID : b0a5ea1f-c927-40a8-81db-111afbfc143d 2026-06-17 10:23:07,102 - INFO - ================================================================================ 2026-06-17 10:23:07,103 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-17 10:23:07,356 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-17 10:23:07,356 - INFO - Initial checks done. Running the testcase now 2026-06-17 10:23:07,356 - INFO - 2026-06-17 10:23:07,356 - INFO - ================================================================================ 2026-06-17 10:23:07,356 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-17 10:23:07,357 - 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-17 10:23:07,638 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-17 10:23:07,638 - INFO - Initial checks done. Running the testcase now 2026-06-17 10:23:07,639 - INFO - 2026-06-17 10:23:07,998 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60089101:ctest-vn4-40690230, 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-60089101:ctest-vn4-40690230, 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-60089101:ctest-vn4-40690230, 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-60089101:ctest-vn4-40690230, 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-17 10:23:08,462 - DEBUG - Response for create_network : {'network': {'id': '355d4497-db8a-47f5-9d2b-7205e3430124', 'name': 'ctest-vn4-40690230', 'tenant_id': 'b0a5ea1fc92740a881db111afbfc143d', 'project_id': 'b0a5ea1fc92740a881db111afbfc143d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60089101', 'ctest-vn4-40690230'], 'port_security_enabled': True, 'description': ''}} 2026-06-17 10:23:08,599 - DEBUG - Response for create_subnet : {'subnet': {'id': '9fbe4a29-d9ad-4cc5-8c26-5031e1ca29b9', 'name': '', 'tenant_id': 'b0a5ea1fc92740a881db111afbfc143d', 'network_id': '355d4497-db8a-47f5-9d2b-7205e3430124', 'ip_version': 4, 'cidr': '177.109.154.128/26', 'allocation_pools': [{'start': '177.109.154.130', 'end': '177.109.154.190'}], 'gateway_ip': '177.109.154.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.109.154.130', 'tags': [], 'project_id': 'b0a5ea1fc92740a881db111afbfc143d'}} 2026-06-17 10:23:08,775 - DEBUG - Response for create_subnet : {'subnet': {'id': '1165ddc1-2fba-4b0d-a849-9a73393686c9', 'name': '', 'tenant_id': 'b0a5ea1fc92740a881db111afbfc143d', 'network_id': '355d4497-db8a-47f5-9d2b-7205e3430124', 'ip_version': 6, 'cidr': '2f65:33e8:7ae6:58c6:f497:2f5a::/96', 'allocation_pools': [{'start': '2f65:33e8:7ae6:58c6:f497:2f5a:0:2', 'end': '2f65:33e8:7ae6:58c6:f497:2f5a:ffff:fffe'}], 'gateway_ip': '2f65:33e8:7ae6:58c6:f497:2f5a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f65:33e8:7ae6:58c6:f497:2f5a:0:2', 'tags': [], 'project_id': 'b0a5ea1fc92740a881db111afbfc143d'}} 2026-06-17 10:23:08,790 - INFO - Created VN ctest-vn4-40690230 2026-06-17 10:23:08,839 - DEBUG - VN ctest-vn4-40690230 UUID is 355d4497-db8a-47f5-9d2b-7205e3430124 2026-06-17 10:23:09,015 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '355d4497-db8a-47f5-9d2b-7205e3430124', 'name': 'ctest-vn4-40690230', 'tenant_id': 'b0a5ea1fc92740a881db111afbfc143d', 'project_id': 'b0a5ea1fc92740a881db111afbfc143d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9fbe4a29-d9ad-4cc5-8c26-5031e1ca29b9', '1165ddc1-2fba-4b0d-a849-9a73393686c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60089101', 'ctest-vn4-40690230'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60089101', 'ctest-policy1-93150309']], 'subnet_ipam': [{'subnet_cidr': '177.109.154.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f65:33e8:7ae6:58c6:f497:2f5a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-17 10:23:09,167 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-17 10:23:09,479 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-17 10:23:09,500 - DEBUG - Requesting: http://10.0.0.50:8082/domain/65c3da3c-1489-4580-849c-dfd345df9012 2026-06-17 10:23:09,509 - DEBUG - Requesting: http://10.0.0.50:8082/project/b0a5ea1f-c927-40a8-81db-111afbfc143d 2026-06-17 10:23:09,576 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/355d4497-db8a-47f5-9d2b-7205e3430124 2026-06-17 10:23:09,585 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/355d4497-db8a-47f5-9d2b-7205e3430124 2026-06-17 10:23:09,592 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/abce5f42-878d-4505-839f-cd07386ffe20 2026-06-17 10:23:09,598 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/abce5f42-878d-4505-839f-cd07386ffe20 2026-06-17 10:23:09,603 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/04e15dab-8c67-4a19-84c2-9d6b75a68f80 2026-06-17 10:23:09,607 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-17 10:23:09,607 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/355d4497-db8a-47f5-9d2b-7205e3430124 2026-06-17 10:23:09,614 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/abce5f42-878d-4505-839f-cd07386ffe20 2026-06-17 10:23:09,623 - INFO - Verified VN network id 11 for VN 355d4497-db8a-47f5-9d2b-7205e3430124 2026-06-17 10:23:09,623 - INFO - Verifications in API Server for VN ctest-vn4-40690230 passed 2026-06-17 10:23:09,624 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/355d4497-db8a-47f5-9d2b-7205e3430124 2026-06-17 10:23:09,631 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/abce5f42-878d-4505-839f-cd07386ffe20 2026-06-17 10:23:09,635 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/abce5f42-878d-4505-839f-cd07386ffe20 2026-06-17 10:23:09,640 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/04e15dab-8c67-4a19-84c2-9d6b75a68f80 2026-06-17 10:23:09,650 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60089101:ctest-vn4-40690230', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60089101', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3845305075858294773', 'uuid-lslong': '11325271057566466340'}, 'enable': 'true', 'created': '2026-06-17T10:23:08', 'last-modified': '2026-06-17T10:23:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.661697'} 2026-06-17 10:23:09,655 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-17 10:23:09,655 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40690230 passed 2026-06-17 10:23:09,655 - DEBUG - ====Verifying policy data for ctest-vn4-40690230 in API_Server ====== 2026-06-17 10:23:09,655 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-17 10:23:09,659 - DEBUG - Requesting: http://10.0.0.50:8082/domain/65c3da3c-1489-4580-849c-dfd345df9012 2026-06-17 10:23:09,668 - DEBUG - Requesting: http://10.0.0.50:8082/project/b0a5ea1f-c927-40a8-81db-111afbfc143d 2026-06-17 10:23:09,737 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/355d4497-db8a-47f5-9d2b-7205e3430124 2026-06-17 10:23:09,745 - DEBUG - ==>Verifying data for policy with id: 32723472-8601-43d4-a150-cec54203cd62, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60089101', 'ctest-policy1-93150309'] 2026-06-17 10:23:09,745 - INFO - VN ctest-vn4-40690230 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-17 10:23:09,745 - DEBUG - Verifying the vn in opserver 2026-06-17 10:23:09,745 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60089101:ctest-vn4-40690230 virtual network link through opserver 10.0.0.50 2026-06-17 10:23:09,745 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-17 10:23:10,059 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-17 10:23:10,107 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60089101:ctest-vn4-40690230', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60089101:ctest-vn4-40690230?flat'} 2026-06-17 10:23:10,107 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60089101:ctest-vn4-40690230 is found in opserver 2026-06-17 10:23:10,115 - DEBUG - Do not have enough data to verify VN in agent 2026-06-17 10:23:10,119 - DEBUG - VRF ids for VN ctest-vn4-40690230: {} 2026-06-17 10:23:10,119 - DEBUG - ====Verifying data for ctest-policy1-93150309 in API_Server ====== 2026-06-17 10:23:10,119 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-17 10:23:10,124 - DEBUG - Requesting: http://10.0.0.50:8082/domain/65c3da3c-1489-4580-849c-dfd345df9012 2026-06-17 10:23:10,134 - DEBUG - Requesting: http://10.0.0.50:8082/project/b0a5ea1f-c927-40a8-81db-111afbfc143d 2026-06-17 10:23:10,198 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/32723472-8601-43d4-a150-cec54203cd62 2026-06-17 10:23:10,206 - INFO - Verified policy ctest-policy1-93150309 in API Server, Result: True 2026-06-17 10:23:10,206 - INFO - Done with setup and verification, moving onto test .. 2026-06-17 10:23:10,212 - INFO - Deleting VN ctest-vn4-40690230 2026-06-17 10:23:10,296 - DEBUG - Response for deleting network () 2026-06-17 10:23:10,296 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/abce5f42-878d-4505-839f-cd07386ffe20 2026-06-17 10:23:10,300 - DEBUG - Response Code: 404 2026-06-17 10:23:10,300 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-17 10:23:10,304 - DEBUG - Requesting: http://10.0.0.50:8082/domain/65c3da3c-1489-4580-849c-dfd345df9012 2026-06-17 10:23:10,354 - DEBUG - Requesting: http://10.0.0.50:8082/project/b0a5ea1f-c927-40a8-81db-111afbfc143d 2026-06-17 10:23:10,421 - INFO - Validated that VN ctest-vn4-40690230 is not found in API Server 2026-06-17 10:23:10,429 - DEBUG - VN ctest-vn4-40690230 is not present in Agent 10.0.0.50 2026-06-17 10:23:10,429 - INFO - Validated that VN ctest-vn4-40690230 is not in any agent 2026-06-17 10:23:10,440 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40690230 info 2026-06-17 10:23:10,459 - INFO - Deleted policy ctest-policy1-93150309 2026-06-17 10:23:10,623 - DEBUG - policy ctest-policy1-93150309 is not found in API Server 2026-06-17 10:23:10,875 - DEBUG - No XMPP flaps were noticed during the test
2026-06-17 10:23:10,875 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-06-17 10:23:10,875 - INFO - -------------------------------------------------------------------------------- 2026-06-17 10:23:11,162 - DEBUG - No XMPP flaps were noticed during the test
2026-06-17 10:23:11,162 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-17 10:23:11,162 - INFO - -------------------------------------------------------------------------------- 2026-06-17 10:23:11,832 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-60089101, ID : b0a5ea1f-c927-40a8-81db-111afbfc143d