2026-05-19 15:43:53,342 - INFO - Domain Default found not creating 2026-05-19 15:43:53,519 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78560812 not found, creating it 2026-05-19 15:43:53,981 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78560812, ID : fe2ae799-5124-44d8-bf81-932622c1f4c3 2026-05-19 15:43:55,531 - INFO - ================================================================================ 2026-05-19 15:43:55,531 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-19 15:43:55,793 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-05-19 15:43:55,793 - INFO - Initial checks done. Running the testcase now 2026-05-19 15:43:55,793 - INFO - 2026-05-19 15:43:55,793 - INFO - ================================================================================ 2026-05-19 15:43:55,793 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-19 15:43:55,793 - 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-05-19 15:43:56,096 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-05-19 15:43:56,096 - INFO - Initial checks done. Running the testcase now 2026-05-19 15:43:56,096 - INFO - 2026-05-19 15:43:56,447 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78560812:ctest-vn4-27018307, 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-78560812:ctest-vn4-27018307, 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-78560812:ctest-vn4-27018307, 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-78560812:ctest-vn4-27018307, 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-05-19 15:43:56,984 - DEBUG - Response for create_network : {'network': {'id': '36b2d92f-6f42-4931-9800-4989ecc8cd8c', 'name': 'ctest-vn4-27018307', 'tenant_id': 'fe2ae799512444d8bf81932622c1f4c3', 'project_id': 'fe2ae799512444d8bf81932622c1f4c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78560812', 'ctest-vn4-27018307'], 'port_security_enabled': True, 'description': ''}} 2026-05-19 15:43:57,177 - DEBUG - Response for create_subnet : {'subnet': {'id': '15386271-e75a-4396-a615-cd3311ca70f9', 'name': '', 'tenant_id': 'fe2ae799512444d8bf81932622c1f4c3', 'network_id': '36b2d92f-6f42-4931-9800-4989ecc8cd8c', 'ip_version': 4, 'cidr': '30.12.102.128/26', 'allocation_pools': [{'start': '30.12.102.130', 'end': '30.12.102.190'}], 'gateway_ip': '30.12.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.12.102.130', 'tags': [], 'project_id': 'fe2ae799512444d8bf81932622c1f4c3'}} 2026-05-19 15:43:57,356 - DEBUG - Response for create_subnet : {'subnet': {'id': '5edecf86-5409-4007-b9bd-666e092ad5f2', 'name': '', 'tenant_id': 'fe2ae799512444d8bf81932622c1f4c3', 'network_id': '36b2d92f-6f42-4931-9800-4989ecc8cd8c', 'ip_version': 6, 'cidr': '25cc:3766:dd5d:9b60:154c:242f::/96', 'allocation_pools': [{'start': '25cc:3766:dd5d:9b60:154c:242f:0:2', 'end': '25cc:3766:dd5d:9b60:154c:242f:ffff:fffe'}], 'gateway_ip': '25cc:3766:dd5d:9b60:154c:242f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25cc:3766:dd5d:9b60:154c:242f:0:2', 'tags': [], 'project_id': 'fe2ae799512444d8bf81932622c1f4c3'}} 2026-05-19 15:43:57,379 - INFO - Created VN ctest-vn4-27018307 2026-05-19 15:43:57,434 - DEBUG - VN ctest-vn4-27018307 UUID is 36b2d92f-6f42-4931-9800-4989ecc8cd8c 2026-05-19 15:43:57,645 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36b2d92f-6f42-4931-9800-4989ecc8cd8c', 'name': 'ctest-vn4-27018307', 'tenant_id': 'fe2ae799512444d8bf81932622c1f4c3', 'project_id': 'fe2ae799512444d8bf81932622c1f4c3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['15386271-e75a-4396-a615-cd3311ca70f9', '5edecf86-5409-4007-b9bd-666e092ad5f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78560812', 'ctest-vn4-27018307'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78560812', 'ctest-policy1-04534569']], 'subnet_ipam': [{'subnet_cidr': '30.12.102.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25cc:3766:dd5d:9b60:154c:242f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-19 15:43:57,806 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-19 15:43:58,101 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-19 15:43:58,136 - DEBUG - Requesting: http://10.0.0.19:8082/domain/5f0da55d-23b0-4dab-8815-139d8cab4a2c 2026-05-19 15:43:58,148 - DEBUG - Requesting: http://10.0.0.19:8082/project/fe2ae799-5124-44d8-bf81-932622c1f4c3 2026-05-19 15:43:58,220 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/36b2d92f-6f42-4931-9800-4989ecc8cd8c 2026-05-19 15:43:58,233 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/36b2d92f-6f42-4931-9800-4989ecc8cd8c 2026-05-19 15:43:58,244 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4b6b9342-1add-4b92-930a-8ec056ee72d0 2026-05-19 15:43:58,252 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4b6b9342-1add-4b92-930a-8ec056ee72d0 2026-05-19 15:43:58,259 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/472c201e-af53-4adb-a38d-690767d3b629 2026-05-19 15:43:58,266 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-19 15:43:58,266 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/36b2d92f-6f42-4931-9800-4989ecc8cd8c 2026-05-19 15:43:58,277 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4b6b9342-1add-4b92-930a-8ec056ee72d0 2026-05-19 15:43:58,293 - INFO - Verified VN network id 11 for VN 36b2d92f-6f42-4931-9800-4989ecc8cd8c 2026-05-19 15:43:58,293 - INFO - Verifications in API Server for VN ctest-vn4-27018307 passed 2026-05-19 15:43:58,293 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/36b2d92f-6f42-4931-9800-4989ecc8cd8c 2026-05-19 15:43:58,304 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4b6b9342-1add-4b92-930a-8ec056ee72d0 2026-05-19 15:43:58,311 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4b6b9342-1add-4b92-930a-8ec056ee72d0 2026-05-19 15:43:58,320 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/472c201e-af53-4adb-a38d-690767d3b629 2026-05-19 15:43:58,333 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78560812:ctest-vn4-27018307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78560812', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3941451421655910705', 'uuid-lslong': '10952835150496976268'}, 'enable': 'true', 'created': '2026-05-19T15:43:56', 'last-modified': '2026-05-19T15:43:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.718623'} 2026-05-19 15:43:58,339 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-19 15:43:58,339 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27018307 passed 2026-05-19 15:43:58,339 - DEBUG - ====Verifying policy data for ctest-vn4-27018307 in API_Server ====== 2026-05-19 15:43:58,339 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-19 15:43:58,347 - DEBUG - Requesting: http://10.0.0.19:8082/domain/5f0da55d-23b0-4dab-8815-139d8cab4a2c 2026-05-19 15:43:58,358 - DEBUG - Requesting: http://10.0.0.19:8082/project/fe2ae799-5124-44d8-bf81-932622c1f4c3 2026-05-19 15:43:58,433 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/36b2d92f-6f42-4931-9800-4989ecc8cd8c 2026-05-19 15:43:58,443 - DEBUG - ==>Verifying data for policy with id: bc9c9c0a-4e3c-4264-9833-802b2abd02ec, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78560812', 'ctest-policy1-04534569'] 2026-05-19 15:43:58,443 - INFO - VN ctest-vn4-27018307 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-19 15:43:58,443 - DEBUG - Verifying the vn in opserver 2026-05-19 15:43:58,443 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78560812:ctest-vn4-27018307 virtual network link through opserver 10.0.0.19 2026-05-19 15:43:58,443 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-05-19 15:43:58,740 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-05-19 15:43:58,809 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78560812:ctest-vn4-27018307', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78560812:ctest-vn4-27018307?flat'} 2026-05-19 15:43:58,809 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78560812:ctest-vn4-27018307 is found in opserver 2026-05-19 15:43:58,820 - DEBUG - Do not have enough data to verify VN in agent 2026-05-19 15:43:58,824 - DEBUG - VRF ids for VN ctest-vn4-27018307: {} 2026-05-19 15:43:58,825 - DEBUG - ====Verifying data for ctest-policy1-04534569 in API_Server ====== 2026-05-19 15:43:58,825 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-19 15:43:58,831 - DEBUG - Requesting: http://10.0.0.19:8082/domain/5f0da55d-23b0-4dab-8815-139d8cab4a2c 2026-05-19 15:43:58,841 - DEBUG - Requesting: http://10.0.0.19:8082/project/fe2ae799-5124-44d8-bf81-932622c1f4c3 2026-05-19 15:43:58,913 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/bc9c9c0a-4e3c-4264-9833-802b2abd02ec 2026-05-19 15:43:58,923 - INFO - Verified policy ctest-policy1-04534569 in API Server, Result: True 2026-05-19 15:43:58,923 - INFO - Done with setup and verification, moving onto test .. 2026-05-19 15:43:58,932 - INFO - Deleting VN ctest-vn4-27018307 2026-05-19 15:43:59,049 - DEBUG - Response for deleting network () 2026-05-19 15:43:59,049 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/4b6b9342-1add-4b92-930a-8ec056ee72d0 2026-05-19 15:43:59,054 - DEBUG - Response Code: 404 2026-05-19 15:43:59,054 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-19 15:43:59,060 - DEBUG - Requesting: http://10.0.0.19:8082/domain/5f0da55d-23b0-4dab-8815-139d8cab4a2c 2026-05-19 15:43:59,115 - DEBUG - Requesting: http://10.0.0.19:8082/project/fe2ae799-5124-44d8-bf81-932622c1f4c3 2026-05-19 15:43:59,210 - INFO - Validated that VN ctest-vn4-27018307 is not found in API Server 2026-05-19 15:43:59,221 - DEBUG - VN ctest-vn4-27018307 is not present in Agent 10.0.0.19 2026-05-19 15:43:59,222 - INFO - Validated that VN ctest-vn4-27018307 is not in any agent 2026-05-19 15:43:59,237 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27018307 info 2026-05-19 15:43:59,264 - INFO - Deleted policy ctest-policy1-04534569 2026-05-19 15:43:59,434 - DEBUG - policy ctest-policy1-04534569 is not found in API Server 2026-05-19 15:43:59,692 - DEBUG - No XMPP flaps were noticed during the test
2026-05-19 15:43:59,692 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-19 15:43:59,692 - INFO - -------------------------------------------------------------------------------- 2026-05-19 15:43:59,980 - DEBUG - No XMPP flaps were noticed during the test
2026-05-19 15:43:59,980 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-19 15:43:59,980 - INFO - -------------------------------------------------------------------------------- 2026-05-19 15:44:00,660 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-78560812, ID : fe2ae799-5124-44d8-bf81-932622c1f4c3