2026-09-04 17:12:16,265 - INFO - Domain Default found not creating 2026-09-04 17:12:16,434 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70938566 not found, creating it 2026-09-04 17:12:16,922 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70938566, ID : 04c54879-8072-4020-a533-1211ee6071f3 2026-09-04 17:12:18,424 - INFO - ================================================================================ 2026-09-04 17:12:18,424 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-04 17:12:18,679 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-09-04 17:12:18,679 - INFO - Initial checks done. Running the testcase now 2026-09-04 17:12:18,679 - INFO - 2026-09-04 17:12:18,679 - INFO - ================================================================================ 2026-09-04 17:12:18,679 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-04 17:12:18,679 - 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-09-04 17:12:18,966 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-09-04 17:12:18,966 - INFO - Initial checks done. Running the testcase now 2026-09-04 17:12:18,966 - INFO - 2026-09-04 17:12:19,349 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70938566:ctest-vn4-32902506, 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-70938566:ctest-vn4-32902506, 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-70938566:ctest-vn4-32902506, 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-70938566:ctest-vn4-32902506, 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-09-04 17:12:19,873 - DEBUG - Response for create_network : {'network': {'id': '653739aa-d3ce-4681-b67a-93cba3feb95e', 'name': 'ctest-vn4-32902506', 'tenant_id': '04c5487980724020a5331211ee6071f3', 'project_id': '04c5487980724020a5331211ee6071f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70938566', 'ctest-vn4-32902506'], 'port_security_enabled': True, 'description': ''}} 2026-09-04 17:12:20,102 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2a2e31c-2fa8-490e-8329-4cf9312fcaab', 'name': '', 'tenant_id': '04c5487980724020a5331211ee6071f3', 'network_id': '653739aa-d3ce-4681-b67a-93cba3feb95e', 'ip_version': 4, 'cidr': '181.140.145.128/26', 'allocation_pools': [{'start': '181.140.145.130', 'end': '181.140.145.190'}], 'gateway_ip': '181.140.145.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.140.145.130', 'tags': [], 'project_id': '04c5487980724020a5331211ee6071f3'}} 2026-09-04 17:12:20,272 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f48f488-9348-4185-a8ca-0ff14f0348f7', 'name': '', 'tenant_id': '04c5487980724020a5331211ee6071f3', 'network_id': '653739aa-d3ce-4681-b67a-93cba3feb95e', 'ip_version': 6, 'cidr': '3d1c:4db8:3f78:7979:ff05:2f61::/96', 'allocation_pools': [{'start': '3d1c:4db8:3f78:7979:ff05:2f61:0:2', 'end': '3d1c:4db8:3f78:7979:ff05:2f61:ffff:fffe'}], 'gateway_ip': '3d1c:4db8:3f78:7979:ff05:2f61:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d1c:4db8:3f78:7979:ff05:2f61:0:2', 'tags': [], 'project_id': '04c5487980724020a5331211ee6071f3'}} 2026-09-04 17:12:20,290 - INFO - Created VN ctest-vn4-32902506 2026-09-04 17:12:20,340 - DEBUG - VN ctest-vn4-32902506 UUID is 653739aa-d3ce-4681-b67a-93cba3feb95e 2026-09-04 17:12:20,545 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '653739aa-d3ce-4681-b67a-93cba3feb95e', 'name': 'ctest-vn4-32902506', 'tenant_id': '04c5487980724020a5331211ee6071f3', 'project_id': '04c5487980724020a5331211ee6071f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['b2a2e31c-2fa8-490e-8329-4cf9312fcaab', '7f48f488-9348-4185-a8ca-0ff14f0348f7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70938566', 'ctest-vn4-32902506'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70938566', 'ctest-policy1-21085132']], 'subnet_ipam': [{'subnet_cidr': '181.140.145.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d1c:4db8:3f78:7979:ff05:2f61::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-04 17:12:20,708 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-04 17:12:21,031 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-04 17:12:21,061 - DEBUG - Requesting: http://10.0.0.177:8082/domain/dca8c92f-f971-435f-a823-b93f140e1a69 2026-09-04 17:12:21,073 - DEBUG - Requesting: http://10.0.0.177:8082/project/04c54879-8072-4020-a533-1211ee6071f3 2026-09-04 17:12:21,145 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/653739aa-d3ce-4681-b67a-93cba3feb95e 2026-09-04 17:12:21,156 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/653739aa-d3ce-4681-b67a-93cba3feb95e 2026-09-04 17:12:21,165 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/671fbbb2-af8f-4265-bd9f-e9e25328b3fe 2026-09-04 17:12:21,173 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/671fbbb2-af8f-4265-bd9f-e9e25328b3fe 2026-09-04 17:12:21,180 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/a82d6235-837e-4980-a803-ad6e46af630a 2026-09-04 17:12:21,186 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-04 17:12:21,187 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/653739aa-d3ce-4681-b67a-93cba3feb95e 2026-09-04 17:12:21,197 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/671fbbb2-af8f-4265-bd9f-e9e25328b3fe 2026-09-04 17:12:21,212 - INFO - Verified VN network id 12 for VN 653739aa-d3ce-4681-b67a-93cba3feb95e 2026-09-04 17:12:21,212 - INFO - Verifications in API Server for VN ctest-vn4-32902506 passed 2026-09-04 17:12:21,212 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/653739aa-d3ce-4681-b67a-93cba3feb95e 2026-09-04 17:12:21,224 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/671fbbb2-af8f-4265-bd9f-e9e25328b3fe 2026-09-04 17:12:21,231 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/671fbbb2-af8f-4265-bd9f-e9e25328b3fe 2026-09-04 17:12:21,239 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/a82d6235-837e-4980-a803-ad6e46af630a 2026-09-04 17:12:21,254 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70938566:ctest-vn4-32902506', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70938566', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7293361527410542209', 'uuid-lslong': '13148984564900608350'}, 'enable': 'true', 'created': '2026-09-04T17:12:19', 'last-modified': '2026-09-04T17:12:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745666'} 2026-09-04 17:12:21,261 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-04 17:12:21,261 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32902506 passed 2026-09-04 17:12:21,261 - DEBUG - ====Verifying policy data for ctest-vn4-32902506 in API_Server ====== 2026-09-04 17:12:21,261 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-04 17:12:21,267 - DEBUG - Requesting: http://10.0.0.177:8082/domain/dca8c92f-f971-435f-a823-b93f140e1a69 2026-09-04 17:12:21,278 - DEBUG - Requesting: http://10.0.0.177:8082/project/04c54879-8072-4020-a533-1211ee6071f3 2026-09-04 17:12:21,356 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/653739aa-d3ce-4681-b67a-93cba3feb95e 2026-09-04 17:12:21,366 - DEBUG - ==>Verifying data for policy with id: b88196d5-3f80-43e6-96c0-eb4e872cb548, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70938566', 'ctest-policy1-21085132'] 2026-09-04 17:12:21,366 - INFO - VN ctest-vn4-32902506 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-04 17:12:21,366 - DEBUG - Verifying the vn in opserver 2026-09-04 17:12:21,366 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70938566:ctest-vn4-32902506 virtual network link through opserver 10.0.0.177 2026-09-04 17:12:21,366 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-09-04 17:12:21,694 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-09-04 17:12:21,750 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70938566:ctest-vn4-32902506', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70938566:ctest-vn4-32902506?flat'} 2026-09-04 17:12:21,750 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70938566:ctest-vn4-32902506 is found in opserver 2026-09-04 17:12:21,759 - DEBUG - Do not have enough data to verify VN in agent 2026-09-04 17:12:21,764 - DEBUG - VRF ids for VN ctest-vn4-32902506: {} 2026-09-04 17:12:21,764 - DEBUG - ====Verifying data for ctest-policy1-21085132 in API_Server ====== 2026-09-04 17:12:21,764 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-04 17:12:21,770 - DEBUG - Requesting: http://10.0.0.177:8082/domain/dca8c92f-f971-435f-a823-b93f140e1a69 2026-09-04 17:12:21,780 - DEBUG - Requesting: http://10.0.0.177:8082/project/04c54879-8072-4020-a533-1211ee6071f3 2026-09-04 17:12:21,859 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/b88196d5-3f80-43e6-96c0-eb4e872cb548 2026-09-04 17:12:21,869 - INFO - Verified policy ctest-policy1-21085132 in API Server, Result: True 2026-09-04 17:12:21,870 - INFO - Done with setup and verification, moving onto test .. 2026-09-04 17:12:21,881 - INFO - Deleting VN ctest-vn4-32902506 2026-09-04 17:12:22,025 - DEBUG - Response for deleting network () 2026-09-04 17:12:22,025 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/671fbbb2-af8f-4265-bd9f-e9e25328b3fe 2026-09-04 17:12:22,030 - DEBUG - Response Code: 404 2026-09-04 17:12:22,031 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-04 17:12:22,036 - DEBUG - Requesting: http://10.0.0.177:8082/domain/dca8c92f-f971-435f-a823-b93f140e1a69 2026-09-04 17:12:22,090 - DEBUG - Requesting: http://10.0.0.177:8082/project/04c54879-8072-4020-a533-1211ee6071f3 2026-09-04 17:12:22,172 - INFO - Validated that VN ctest-vn4-32902506 is not found in API Server 2026-09-04 17:12:22,182 - DEBUG - VN ctest-vn4-32902506 is not present in Agent 10.0.0.177 2026-09-04 17:12:22,182 - INFO - Validated that VN ctest-vn4-32902506 is not in any agent 2026-09-04 17:12:22,198 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32902506 info 2026-09-04 17:12:22,227 - INFO - Deleted policy ctest-policy1-21085132 2026-09-04 17:12:22,392 - DEBUG - policy ctest-policy1-21085132 is not found in API Server 2026-09-04 17:12:22,649 - DEBUG - No XMPP flaps were noticed during the test