2026-10-26 16:52:08,083 - INFO - Domain Default found not creating 2026-10-26 16:52:08,338 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88677071 not found, creating it 2026-10-26 16:52:08,995 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88677071, ID : c825a2dc-2e25-4a77-b31d-9fd19596548c 2026-10-26 16:52:11,926 - INFO - ================================================================================ 2026-10-26 16:52:11,926 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 16:52:12,204 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.25': '0'}} with 2026-10-26 16:52:12,204 - INFO - Initial checks done. Running the testcase now 2026-10-26 16:52:12,204 - INFO - 2026-10-26 16:52:12,204 - INFO - ================================================================================ 2026-10-26 16:52:12,204 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 16:52:12,204 - 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-26 16:52:12,509 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.25': '0'}} with 2026-10-26 16:52:12,509 - INFO - Initial checks done. Running the testcase now 2026-10-26 16:52:12,509 - INFO - 2026-10-26 16:52:12,992 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88677071:ctest-vn4-58381455, 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-88677071:ctest-vn4-58381455, 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-88677071:ctest-vn4-58381455, 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-88677071:ctest-vn4-58381455, 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-26 16:52:13,607 - DEBUG - Response for create_network : {'network': {'id': '9852c0f7-67d2-47c4-a4a5-9b24f66ac966', 'name': 'ctest-vn4-58381455', 'tenant_id': 'c825a2dc2e254a77b31d9fd19596548c', 'project_id': 'c825a2dc2e254a77b31d9fd19596548c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88677071', 'ctest-vn4-58381455'], 'port_security_enabled': True, 'description': ''}} 2026-10-26 16:52:13,850 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b13842fc-f951-40c3-b08b-4b2807496308', 'name': '', 'tenant_id': 'c825a2dc2e254a77b31d9fd19596548c', 'network_id': '9852c0f7-67d2-47c4-a4a5-9b24f66ac966', 'ip_version': 4, 'cidr': '146.194.228.192/26', 'allocation_pools': [{'start': '146.194.228.194', 'end': '146.194.228.254'}], 'gateway_ip': '146.194.228.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.194.228.194', 'tags': [], 'project_id': 'c825a2dc2e254a77b31d9fd19596548c'}} 2026-10-26 16:52:14,073 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a6fb6ac-26fc-4cd0-9ac6-19041107cb3c', 'name': '', 'tenant_id': 'c825a2dc2e254a77b31d9fd19596548c', 'network_id': '9852c0f7-67d2-47c4-a4a5-9b24f66ac966', 'ip_version': 6, 'cidr': '3411:845:f841:9958:f21a:311::/96', 'allocation_pools': [{'start': '3411:845:f841:9958:f21a:311:0:2', 'end': '3411:845:f841:9958:f21a:311:ffff:fffe'}], 'gateway_ip': '3411:845:f841:9958:f21a:311:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3411:845:f841:9958:f21a:311:0:2', 'tags': [], 'project_id': 'c825a2dc2e254a77b31d9fd19596548c'}} 2026-10-26 16:52:14,101 - INFO - Created VN ctest-vn4-58381455 2026-10-26 16:52:14,159 - DEBUG - VN ctest-vn4-58381455 UUID is 9852c0f7-67d2-47c4-a4a5-9b24f66ac966 2026-10-26 16:52:14,458 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9852c0f7-67d2-47c4-a4a5-9b24f66ac966', 'name': 'ctest-vn4-58381455', 'tenant_id': 'c825a2dc2e254a77b31d9fd19596548c', 'project_id': 'c825a2dc2e254a77b31d9fd19596548c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['b13842fc-f951-40c3-b08b-4b2807496308', '9a6fb6ac-26fc-4cd0-9ac6-19041107cb3c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88677071', 'ctest-vn4-58381455'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88677071', 'ctest-policy1-11403477']], 'subnet_ipam': [{'subnet_cidr': '146.194.228.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3411:845:f841:9958:f21a:311::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-26 16:52:14,647 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-26 16:52:15,043 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-26 16:52:15,086 - DEBUG - Requesting: http://10.0.0.190:8082/domain/65dadf12-f756-41f3-8200-714f9eb2025e 2026-10-26 16:52:15,105 - DEBUG - Requesting: http://10.0.0.190:8082/project/c825a2dc-2e25-4a77-b31d-9fd19596548c 2026-10-26 16:52:15,198 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/9852c0f7-67d2-47c4-a4a5-9b24f66ac966 2026-10-26 16:52:15,215 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/9852c0f7-67d2-47c4-a4a5-9b24f66ac966 2026-10-26 16:52:15,230 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/7a644a3d-910c-4692-98ff-d28d7e05a126 2026-10-26 16:52:15,241 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/7a644a3d-910c-4692-98ff-d28d7e05a126 2026-10-26 16:52:15,252 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/d9b29ada-2339-483b-940e-accbf270c81e 2026-10-26 16:52:15,261 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 16:52:15,261 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/9852c0f7-67d2-47c4-a4a5-9b24f66ac966 2026-10-26 16:52:15,276 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/7a644a3d-910c-4692-98ff-d28d7e05a126 2026-10-26 16:52:15,297 - INFO - Verified VN network id 12 for VN 9852c0f7-67d2-47c4-a4a5-9b24f66ac966 2026-10-26 16:52:15,297 - INFO - Verifications in API Server for VN ctest-vn4-58381455 passed 2026-10-26 16:52:15,297 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/9852c0f7-67d2-47c4-a4a5-9b24f66ac966 2026-10-26 16:52:15,310 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/7a644a3d-910c-4692-98ff-d28d7e05a126 2026-10-26 16:52:15,320 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/7a644a3d-910c-4692-98ff-d28d7e05a126 2026-10-26 16:52:15,329 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/d9b29ada-2339-483b-940e-accbf270c81e 2026-10-26 16:52:15,349 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88677071:ctest-vn4-58381455', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88677071', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10976047410686609348', 'uuid-lslong': '11864059376432761190'}, 'enable': 'true', 'created': '2026-10-26T16:52:13', 'last-modified': '2026-10-26T16:52:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946866'} 2026-10-26 16:52:15,358 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 16:52:15,358 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-58381455 passed 2026-10-26 16:52:15,359 - DEBUG - ====Verifying policy data for ctest-vn4-58381455 in API_Server ====== 2026-10-26 16:52:15,359 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-26 16:52:15,365 - DEBUG - Requesting: http://10.0.0.190:8082/domain/65dadf12-f756-41f3-8200-714f9eb2025e 2026-10-26 16:52:15,380 - DEBUG - Requesting: http://10.0.0.190:8082/project/c825a2dc-2e25-4a77-b31d-9fd19596548c 2026-10-26 16:52:15,463 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/9852c0f7-67d2-47c4-a4a5-9b24f66ac966 2026-10-26 16:52:15,476 - DEBUG - ==>Verifying data for policy with id: 656b9b86-e5d5-4355-ac23-fdb4f032e82d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88677071', 'ctest-policy1-11403477'] 2026-10-26 16:52:15,476 - INFO - VN ctest-vn4-58381455 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-26 16:52:15,477 - DEBUG - Verifying the vn in opserver 2026-10-26 16:52:15,477 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88677071:ctest-vn4-58381455 virtual network link through opserver 10.0.0.190 2026-10-26 16:52:15,477 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-10-26 16:52:15,886 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-10-26 16:52:15,950 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88677071:ctest-vn4-58381455', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88677071:ctest-vn4-58381455?flat'} 2026-10-26 16:52:15,950 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88677071:ctest-vn4-58381455 is found in opserver 2026-10-26 16:52:15,964 - DEBUG - Do not have enough data to verify VN in agent 2026-10-26 16:52:15,970 - DEBUG - VRF ids for VN ctest-vn4-58381455: {} 2026-10-26 16:52:15,971 - DEBUG - ====Verifying data for ctest-policy1-11403477 in API_Server ====== 2026-10-26 16:52:15,971 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-26 16:52:15,979 - DEBUG - Requesting: http://10.0.0.190:8082/domain/65dadf12-f756-41f3-8200-714f9eb2025e 2026-10-26 16:52:15,995 - DEBUG - Requesting: http://10.0.0.190:8082/project/c825a2dc-2e25-4a77-b31d-9fd19596548c 2026-10-26 16:52:16,076 - DEBUG - Requesting: http://10.0.0.190:8082/network-policy/656b9b86-e5d5-4355-ac23-fdb4f032e82d 2026-10-26 16:52:16,091 - INFO - Verified policy ctest-policy1-11403477 in API Server, Result: True 2026-10-26 16:52:16,091 - INFO - Done with setup and verification, moving onto test .. 2026-10-26 16:52:16,105 - INFO - Deleting VN ctest-vn4-58381455 2026-10-26 16:52:16,275 - DEBUG - Response for deleting network () 2026-10-26 16:52:16,275 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/7a644a3d-910c-4692-98ff-d28d7e05a126 2026-10-26 16:52:16,281 - DEBUG - Response Code: 404 2026-10-26 16:52:16,282 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-10-26 16:52:16,303 - DEBUG - Requesting: http://10.0.0.190:8082/domain/65dadf12-f756-41f3-8200-714f9eb2025e 2026-10-26 16:52:16,320 - DEBUG - Requesting: http://10.0.0.190:8082/project/c825a2dc-2e25-4a77-b31d-9fd19596548c 2026-10-26 16:52:16,415 - INFO - Validated that VN ctest-vn4-58381455 is not found in API Server 2026-10-26 16:52:16,432 - DEBUG - VN ctest-vn4-58381455 is not present in Agent 10.0.0.190 2026-10-26 16:52:16,432 - INFO - Validated that VN ctest-vn4-58381455 is not in any agent 2026-10-26 16:52:16,460 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-58381455 info 2026-10-26 16:52:16,496 - INFO - Deleted policy ctest-policy1-11403477 2026-10-26 16:52:16,683 - DEBUG - policy ctest-policy1-11403477 is not found in API Server 2026-10-26 16:52:16,958 - DEBUG - No XMPP flaps were noticed during the test 2026-10-26 16:52:16,958 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-10-26 16:52:16,959 - INFO - -------------------------------------------------------------------------------- 2026-10-26 16:52:17,255 - DEBUG - No XMPP flaps were noticed during the test 2026-10-26 16:52:17,255 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2026-10-26 16:52:17,255 - INFO - -------------------------------------------------------------------------------- 2026-10-26 16:52:18,111 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-88677071, ID : c825a2dc-2e25-4a77-b31d-9fd19596548c