2026-02-13 09:59:04,941 - INFO - Domain Default found not creating 2026-02-13 09:59:05,124 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36071434 not found, creating it 2026-02-13 09:59:05,589 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36071434, ID : 1aaa4bb3-c330-47ef-9d29-8927eafa5dad 2026-02-13 09:59:07,117 - INFO - ================================================================================ 2026-02-13 09:59:07,117 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-13 09:59:07,376 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2026-02-13 09:59:07,377 - INFO - Initial checks done. Running the testcase now 2026-02-13 09:59:07,377 - INFO - 2026-02-13 09:59:07,377 - INFO - ================================================================================ 2026-02-13 09:59:07,377 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-13 09:59:07,377 - 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-13 09:59:07,664 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2026-02-13 09:59:07,664 - INFO - Initial checks done. Running the testcase now 2026-02-13 09:59:07,664 - INFO - 2026-02-13 09:59:08,037 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36071434:ctest-vn4-00946797, 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-36071434:ctest-vn4-00946797, 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-36071434:ctest-vn4-00946797, 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-36071434:ctest-vn4-00946797, 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-13 09:59:08,535 - DEBUG - Response for create_network : {'network': {'id': '2f48b855-7f31-4577-85d5-b9621cff99c5', 'name': 'ctest-vn4-00946797', 'tenant_id': '1aaa4bb3c33047ef9d298927eafa5dad', 'project_id': '1aaa4bb3c33047ef9d298927eafa5dad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36071434', 'ctest-vn4-00946797'], 'port_security_enabled': True, 'description': ''}} 2026-02-13 09:59:08,687 - DEBUG - Response for create_subnet : {'subnet': {'id': '58915b79-1c66-43eb-8b4e-ec537b4be005', 'name': '', 'tenant_id': '1aaa4bb3c33047ef9d298927eafa5dad', 'network_id': '2f48b855-7f31-4577-85d5-b9621cff99c5', 'ip_version': 4, 'cidr': '175.211.79.0/26', 'allocation_pools': [{'start': '175.211.79.2', 'end': '175.211.79.62'}], 'gateway_ip': '175.211.79.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.211.79.2', 'tags': [], 'project_id': '1aaa4bb3c33047ef9d298927eafa5dad'}} 2026-02-13 09:59:08,847 - DEBUG - Response for create_subnet : {'subnet': {'id': '588f339b-f2d4-4f2f-9d09-6f5464f28584', 'name': '', 'tenant_id': '1aaa4bb3c33047ef9d298927eafa5dad', 'network_id': '2f48b855-7f31-4577-85d5-b9621cff99c5', 'ip_version': 6, 'cidr': '291a:3020:edf8:de24:6e7c:10d6::/96', 'allocation_pools': [{'start': '291a:3020:edf8:de24:6e7c:10d6:0:2', 'end': '291a:3020:edf8:de24:6e7c:10d6:ffff:fffe'}], 'gateway_ip': '291a:3020:edf8:de24:6e7c:10d6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '291a:3020:edf8:de24:6e7c:10d6:0:2', 'tags': [], 'project_id': '1aaa4bb3c33047ef9d298927eafa5dad'}} 2026-02-13 09:59:08,867 - INFO - Created VN ctest-vn4-00946797 2026-02-13 09:59:08,919 - DEBUG - VN ctest-vn4-00946797 UUID is 2f48b855-7f31-4577-85d5-b9621cff99c5 2026-02-13 09:59:09,140 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f48b855-7f31-4577-85d5-b9621cff99c5', 'name': 'ctest-vn4-00946797', 'tenant_id': '1aaa4bb3c33047ef9d298927eafa5dad', 'project_id': '1aaa4bb3c33047ef9d298927eafa5dad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['58915b79-1c66-43eb-8b4e-ec537b4be005', '588f339b-f2d4-4f2f-9d09-6f5464f28584'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36071434', 'ctest-vn4-00946797'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36071434', 'ctest-policy1-35275620']], 'subnet_ipam': [{'subnet_cidr': '175.211.79.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '291a:3020:edf8:de24:6e7c:10d6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-13 09:59:09,311 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-13 09:59:09,605 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-13 09:59:09,641 - DEBUG - Requesting: http://10.0.0.27:8082/domain/13da08fd-16a8-4055-b729-97bf76ffa43f 2026-02-13 09:59:09,653 - DEBUG - Requesting: http://10.0.0.27:8082/project/1aaa4bb3-c330-47ef-9d29-8927eafa5dad 2026-02-13 09:59:09,732 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2f48b855-7f31-4577-85d5-b9621cff99c5 2026-02-13 09:59:09,746 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2f48b855-7f31-4577-85d5-b9621cff99c5 2026-02-13 09:59:09,760 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61cb974c-2334-433b-bb37-350e5ae21c26 2026-02-13 09:59:09,768 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61cb974c-2334-433b-bb37-350e5ae21c26 2026-02-13 09:59:09,777 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5d5eee73-dda9-4c8c-b796-fe50a08e1c60 2026-02-13 09:59:09,784 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-13 09:59:09,785 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2f48b855-7f31-4577-85d5-b9621cff99c5 2026-02-13 09:59:09,795 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61cb974c-2334-433b-bb37-350e5ae21c26 2026-02-13 09:59:09,811 - INFO - Verified VN network id 11 for VN 2f48b855-7f31-4577-85d5-b9621cff99c5 2026-02-13 09:59:09,811 - INFO - Verifications in API Server for VN ctest-vn4-00946797 passed 2026-02-13 09:59:09,812 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2f48b855-7f31-4577-85d5-b9621cff99c5 2026-02-13 09:59:09,822 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61cb974c-2334-433b-bb37-350e5ae21c26 2026-02-13 09:59:09,830 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61cb974c-2334-433b-bb37-350e5ae21c26 2026-02-13 09:59:09,836 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5d5eee73-dda9-4c8c-b796-fe50a08e1c60 2026-02-13 09:59:09,847 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36071434:ctest-vn4-00946797', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36071434', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3407175795451446647', 'uuid-lslong': '9643818008128231877'}, 'enable': 'true', 'created': '2026-02-13T09:59:08', 'last-modified': '2026-02-13T09:59:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741837'} 2026-02-13 09:59:09,853 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-13 09:59:09,854 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00946797 passed 2026-02-13 09:59:09,854 - DEBUG - ====Verifying policy data for ctest-vn4-00946797 in API_Server ====== 2026-02-13 09:59:09,854 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-13 09:59:09,859 - DEBUG - Requesting: http://10.0.0.27:8082/domain/13da08fd-16a8-4055-b729-97bf76ffa43f 2026-02-13 09:59:09,871 - DEBUG - Requesting: http://10.0.0.27:8082/project/1aaa4bb3-c330-47ef-9d29-8927eafa5dad 2026-02-13 09:59:09,948 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2f48b855-7f31-4577-85d5-b9621cff99c5 2026-02-13 09:59:09,959 - DEBUG - ==>Verifying data for policy with id: 0cedc8c0-9925-4777-b339-1605be1c3477, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36071434', 'ctest-policy1-35275620'] 2026-02-13 09:59:09,959 - INFO - VN ctest-vn4-00946797 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-13 09:59:09,959 - DEBUG - Verifying the vn in opserver 2026-02-13 09:59:09,959 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36071434:ctest-vn4-00946797 virtual network link through opserver 10.0.0.27 2026-02-13 09:59:09,959 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-13 09:59:10,253 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-13 09:59:10,317 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36071434:ctest-vn4-00946797', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36071434:ctest-vn4-00946797?flat'} 2026-02-13 09:59:10,317 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36071434:ctest-vn4-00946797 is found in opserver 2026-02-13 09:59:10,327 - DEBUG - Do not have enough data to verify VN in agent 2026-02-13 09:59:10,331 - DEBUG - VRF ids for VN ctest-vn4-00946797: {} 2026-02-13 09:59:10,332 - DEBUG - ====Verifying data for ctest-policy1-35275620 in API_Server ====== 2026-02-13 09:59:10,332 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-13 09:59:10,337 - DEBUG - Requesting: http://10.0.0.27:8082/domain/13da08fd-16a8-4055-b729-97bf76ffa43f 2026-02-13 09:59:10,348 - DEBUG - Requesting: http://10.0.0.27:8082/project/1aaa4bb3-c330-47ef-9d29-8927eafa5dad 2026-02-13 09:59:10,416 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/0cedc8c0-9925-4777-b339-1605be1c3477 2026-02-13 09:59:10,424 - INFO - Verified policy ctest-policy1-35275620 in API Server, Result: True 2026-02-13 09:59:10,425 - INFO - Done with setup and verification, moving onto test .. 2026-02-13 09:59:10,431 - INFO - Deleting VN ctest-vn4-00946797 2026-02-13 09:59:10,547 - DEBUG - Response for deleting network () 2026-02-13 09:59:10,547 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/61cb974c-2334-433b-bb37-350e5ae21c26 2026-02-13 09:59:10,552 - DEBUG - Response Code: 404 2026-02-13 09:59:10,552 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-13 09:59:10,558 - DEBUG - Requesting: http://10.0.0.27:8082/domain/13da08fd-16a8-4055-b729-97bf76ffa43f 2026-02-13 09:59:10,612 - DEBUG - Requesting: http://10.0.0.27:8082/project/1aaa4bb3-c330-47ef-9d29-8927eafa5dad 2026-02-13 09:59:10,684 - INFO - Validated that VN ctest-vn4-00946797 is not found in API Server 2026-02-13 09:59:10,695 - DEBUG - VN ctest-vn4-00946797 is not present in Agent 10.0.0.27 2026-02-13 09:59:10,695 - INFO - Validated that VN ctest-vn4-00946797 is not in any agent 2026-02-13 09:59:10,711 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00946797 info 2026-02-13 09:59:10,738 - INFO - Deleted policy ctest-policy1-35275620 2026-02-13 09:59:10,903 - DEBUG - policy ctest-policy1-35275620 is not found in API Server 2026-02-13 09:59:11,159 - DEBUG - No XMPP flaps were noticed during the test