2026-03-24 20:30:26,327 - INFO - Domain Default found not creating 2026-03-24 20:30:26,495 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74252327 not found, creating it 2026-03-24 20:30:26,939 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74252327, ID : e863a063-4ea6-42e6-be6f-db070002d40e 2026-03-24 20:30:28,338 - INFO - ================================================================================ 2026-03-24 20:30:28,339 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-24 20:30:28,593 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-24 20:30:28,594 - INFO - Initial checks done. Running the testcase now 2026-03-24 20:30:28,594 - INFO - 2026-03-24 20:30:28,594 - INFO - ================================================================================ 2026-03-24 20:30:28,594 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-24 20:30:28,594 - 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-24 20:30:28,881 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-24 20:30:28,881 - INFO - Initial checks done. Running the testcase now 2026-03-24 20:30:28,881 - INFO - 2026-03-24 20:30:29,232 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74252327:ctest-vn4-73353773, 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-74252327:ctest-vn4-73353773, 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-74252327:ctest-vn4-73353773, 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-74252327:ctest-vn4-73353773, 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-24 20:30:29,719 - DEBUG - Response for create_network : {'network': {'id': 'dbedbe6a-68f3-4503-a0be-e39793ff8365', 'name': 'ctest-vn4-73353773', 'tenant_id': 'e863a0634ea642e6be6fdb070002d40e', 'project_id': 'e863a0634ea642e6be6fdb070002d40e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74252327', 'ctest-vn4-73353773'], 'port_security_enabled': True, 'description': ''}} 2026-03-24 20:30:29,875 - DEBUG - Response for create_subnet : {'subnet': {'id': '591a84fc-4588-4ace-b265-b0ad5906baf0', 'name': '', 'tenant_id': 'e863a0634ea642e6be6fdb070002d40e', 'network_id': 'dbedbe6a-68f3-4503-a0be-e39793ff8365', 'ip_version': 4, 'cidr': '7.153.95.128/26', 'allocation_pools': [{'start': '7.153.95.130', 'end': '7.153.95.190'}], 'gateway_ip': '7.153.95.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.153.95.130', 'tags': [], 'project_id': 'e863a0634ea642e6be6fdb070002d40e'}} 2026-03-24 20:30:30,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '0019783b-036f-40ae-a11c-82cca1b269ad', 'name': '', 'tenant_id': 'e863a0634ea642e6be6fdb070002d40e', 'network_id': 'dbedbe6a-68f3-4503-a0be-e39793ff8365', 'ip_version': 6, 'cidr': '37cd:c5d:cb2f:c1:6ffe:bbd5::/96', 'allocation_pools': [{'start': '37cd:c5d:cb2f:c1:6ffe:bbd5:0:2', 'end': '37cd:c5d:cb2f:c1:6ffe:bbd5:ffff:fffe'}], 'gateway_ip': '37cd:c5d:cb2f:c1:6ffe:bbd5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37cd:c5d:cb2f:c1:6ffe:bbd5:0:2', 'tags': [], 'project_id': 'e863a0634ea642e6be6fdb070002d40e'}} 2026-03-24 20:30:30,079 - INFO - Created VN ctest-vn4-73353773 2026-03-24 20:30:30,128 - DEBUG - VN ctest-vn4-73353773 UUID is dbedbe6a-68f3-4503-a0be-e39793ff8365 2026-03-24 20:30:30,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dbedbe6a-68f3-4503-a0be-e39793ff8365', 'name': 'ctest-vn4-73353773', 'tenant_id': 'e863a0634ea642e6be6fdb070002d40e', 'project_id': 'e863a0634ea642e6be6fdb070002d40e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['591a84fc-4588-4ace-b265-b0ad5906baf0', '0019783b-036f-40ae-a11c-82cca1b269ad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74252327', 'ctest-vn4-73353773'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74252327', 'ctest-policy1-18165116']], 'subnet_ipam': [{'subnet_cidr': '7.153.95.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '37cd:c5d:cb2f:c1:6ffe:bbd5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-24 20:30:30,480 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 20:30:30,778 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 20:30:30,807 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c04c22c8-6822-4ac8-b731-1f85bab457ba 2026-03-24 20:30:30,818 - DEBUG - Requesting: http://10.0.0.38:8082/project/e863a063-4ea6-42e6-be6f-db070002d40e 2026-03-24 20:30:30,884 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbedbe6a-68f3-4503-a0be-e39793ff8365 2026-03-24 20:30:30,896 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbedbe6a-68f3-4503-a0be-e39793ff8365 2026-03-24 20:30:30,904 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e9cfb202-ce3f-449e-bc08-04bf15d37819 2026-03-24 20:30:30,923 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e9cfb202-ce3f-449e-bc08-04bf15d37819 2026-03-24 20:30:30,929 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/14e69edb-ff1f-46cd-98a0-5384fa044d09 2026-03-24 20:30:30,934 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-24 20:30:30,934 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbedbe6a-68f3-4503-a0be-e39793ff8365 2026-03-24 20:30:30,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e9cfb202-ce3f-449e-bc08-04bf15d37819 2026-03-24 20:30:30,956 - INFO - Verified VN network id 12 for VN dbedbe6a-68f3-4503-a0be-e39793ff8365 2026-03-24 20:30:30,956 - INFO - Verifications in API Server for VN ctest-vn4-73353773 passed 2026-03-24 20:30:30,956 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbedbe6a-68f3-4503-a0be-e39793ff8365 2026-03-24 20:30:30,965 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e9cfb202-ce3f-449e-bc08-04bf15d37819 2026-03-24 20:30:30,971 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e9cfb202-ce3f-449e-bc08-04bf15d37819 2026-03-24 20:30:30,977 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/14e69edb-ff1f-46cd-98a0-5384fa044d09 2026-03-24 20:30:30,990 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74252327:ctest-vn4-73353773', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74252327', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15847532028023227651', 'uuid-lslong': '11582945531806057317'}, 'enable': 'true', 'created': '2026-03-24T20:30:29', 'last-modified': '2026-03-24T20:30:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694144'} 2026-03-24 20:30:30,997 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-24 20:30:30,997 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-73353773 passed 2026-03-24 20:30:30,998 - DEBUG - ====Verifying policy data for ctest-vn4-73353773 in API_Server ====== 2026-03-24 20:30:30,998 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 20:30:31,004 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c04c22c8-6822-4ac8-b731-1f85bab457ba 2026-03-24 20:30:31,014 - DEBUG - Requesting: http://10.0.0.38:8082/project/e863a063-4ea6-42e6-be6f-db070002d40e 2026-03-24 20:30:31,085 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/dbedbe6a-68f3-4503-a0be-e39793ff8365 2026-03-24 20:30:31,096 - DEBUG - ==>Verifying data for policy with id: 2a023446-0930-4881-9f26-82f98bbeb176, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74252327', 'ctest-policy1-18165116'] 2026-03-24 20:30:31,096 - INFO - VN ctest-vn4-73353773 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-24 20:30:31,096 - DEBUG - Verifying the vn in opserver 2026-03-24 20:30:31,096 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74252327:ctest-vn4-73353773 virtual network link through opserver 10.0.0.38 2026-03-24 20:30:31,096 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-24 20:30:31,387 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-24 20:30:31,452 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74252327:ctest-vn4-73353773', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74252327:ctest-vn4-73353773?flat'} 2026-03-24 20:30:31,452 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74252327:ctest-vn4-73353773 is found in opserver 2026-03-24 20:30:31,461 - DEBUG - Do not have enough data to verify VN in agent 2026-03-24 20:30:31,465 - DEBUG - VRF ids for VN ctest-vn4-73353773: {} 2026-03-24 20:30:31,465 - DEBUG - ====Verifying data for ctest-policy1-18165116 in API_Server ====== 2026-03-24 20:30:31,466 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 20:30:31,470 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c04c22c8-6822-4ac8-b731-1f85bab457ba 2026-03-24 20:30:31,480 - DEBUG - Requesting: http://10.0.0.38:8082/project/e863a063-4ea6-42e6-be6f-db070002d40e 2026-03-24 20:30:31,550 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/2a023446-0930-4881-9f26-82f98bbeb176 2026-03-24 20:30:31,558 - INFO - Verified policy ctest-policy1-18165116 in API Server, Result: True 2026-03-24 20:30:31,558 - INFO - Done with setup and verification, moving onto test .. 2026-03-24 20:30:31,565 - INFO - Deleting VN ctest-vn4-73353773 2026-03-24 20:30:31,677 - DEBUG - Response for deleting network () 2026-03-24 20:30:31,677 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e9cfb202-ce3f-449e-bc08-04bf15d37819 2026-03-24 20:30:31,682 - DEBUG - Response Code: 404 2026-03-24 20:30:31,682 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-24 20:30:31,687 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c04c22c8-6822-4ac8-b731-1f85bab457ba 2026-03-24 20:30:31,744 - DEBUG - Requesting: http://10.0.0.38:8082/project/e863a063-4ea6-42e6-be6f-db070002d40e 2026-03-24 20:30:31,813 - INFO - Validated that VN ctest-vn4-73353773 is not found in API Server 2026-03-24 20:30:31,822 - DEBUG - VN ctest-vn4-73353773 is not present in Agent 10.0.0.38 2026-03-24 20:30:31,822 - INFO - Validated that VN ctest-vn4-73353773 is not in any agent 2026-03-24 20:30:31,834 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-73353773 info 2026-03-24 20:30:31,855 - INFO - Deleted policy ctest-policy1-18165116 2026-03-24 20:30:32,011 - DEBUG - policy ctest-policy1-18165116 is not found in API Server 2026-03-24 20:30:32,265 - DEBUG - No XMPP flaps were noticed during the test 2026-03-24 20:30:32,265 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-24 20:30:32,265 - INFO - -------------------------------------------------------------------------------- 2026-03-24 20:30:32,552 - DEBUG - No XMPP flaps were noticed during the test 2026-03-24 20:30:32,552 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-24 20:30:32,552 - INFO - -------------------------------------------------------------------------------- 2026-03-24 20:30:33,207 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74252327, ID : e863a063-4ea6-42e6-be6f-db070002d40e