2026-10-06 15:06:43,594 - INFO - Domain Default found not creating 2026-10-06 15:06:43,751 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39951304 not found, creating it 2026-10-06 15:06:44,220 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39951304, ID : 95839155-767e-42c3-a091-d26879d1541e 2026-10-06 15:06:45,875 - INFO - ================================================================================ 2026-10-06 15:06:45,875 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-06 15:06:46,133 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-10-06 15:06:46,133 - INFO - Initial checks done. Running the testcase now 2026-10-06 15:06:46,133 - INFO - 2026-10-06 15:06:46,133 - INFO - ================================================================================ 2026-10-06 15:06:46,133 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-06 15:06:46,133 - 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-10-06 15:06:46,420 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-10-06 15:06:46,420 - INFO - Initial checks done. Running the testcase now 2026-10-06 15:06:46,420 - INFO - 2026-10-06 15:06:46,842 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39951304:ctest-vn4-32877912, 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-39951304:ctest-vn4-32877912, 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-39951304:ctest-vn4-32877912, 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-39951304:ctest-vn4-32877912, 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-10-06 15:06:47,350 - DEBUG - Response for create_network : {'network': {'id': '2e8c6b2f-4da0-481e-b084-94a5bf3126fc', 'name': 'ctest-vn4-32877912', 'tenant_id': '95839155767e42c3a091d26879d1541e', 'project_id': '95839155767e42c3a091d26879d1541e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39951304', 'ctest-vn4-32877912'], 'port_security_enabled': True, 'description': ''}} 2026-10-06 15:06:47,544 - DEBUG - Response for create_subnet : {'subnet': {'id': '540a4ee6-3ec7-41e9-a24a-4e029b065780', 'name': '', 'tenant_id': '95839155767e42c3a091d26879d1541e', 'network_id': '2e8c6b2f-4da0-481e-b084-94a5bf3126fc', 'ip_version': 4, 'cidr': '17.188.204.64/26', 'allocation_pools': [{'start': '17.188.204.66', 'end': '17.188.204.126'}], 'gateway_ip': '17.188.204.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.188.204.66', 'tags': [], 'project_id': '95839155767e42c3a091d26879d1541e'}} 2026-10-06 15:06:47,744 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ffd9cc07-7106-4ba0-9298-110226a9936a', 'name': '', 'tenant_id': '95839155767e42c3a091d26879d1541e', 'network_id': '2e8c6b2f-4da0-481e-b084-94a5bf3126fc', 'ip_version': 6, 'cidr': '3c8f:ad98:dbc1:4185:6c1e:b13a::/96', 'allocation_pools': [{'start': '3c8f:ad98:dbc1:4185:6c1e:b13a:0:2', 'end': '3c8f:ad98:dbc1:4185:6c1e:b13a:ffff:fffe'}], 'gateway_ip': '3c8f:ad98:dbc1:4185:6c1e:b13a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c8f:ad98:dbc1:4185:6c1e:b13a:0:2', 'tags': [], 'project_id': '95839155767e42c3a091d26879d1541e'}} 2026-10-06 15:06:47,765 - INFO - Created VN ctest-vn4-32877912 2026-10-06 15:06:47,819 - DEBUG - VN ctest-vn4-32877912 UUID is 2e8c6b2f-4da0-481e-b084-94a5bf3126fc 2026-10-06 15:06:48,020 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e8c6b2f-4da0-481e-b084-94a5bf3126fc', 'name': 'ctest-vn4-32877912', 'tenant_id': '95839155767e42c3a091d26879d1541e', 'project_id': '95839155767e42c3a091d26879d1541e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['540a4ee6-3ec7-41e9-a24a-4e029b065780', 'ffd9cc07-7106-4ba0-9298-110226a9936a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39951304', 'ctest-vn4-32877912'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39951304', 'ctest-policy1-21399162']], 'subnet_ipam': [{'subnet_cidr': '17.188.204.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c8f:ad98:dbc1:4185:6c1e:b13a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-06 15:06:48,187 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-06 15:06:48,556 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-06 15:06:48,588 - DEBUG - Requesting: http://10.0.0.161:8082/domain/97e6c99a-d20e-4ba5-9473-3e7a2aa785f2 2026-10-06 15:06:48,603 - DEBUG - Requesting: http://10.0.0.161:8082/project/95839155-767e-42c3-a091-d26879d1541e 2026-10-06 15:06:48,684 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2e8c6b2f-4da0-481e-b084-94a5bf3126fc 2026-10-06 15:06:48,697 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2e8c6b2f-4da0-481e-b084-94a5bf3126fc 2026-10-06 15:06:48,709 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/43e32d12-b484-499c-8fc5-f49c305b1dd1 2026-10-06 15:06:48,717 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/43e32d12-b484-499c-8fc5-f49c305b1dd1 2026-10-06 15:06:48,724 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/bbde3233-13a9-438b-a4d3-37a1f46a1135 2026-10-06 15:06:48,730 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-06 15:06:48,730 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2e8c6b2f-4da0-481e-b084-94a5bf3126fc 2026-10-06 15:06:48,740 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/43e32d12-b484-499c-8fc5-f49c305b1dd1 2026-10-06 15:06:48,754 - INFO - Verified VN network id 12 for VN 2e8c6b2f-4da0-481e-b084-94a5bf3126fc 2026-10-06 15:06:48,754 - INFO - Verifications in API Server for VN ctest-vn4-32877912 passed 2026-10-06 15:06:48,754 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2e8c6b2f-4da0-481e-b084-94a5bf3126fc 2026-10-06 15:06:48,765 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/43e32d12-b484-499c-8fc5-f49c305b1dd1 2026-10-06 15:06:48,772 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/43e32d12-b484-499c-8fc5-f49c305b1dd1 2026-10-06 15:06:48,780 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/bbde3233-13a9-438b-a4d3-37a1f46a1135 2026-10-06 15:06:48,794 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39951304:ctest-vn4-32877912', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39951304', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3354173673394161694', 'uuid-lslong': '12719454687199307516'}, 'enable': 'true', 'created': '2026-10-06T15:06:47', 'last-modified': '2026-10-06T15:06:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.805051'} 2026-10-06 15:06:48,802 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-06 15:06:48,802 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32877912 passed 2026-10-06 15:06:48,802 - DEBUG - ====Verifying policy data for ctest-vn4-32877912 in API_Server ====== 2026-10-06 15:06:48,802 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-06 15:06:48,809 - DEBUG - Requesting: http://10.0.0.161:8082/domain/97e6c99a-d20e-4ba5-9473-3e7a2aa785f2 2026-10-06 15:06:48,821 - DEBUG - Requesting: http://10.0.0.161:8082/project/95839155-767e-42c3-a091-d26879d1541e 2026-10-06 15:06:48,898 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2e8c6b2f-4da0-481e-b084-94a5bf3126fc 2026-10-06 15:06:48,910 - DEBUG - ==>Verifying data for policy with id: 230b09cb-2b9b-460d-a52f-b0566d756528, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39951304', 'ctest-policy1-21399162'] 2026-10-06 15:06:48,910 - INFO - VN ctest-vn4-32877912 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-06 15:06:48,911 - DEBUG - Verifying the vn in opserver 2026-10-06 15:06:48,911 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39951304:ctest-vn4-32877912 virtual network link through opserver 10.0.0.161 2026-10-06 15:06:48,911 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-06 15:06:49,283 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-06 15:06:49,340 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39951304:ctest-vn4-32877912', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39951304:ctest-vn4-32877912?flat'} 2026-10-06 15:06:49,340 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39951304:ctest-vn4-32877912 is found in opserver 2026-10-06 15:06:49,353 - DEBUG - Do not have enough data to verify VN in agent 2026-10-06 15:06:49,359 - DEBUG - VRF ids for VN ctest-vn4-32877912: {} 2026-10-06 15:06:49,359 - DEBUG - ====Verifying data for ctest-policy1-21399162 in API_Server ====== 2026-10-06 15:06:49,359 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-06 15:06:49,365 - DEBUG - Requesting: http://10.0.0.161:8082/domain/97e6c99a-d20e-4ba5-9473-3e7a2aa785f2 2026-10-06 15:06:49,375 - DEBUG - Requesting: http://10.0.0.161:8082/project/95839155-767e-42c3-a091-d26879d1541e 2026-10-06 15:06:49,447 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/230b09cb-2b9b-460d-a52f-b0566d756528 2026-10-06 15:06:49,458 - INFO - Verified policy ctest-policy1-21399162 in API Server, Result: True 2026-10-06 15:06:49,458 - INFO - Done with setup and verification, moving onto test .. 2026-10-06 15:06:49,466 - INFO - Deleting VN ctest-vn4-32877912 2026-10-06 15:06:49,591 - DEBUG - Response for deleting network () 2026-10-06 15:06:49,592 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/43e32d12-b484-499c-8fc5-f49c305b1dd1 2026-10-06 15:06:49,596 - DEBUG - Response Code: 404 2026-10-06 15:06:49,597 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-06 15:06:49,601 - DEBUG - Requesting: http://10.0.0.161:8082/domain/97e6c99a-d20e-4ba5-9473-3e7a2aa785f2 2026-10-06 15:06:49,652 - DEBUG - Requesting: http://10.0.0.161:8082/project/95839155-767e-42c3-a091-d26879d1541e 2026-10-06 15:06:49,728 - INFO - Validated that VN ctest-vn4-32877912 is not found in API Server 2026-10-06 15:06:49,738 - DEBUG - VN ctest-vn4-32877912 is not present in Agent 10.0.0.161 2026-10-06 15:06:49,738 - INFO - Validated that VN ctest-vn4-32877912 is not in any agent 2026-10-06 15:06:49,752 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32877912 info 2026-10-06 15:06:49,781 - INFO - Deleted policy ctest-policy1-21399162 2026-10-06 15:06:49,947 - DEBUG - policy ctest-policy1-21399162 is not found in API Server 2026-10-06 15:06:50,205 - DEBUG - No XMPP flaps were noticed during the test
2026-10-06 15:06:50,205 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-10-06 15:06:50,205 - INFO - -------------------------------------------------------------------------------- 2026-10-06 15:06:50,496 - DEBUG - No XMPP flaps were noticed during the test
2026-10-06 15:06:50,496 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-10-06 15:06:50,496 - INFO - -------------------------------------------------------------------------------- 2026-10-06 15:06:51,283 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-39951304, ID : 95839155-767e-42c3-a091-d26879d1541e