2026-02-25 16:52:28,876 - INFO - Domain Default found not creating 2026-02-25 16:52:29,006 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-14532063 not found, creating it 2026-02-25 16:52:29,429 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-14532063, ID : 8e10d497-c21b-4cbb-ac4a-0e6f6028c476 2026-02-25 16:52:30,769 - INFO - ================================================================================ 2026-02-25 16:52:30,769 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-25 16:52:31,023 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-25 16:52:31,023 - INFO - Initial checks done. Running the testcase now 2026-02-25 16:52:31,024 - INFO - 2026-02-25 16:52:31,024 - INFO - ================================================================================ 2026-02-25 16:52:31,024 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-25 16:52:31,024 - 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-25 16:52:31,314 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-25 16:52:31,314 - INFO - Initial checks done. Running the testcase now 2026-02-25 16:52:31,314 - INFO - 2026-02-25 16:52:31,655 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14532063:ctest-vn4-93798844, 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-14532063:ctest-vn4-93798844, 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-14532063:ctest-vn4-93798844, 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-14532063:ctest-vn4-93798844, 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-25 16:52:32,142 - DEBUG - Response for create_network : {'network': {'id': '1fda83a0-9760-400e-8b68-02ece2bb1cdd', 'name': 'ctest-vn4-93798844', 'tenant_id': '8e10d497c21b4cbbac4a0e6f6028c476', 'project_id': '8e10d497c21b4cbbac4a0e6f6028c476', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14532063', 'ctest-vn4-93798844'], 'port_security_enabled': True, 'description': ''}} 2026-02-25 16:52:32,286 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e52a448-2c15-4372-a694-f69c73ee33e0', 'name': '', 'tenant_id': '8e10d497c21b4cbbac4a0e6f6028c476', 'network_id': '1fda83a0-9760-400e-8b68-02ece2bb1cdd', 'ip_version': 4, 'cidr': '172.57.79.192/26', 'allocation_pools': [{'start': '172.57.79.194', 'end': '172.57.79.254'}], 'gateway_ip': '172.57.79.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.57.79.194', 'tags': [], 'project_id': '8e10d497c21b4cbbac4a0e6f6028c476'}} 2026-02-25 16:52:32,424 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c163ec7f-b3ff-4b21-b9e8-1d3cde7db5c9', 'name': '', 'tenant_id': '8e10d497c21b4cbbac4a0e6f6028c476', 'network_id': '1fda83a0-9760-400e-8b68-02ece2bb1cdd', 'ip_version': 6, 'cidr': '30fe:8981:b49a:f92a:761c:9cba::/96', 'allocation_pools': [{'start': '30fe:8981:b49a:f92a:761c:9cba:0:2', 'end': '30fe:8981:b49a:f92a:761c:9cba:ffff:fffe'}], 'gateway_ip': '30fe:8981:b49a:f92a:761c:9cba:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30fe:8981:b49a:f92a:761c:9cba:0:2', 'tags': [], 'project_id': '8e10d497c21b4cbbac4a0e6f6028c476'}} 2026-02-25 16:52:32,442 - INFO - Created VN ctest-vn4-93798844 2026-02-25 16:52:32,494 - DEBUG - VN ctest-vn4-93798844 UUID is 1fda83a0-9760-400e-8b68-02ece2bb1cdd 2026-02-25 16:52:32,670 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fda83a0-9760-400e-8b68-02ece2bb1cdd', 'name': 'ctest-vn4-93798844', 'tenant_id': '8e10d497c21b4cbbac4a0e6f6028c476', 'project_id': '8e10d497c21b4cbbac4a0e6f6028c476', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9e52a448-2c15-4372-a694-f69c73ee33e0', 'c163ec7f-b3ff-4b21-b9e8-1d3cde7db5c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14532063', 'ctest-vn4-93798844'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14532063', 'ctest-policy1-96794590']], 'subnet_ipam': [{'subnet_cidr': '172.57.79.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30fe:8981:b49a:f92a:761c:9cba::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-25 16:52:32,822 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-25 16:52:33,110 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-25 16:52:33,135 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9dfdb332-45fa-4d14-8a62-697b714a7198 2026-02-25 16:52:33,146 - DEBUG - Requesting: http://10.0.0.22:8082/project/8e10d497-c21b-4cbb-ac4a-0e6f6028c476 2026-02-25 16:52:33,218 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1fda83a0-9760-400e-8b68-02ece2bb1cdd 2026-02-25 16:52:33,228 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1fda83a0-9760-400e-8b68-02ece2bb1cdd 2026-02-25 16:52:33,236 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5122b21b-394a-4d72-81f7-89952ef97fe3 2026-02-25 16:52:33,242 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5122b21b-394a-4d72-81f7-89952ef97fe3 2026-02-25 16:52:33,248 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bc9f62c4-7f1f-4dd8-ac20-783fa9a8f658 2026-02-25 16:52:33,254 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-25 16:52:33,254 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1fda83a0-9760-400e-8b68-02ece2bb1cdd 2026-02-25 16:52:33,262 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5122b21b-394a-4d72-81f7-89952ef97fe3 2026-02-25 16:52:33,271 - INFO - Verified VN network id 11 for VN 1fda83a0-9760-400e-8b68-02ece2bb1cdd 2026-02-25 16:52:33,271 - INFO - Verifications in API Server for VN ctest-vn4-93798844 passed 2026-02-25 16:52:33,271 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1fda83a0-9760-400e-8b68-02ece2bb1cdd 2026-02-25 16:52:33,279 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5122b21b-394a-4d72-81f7-89952ef97fe3 2026-02-25 16:52:33,285 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5122b21b-394a-4d72-81f7-89952ef97fe3 2026-02-25 16:52:33,290 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/bc9f62c4-7f1f-4dd8-ac20-783fa9a8f658 2026-02-25 16:52:33,299 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14532063:ctest-vn4-93798844', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-14532063', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2295291685856362510', 'uuid-lslong': '10045282185289342173'}, 'enable': 'true', 'created': '2026-02-25T16:52:32', 'last-modified': '2026-02-25T16:52:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.651237'} 2026-02-25 16:52:33,304 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-25 16:52:33,304 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-93798844 passed 2026-02-25 16:52:33,304 - DEBUG - ====Verifying policy data for ctest-vn4-93798844 in API_Server ====== 2026-02-25 16:52:33,304 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-25 16:52:33,308 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9dfdb332-45fa-4d14-8a62-697b714a7198 2026-02-25 16:52:33,317 - DEBUG - Requesting: http://10.0.0.22:8082/project/8e10d497-c21b-4cbb-ac4a-0e6f6028c476 2026-02-25 16:52:33,380 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1fda83a0-9760-400e-8b68-02ece2bb1cdd 2026-02-25 16:52:33,389 - DEBUG - ==>Verifying data for policy with id: 62c1782e-7ebe-4c26-948f-26dc81f7eb54, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14532063', 'ctest-policy1-96794590'] 2026-02-25 16:52:33,389 - INFO - VN ctest-vn4-93798844 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-25 16:52:33,389 - DEBUG - Verifying the vn in opserver 2026-02-25 16:52:33,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14532063:ctest-vn4-93798844 virtual network link through opserver 10.0.0.22 2026-02-25 16:52:33,389 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-25 16:52:33,679 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-25 16:52:33,732 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14532063:ctest-vn4-93798844', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14532063:ctest-vn4-93798844?flat'} 2026-02-25 16:52:33,732 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14532063:ctest-vn4-93798844 is found in opserver 2026-02-25 16:52:33,741 - DEBUG - Do not have enough data to verify VN in agent 2026-02-25 16:52:33,745 - DEBUG - VRF ids for VN ctest-vn4-93798844: {} 2026-02-25 16:52:33,746 - DEBUG - ====Verifying data for ctest-policy1-96794590 in API_Server ====== 2026-02-25 16:52:33,746 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-25 16:52:33,751 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9dfdb332-45fa-4d14-8a62-697b714a7198 2026-02-25 16:52:33,760 - DEBUG - Requesting: http://10.0.0.22:8082/project/8e10d497-c21b-4cbb-ac4a-0e6f6028c476 2026-02-25 16:52:33,827 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/62c1782e-7ebe-4c26-948f-26dc81f7eb54 2026-02-25 16:52:33,836 - INFO - Verified policy ctest-policy1-96794590 in API Server, Result: True 2026-02-25 16:52:33,836 - INFO - Done with setup and verification, moving onto test .. 2026-02-25 16:52:33,842 - INFO - Deleting VN ctest-vn4-93798844 2026-02-25 16:52:33,940 - DEBUG - Response for deleting network () 2026-02-25 16:52:33,940 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5122b21b-394a-4d72-81f7-89952ef97fe3 2026-02-25 16:52:33,944 - DEBUG - Response Code: 404 2026-02-25 16:52:33,944 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-25 16:52:33,948 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9dfdb332-45fa-4d14-8a62-697b714a7198 2026-02-25 16:52:34,002 - DEBUG - Requesting: http://10.0.0.22:8082/project/8e10d497-c21b-4cbb-ac4a-0e6f6028c476 2026-02-25 16:52:34,070 - INFO - Validated that VN ctest-vn4-93798844 is not found in API Server 2026-02-25 16:52:34,079 - DEBUG - VN ctest-vn4-93798844 is not present in Agent 10.0.0.22 2026-02-25 16:52:34,079 - INFO - Validated that VN ctest-vn4-93798844 is not in any agent 2026-02-25 16:52:34,090 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-93798844 info 2026-02-25 16:52:34,110 - INFO - Deleted policy ctest-policy1-96794590 2026-02-25 16:52:34,266 - DEBUG - policy ctest-policy1-96794590 is not found in API Server 2026-02-25 16:52:34,519 - DEBUG - No XMPP flaps were noticed during the test