2026-02-10 18:07:57,060 - INFO - Domain Default found not creating 2026-02-10 18:07:57,223 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25397008 not found, creating it 2026-02-10 18:07:57,683 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25397008, ID : c2bf0004-8fb4-4c02-a6da-29f019251f8f 2026-02-10 18:07:59,149 - INFO - ================================================================================ 2026-02-10 18:07:59,149 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 18:07:59,405 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with 2026-02-10 18:07:59,405 - INFO - Initial checks done. Running the testcase now 2026-02-10 18:07:59,405 - INFO - 2026-02-10 18:07:59,405 - INFO - ================================================================================ 2026-02-10 18:07:59,405 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 18:07:59,405 - 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-10 18:07:59,696 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with 2026-02-10 18:07:59,696 - INFO - Initial checks done. Running the testcase now 2026-02-10 18:07:59,696 - INFO - 2026-02-10 18:08:00,063 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25397008:ctest-vn4-26841132, 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-25397008:ctest-vn4-26841132, 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-25397008:ctest-vn4-26841132, 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-25397008:ctest-vn4-26841132, 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-10 18:08:00,574 - DEBUG - Response for create_network : {'network': {'id': '4eefbcdf-1c33-4050-8516-f53c887d1df1', 'name': 'ctest-vn4-26841132', 'tenant_id': 'c2bf00048fb44c02a6da29f019251f8f', 'project_id': 'c2bf00048fb44c02a6da29f019251f8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25397008', 'ctest-vn4-26841132'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 18:08:00,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b166514-380e-4094-8116-1d2e33ae874b', 'name': '', 'tenant_id': 'c2bf00048fb44c02a6da29f019251f8f', 'network_id': '4eefbcdf-1c33-4050-8516-f53c887d1df1', 'ip_version': 4, 'cidr': '137.149.138.0/26', 'allocation_pools': [{'start': '137.149.138.2', 'end': '137.149.138.62'}], 'gateway_ip': '137.149.138.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.149.138.2', 'tags': [], 'project_id': 'c2bf00048fb44c02a6da29f019251f8f'}} 2026-02-10 18:08:00,892 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3eb85df-2277-406d-9f77-cb418139a213', 'name': '', 'tenant_id': 'c2bf00048fb44c02a6da29f019251f8f', 'network_id': '4eefbcdf-1c33-4050-8516-f53c887d1df1', 'ip_version': 6, 'cidr': '2c3e:787e:71e8:5f2d:8c56:c7fd::/96', 'allocation_pools': [{'start': '2c3e:787e:71e8:5f2d:8c56:c7fd:0:2', 'end': '2c3e:787e:71e8:5f2d:8c56:c7fd:ffff:fffe'}], 'gateway_ip': '2c3e:787e:71e8:5f2d:8c56:c7fd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c3e:787e:71e8:5f2d:8c56:c7fd:0:2', 'tags': [], 'project_id': 'c2bf00048fb44c02a6da29f019251f8f'}} 2026-02-10 18:08:00,913 - INFO - Created VN ctest-vn4-26841132 2026-02-10 18:08:00,966 - DEBUG - VN ctest-vn4-26841132 UUID is 4eefbcdf-1c33-4050-8516-f53c887d1df1 2026-02-10 18:08:01,178 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4eefbcdf-1c33-4050-8516-f53c887d1df1', 'name': 'ctest-vn4-26841132', 'tenant_id': 'c2bf00048fb44c02a6da29f019251f8f', 'project_id': 'c2bf00048fb44c02a6da29f019251f8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b166514-380e-4094-8116-1d2e33ae874b', 'e3eb85df-2277-406d-9f77-cb418139a213'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25397008', 'ctest-vn4-26841132'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25397008', 'ctest-policy1-62106392']], 'subnet_ipam': [{'subnet_cidr': '137.149.138.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c3e:787e:71e8:5f2d:8c56:c7fd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 18:08:01,334 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-10 18:08:01,636 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-10 18:08:01,667 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e832b0ca-c076-4761-b666-400c9d48d223 2026-02-10 18:08:01,679 - DEBUG - Requesting: http://10.0.0.22:8082/project/c2bf0004-8fb4-4c02-a6da-29f019251f8f 2026-02-10 18:08:01,761 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4eefbcdf-1c33-4050-8516-f53c887d1df1 2026-02-10 18:08:01,774 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4eefbcdf-1c33-4050-8516-f53c887d1df1 2026-02-10 18:08:01,783 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2cbf8f94-3d6e-4f41-93d8-5323c758cd1d 2026-02-10 18:08:01,789 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2cbf8f94-3d6e-4f41-93d8-5323c758cd1d 2026-02-10 18:08:01,797 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/271ffda8-ef32-4e64-8da9-ea3d7fa62031 2026-02-10 18:08:01,803 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 18:08:01,803 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4eefbcdf-1c33-4050-8516-f53c887d1df1 2026-02-10 18:08:01,813 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2cbf8f94-3d6e-4f41-93d8-5323c758cd1d 2026-02-10 18:08:01,826 - INFO - Verified VN network id 12 for VN 4eefbcdf-1c33-4050-8516-f53c887d1df1 2026-02-10 18:08:01,827 - INFO - Verifications in API Server for VN ctest-vn4-26841132 passed 2026-02-10 18:08:01,827 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4eefbcdf-1c33-4050-8516-f53c887d1df1 2026-02-10 18:08:01,835 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2cbf8f94-3d6e-4f41-93d8-5323c758cd1d 2026-02-10 18:08:01,842 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2cbf8f94-3d6e-4f41-93d8-5323c758cd1d 2026-02-10 18:08:01,849 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/271ffda8-ef32-4e64-8da9-ea3d7fa62031 2026-02-10 18:08:01,861 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25397008:ctest-vn4-26841132', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25397008', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5687972520829075536', 'uuid-lslong': '9590122096868793841'}, 'enable': 'true', 'created': '2026-02-10T18:08:00', 'last-modified': '2026-02-10T18:08:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711691'} 2026-02-10 18:08:01,868 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 18:08:01,868 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26841132 passed 2026-02-10 18:08:01,868 - DEBUG - ====Verifying policy data for ctest-vn4-26841132 in API_Server ====== 2026-02-10 18:08:01,868 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-10 18:08:01,874 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e832b0ca-c076-4761-b666-400c9d48d223 2026-02-10 18:08:01,884 - DEBUG - Requesting: http://10.0.0.22:8082/project/c2bf0004-8fb4-4c02-a6da-29f019251f8f 2026-02-10 18:08:01,952 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4eefbcdf-1c33-4050-8516-f53c887d1df1 2026-02-10 18:08:01,961 - DEBUG - ==>Verifying data for policy with id: 6afa7e8e-d2bc-47c9-a028-e6943462c785, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25397008', 'ctest-policy1-62106392'] 2026-02-10 18:08:01,961 - INFO - VN ctest-vn4-26841132 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 18:08:01,961 - DEBUG - Verifying the vn in opserver 2026-02-10 18:08:01,961 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25397008:ctest-vn4-26841132 virtual network link through opserver 10.0.0.22 2026-02-10 18:08:01,961 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-10 18:08:02,255 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-10 18:08:02,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25397008:ctest-vn4-26841132', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25397008:ctest-vn4-26841132?flat'} 2026-02-10 18:08:02,314 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25397008:ctest-vn4-26841132 is found in opserver 2026-02-10 18:08:02,324 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 18:08:02,329 - DEBUG - VRF ids for VN ctest-vn4-26841132: {} 2026-02-10 18:08:02,329 - DEBUG - ====Verifying data for ctest-policy1-62106392 in API_Server ====== 2026-02-10 18:08:02,329 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-10 18:08:02,335 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e832b0ca-c076-4761-b666-400c9d48d223 2026-02-10 18:08:02,345 - DEBUG - Requesting: http://10.0.0.22:8082/project/c2bf0004-8fb4-4c02-a6da-29f019251f8f 2026-02-10 18:08:02,418 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/6afa7e8e-d2bc-47c9-a028-e6943462c785 2026-02-10 18:08:02,428 - INFO - Verified policy ctest-policy1-62106392 in API Server, Result: True 2026-02-10 18:08:02,428 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 18:08:02,435 - INFO - Deleting VN ctest-vn4-26841132 2026-02-10 18:08:02,559 - DEBUG - Response for deleting network () 2026-02-10 18:08:02,559 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2cbf8f94-3d6e-4f41-93d8-5323c758cd1d 2026-02-10 18:08:02,564 - DEBUG - Response Code: 404 2026-02-10 18:08:02,564 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-10 18:08:02,571 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e832b0ca-c076-4761-b666-400c9d48d223 2026-02-10 18:08:02,624 - DEBUG - Requesting: http://10.0.0.22:8082/project/c2bf0004-8fb4-4c02-a6da-29f019251f8f 2026-02-10 18:08:02,693 - INFO - Validated that VN ctest-vn4-26841132 is not found in API Server 2026-02-10 18:08:02,702 - DEBUG - VN ctest-vn4-26841132 is not present in Agent 10.0.0.22 2026-02-10 18:08:02,702 - INFO - Validated that VN ctest-vn4-26841132 is not in any agent 2026-02-10 18:08:02,719 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26841132 info 2026-02-10 18:08:02,744 - INFO - Deleted policy ctest-policy1-62106392 2026-02-10 18:08:02,914 - DEBUG - policy ctest-policy1-62106392 is not found in API Server 2026-02-10 18:08:03,168 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 18:08:03,168 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-10 18:08:03,168 - INFO - -------------------------------------------------------------------------------- 2026-02-10 18:08:03,455 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 18:08:03,455 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-10 18:08:03,455 - INFO - -------------------------------------------------------------------------------- 2026-02-10 18:08:04,131 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25397008, ID : c2bf0004-8fb4-4c02-a6da-29f019251f8f