2026-03-23 23:10:23,298 - INFO - Domain Default found not creating 2026-03-23 23:10:23,479 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07513488 not found, creating it 2026-03-23 23:10:23,943 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07513488, ID : 309028e3-3a9d-4f70-a159-823a675e1ff4 2026-03-23 23:10:25,534 - INFO - ================================================================================ 2026-03-23 23:10:25,534 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-23 23:10:25,797 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.254': '0'}} with 2026-03-23 23:10:25,797 - INFO - Initial checks done. Running the testcase now 2026-03-23 23:10:25,797 - INFO - 2026-03-23 23:10:25,797 - INFO - ================================================================================ 2026-03-23 23:10:25,797 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-23 23:10:25,797 - 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-03-23 23:10:26,089 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.254': '0'}} with 2026-03-23 23:10:26,089 - INFO - Initial checks done. Running the testcase now 2026-03-23 23:10:26,089 - INFO - 2026-03-23 23:10:26,463 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07513488:ctest-vn4-34823233, 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-07513488:ctest-vn4-34823233, 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-07513488:ctest-vn4-34823233, 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-07513488:ctest-vn4-34823233, 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-03-23 23:10:27,008 - DEBUG - Response for create_network : {'network': {'id': 'ad76caf6-9377-476f-aa43-2e7bdc11a195', 'name': 'ctest-vn4-34823233', 'tenant_id': '309028e33a9d4f70a159823a675e1ff4', 'project_id': '309028e33a9d4f70a159823a675e1ff4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07513488', 'ctest-vn4-34823233'], 'port_security_enabled': True, 'description': ''}} 2026-03-23 23:10:27,225 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ae94be8-1ef2-48b7-a785-a2cffa087763', 'name': '', 'tenant_id': '309028e33a9d4f70a159823a675e1ff4', 'network_id': 'ad76caf6-9377-476f-aa43-2e7bdc11a195', 'ip_version': 4, 'cidr': '85.136.38.128/26', 'allocation_pools': [{'start': '85.136.38.130', 'end': '85.136.38.190'}], 'gateway_ip': '85.136.38.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.136.38.130', 'tags': [], 'project_id': '309028e33a9d4f70a159823a675e1ff4'}} 2026-03-23 23:10:27,394 - DEBUG - Response for create_subnet : {'subnet': {'id': '3cff8aac-d4ae-45ba-b442-e9a166911af1', 'name': '', 'tenant_id': '309028e33a9d4f70a159823a675e1ff4', 'network_id': 'ad76caf6-9377-476f-aa43-2e7bdc11a195', 'ip_version': 6, 'cidr': '262b:5f14:1982:58a6:cbc2:94b7::/96', 'allocation_pools': [{'start': '262b:5f14:1982:58a6:cbc2:94b7:0:2', 'end': '262b:5f14:1982:58a6:cbc2:94b7:ffff:fffe'}], 'gateway_ip': '262b:5f14:1982:58a6:cbc2:94b7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '262b:5f14:1982:58a6:cbc2:94b7:0:2', 'tags': [], 'project_id': '309028e33a9d4f70a159823a675e1ff4'}} 2026-03-23 23:10:27,415 - INFO - Created VN ctest-vn4-34823233 2026-03-23 23:10:27,468 - DEBUG - VN ctest-vn4-34823233 UUID is ad76caf6-9377-476f-aa43-2e7bdc11a195 2026-03-23 23:10:27,667 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad76caf6-9377-476f-aa43-2e7bdc11a195', 'name': 'ctest-vn4-34823233', 'tenant_id': '309028e33a9d4f70a159823a675e1ff4', 'project_id': '309028e33a9d4f70a159823a675e1ff4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ae94be8-1ef2-48b7-a785-a2cffa087763', '3cff8aac-d4ae-45ba-b442-e9a166911af1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07513488', 'ctest-vn4-34823233'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07513488', 'ctest-policy1-38573846']], 'subnet_ipam': [{'subnet_cidr': '85.136.38.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '262b:5f14:1982:58a6:cbc2:94b7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-23 23:10:27,836 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-03-23 23:10:28,140 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-03-23 23:10:28,179 - DEBUG - Requesting: http://10.0.0.57:8082/domain/a0700251-ec64-4724-afdf-930e2beb8235 2026-03-23 23:10:28,191 - DEBUG - Requesting: http://10.0.0.57:8082/project/309028e3-3a9d-4f70-a159-823a675e1ff4 2026-03-23 23:10:28,267 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/ad76caf6-9377-476f-aa43-2e7bdc11a195 2026-03-23 23:10:28,278 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/ad76caf6-9377-476f-aa43-2e7bdc11a195 2026-03-23 23:10:28,290 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f9af27b-831a-4fca-8bcb-058de575c7d2 2026-03-23 23:10:28,297 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f9af27b-831a-4fca-8bcb-058de575c7d2 2026-03-23 23:10:28,305 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/899aec80-d390-44c8-922a-a65868516deb 2026-03-23 23:10:28,311 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-23 23:10:28,311 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/ad76caf6-9377-476f-aa43-2e7bdc11a195 2026-03-23 23:10:28,321 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f9af27b-831a-4fca-8bcb-058de575c7d2 2026-03-23 23:10:28,337 - INFO - Verified VN network id 11 for VN ad76caf6-9377-476f-aa43-2e7bdc11a195 2026-03-23 23:10:28,338 - INFO - Verifications in API Server for VN ctest-vn4-34823233 passed 2026-03-23 23:10:28,338 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/ad76caf6-9377-476f-aa43-2e7bdc11a195 2026-03-23 23:10:28,349 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f9af27b-831a-4fca-8bcb-058de575c7d2 2026-03-23 23:10:28,357 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f9af27b-831a-4fca-8bcb-058de575c7d2 2026-03-23 23:10:28,364 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/899aec80-d390-44c8-922a-a65868516deb 2026-03-23 23:10:28,376 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07513488:ctest-vn4-34823233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07513488', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12499400976198223727', 'uuid-lslong': '12268700919395361173'}, 'enable': 'true', 'created': '2026-03-23T23:10:26', 'last-modified': '2026-03-23T23:10:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.731126'} 2026-03-23 23:10:28,385 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-23 23:10:28,385 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34823233 passed 2026-03-23 23:10:28,385 - DEBUG - ====Verifying policy data for ctest-vn4-34823233 in API_Server ====== 2026-03-23 23:10:28,385 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-03-23 23:10:28,392 - DEBUG - Requesting: http://10.0.0.57:8082/domain/a0700251-ec64-4724-afdf-930e2beb8235 2026-03-23 23:10:28,405 - DEBUG - Requesting: http://10.0.0.57:8082/project/309028e3-3a9d-4f70-a159-823a675e1ff4 2026-03-23 23:10:28,477 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/ad76caf6-9377-476f-aa43-2e7bdc11a195 2026-03-23 23:10:28,487 - DEBUG - ==>Verifying data for policy with id: 16eef407-1d8d-4ad7-9475-dcc5a77d6bf2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07513488', 'ctest-policy1-38573846'] 2026-03-23 23:10:28,487 - INFO - VN ctest-vn4-34823233 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-23 23:10:28,487 - DEBUG - Verifying the vn in opserver 2026-03-23 23:10:28,487 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07513488:ctest-vn4-34823233 virtual network link through opserver 10.0.0.57 2026-03-23 23:10:28,487 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2026-03-23 23:10:28,802 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2026-03-23 23:10:28,869 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07513488:ctest-vn4-34823233', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07513488:ctest-vn4-34823233?flat'} 2026-03-23 23:10:28,869 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07513488:ctest-vn4-34823233 is found in opserver 2026-03-23 23:10:28,879 - DEBUG - Do not have enough data to verify VN in agent 2026-03-23 23:10:28,884 - DEBUG - VRF ids for VN ctest-vn4-34823233: {} 2026-03-23 23:10:28,884 - DEBUG - ====Verifying data for ctest-policy1-38573846 in API_Server ====== 2026-03-23 23:10:28,884 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-03-23 23:10:28,890 - DEBUG - Requesting: http://10.0.0.57:8082/domain/a0700251-ec64-4724-afdf-930e2beb8235 2026-03-23 23:10:28,902 - DEBUG - Requesting: http://10.0.0.57:8082/project/309028e3-3a9d-4f70-a159-823a675e1ff4 2026-03-23 23:10:28,974 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/16eef407-1d8d-4ad7-9475-dcc5a77d6bf2 2026-03-23 23:10:28,982 - INFO - Verified policy ctest-policy1-38573846 in API Server, Result: True 2026-03-23 23:10:28,983 - INFO - Done with setup and verification, moving onto test .. 2026-03-23 23:10:28,990 - INFO - Deleting VN ctest-vn4-34823233 2026-03-23 23:10:29,140 - DEBUG - Response for deleting network () 2026-03-23 23:10:29,140 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f9af27b-831a-4fca-8bcb-058de575c7d2 2026-03-23 23:10:29,146 - DEBUG - Response Code: 404 2026-03-23 23:10:29,147 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2026-03-23 23:10:29,154 - DEBUG - Requesting: http://10.0.0.57:8082/domain/a0700251-ec64-4724-afdf-930e2beb8235 2026-03-23 23:10:29,206 - DEBUG - Requesting: http://10.0.0.57:8082/project/309028e3-3a9d-4f70-a159-823a675e1ff4 2026-03-23 23:10:29,280 - INFO - Validated that VN ctest-vn4-34823233 is not found in API Server 2026-03-23 23:10:29,291 - DEBUG - VN ctest-vn4-34823233 is not present in Agent 10.0.0.57 2026-03-23 23:10:29,291 - INFO - Validated that VN ctest-vn4-34823233 is not in any agent 2026-03-23 23:10:29,307 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34823233 info 2026-03-23 23:10:29,335 - INFO - Deleted policy ctest-policy1-38573846 2026-03-23 23:10:29,508 - DEBUG - policy ctest-policy1-38573846 is not found in API Server 2026-03-23 23:10:29,761 - DEBUG - No XMPP flaps were noticed during the test 2026-03-23 23:10:29,761 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-23 23:10:29,761 - INFO - -------------------------------------------------------------------------------- 2026-03-23 23:10:30,049 - DEBUG - No XMPP flaps were noticed during the test 2026-03-23 23:10:30,049 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-03-23 23:10:30,050 - INFO - -------------------------------------------------------------------------------- 2026-03-23 23:10:30,756 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-07513488, ID : 309028e3-3a9d-4f70-a159-823a675e1ff4