2026-02-12 16:34:17,428 - INFO - Domain Default found not creating 2026-02-12 16:34:17,604 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-41674716 not found, creating it 2026-02-12 16:34:18,104 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-41674716, ID : 82bc62c0-0950-4777-a452-ba4c20db7399 2026-02-12 16:34:20,365 - INFO - ================================================================================ 2026-02-12 16:34:20,365 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 16:34:20,622 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0'}} with 2026-02-12 16:34:20,622 - INFO - Initial checks done. Running the testcase now 2026-02-12 16:34:20,622 - INFO - 2026-02-12 16:34:20,622 - INFO - ================================================================================ 2026-02-12 16:34:20,622 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 16:34:20,622 - 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-12 16:34:20,909 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0'}} with 2026-02-12 16:34:20,909 - INFO - Initial checks done. Running the testcase now 2026-02-12 16:34:20,909 - INFO - 2026-02-12 16:34:21,235 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41674716:ctest-vn4-23099162, 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-41674716:ctest-vn4-23099162, 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-41674716:ctest-vn4-23099162, 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-41674716:ctest-vn4-23099162, 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-12 16:34:21,755 - DEBUG - Response for create_network : {'network': {'id': '5926fe7b-4ec4-4616-bd65-0b05beb71496', 'name': 'ctest-vn4-23099162', 'tenant_id': '82bc62c009504777a452ba4c20db7399', 'project_id': '82bc62c009504777a452ba4c20db7399', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41674716', 'ctest-vn4-23099162'], 'port_security_enabled': True, 'description': ''}} 2026-02-12 16:34:21,927 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bfc3b2ae-cfd2-4c83-8a76-9555b05d5e35', 'name': '', 'tenant_id': '82bc62c009504777a452ba4c20db7399', 'network_id': '5926fe7b-4ec4-4616-bd65-0b05beb71496', 'ip_version': 4, 'cidr': '37.143.224.0/26', 'allocation_pools': [{'start': '37.143.224.2', 'end': '37.143.224.62'}], 'gateway_ip': '37.143.224.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.143.224.2', 'tags': [], 'project_id': '82bc62c009504777a452ba4c20db7399'}} 2026-02-12 16:34:22,081 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e465c5c5-0847-4048-b604-053429c4664e', 'name': '', 'tenant_id': '82bc62c009504777a452ba4c20db7399', 'network_id': '5926fe7b-4ec4-4616-bd65-0b05beb71496', 'ip_version': 6, 'cidr': '25a0:14cc:4d6e:91b2:2796:d1bb::/96', 'allocation_pools': [{'start': '25a0:14cc:4d6e:91b2:2796:d1bb:0:2', 'end': '25a0:14cc:4d6e:91b2:2796:d1bb:ffff:fffe'}], 'gateway_ip': '25a0:14cc:4d6e:91b2:2796:d1bb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25a0:14cc:4d6e:91b2:2796:d1bb:0:2', 'tags': [], 'project_id': '82bc62c009504777a452ba4c20db7399'}} 2026-02-12 16:34:22,101 - INFO - Created VN ctest-vn4-23099162 2026-02-12 16:34:22,155 - DEBUG - VN ctest-vn4-23099162 UUID is 5926fe7b-4ec4-4616-bd65-0b05beb71496 2026-02-12 16:34:22,373 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5926fe7b-4ec4-4616-bd65-0b05beb71496', 'name': 'ctest-vn4-23099162', 'tenant_id': '82bc62c009504777a452ba4c20db7399', 'project_id': '82bc62c009504777a452ba4c20db7399', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bfc3b2ae-cfd2-4c83-8a76-9555b05d5e35', 'e465c5c5-0847-4048-b604-053429c4664e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41674716', 'ctest-vn4-23099162'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41674716', 'ctest-policy1-36620761']], 'subnet_ipam': [{'subnet_cidr': '37.143.224.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25a0:14cc:4d6e:91b2:2796:d1bb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-12 16:34:22,535 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-12 16:34:22,831 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-12 16:34:22,865 - DEBUG - Requesting: http://10.0.0.242:8082/domain/918be9f3-2267-47eb-a196-34c41782e504 2026-02-12 16:34:22,876 - DEBUG - Requesting: http://10.0.0.242:8082/project/82bc62c0-0950-4777-a452-ba4c20db7399 2026-02-12 16:34:22,944 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5926fe7b-4ec4-4616-bd65-0b05beb71496 2026-02-12 16:34:22,955 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5926fe7b-4ec4-4616-bd65-0b05beb71496 2026-02-12 16:34:22,964 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/58960240-08d2-417b-a03b-59c0bade6a8a 2026-02-12 16:34:22,971 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/58960240-08d2-417b-a03b-59c0bade6a8a 2026-02-12 16:34:22,977 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6de53d7a-e663-487b-b430-59c35e3bdaa8 2026-02-12 16:34:22,982 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 16:34:22,982 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5926fe7b-4ec4-4616-bd65-0b05beb71496 2026-02-12 16:34:22,991 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/58960240-08d2-417b-a03b-59c0bade6a8a 2026-02-12 16:34:23,004 - INFO - Verified VN network id 10 for VN 5926fe7b-4ec4-4616-bd65-0b05beb71496 2026-02-12 16:34:23,004 - INFO - Verifications in API Server for VN ctest-vn4-23099162 passed 2026-02-12 16:34:23,004 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5926fe7b-4ec4-4616-bd65-0b05beb71496 2026-02-12 16:34:23,015 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/58960240-08d2-417b-a03b-59c0bade6a8a 2026-02-12 16:34:23,023 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/58960240-08d2-417b-a03b-59c0bade6a8a 2026-02-12 16:34:23,030 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6de53d7a-e663-487b-b430-59c35e3bdaa8 2026-02-12 16:34:23,041 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41674716:ctest-vn4-23099162', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-41674716', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6424101724046509590', 'uuid-lslong': '13647326365118567574'}, 'enable': 'true', 'created': '2026-02-12T16:34:21', 'last-modified': '2026-02-12T16:34:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.702089'} 2026-02-12 16:34:23,047 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 16:34:23,047 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-23099162 passed 2026-02-12 16:34:23,047 - DEBUG - ====Verifying policy data for ctest-vn4-23099162 in API_Server ====== 2026-02-12 16:34:23,047 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-12 16:34:23,053 - DEBUG - Requesting: http://10.0.0.242:8082/domain/918be9f3-2267-47eb-a196-34c41782e504 2026-02-12 16:34:23,063 - DEBUG - Requesting: http://10.0.0.242:8082/project/82bc62c0-0950-4777-a452-ba4c20db7399 2026-02-12 16:34:23,132 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/5926fe7b-4ec4-4616-bd65-0b05beb71496 2026-02-12 16:34:23,142 - DEBUG - ==>Verifying data for policy with id: 886a3456-e820-41ad-b14a-438a9501d9bf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41674716', 'ctest-policy1-36620761'] 2026-02-12 16:34:23,142 - INFO - VN ctest-vn4-23099162 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-12 16:34:23,142 - DEBUG - Verifying the vn in opserver 2026-02-12 16:34:23,142 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41674716:ctest-vn4-23099162 virtual network link through opserver 10.0.0.242 2026-02-12 16:34:23,142 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-12 16:34:23,439 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-12 16:34:23,503 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41674716:ctest-vn4-23099162', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41674716:ctest-vn4-23099162?flat'} 2026-02-12 16:34:23,503 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41674716:ctest-vn4-23099162 is found in opserver 2026-02-12 16:34:23,514 - DEBUG - Do not have enough data to verify VN in agent 2026-02-12 16:34:23,518 - DEBUG - VRF ids for VN ctest-vn4-23099162: {} 2026-02-12 16:34:23,518 - DEBUG - ====Verifying data for ctest-policy1-36620761 in API_Server ====== 2026-02-12 16:34:23,518 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-12 16:34:23,523 - DEBUG - Requesting: http://10.0.0.242:8082/domain/918be9f3-2267-47eb-a196-34c41782e504 2026-02-12 16:34:23,533 - DEBUG - Requesting: http://10.0.0.242:8082/project/82bc62c0-0950-4777-a452-ba4c20db7399 2026-02-12 16:34:23,609 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/886a3456-e820-41ad-b14a-438a9501d9bf 2026-02-12 16:34:23,619 - INFO - Verified policy ctest-policy1-36620761 in API Server, Result: True 2026-02-12 16:34:23,619 - INFO - Done with setup and verification, moving onto test .. 2026-02-12 16:34:23,628 - INFO - Deleting VN ctest-vn4-23099162 2026-02-12 16:34:23,762 - DEBUG - Response for deleting network () 2026-02-12 16:34:23,762 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/58960240-08d2-417b-a03b-59c0bade6a8a 2026-02-12 16:34:23,768 - DEBUG - Response Code: 404 2026-02-12 16:34:23,768 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-12 16:34:23,774 - DEBUG - Requesting: http://10.0.0.242:8082/domain/918be9f3-2267-47eb-a196-34c41782e504 2026-02-12 16:34:23,827 - DEBUG - Requesting: http://10.0.0.242:8082/project/82bc62c0-0950-4777-a452-ba4c20db7399 2026-02-12 16:34:23,902 - INFO - Validated that VN ctest-vn4-23099162 is not found in API Server 2026-02-12 16:34:23,914 - DEBUG - VN ctest-vn4-23099162 is not present in Agent 10.0.0.242 2026-02-12 16:34:23,914 - INFO - Validated that VN ctest-vn4-23099162 is not in any agent 2026-02-12 16:34:23,930 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-23099162 info 2026-02-12 16:34:23,954 - INFO - Deleted policy ctest-policy1-36620761 2026-02-12 16:34:24,119 - DEBUG - policy ctest-policy1-36620761 is not found in API Server 2026-02-12 16:34:24,372 - DEBUG - No XMPP flaps were noticed during the test