2026-06-15 12:20:19,223 - INFO - Domain Default found not creating 2026-06-15 12:20:19,419 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77406762 not found, creating it 2026-06-15 12:20:19,907 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77406762, ID : e48979a8-04c2-4141-a3d9-c7be5f80424b 2026-06-15 12:20:21,507 - INFO - ================================================================================ 2026-06-15 12:20:21,507 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 12:20:21,760 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-06-15 12:20:21,760 - INFO - Initial checks done. Running the testcase now 2026-06-15 12:20:21,760 - INFO - 2026-06-15 12:20:21,760 - INFO - ================================================================================ 2026-06-15 12:20:21,760 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 12:20:21,760 - 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-06-15 12:20:22,051 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-06-15 12:20:22,051 - INFO - Initial checks done. Running the testcase now 2026-06-15 12:20:22,051 - INFO - 2026-06-15 12:20:22,435 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77406762:ctest-vn4-76100123, 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-77406762:ctest-vn4-76100123, 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-77406762:ctest-vn4-76100123, 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-77406762:ctest-vn4-76100123, 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-06-15 12:20:22,931 - DEBUG - Response for create_network : {'network': {'id': '590568ec-7a89-42d4-bc99-225830328479', 'name': 'ctest-vn4-76100123', 'tenant_id': 'e48979a804c24141a3d9c7be5f80424b', 'project_id': 'e48979a804c24141a3d9c7be5f80424b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77406762', 'ctest-vn4-76100123'], 'port_security_enabled': True, 'description': ''}} 2026-06-15 12:20:23,136 - DEBUG - Response for create_subnet : {'subnet': {'id': '553b0428-869f-45e4-ab61-3d33e3e187e4', 'name': '', 'tenant_id': 'e48979a804c24141a3d9c7be5f80424b', 'network_id': '590568ec-7a89-42d4-bc99-225830328479', 'ip_version': 4, 'cidr': '209.69.233.128/26', 'allocation_pools': [{'start': '209.69.233.130', 'end': '209.69.233.190'}], 'gateway_ip': '209.69.233.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.69.233.130', 'tags': [], 'project_id': 'e48979a804c24141a3d9c7be5f80424b'}} 2026-06-15 12:20:23,348 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce5eda3e-22e7-42e3-9b17-6fdf8711081d', 'name': '', 'tenant_id': 'e48979a804c24141a3d9c7be5f80424b', 'network_id': '590568ec-7a89-42d4-bc99-225830328479', 'ip_version': 6, 'cidr': '392f:d01d:18b8:b6ca:872c:8f1f::/96', 'allocation_pools': [{'start': '392f:d01d:18b8:b6ca:872c:8f1f:0:2', 'end': '392f:d01d:18b8:b6ca:872c:8f1f:ffff:fffe'}], 'gateway_ip': '392f:d01d:18b8:b6ca:872c:8f1f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '392f:d01d:18b8:b6ca:872c:8f1f:0:2', 'tags': [], 'project_id': 'e48979a804c24141a3d9c7be5f80424b'}} 2026-06-15 12:20:23,365 - INFO - Created VN ctest-vn4-76100123 2026-06-15 12:20:23,423 - DEBUG - VN ctest-vn4-76100123 UUID is 590568ec-7a89-42d4-bc99-225830328479 2026-06-15 12:20:23,633 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '590568ec-7a89-42d4-bc99-225830328479', 'name': 'ctest-vn4-76100123', 'tenant_id': 'e48979a804c24141a3d9c7be5f80424b', 'project_id': 'e48979a804c24141a3d9c7be5f80424b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['553b0428-869f-45e4-ab61-3d33e3e187e4', 'ce5eda3e-22e7-42e3-9b17-6fdf8711081d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77406762', 'ctest-vn4-76100123'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77406762', 'ctest-policy1-83028786']], 'subnet_ipam': [{'subnet_cidr': '209.69.233.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '392f:d01d:18b8:b6ca:872c:8f1f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-15 12:20:23,791 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-15 12:20:24,118 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-15 12:20:24,142 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ac1214b2-447c-47e4-998f-c2e4c279d9cf 2026-06-15 12:20:24,155 - DEBUG - Requesting: http://10.0.0.249:8082/project/e48979a8-04c2-4141-a3d9-c7be5f80424b 2026-06-15 12:20:24,226 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/590568ec-7a89-42d4-bc99-225830328479 2026-06-15 12:20:24,238 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/590568ec-7a89-42d4-bc99-225830328479 2026-06-15 12:20:24,247 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/86f0a82e-13eb-4c54-b022-f770f299c243 2026-06-15 12:20:24,253 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/86f0a82e-13eb-4c54-b022-f770f299c243 2026-06-15 12:20:24,259 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/866e5d22-7bcf-4f14-a8a4-0d2fefe3f82f 2026-06-15 12:20:24,265 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 12:20:24,265 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/590568ec-7a89-42d4-bc99-225830328479 2026-06-15 12:20:24,273 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/86f0a82e-13eb-4c54-b022-f770f299c243 2026-06-15 12:20:24,286 - INFO - Verified VN network id 11 for VN 590568ec-7a89-42d4-bc99-225830328479 2026-06-15 12:20:24,286 - INFO - Verifications in API Server for VN ctest-vn4-76100123 passed 2026-06-15 12:20:24,286 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/590568ec-7a89-42d4-bc99-225830328479 2026-06-15 12:20:24,295 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/86f0a82e-13eb-4c54-b022-f770f299c243 2026-06-15 12:20:24,303 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/86f0a82e-13eb-4c54-b022-f770f299c243 2026-06-15 12:20:24,308 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/866e5d22-7bcf-4f14-a8a4-0d2fefe3f82f 2026-06-15 12:20:24,318 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77406762:ctest-vn4-76100123', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77406762', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6414648609136526036', 'uuid-lslong': '13589931112728265849'}, 'enable': 'true', 'created': '2026-06-15T12:20:22', 'last-modified': '2026-06-15T12:20:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.710800'} 2026-06-15 12:20:24,323 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 12:20:24,325 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76100123 passed 2026-06-15 12:20:24,325 - DEBUG - ====Verifying policy data for ctest-vn4-76100123 in API_Server ====== 2026-06-15 12:20:24,326 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-15 12:20:24,332 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ac1214b2-447c-47e4-998f-c2e4c279d9cf 2026-06-15 12:20:24,344 - DEBUG - Requesting: http://10.0.0.249:8082/project/e48979a8-04c2-4141-a3d9-c7be5f80424b 2026-06-15 12:20:24,409 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/590568ec-7a89-42d4-bc99-225830328479 2026-06-15 12:20:24,418 - DEBUG - ==>Verifying data for policy with id: 45a5f2e6-d6e4-4ee6-97aa-454099ece217, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77406762', 'ctest-policy1-83028786'] 2026-06-15 12:20:24,418 - INFO - VN ctest-vn4-76100123 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-15 12:20:24,418 - DEBUG - Verifying the vn in opserver 2026-06-15 12:20:24,418 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77406762:ctest-vn4-76100123 virtual network link through opserver 10.0.0.249 2026-06-15 12:20:24,418 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-15 12:20:24,738 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-15 12:20:24,786 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77406762:ctest-vn4-76100123', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77406762:ctest-vn4-76100123?flat'} 2026-06-15 12:20:24,786 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77406762:ctest-vn4-76100123 is found in opserver 2026-06-15 12:20:24,796 - DEBUG - Do not have enough data to verify VN in agent 2026-06-15 12:20:24,801 - DEBUG - VRF ids for VN ctest-vn4-76100123: {} 2026-06-15 12:20:24,801 - DEBUG - ====Verifying data for ctest-policy1-83028786 in API_Server ====== 2026-06-15 12:20:24,801 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-15 12:20:24,806 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ac1214b2-447c-47e4-998f-c2e4c279d9cf 2026-06-15 12:20:24,817 - DEBUG - Requesting: http://10.0.0.249:8082/project/e48979a8-04c2-4141-a3d9-c7be5f80424b 2026-06-15 12:20:24,895 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/45a5f2e6-d6e4-4ee6-97aa-454099ece217 2026-06-15 12:20:24,905 - INFO - Verified policy ctest-policy1-83028786 in API Server, Result: True 2026-06-15 12:20:24,905 - INFO - Done with setup and verification, moving onto test .. 2026-06-15 12:20:24,912 - INFO - Deleting VN ctest-vn4-76100123 2026-06-15 12:20:25,078 - DEBUG - Response for deleting network () 2026-06-15 12:20:25,078 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/86f0a82e-13eb-4c54-b022-f770f299c243 2026-06-15 12:20:25,083 - DEBUG - Response Code: 404 2026-06-15 12:20:25,084 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-15 12:20:25,088 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ac1214b2-447c-47e4-998f-c2e4c279d9cf 2026-06-15 12:20:25,140 - DEBUG - Requesting: http://10.0.0.249:8082/project/e48979a8-04c2-4141-a3d9-c7be5f80424b 2026-06-15 12:20:25,213 - INFO - Validated that VN ctest-vn4-76100123 is not found in API Server 2026-06-15 12:20:25,225 - DEBUG - VN ctest-vn4-76100123 is not present in Agent 10.0.0.249 2026-06-15 12:20:25,225 - INFO - Validated that VN ctest-vn4-76100123 is not in any agent 2026-06-15 12:20:25,241 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76100123 info 2026-06-15 12:20:25,271 - INFO - Deleted policy ctest-policy1-83028786 2026-06-15 12:20:25,435 - DEBUG - policy ctest-policy1-83028786 is not found in API Server 2026-06-15 12:20:25,691 - DEBUG - No XMPP flaps were noticed during the test 2026-06-15 12:20:25,692 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-15 12:20:25,692 - INFO - -------------------------------------------------------------------------------- 2026-06-15 12:20:25,988 - DEBUG - No XMPP flaps were noticed during the test 2026-06-15 12:20:25,989 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-15 12:20:25,989 - INFO - -------------------------------------------------------------------------------- 2026-06-15 12:20:26,734 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-77406762, ID : e48979a8-04c2-4141-a3d9-c7be5f80424b