2026-02-19 17:00:04,573 - INFO - Domain Default found not creating 2026-02-19 17:00:04,773 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-62326688 not found, creating it 2026-02-19 17:00:05,256 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-62326688, ID : 9ebcc628-1077-4cfa-bb46-3c2205c9a42c 2026-02-19 17:00:06,932 - INFO - ================================================================================ 2026-02-19 17:00:06,932 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 17:00:07,198 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-19 17:00:07,198 - INFO - Initial checks done. Running the testcase now 2026-02-19 17:00:07,198 - INFO - 2026-02-19 17:00:07,198 - INFO - ================================================================================ 2026-02-19 17:00:07,198 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 17:00:07,199 - 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-19 17:00:07,504 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-19 17:00:07,505 - INFO - Initial checks done. Running the testcase now 2026-02-19 17:00:07,505 - INFO - 2026-02-19 17:00:07,894 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62326688:ctest-vn4-05004858, 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-62326688:ctest-vn4-05004858, 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-62326688:ctest-vn4-05004858, 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-62326688:ctest-vn4-05004858, 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-19 17:00:08,532 - DEBUG - Response for create_network : {'network': {'id': '5003465f-024e-4adb-8f7a-ad9f48c74769', 'name': 'ctest-vn4-05004858', 'tenant_id': '9ebcc62810774cfabb463c2205c9a42c', 'project_id': '9ebcc62810774cfabb463c2205c9a42c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62326688', 'ctest-vn4-05004858'], 'port_security_enabled': True, 'description': ''}} 2026-02-19 17:00:08,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '9986ebfe-f87e-48bd-b58e-fbaba60cec20', 'name': '', 'tenant_id': '9ebcc62810774cfabb463c2205c9a42c', 'network_id': '5003465f-024e-4adb-8f7a-ad9f48c74769', 'ip_version': 4, 'cidr': '160.67.24.192/26', 'allocation_pools': [{'start': '160.67.24.194', 'end': '160.67.24.254'}], 'gateway_ip': '160.67.24.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.67.24.194', 'tags': [], 'project_id': '9ebcc62810774cfabb463c2205c9a42c'}} 2026-02-19 17:00:09,064 - DEBUG - Response for create_subnet : {'subnet': {'id': '019ce34c-c7c0-4178-9910-28e4ede57ec1', 'name': '', 'tenant_id': '9ebcc62810774cfabb463c2205c9a42c', 'network_id': '5003465f-024e-4adb-8f7a-ad9f48c74769', 'ip_version': 6, 'cidr': '23ed:44a9:a3e0:7f4b:15e3:b190::/96', 'allocation_pools': [{'start': '23ed:44a9:a3e0:7f4b:15e3:b190:0:2', 'end': '23ed:44a9:a3e0:7f4b:15e3:b190:ffff:fffe'}], 'gateway_ip': '23ed:44a9:a3e0:7f4b:15e3:b190:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23ed:44a9:a3e0:7f4b:15e3:b190:0:2', 'tags': [], 'project_id': '9ebcc62810774cfabb463c2205c9a42c'}} 2026-02-19 17:00:09,089 - INFO - Created VN ctest-vn4-05004858 2026-02-19 17:00:09,140 - DEBUG - VN ctest-vn4-05004858 UUID is 5003465f-024e-4adb-8f7a-ad9f48c74769 2026-02-19 17:00:09,380 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5003465f-024e-4adb-8f7a-ad9f48c74769', 'name': 'ctest-vn4-05004858', 'tenant_id': '9ebcc62810774cfabb463c2205c9a42c', 'project_id': '9ebcc62810774cfabb463c2205c9a42c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9986ebfe-f87e-48bd-b58e-fbaba60cec20', '019ce34c-c7c0-4178-9910-28e4ede57ec1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62326688', 'ctest-vn4-05004858'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62326688', 'ctest-policy1-39873789']], 'subnet_ipam': [{'subnet_cidr': '160.67.24.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23ed:44a9:a3e0:7f4b:15e3:b190::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-19 17:00:09,536 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-19 17:00:09,883 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-19 17:00:09,919 - DEBUG - Requesting: http://10.0.0.38:8082/domain/70266f0e-4c38-45e1-98e8-0ff8883842a5 2026-02-19 17:00:09,932 - DEBUG - Requesting: http://10.0.0.38:8082/project/9ebcc628-1077-4cfa-bb46-3c2205c9a42c 2026-02-19 17:00:10,010 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5003465f-024e-4adb-8f7a-ad9f48c74769 2026-02-19 17:00:10,025 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5003465f-024e-4adb-8f7a-ad9f48c74769 2026-02-19 17:00:10,036 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef1754e-fc17-4ab6-9685-e221f11feec6 2026-02-19 17:00:10,044 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef1754e-fc17-4ab6-9685-e221f11feec6 2026-02-19 17:00:10,053 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3ed6cf56-492f-449e-8866-2868afddf644 2026-02-19 17:00:10,061 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 17:00:10,061 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5003465f-024e-4adb-8f7a-ad9f48c74769 2026-02-19 17:00:10,074 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef1754e-fc17-4ab6-9685-e221f11feec6 2026-02-19 17:00:10,091 - INFO - Verified VN network id 11 for VN 5003465f-024e-4adb-8f7a-ad9f48c74769 2026-02-19 17:00:10,091 - INFO - Verifications in API Server for VN ctest-vn4-05004858 passed 2026-02-19 17:00:10,091 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5003465f-024e-4adb-8f7a-ad9f48c74769 2026-02-19 17:00:10,102 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef1754e-fc17-4ab6-9685-e221f11feec6 2026-02-19 17:00:10,111 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef1754e-fc17-4ab6-9685-e221f11feec6 2026-02-19 17:00:10,121 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3ed6cf56-492f-449e-8866-2868afddf644 2026-02-19 17:00:10,136 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62326688:ctest-vn4-05004858', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62326688', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5765529321838889691', 'uuid-lslong': '10338766794214819689'}, 'enable': 'true', 'created': '2026-02-19T17:00:08', 'last-modified': '2026-02-19T17:00:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.796349'} 2026-02-19 17:00:10,143 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 17:00:10,143 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05004858 passed 2026-02-19 17:00:10,143 - DEBUG - ====Verifying policy data for ctest-vn4-05004858 in API_Server ====== 2026-02-19 17:00:10,144 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-19 17:00:10,150 - DEBUG - Requesting: http://10.0.0.38:8082/domain/70266f0e-4c38-45e1-98e8-0ff8883842a5 2026-02-19 17:00:10,163 - DEBUG - Requesting: http://10.0.0.38:8082/project/9ebcc628-1077-4cfa-bb46-3c2205c9a42c 2026-02-19 17:00:10,243 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5003465f-024e-4adb-8f7a-ad9f48c74769 2026-02-19 17:00:10,257 - DEBUG - ==>Verifying data for policy with id: 55904d73-cde7-4419-8b5d-f99351bdde6c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62326688', 'ctest-policy1-39873789'] 2026-02-19 17:00:10,257 - INFO - VN ctest-vn4-05004858 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-19 17:00:10,257 - DEBUG - Verifying the vn in opserver 2026-02-19 17:00:10,257 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62326688:ctest-vn4-05004858 virtual network link through opserver 10.0.0.38 2026-02-19 17:00:10,258 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-19 17:00:10,562 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-19 17:00:10,636 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62326688:ctest-vn4-05004858', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62326688:ctest-vn4-05004858?flat'} 2026-02-19 17:00:10,637 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62326688:ctest-vn4-05004858 is found in opserver 2026-02-19 17:00:10,649 - DEBUG - Do not have enough data to verify VN in agent 2026-02-19 17:00:10,654 - DEBUG - VRF ids for VN ctest-vn4-05004858: {} 2026-02-19 17:00:10,655 - DEBUG - ====Verifying data for ctest-policy1-39873789 in API_Server ====== 2026-02-19 17:00:10,655 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-19 17:00:10,660 - DEBUG - Requesting: http://10.0.0.38:8082/domain/70266f0e-4c38-45e1-98e8-0ff8883842a5 2026-02-19 17:00:10,673 - DEBUG - Requesting: http://10.0.0.38:8082/project/9ebcc628-1077-4cfa-bb46-3c2205c9a42c 2026-02-19 17:00:10,748 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/55904d73-cde7-4419-8b5d-f99351bdde6c 2026-02-19 17:00:10,758 - INFO - Verified policy ctest-policy1-39873789 in API Server, Result: True 2026-02-19 17:00:10,758 - INFO - Done with setup and verification, moving onto test .. 2026-02-19 17:00:10,768 - INFO - Deleting VN ctest-vn4-05004858 2026-02-19 17:00:10,900 - DEBUG - Response for deleting network () 2026-02-19 17:00:10,900 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/bef1754e-fc17-4ab6-9685-e221f11feec6 2026-02-19 17:00:10,906 - DEBUG - Response Code: 404 2026-02-19 17:00:10,906 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-19 17:00:10,913 - DEBUG - Requesting: http://10.0.0.38:8082/domain/70266f0e-4c38-45e1-98e8-0ff8883842a5 2026-02-19 17:00:10,969 - DEBUG - Requesting: http://10.0.0.38:8082/project/9ebcc628-1077-4cfa-bb46-3c2205c9a42c 2026-02-19 17:00:11,043 - INFO - Validated that VN ctest-vn4-05004858 is not found in API Server 2026-02-19 17:00:11,055 - DEBUG - VN ctest-vn4-05004858 is not present in Agent 10.0.0.38 2026-02-19 17:00:11,055 - INFO - Validated that VN ctest-vn4-05004858 is not in any agent 2026-02-19 17:00:11,071 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05004858 info 2026-02-19 17:00:11,103 - INFO - Deleted policy ctest-policy1-39873789 2026-02-19 17:00:11,280 - DEBUG - policy ctest-policy1-39873789 is not found in API Server 2026-02-19 17:00:11,543 - DEBUG - No XMPP flaps were noticed during the test