2026-02-24 03:48:37,095 - INFO - Domain Default found not creating 2026-02-24 03:48:37,271 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-41046205 not found, creating it 2026-02-24 03:48:37,758 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-41046205, ID : 4aca13eb-a225-4d88-8b1c-36d9e53be5dd 2026-02-24 03:48:39,344 - INFO - ================================================================================ 2026-02-24 03:48:39,344 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-24 03:48:39,602 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-24 03:48:39,602 - INFO - Initial checks done. Running the testcase now 2026-02-24 03:48:39,602 - INFO - 2026-02-24 03:48:39,602 - INFO - ================================================================================ 2026-02-24 03:48:39,602 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-24 03:48:39,602 - 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-24 03:48:39,890 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-24 03:48:39,890 - INFO - Initial checks done. Running the testcase now 2026-02-24 03:48:39,890 - INFO - 2026-02-24 03:48:40,285 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41046205:ctest-vn4-31991957, 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-41046205:ctest-vn4-31991957, 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-41046205:ctest-vn4-31991957, 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-41046205:ctest-vn4-31991957, 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-24 03:48:40,789 - DEBUG - Response for create_network : {'network': {'id': 'a3937177-35e6-4fed-a0ec-e0bd3f2f084a', 'name': 'ctest-vn4-31991957', 'tenant_id': '4aca13eba2254d888b1c36d9e53be5dd', 'project_id': '4aca13eba2254d888b1c36d9e53be5dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41046205', 'ctest-vn4-31991957'], 'port_security_enabled': True, 'description': ''}} 2026-02-24 03:48:41,023 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dfab86f2-d24a-4d84-bc82-a446a0644687', 'name': '', 'tenant_id': '4aca13eba2254d888b1c36d9e53be5dd', 'network_id': 'a3937177-35e6-4fed-a0ec-e0bd3f2f084a', 'ip_version': 4, 'cidr': '174.243.96.128/26', 'allocation_pools': [{'start': '174.243.96.130', 'end': '174.243.96.190'}], 'gateway_ip': '174.243.96.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.243.96.130', 'tags': [], 'project_id': '4aca13eba2254d888b1c36d9e53be5dd'}} 2026-02-24 03:48:41,183 - DEBUG - Response for create_subnet : {'subnet': {'id': '31da0ce7-f366-4d8e-a2c9-da956744d7d6', 'name': '', 'tenant_id': '4aca13eba2254d888b1c36d9e53be5dd', 'network_id': 'a3937177-35e6-4fed-a0ec-e0bd3f2f084a', 'ip_version': 6, 'cidr': '247c:59a7:1b71:d09d:eef0:656b::/96', 'allocation_pools': [{'start': '247c:59a7:1b71:d09d:eef0:656b:0:2', 'end': '247c:59a7:1b71:d09d:eef0:656b:ffff:fffe'}], 'gateway_ip': '247c:59a7:1b71:d09d:eef0:656b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '247c:59a7:1b71:d09d:eef0:656b:0:2', 'tags': [], 'project_id': '4aca13eba2254d888b1c36d9e53be5dd'}} 2026-02-24 03:48:41,205 - INFO - Created VN ctest-vn4-31991957 2026-02-24 03:48:41,261 - DEBUG - VN ctest-vn4-31991957 UUID is a3937177-35e6-4fed-a0ec-e0bd3f2f084a 2026-02-24 03:48:41,459 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3937177-35e6-4fed-a0ec-e0bd3f2f084a', 'name': 'ctest-vn4-31991957', 'tenant_id': '4aca13eba2254d888b1c36d9e53be5dd', 'project_id': '4aca13eba2254d888b1c36d9e53be5dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dfab86f2-d24a-4d84-bc82-a446a0644687', '31da0ce7-f366-4d8e-a2c9-da956744d7d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41046205', 'ctest-vn4-31991957'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41046205', 'ctest-policy1-71123422']], 'subnet_ipam': [{'subnet_cidr': '174.243.96.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '247c:59a7:1b71:d09d:eef0:656b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-24 03:48:41,629 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-24 03:48:41,964 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-24 03:48:41,998 - DEBUG - Requesting: http://10.0.0.50:8082/domain/bf0e71fc-09f6-4eb5-b3a4-3d71059c203c 2026-02-24 03:48:42,012 - DEBUG - Requesting: http://10.0.0.50:8082/project/4aca13eb-a225-4d88-8b1c-36d9e53be5dd 2026-02-24 03:48:42,090 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a3937177-35e6-4fed-a0ec-e0bd3f2f084a 2026-02-24 03:48:42,102 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a3937177-35e6-4fed-a0ec-e0bd3f2f084a 2026-02-24 03:48:42,112 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/511a0547-72bb-4e73-9e06-6bde7d52560c 2026-02-24 03:48:42,120 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/511a0547-72bb-4e73-9e06-6bde7d52560c 2026-02-24 03:48:42,130 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/df924108-7840-4f6f-9881-69248b41989e 2026-02-24 03:48:42,137 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-24 03:48:42,137 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a3937177-35e6-4fed-a0ec-e0bd3f2f084a 2026-02-24 03:48:42,148 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/511a0547-72bb-4e73-9e06-6bde7d52560c 2026-02-24 03:48:42,165 - INFO - Verified VN network id 11 for VN a3937177-35e6-4fed-a0ec-e0bd3f2f084a 2026-02-24 03:48:42,165 - INFO - Verifications in API Server for VN ctest-vn4-31991957 passed 2026-02-24 03:48:42,166 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a3937177-35e6-4fed-a0ec-e0bd3f2f084a 2026-02-24 03:48:42,176 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/511a0547-72bb-4e73-9e06-6bde7d52560c 2026-02-24 03:48:42,185 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/511a0547-72bb-4e73-9e06-6bde7d52560c 2026-02-24 03:48:42,192 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/df924108-7840-4f6f-9881-69248b41989e 2026-02-24 03:48:42,205 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41046205:ctest-vn4-31991957', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-41046205', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11786889406578053101', 'uuid-lslong': '11595890243985672266'}, 'enable': 'true', 'created': '2026-02-24T03:48:40', 'last-modified': '2026-02-24T03:48:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.767198'} 2026-02-24 03:48:42,211 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-24 03:48:42,212 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31991957 passed 2026-02-24 03:48:42,212 - DEBUG - ====Verifying policy data for ctest-vn4-31991957 in API_Server ====== 2026-02-24 03:48:42,212 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-24 03:48:42,218 - DEBUG - Requesting: http://10.0.0.50:8082/domain/bf0e71fc-09f6-4eb5-b3a4-3d71059c203c 2026-02-24 03:48:42,231 - DEBUG - Requesting: http://10.0.0.50:8082/project/4aca13eb-a225-4d88-8b1c-36d9e53be5dd 2026-02-24 03:48:42,317 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a3937177-35e6-4fed-a0ec-e0bd3f2f084a 2026-02-24 03:48:42,328 - DEBUG - ==>Verifying data for policy with id: 8ae47a45-d506-4b87-b74e-66052bb60210, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41046205', 'ctest-policy1-71123422'] 2026-02-24 03:48:42,328 - INFO - VN ctest-vn4-31991957 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-24 03:48:42,328 - DEBUG - Verifying the vn in opserver 2026-02-24 03:48:42,328 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41046205:ctest-vn4-31991957 virtual network link through opserver 10.0.0.50 2026-02-24 03:48:42,328 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-24 03:48:42,669 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-24 03:48:42,738 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41046205:ctest-vn4-31991957', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41046205:ctest-vn4-31991957?flat'} 2026-02-24 03:48:42,738 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41046205:ctest-vn4-31991957 is found in opserver 2026-02-24 03:48:42,747 - DEBUG - Do not have enough data to verify VN in agent 2026-02-24 03:48:42,752 - DEBUG - VRF ids for VN ctest-vn4-31991957: {} 2026-02-24 03:48:42,753 - DEBUG - ====Verifying data for ctest-policy1-71123422 in API_Server ====== 2026-02-24 03:48:42,753 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-24 03:48:42,759 - DEBUG - Requesting: http://10.0.0.50:8082/domain/bf0e71fc-09f6-4eb5-b3a4-3d71059c203c 2026-02-24 03:48:42,770 - DEBUG - Requesting: http://10.0.0.50:8082/project/4aca13eb-a225-4d88-8b1c-36d9e53be5dd 2026-02-24 03:48:42,841 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/8ae47a45-d506-4b87-b74e-66052bb60210 2026-02-24 03:48:42,852 - INFO - Verified policy ctest-policy1-71123422 in API Server, Result: True 2026-02-24 03:48:42,852 - INFO - Done with setup and verification, moving onto test .. 2026-02-24 03:48:42,860 - INFO - Deleting VN ctest-vn4-31991957 2026-02-24 03:48:42,980 - DEBUG - Response for deleting network () 2026-02-24 03:48:42,980 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/511a0547-72bb-4e73-9e06-6bde7d52560c 2026-02-24 03:48:42,985 - DEBUG - Response Code: 404 2026-02-24 03:48:42,985 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-24 03:48:42,989 - DEBUG - Requesting: http://10.0.0.50:8082/domain/bf0e71fc-09f6-4eb5-b3a4-3d71059c203c 2026-02-24 03:48:43,042 - DEBUG - Requesting: http://10.0.0.50:8082/project/4aca13eb-a225-4d88-8b1c-36d9e53be5dd 2026-02-24 03:48:43,110 - INFO - Validated that VN ctest-vn4-31991957 is not found in API Server 2026-02-24 03:48:43,120 - DEBUG - VN ctest-vn4-31991957 is not present in Agent 10.0.0.50 2026-02-24 03:48:43,120 - INFO - Validated that VN ctest-vn4-31991957 is not in any agent 2026-02-24 03:48:43,133 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31991957 info 2026-02-24 03:48:43,160 - INFO - Deleted policy ctest-policy1-71123422 2026-02-24 03:48:43,321 - DEBUG - policy ctest-policy1-71123422 is not found in API Server 2026-02-24 03:48:43,574 - DEBUG - No XMPP flaps were noticed during the test