2026-08-18 05:41:52,318 - INFO - Domain Default found not creating 2026-08-18 05:41:52,488 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71773040 not found, creating it 2026-08-18 05:41:52,974 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71773040, ID : 5653f0fb-187b-41bf-8a2a-2a94833d4137 2026-08-18 05:41:54,572 - INFO - ================================================================================ 2026-08-18 05:41:54,572 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-18 05:41:54,826 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.17': '0'}} with 2026-08-18 05:41:54,826 - INFO - Initial checks done. Running the testcase now 2026-08-18 05:41:54,827 - INFO - 2026-08-18 05:41:54,827 - INFO - ================================================================================ 2026-08-18 05:41:54,827 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-18 05:41:54,827 - 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-08-18 05:41:55,117 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.17': '0'}} with 2026-08-18 05:41:55,117 - INFO - Initial checks done. Running the testcase now 2026-08-18 05:41:55,117 - INFO - 2026-08-18 05:41:55,504 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71773040:ctest-vn4-45683802, 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-71773040:ctest-vn4-45683802, 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-71773040:ctest-vn4-45683802, 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-71773040:ctest-vn4-45683802, 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-08-18 05:41:56,049 - DEBUG - Response for create_network : {'network': {'id': '04161a2b-daab-43d2-8880-4bd4e6c77f69', 'name': 'ctest-vn4-45683802', 'tenant_id': '5653f0fb187b41bf8a2a2a94833d4137', 'project_id': '5653f0fb187b41bf8a2a2a94833d4137', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71773040', 'ctest-vn4-45683802'], 'port_security_enabled': True, 'description': ''}} 2026-08-18 05:41:56,234 - DEBUG - Response for create_subnet : {'subnet': {'id': '78c9549a-2be6-48a1-add8-3fe80e1feece', 'name': '', 'tenant_id': '5653f0fb187b41bf8a2a2a94833d4137', 'network_id': '04161a2b-daab-43d2-8880-4bd4e6c77f69', 'ip_version': 4, 'cidr': '106.151.118.192/26', 'allocation_pools': [{'start': '106.151.118.194', 'end': '106.151.118.254'}], 'gateway_ip': '106.151.118.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.151.118.194', 'tags': [], 'project_id': '5653f0fb187b41bf8a2a2a94833d4137'}} 2026-08-18 05:41:56,435 - DEBUG - Response for create_subnet : {'subnet': {'id': '48cd9b1d-7921-4e18-a162-1261a14534ae', 'name': '', 'tenant_id': '5653f0fb187b41bf8a2a2a94833d4137', 'network_id': '04161a2b-daab-43d2-8880-4bd4e6c77f69', 'ip_version': 6, 'cidr': '34d1:e24f:14d2:168f:92:7819::/96', 'allocation_pools': [{'start': '34d1:e24f:14d2:168f:92:7819:0:2', 'end': '34d1:e24f:14d2:168f:92:7819:ffff:fffe'}], 'gateway_ip': '34d1:e24f:14d2:168f:92:7819:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34d1:e24f:14d2:168f:92:7819:0:2', 'tags': [], 'project_id': '5653f0fb187b41bf8a2a2a94833d4137'}} 2026-08-18 05:41:56,456 - INFO - Created VN ctest-vn4-45683802 2026-08-18 05:41:56,508 - DEBUG - VN ctest-vn4-45683802 UUID is 04161a2b-daab-43d2-8880-4bd4e6c77f69 2026-08-18 05:41:56,711 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04161a2b-daab-43d2-8880-4bd4e6c77f69', 'name': 'ctest-vn4-45683802', 'tenant_id': '5653f0fb187b41bf8a2a2a94833d4137', 'project_id': '5653f0fb187b41bf8a2a2a94833d4137', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78c9549a-2be6-48a1-add8-3fe80e1feece', '48cd9b1d-7921-4e18-a162-1261a14534ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71773040', 'ctest-vn4-45683802'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71773040', 'ctest-policy1-45326697']], 'subnet_ipam': [{'subnet_cidr': '106.151.118.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34d1:e24f:14d2:168f:92:7819::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-18 05:41:56,872 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-08-18 05:41:57,225 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-08-18 05:41:57,252 - DEBUG - Requesting: http://10.0.0.251:8082/domain/7f5cb176-2a6f-4fb7-a275-08a073ee0434 2026-08-18 05:41:57,264 - DEBUG - Requesting: http://10.0.0.251:8082/project/5653f0fb-187b-41bf-8a2a-2a94833d4137 2026-08-18 05:41:57,342 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/04161a2b-daab-43d2-8880-4bd4e6c77f69 2026-08-18 05:41:57,354 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/04161a2b-daab-43d2-8880-4bd4e6c77f69 2026-08-18 05:41:57,363 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/db78655f-6853-4fc8-8fbe-6ae18ce50bca 2026-08-18 05:41:57,369 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/db78655f-6853-4fc8-8fbe-6ae18ce50bca 2026-08-18 05:41:57,377 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/58120b51-0874-4071-ad99-70a2189172b5 2026-08-18 05:41:57,383 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-18 05:41:57,383 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/04161a2b-daab-43d2-8880-4bd4e6c77f69 2026-08-18 05:41:57,392 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/db78655f-6853-4fc8-8fbe-6ae18ce50bca 2026-08-18 05:41:57,406 - INFO - Verified VN network id 9 for VN 04161a2b-daab-43d2-8880-4bd4e6c77f69 2026-08-18 05:41:57,406 - INFO - Verifications in API Server for VN ctest-vn4-45683802 passed 2026-08-18 05:41:57,406 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/04161a2b-daab-43d2-8880-4bd4e6c77f69 2026-08-18 05:41:57,414 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/db78655f-6853-4fc8-8fbe-6ae18ce50bca 2026-08-18 05:41:57,420 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/db78655f-6853-4fc8-8fbe-6ae18ce50bca 2026-08-18 05:41:57,426 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/58120b51-0874-4071-ad99-70a2189172b5 2026-08-18 05:41:57,438 - DEBUG - Control-node 10.0.0.251 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71773040:ctest-vn4-45683802', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71773040', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '294451601293919186', 'uuid-lslong': '9835944963954147177'}, 'enable': 'true', 'created': '2026-08-18T05:41:56', 'last-modified': '2026-08-18T05:41:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.761423'} 2026-08-18 05:41:57,443 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-18 05:41:57,443 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45683802 passed 2026-08-18 05:41:57,443 - DEBUG - ====Verifying policy data for ctest-vn4-45683802 in API_Server ====== 2026-08-18 05:41:57,443 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-08-18 05:41:57,449 - DEBUG - Requesting: http://10.0.0.251:8082/domain/7f5cb176-2a6f-4fb7-a275-08a073ee0434 2026-08-18 05:41:57,458 - DEBUG - Requesting: http://10.0.0.251:8082/project/5653f0fb-187b-41bf-8a2a-2a94833d4137 2026-08-18 05:41:57,540 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/04161a2b-daab-43d2-8880-4bd4e6c77f69 2026-08-18 05:41:57,549 - DEBUG - ==>Verifying data for policy with id: f69a1ecd-5533-4f5c-a47e-924d2116b2d5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71773040', 'ctest-policy1-45326697'] 2026-08-18 05:41:57,549 - INFO - VN ctest-vn4-45683802 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-18 05:41:57,549 - DEBUG - Verifying the vn in opserver 2026-08-18 05:41:57,549 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71773040:ctest-vn4-45683802 virtual network link through opserver 10.0.0.251 2026-08-18 05:41:57,549 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks 2026-08-18 05:41:57,868 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks 2026-08-18 05:41:57,923 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71773040:ctest-vn4-45683802', 'href': 'http://10.0.0.251:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71773040:ctest-vn4-45683802?flat'} 2026-08-18 05:41:57,923 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71773040:ctest-vn4-45683802 is found in opserver 2026-08-18 05:41:57,935 - DEBUG - Do not have enough data to verify VN in agent 2026-08-18 05:41:57,940 - DEBUG - VRF ids for VN ctest-vn4-45683802: {} 2026-08-18 05:41:57,940 - DEBUG - ====Verifying data for ctest-policy1-45326697 in API_Server ====== 2026-08-18 05:41:57,940 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-08-18 05:41:57,946 - DEBUG - Requesting: http://10.0.0.251:8082/domain/7f5cb176-2a6f-4fb7-a275-08a073ee0434 2026-08-18 05:41:57,960 - DEBUG - Requesting: http://10.0.0.251:8082/project/5653f0fb-187b-41bf-8a2a-2a94833d4137 2026-08-18 05:41:58,039 - DEBUG - Requesting: http://10.0.0.251:8082/network-policy/f69a1ecd-5533-4f5c-a47e-924d2116b2d5 2026-08-18 05:41:58,050 - INFO - Verified policy ctest-policy1-45326697 in API Server, Result: True 2026-08-18 05:41:58,050 - INFO - Done with setup and verification, moving onto test .. 2026-08-18 05:41:58,059 - INFO - Deleting VN ctest-vn4-45683802 2026-08-18 05:41:58,196 - DEBUG - Response for deleting network () 2026-08-18 05:41:58,197 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/db78655f-6853-4fc8-8fbe-6ae18ce50bca 2026-08-18 05:41:58,202 - DEBUG - Response Code: 404 2026-08-18 05:41:58,202 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-08-18 05:41:58,208 - DEBUG - Requesting: http://10.0.0.251:8082/domain/7f5cb176-2a6f-4fb7-a275-08a073ee0434 2026-08-18 05:41:58,261 - DEBUG - Requesting: http://10.0.0.251:8082/project/5653f0fb-187b-41bf-8a2a-2a94833d4137 2026-08-18 05:41:58,342 - INFO - Validated that VN ctest-vn4-45683802 is not found in API Server 2026-08-18 05:41:58,353 - DEBUG - VN ctest-vn4-45683802 is not present in Agent 10.0.0.251 2026-08-18 05:41:58,353 - INFO - Validated that VN ctest-vn4-45683802 is not in any agent 2026-08-18 05:41:58,371 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45683802 info 2026-08-18 05:41:58,406 - INFO - Deleted policy ctest-policy1-45326697 2026-08-18 05:41:58,567 - DEBUG - policy ctest-policy1-45326697 is not found in API Server 2026-08-18 05:41:58,821 - DEBUG - No XMPP flaps were noticed during the test