2026-09-16 10:06:48,639 - INFO - Domain Default found not creating 2026-09-16 10:06:48,808 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-13646685 not found, creating it 2026-09-16 10:06:49,307 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-13646685, ID : d412633d-438d-43d8-9c56-054233f2f977 2026-09-16 10:06:50,843 - INFO - ================================================================================ 2026-09-16 10:06:50,843 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 10:06:51,108 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-09-16 10:06:51,108 - INFO - Initial checks done. Running the testcase now 2026-09-16 10:06:51,108 - INFO - 2026-09-16 10:06:51,108 - INFO - ================================================================================ 2026-09-16 10:06:51,108 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 10:06:51,108 - 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-09-16 10:06:51,411 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-09-16 10:06:51,412 - INFO - Initial checks done. Running the testcase now 2026-09-16 10:06:51,412 - INFO - 2026-09-16 10:06:51,791 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13646685:ctest-vn4-30890085, 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-13646685:ctest-vn4-30890085, 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-13646685:ctest-vn4-30890085, 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-13646685:ctest-vn4-30890085, 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-09-16 10:06:52,323 - DEBUG - Response for create_network : {'network': {'id': '53665501-d75b-4fd2-8ee8-4749eafec029', 'name': 'ctest-vn4-30890085', 'tenant_id': 'd412633d438d43d89c56054233f2f977', 'project_id': 'd412633d438d43d89c56054233f2f977', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13646685', 'ctest-vn4-30890085'], 'port_security_enabled': True, 'description': ''}} 2026-09-16 10:06:52,474 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e00f8e69-1ec9-41fc-8d4d-e850283a6137', 'name': '', 'tenant_id': 'd412633d438d43d89c56054233f2f977', 'network_id': '53665501-d75b-4fd2-8ee8-4749eafec029', 'ip_version': 4, 'cidr': '185.186.43.0/26', 'allocation_pools': [{'start': '185.186.43.2', 'end': '185.186.43.62'}], 'gateway_ip': '185.186.43.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.186.43.2', 'tags': [], 'project_id': 'd412633d438d43d89c56054233f2f977'}} 2026-09-16 10:06:52,687 - DEBUG - Response for create_subnet : {'subnet': {'id': '06c134a5-3999-4103-a7b2-2095c1060869', 'name': '', 'tenant_id': 'd412633d438d43d89c56054233f2f977', 'network_id': '53665501-d75b-4fd2-8ee8-4749eafec029', 'ip_version': 6, 'cidr': '3090:a29e:d4e:7daf:9ef4:590d::/96', 'allocation_pools': [{'start': '3090:a29e:d4e:7daf:9ef4:590d:0:2', 'end': '3090:a29e:d4e:7daf:9ef4:590d:ffff:fffe'}], 'gateway_ip': '3090:a29e:d4e:7daf:9ef4:590d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3090:a29e:d4e:7daf:9ef4:590d:0:2', 'tags': [], 'project_id': 'd412633d438d43d89c56054233f2f977'}} 2026-09-16 10:06:52,709 - INFO - Created VN ctest-vn4-30890085 2026-09-16 10:06:52,762 - DEBUG - VN ctest-vn4-30890085 UUID is 53665501-d75b-4fd2-8ee8-4749eafec029 2026-09-16 10:06:52,968 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53665501-d75b-4fd2-8ee8-4749eafec029', 'name': 'ctest-vn4-30890085', 'tenant_id': 'd412633d438d43d89c56054233f2f977', 'project_id': 'd412633d438d43d89c56054233f2f977', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e00f8e69-1ec9-41fc-8d4d-e850283a6137', '06c134a5-3999-4103-a7b2-2095c1060869'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13646685', 'ctest-vn4-30890085'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13646685', 'ctest-policy1-92802102']], 'subnet_ipam': [{'subnet_cidr': '185.186.43.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3090:a29e:d4e:7daf:9ef4:590d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-16 10:06:53,134 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-16 10:06:53,457 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-16 10:06:53,483 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec404a61-98b3-41d3-a6a2-1e8651b4729a 2026-09-16 10:06:53,494 - DEBUG - Requesting: http://10.0.0.38:8082/project/d412633d-438d-43d8-9c56-054233f2f977 2026-09-16 10:06:53,569 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/53665501-d75b-4fd2-8ee8-4749eafec029 2026-09-16 10:06:53,582 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/53665501-d75b-4fd2-8ee8-4749eafec029 2026-09-16 10:06:53,593 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b3869b9-8919-4ac2-a515-199681faae9f 2026-09-16 10:06:53,600 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b3869b9-8919-4ac2-a515-199681faae9f 2026-09-16 10:06:53,607 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/77050740-9c83-4afb-92fa-dfc875d1e909 2026-09-16 10:06:53,613 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 10:06:53,613 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/53665501-d75b-4fd2-8ee8-4749eafec029 2026-09-16 10:06:53,623 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b3869b9-8919-4ac2-a515-199681faae9f 2026-09-16 10:06:53,637 - INFO - Verified VN network id 12 for VN 53665501-d75b-4fd2-8ee8-4749eafec029 2026-09-16 10:06:53,637 - INFO - Verifications in API Server for VN ctest-vn4-30890085 passed 2026-09-16 10:06:53,637 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/53665501-d75b-4fd2-8ee8-4749eafec029 2026-09-16 10:06:53,647 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b3869b9-8919-4ac2-a515-199681faae9f 2026-09-16 10:06:53,654 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b3869b9-8919-4ac2-a515-199681faae9f 2026-09-16 10:06:53,660 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/77050740-9c83-4afb-92fa-dfc875d1e909 2026-09-16 10:06:53,672 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13646685:ctest-vn4-30890085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-13646685', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6009584219168919506', 'uuid-lslong': '10297558930783387689'}, 'enable': 'true', 'created': '2026-09-16T10:06:52', 'last-modified': '2026-09-16T10:06:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.731928'} 2026-09-16 10:06:53,679 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 10:06:53,679 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30890085 passed 2026-09-16 10:06:53,679 - DEBUG - ====Verifying policy data for ctest-vn4-30890085 in API_Server ====== 2026-09-16 10:06:53,679 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-16 10:06:53,685 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec404a61-98b3-41d3-a6a2-1e8651b4729a 2026-09-16 10:06:53,697 - DEBUG - Requesting: http://10.0.0.38:8082/project/d412633d-438d-43d8-9c56-054233f2f977 2026-09-16 10:06:53,774 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/53665501-d75b-4fd2-8ee8-4749eafec029 2026-09-16 10:06:53,787 - DEBUG - ==>Verifying data for policy with id: e12db603-f146-46de-8c75-8a63f698e217, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13646685', 'ctest-policy1-92802102'] 2026-09-16 10:06:53,787 - INFO - VN ctest-vn4-30890085 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-16 10:06:53,787 - DEBUG - Verifying the vn in opserver 2026-09-16 10:06:53,787 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13646685:ctest-vn4-30890085 virtual network link through opserver 10.0.0.38 2026-09-16 10:06:53,787 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-16 10:06:54,107 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-16 10:06:54,161 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13646685:ctest-vn4-30890085', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13646685:ctest-vn4-30890085?flat'} 2026-09-16 10:06:54,161 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13646685:ctest-vn4-30890085 is found in opserver 2026-09-16 10:06:54,172 - DEBUG - Do not have enough data to verify VN in agent 2026-09-16 10:06:54,178 - DEBUG - VRF ids for VN ctest-vn4-30890085: {} 2026-09-16 10:06:54,178 - DEBUG - ====Verifying data for ctest-policy1-92802102 in API_Server ====== 2026-09-16 10:06:54,179 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-16 10:06:54,184 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec404a61-98b3-41d3-a6a2-1e8651b4729a 2026-09-16 10:06:54,196 - DEBUG - Requesting: http://10.0.0.38:8082/project/d412633d-438d-43d8-9c56-054233f2f977 2026-09-16 10:06:54,274 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/e12db603-f146-46de-8c75-8a63f698e217 2026-09-16 10:06:54,284 - INFO - Verified policy ctest-policy1-92802102 in API Server, Result: True 2026-09-16 10:06:54,284 - INFO - Done with setup and verification, moving onto test .. 2026-09-16 10:06:54,293 - INFO - Deleting VN ctest-vn4-30890085 2026-09-16 10:06:54,419 - DEBUG - Response for deleting network () 2026-09-16 10:06:54,419 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2b3869b9-8919-4ac2-a515-199681faae9f 2026-09-16 10:06:54,424 - DEBUG - Response Code: 404 2026-09-16 10:06:54,425 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-16 10:06:54,432 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ec404a61-98b3-41d3-a6a2-1e8651b4729a 2026-09-16 10:06:54,487 - DEBUG - Requesting: http://10.0.0.38:8082/project/d412633d-438d-43d8-9c56-054233f2f977 2026-09-16 10:06:54,557 - INFO - Validated that VN ctest-vn4-30890085 is not found in API Server 2026-09-16 10:06:54,567 - DEBUG - VN ctest-vn4-30890085 is not present in Agent 10.0.0.38 2026-09-16 10:06:54,567 - INFO - Validated that VN ctest-vn4-30890085 is not in any agent 2026-09-16 10:06:54,582 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30890085 info 2026-09-16 10:06:54,607 - INFO - Deleted policy ctest-policy1-92802102 2026-09-16 10:06:54,770 - DEBUG - policy ctest-policy1-92802102 is not found in API Server 2026-09-16 10:06:55,023 - DEBUG - No XMPP flaps were noticed during the test
2026-09-16 10:06:55,023 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-09-16 10:06:55,024 - INFO - -------------------------------------------------------------------------------- 2026-09-16 10:06:55,320 - DEBUG - No XMPP flaps were noticed during the test
2026-09-16 10:06:55,320 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-16 10:06:55,320 - INFO - -------------------------------------------------------------------------------- 2026-09-16 10:06:56,059 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-13646685, ID : d412633d-438d-43d8-9c56-054233f2f977