2026-02-18 16:36:53,334 - INFO - Domain Default found not creating 2026-02-18 16:36:53,522 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-89401516 not found, creating it 2026-02-18 16:36:53,981 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-89401516, ID : d11bd7a8-df6c-4f17-aa4e-d589fd4c39dd 2026-02-18 16:36:55,497 - INFO - ================================================================================ 2026-02-18 16:36:55,497 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-18 16:36:55,751 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-18 16:36:55,751 - INFO - Initial checks done. Running the testcase now 2026-02-18 16:36:55,751 - INFO - 2026-02-18 16:36:55,751 - INFO - ================================================================================ 2026-02-18 16:36:55,751 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-18 16:36:55,751 - 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-18 16:36:56,050 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-18 16:36:56,050 - INFO - Initial checks done. Running the testcase now 2026-02-18 16:36:56,050 - INFO - 2026-02-18 16:36:56,415 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89401516:ctest-vn4-12142060, 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-89401516:ctest-vn4-12142060, 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-89401516:ctest-vn4-12142060, 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-89401516:ctest-vn4-12142060, 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-18 16:36:56,930 - DEBUG - Response for create_network : {'network': {'id': 'da55c0c7-d28f-448b-b491-15398d120134', 'name': 'ctest-vn4-12142060', 'tenant_id': 'd11bd7a8df6c4f17aa4ed589fd4c39dd', 'project_id': 'd11bd7a8df6c4f17aa4ed589fd4c39dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89401516', 'ctest-vn4-12142060'], 'port_security_enabled': True, 'description': ''}} 2026-02-18 16:36:57,123 - DEBUG - Response for create_subnet : {'subnet': {'id': '76c2bca8-24b4-487a-a56e-b1f66e4596ca', 'name': '', 'tenant_id': 'd11bd7a8df6c4f17aa4ed589fd4c39dd', 'network_id': 'da55c0c7-d28f-448b-b491-15398d120134', 'ip_version': 4, 'cidr': '44.165.50.192/26', 'allocation_pools': [{'start': '44.165.50.194', 'end': '44.165.50.254'}], 'gateway_ip': '44.165.50.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.165.50.194', 'tags': [], 'project_id': 'd11bd7a8df6c4f17aa4ed589fd4c39dd'}} 2026-02-18 16:36:57,288 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5a4fc2b-16e5-4dea-aa08-9702a216496b', 'name': '', 'tenant_id': 'd11bd7a8df6c4f17aa4ed589fd4c39dd', 'network_id': 'da55c0c7-d28f-448b-b491-15398d120134', 'ip_version': 6, 'cidr': '3a59:f6db:2b83:5d87:bb1b:3436::/96', 'allocation_pools': [{'start': '3a59:f6db:2b83:5d87:bb1b:3436:0:2', 'end': '3a59:f6db:2b83:5d87:bb1b:3436:ffff:fffe'}], 'gateway_ip': '3a59:f6db:2b83:5d87:bb1b:3436:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a59:f6db:2b83:5d87:bb1b:3436:0:2', 'tags': [], 'project_id': 'd11bd7a8df6c4f17aa4ed589fd4c39dd'}} 2026-02-18 16:36:57,309 - INFO - Created VN ctest-vn4-12142060 2026-02-18 16:36:57,361 - DEBUG - VN ctest-vn4-12142060 UUID is da55c0c7-d28f-448b-b491-15398d120134 2026-02-18 16:36:57,565 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da55c0c7-d28f-448b-b491-15398d120134', 'name': 'ctest-vn4-12142060', 'tenant_id': 'd11bd7a8df6c4f17aa4ed589fd4c39dd', 'project_id': 'd11bd7a8df6c4f17aa4ed589fd4c39dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76c2bca8-24b4-487a-a56e-b1f66e4596ca', 'e5a4fc2b-16e5-4dea-aa08-9702a216496b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89401516', 'ctest-vn4-12142060'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89401516', 'ctest-policy1-84417670']], 'subnet_ipam': [{'subnet_cidr': '44.165.50.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a59:f6db:2b83:5d87:bb1b:3436::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-18 16:36:57,729 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-18 16:36:58,025 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-18 16:36:58,056 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cfa1da19-f811-463a-a9cd-68218f3cae6f 2026-02-18 16:36:58,068 - DEBUG - Requesting: http://10.0.0.38:8082/project/d11bd7a8-df6c-4f17-aa4e-d589fd4c39dd 2026-02-18 16:36:58,144 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da55c0c7-d28f-448b-b491-15398d120134 2026-02-18 16:36:58,155 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da55c0c7-d28f-448b-b491-15398d120134 2026-02-18 16:36:58,167 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae8a8edc-65d7-42c6-9c58-57031b41cb79 2026-02-18 16:36:58,174 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae8a8edc-65d7-42c6-9c58-57031b41cb79 2026-02-18 16:36:58,180 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fcc5d79b-c510-4227-97c4-bb6881303708 2026-02-18 16:36:58,187 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-18 16:36:58,187 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da55c0c7-d28f-448b-b491-15398d120134 2026-02-18 16:36:58,196 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae8a8edc-65d7-42c6-9c58-57031b41cb79 2026-02-18 16:36:58,210 - INFO - Verified VN network id 11 for VN da55c0c7-d28f-448b-b491-15398d120134 2026-02-18 16:36:58,210 - INFO - Verifications in API Server for VN ctest-vn4-12142060 passed 2026-02-18 16:36:58,210 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da55c0c7-d28f-448b-b491-15398d120134 2026-02-18 16:36:58,220 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae8a8edc-65d7-42c6-9c58-57031b41cb79 2026-02-18 16:36:58,226 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae8a8edc-65d7-42c6-9c58-57031b41cb79 2026-02-18 16:36:58,233 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fcc5d79b-c510-4227-97c4-bb6881303708 2026-02-18 16:36:58,246 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89401516:ctest-vn4-12142060', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-89401516', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15732692837752325259', 'uuid-lslong': '13011204135374160180'}, 'enable': 'true', 'created': '2026-02-18T16:36:56', 'last-modified': '2026-02-18T16:36:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.710373'} 2026-02-18 16:36:58,252 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-18 16:36:58,252 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12142060 passed 2026-02-18 16:36:58,252 - DEBUG - ====Verifying policy data for ctest-vn4-12142060 in API_Server ====== 2026-02-18 16:36:58,252 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-18 16:36:58,258 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cfa1da19-f811-463a-a9cd-68218f3cae6f 2026-02-18 16:36:58,269 - DEBUG - Requesting: http://10.0.0.38:8082/project/d11bd7a8-df6c-4f17-aa4e-d589fd4c39dd 2026-02-18 16:36:58,342 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da55c0c7-d28f-448b-b491-15398d120134 2026-02-18 16:36:58,352 - DEBUG - ==>Verifying data for policy with id: c148a0fc-2b98-4213-91dd-b076374e2cea, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89401516', 'ctest-policy1-84417670'] 2026-02-18 16:36:58,352 - INFO - VN ctest-vn4-12142060 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-18 16:36:58,352 - DEBUG - Verifying the vn in opserver 2026-02-18 16:36:58,352 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89401516:ctest-vn4-12142060 virtual network link through opserver 10.0.0.38 2026-02-18 16:36:58,353 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-18 16:36:58,646 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-18 16:36:58,714 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89401516:ctest-vn4-12142060', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89401516:ctest-vn4-12142060?flat'} 2026-02-18 16:36:58,714 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89401516:ctest-vn4-12142060 is found in opserver 2026-02-18 16:36:58,724 - DEBUG - Do not have enough data to verify VN in agent 2026-02-18 16:36:58,728 - DEBUG - VRF ids for VN ctest-vn4-12142060: {} 2026-02-18 16:36:58,729 - DEBUG - ====Verifying data for ctest-policy1-84417670 in API_Server ====== 2026-02-18 16:36:58,729 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-18 16:36:58,734 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cfa1da19-f811-463a-a9cd-68218f3cae6f 2026-02-18 16:36:58,744 - DEBUG - Requesting: http://10.0.0.38:8082/project/d11bd7a8-df6c-4f17-aa4e-d589fd4c39dd 2026-02-18 16:36:58,814 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c148a0fc-2b98-4213-91dd-b076374e2cea 2026-02-18 16:36:58,825 - INFO - Verified policy ctest-policy1-84417670 in API Server, Result: True 2026-02-18 16:36:58,826 - INFO - Done with setup and verification, moving onto test .. 2026-02-18 16:36:58,834 - INFO - Deleting VN ctest-vn4-12142060 2026-02-18 16:36:58,949 - DEBUG - Response for deleting network () 2026-02-18 16:36:58,950 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ae8a8edc-65d7-42c6-9c58-57031b41cb79 2026-02-18 16:36:58,954 - DEBUG - Response Code: 404 2026-02-18 16:36:58,955 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-18 16:36:58,960 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cfa1da19-f811-463a-a9cd-68218f3cae6f 2026-02-18 16:36:59,019 - DEBUG - Requesting: http://10.0.0.38:8082/project/d11bd7a8-df6c-4f17-aa4e-d589fd4c39dd 2026-02-18 16:36:59,090 - INFO - Validated that VN ctest-vn4-12142060 is not found in API Server 2026-02-18 16:36:59,100 - DEBUG - VN ctest-vn4-12142060 is not present in Agent 10.0.0.38 2026-02-18 16:36:59,100 - INFO - Validated that VN ctest-vn4-12142060 is not in any agent 2026-02-18 16:36:59,113 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12142060 info 2026-02-18 16:36:59,135 - INFO - Deleted policy ctest-policy1-84417670 2026-02-18 16:36:59,297 - DEBUG - policy ctest-policy1-84417670 is not found in API Server 2026-02-18 16:36:59,550 - DEBUG - No XMPP flaps were noticed during the test
2026-02-18 16:36:59,550 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-18 16:36:59,550 - INFO - -------------------------------------------------------------------------------- 2026-02-18 16:36:59,843 - DEBUG - No XMPP flaps were noticed during the test
2026-02-18 16:36:59,843 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-18 16:36:59,843 - INFO - -------------------------------------------------------------------------------- 2026-02-18 16:37:00,535 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-89401516, ID : d11bd7a8-df6c-4f17-aa4e-d589fd4c39dd