2026-02-03 21:06:12,499 - INFO - Domain Default found not creating 2026-02-03 21:06:12,661 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-01154023 not found, creating it 2026-02-03 21:06:13,133 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-01154023, ID : ad79d081-839e-4292-b9cb-4a48d6f6e62f 2026-02-03 21:06:14,663 - INFO - ================================================================================ 2026-02-03 21:06:14,663 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 21:06:14,918 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.14': '0'}} with 2026-02-03 21:06:14,918 - INFO - Initial checks done. Running the testcase now 2026-02-03 21:06:14,918 - INFO - 2026-02-03 21:06:14,918 - INFO - ================================================================================ 2026-02-03 21:06:14,918 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 21:06:14,919 - 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-03 21:06:15,210 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.14': '0'}} with 2026-02-03 21:06:15,211 - INFO - Initial checks done. Running the testcase now 2026-02-03 21:06:15,211 - INFO - 2026-02-03 21:06:15,574 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01154023:ctest-vn4-32510007, 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-01154023:ctest-vn4-32510007, 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-01154023:ctest-vn4-32510007, 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-01154023:ctest-vn4-32510007, 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-03 21:06:16,087 - DEBUG - Response for create_network : {'network': {'id': 'f1c52544-ae65-4dba-9668-ed0df19b8b78', 'name': 'ctest-vn4-32510007', 'tenant_id': 'ad79d081839e4292b9cb4a48d6f6e62f', 'project_id': 'ad79d081839e4292b9cb4a48d6f6e62f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01154023', 'ctest-vn4-32510007'], 'port_security_enabled': True, 'description': ''}} 2026-02-03 21:06:16,286 - DEBUG - Response for create_subnet : {'subnet': {'id': '0955c4ce-6bad-49f2-a724-8281cd2c137e', 'name': '', 'tenant_id': 'ad79d081839e4292b9cb4a48d6f6e62f', 'network_id': 'f1c52544-ae65-4dba-9668-ed0df19b8b78', 'ip_version': 4, 'cidr': '153.122.110.64/26', 'allocation_pools': [{'start': '153.122.110.66', 'end': '153.122.110.126'}], 'gateway_ip': '153.122.110.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.122.110.66', 'tags': [], 'project_id': 'ad79d081839e4292b9cb4a48d6f6e62f'}} 2026-02-03 21:06:16,425 - DEBUG - Response for create_subnet : {'subnet': {'id': '7be3cae6-1111-4e06-868b-b9aa21c4d01f', 'name': '', 'tenant_id': 'ad79d081839e4292b9cb4a48d6f6e62f', 'network_id': 'f1c52544-ae65-4dba-9668-ed0df19b8b78', 'ip_version': 6, 'cidr': '2ed7:b670:22b6:4819:fbdb:c53c::/96', 'allocation_pools': [{'start': '2ed7:b670:22b6:4819:fbdb:c53c:0:2', 'end': '2ed7:b670:22b6:4819:fbdb:c53c:ffff:fffe'}], 'gateway_ip': '2ed7:b670:22b6:4819:fbdb:c53c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ed7:b670:22b6:4819:fbdb:c53c:0:2', 'tags': [], 'project_id': 'ad79d081839e4292b9cb4a48d6f6e62f'}} 2026-02-03 21:06:16,444 - INFO - Created VN ctest-vn4-32510007 2026-02-03 21:06:16,497 - DEBUG - VN ctest-vn4-32510007 UUID is f1c52544-ae65-4dba-9668-ed0df19b8b78 2026-02-03 21:06:16,696 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1c52544-ae65-4dba-9668-ed0df19b8b78', 'name': 'ctest-vn4-32510007', 'tenant_id': 'ad79d081839e4292b9cb4a48d6f6e62f', 'project_id': 'ad79d081839e4292b9cb4a48d6f6e62f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0955c4ce-6bad-49f2-a724-8281cd2c137e', '7be3cae6-1111-4e06-868b-b9aa21c4d01f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01154023', 'ctest-vn4-32510007'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01154023', 'ctest-policy1-13586012']], 'subnet_ipam': [{'subnet_cidr': '153.122.110.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ed7:b670:22b6:4819:fbdb:c53c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-03 21:06:16,869 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-03 21:06:17,192 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-03 21:06:17,222 - DEBUG - Requesting: http://10.0.0.129:8082/domain/504552fa-7832-4ecf-8699-e8087ce376e8 2026-02-03 21:06:17,234 - DEBUG - Requesting: http://10.0.0.129:8082/project/ad79d081-839e-4292-b9cb-4a48d6f6e62f 2026-02-03 21:06:17,306 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f1c52544-ae65-4dba-9668-ed0df19b8b78 2026-02-03 21:06:17,317 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f1c52544-ae65-4dba-9668-ed0df19b8b78 2026-02-03 21:06:17,328 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9649457b-3a11-4642-befd-f16b77ca666c 2026-02-03 21:06:17,334 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9649457b-3a11-4642-befd-f16b77ca666c 2026-02-03 21:06:17,340 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/ab23b2b4-f87d-4cdf-b5dc-7da10e486f24 2026-02-03 21:06:17,345 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 21:06:17,345 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f1c52544-ae65-4dba-9668-ed0df19b8b78 2026-02-03 21:06:17,353 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9649457b-3a11-4642-befd-f16b77ca666c 2026-02-03 21:06:17,366 - INFO - Verified VN network id 12 for VN f1c52544-ae65-4dba-9668-ed0df19b8b78 2026-02-03 21:06:17,366 - INFO - Verifications in API Server for VN ctest-vn4-32510007 passed 2026-02-03 21:06:17,366 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f1c52544-ae65-4dba-9668-ed0df19b8b78 2026-02-03 21:06:17,374 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9649457b-3a11-4642-befd-f16b77ca666c 2026-02-03 21:06:17,380 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9649457b-3a11-4642-befd-f16b77ca666c 2026-02-03 21:06:17,385 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/ab23b2b4-f87d-4cdf-b5dc-7da10e486f24 2026-02-03 21:06:17,396 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01154023:ctest-vn4-32510007', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01154023', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17421371710466510266', 'uuid-lslong': '10838173147410959224'}, 'enable': 'true', 'created': '2026-02-03T21:06:16', 'last-modified': '2026-02-03T21:06:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.723168'} 2026-02-03 21:06:17,403 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 21:06:17,403 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32510007 passed 2026-02-03 21:06:17,403 - DEBUG - ====Verifying policy data for ctest-vn4-32510007 in API_Server ====== 2026-02-03 21:06:17,404 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-03 21:06:17,409 - DEBUG - Requesting: http://10.0.0.129:8082/domain/504552fa-7832-4ecf-8699-e8087ce376e8 2026-02-03 21:06:17,421 - DEBUG - Requesting: http://10.0.0.129:8082/project/ad79d081-839e-4292-b9cb-4a48d6f6e62f 2026-02-03 21:06:17,491 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/f1c52544-ae65-4dba-9668-ed0df19b8b78 2026-02-03 21:06:17,501 - DEBUG - ==>Verifying data for policy with id: 6af3e4f2-e242-470f-8dc1-1efc80e452a6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01154023', 'ctest-policy1-13586012'] 2026-02-03 21:06:17,501 - INFO - VN ctest-vn4-32510007 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-03 21:06:17,502 - DEBUG - Verifying the vn in opserver 2026-02-03 21:06:17,502 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01154023:ctest-vn4-32510007 virtual network link through opserver 10.0.0.129 2026-02-03 21:06:17,502 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-03 21:06:17,793 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-03 21:06:17,856 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01154023:ctest-vn4-32510007', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01154023:ctest-vn4-32510007?flat'} 2026-02-03 21:06:17,856 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01154023:ctest-vn4-32510007 is found in opserver 2026-02-03 21:06:17,865 - DEBUG - Do not have enough data to verify VN in agent 2026-02-03 21:06:17,869 - DEBUG - VRF ids for VN ctest-vn4-32510007: {} 2026-02-03 21:06:17,870 - DEBUG - ====Verifying data for ctest-policy1-13586012 in API_Server ====== 2026-02-03 21:06:17,870 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-03 21:06:17,875 - DEBUG - Requesting: http://10.0.0.129:8082/domain/504552fa-7832-4ecf-8699-e8087ce376e8 2026-02-03 21:06:17,887 - DEBUG - Requesting: http://10.0.0.129:8082/project/ad79d081-839e-4292-b9cb-4a48d6f6e62f 2026-02-03 21:06:17,970 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/6af3e4f2-e242-470f-8dc1-1efc80e452a6 2026-02-03 21:06:17,982 - INFO - Verified policy ctest-policy1-13586012 in API Server, Result: True 2026-02-03 21:06:17,982 - INFO - Done with setup and verification, moving onto test .. 2026-02-03 21:06:17,990 - INFO - Deleting VN ctest-vn4-32510007 2026-02-03 21:06:18,112 - DEBUG - Response for deleting network () 2026-02-03 21:06:18,112 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/9649457b-3a11-4642-befd-f16b77ca666c 2026-02-03 21:06:18,116 - DEBUG - Response Code: 404 2026-02-03 21:06:18,117 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-03 21:06:18,122 - DEBUG - Requesting: http://10.0.0.129:8082/domain/504552fa-7832-4ecf-8699-e8087ce376e8 2026-02-03 21:06:18,176 - DEBUG - Requesting: http://10.0.0.129:8082/project/ad79d081-839e-4292-b9cb-4a48d6f6e62f 2026-02-03 21:06:18,254 - INFO - Validated that VN ctest-vn4-32510007 is not found in API Server 2026-02-03 21:06:18,263 - DEBUG - VN ctest-vn4-32510007 is not present in Agent 10.0.0.129 2026-02-03 21:06:18,263 - INFO - Validated that VN ctest-vn4-32510007 is not in any agent 2026-02-03 21:06:18,278 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32510007 info 2026-02-03 21:06:18,304 - INFO - Deleted policy ctest-policy1-13586012 2026-02-03 21:06:18,465 - DEBUG - policy ctest-policy1-13586012 is not found in API Server 2026-02-03 21:06:18,719 - DEBUG - No XMPP flaps were noticed during the test