2026-03-19 02:24:38,101 - INFO - Domain Default found not creating 2026-03-19 02:24:38,295 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96754262 not found, creating it 2026-03-19 02:24:38,786 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96754262, ID : 065bf1e7-c0ad-4356-bf10-2aa251d13277 2026-03-19 02:24:40,409 - INFO - ================================================================================ 2026-03-19 02:24:40,409 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 02:24:40,670 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2026-03-19 02:24:40,670 - INFO - Initial checks done. Running the testcase now 2026-03-19 02:24:40,670 - INFO - 2026-03-19 02:24:40,670 - INFO - ================================================================================ 2026-03-19 02:24:40,670 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 02:24:40,670 - 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-19 02:24:40,965 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2026-03-19 02:24:40,965 - INFO - Initial checks done. Running the testcase now 2026-03-19 02:24:40,965 - INFO - 2026-03-19 02:24:41,372 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96754262:ctest-vn4-26950085, 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-96754262:ctest-vn4-26950085, 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-96754262:ctest-vn4-26950085, 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-96754262:ctest-vn4-26950085, 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-19 02:24:41,900 - DEBUG - Response for create_network : {'network': {'id': 'cd952d78-b1e0-4c6f-8208-9e607255b3d9', 'name': 'ctest-vn4-26950085', 'tenant_id': '065bf1e7c0ad4356bf102aa251d13277', 'project_id': '065bf1e7c0ad4356bf102aa251d13277', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96754262', 'ctest-vn4-26950085'], 'port_security_enabled': True, 'description': ''}} 2026-03-19 02:24:42,152 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fccc1317-e516-45d4-884b-bc8aad51a0e6', 'name': '', 'tenant_id': '065bf1e7c0ad4356bf102aa251d13277', 'network_id': 'cd952d78-b1e0-4c6f-8208-9e607255b3d9', 'ip_version': 4, 'cidr': '141.221.238.0/26', 'allocation_pools': [{'start': '141.221.238.2', 'end': '141.221.238.62'}], 'gateway_ip': '141.221.238.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.221.238.2', 'tags': [], 'project_id': '065bf1e7c0ad4356bf102aa251d13277'}} 2026-03-19 02:24:42,332 - DEBUG - Response for create_subnet : {'subnet': {'id': 'adf2ece8-0767-4a97-ab35-1838c7711041', 'name': '', 'tenant_id': '065bf1e7c0ad4356bf102aa251d13277', 'network_id': 'cd952d78-b1e0-4c6f-8208-9e607255b3d9', 'ip_version': 6, 'cidr': '3bb0:bc5b:a845:e242:4441:9237::/96', 'allocation_pools': [{'start': '3bb0:bc5b:a845:e242:4441:9237:0:2', 'end': '3bb0:bc5b:a845:e242:4441:9237:ffff:fffe'}], 'gateway_ip': '3bb0:bc5b:a845:e242:4441:9237:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3bb0:bc5b:a845:e242:4441:9237:0:2', 'tags': [], 'project_id': '065bf1e7c0ad4356bf102aa251d13277'}} 2026-03-19 02:24:42,353 - INFO - Created VN ctest-vn4-26950085 2026-03-19 02:24:42,405 - DEBUG - VN ctest-vn4-26950085 UUID is cd952d78-b1e0-4c6f-8208-9e607255b3d9 2026-03-19 02:24:42,617 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd952d78-b1e0-4c6f-8208-9e607255b3d9', 'name': 'ctest-vn4-26950085', 'tenant_id': '065bf1e7c0ad4356bf102aa251d13277', 'project_id': '065bf1e7c0ad4356bf102aa251d13277', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fccc1317-e516-45d4-884b-bc8aad51a0e6', 'adf2ece8-0767-4a97-ab35-1838c7711041'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96754262', 'ctest-vn4-26950085'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96754262', 'ctest-policy1-32244448']], 'subnet_ipam': [{'subnet_cidr': '141.221.238.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3bb0:bc5b:a845:e242:4441:9237::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-19 02:24:42,789 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-19 02:24:43,133 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-19 02:24:43,166 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da503e89-87c8-4ea8-9617-1d886df59aad 2026-03-19 02:24:43,178 - DEBUG - Requesting: http://10.0.0.141:8082/project/065bf1e7-c0ad-4356-bf10-2aa251d13277 2026-03-19 02:24:43,248 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cd952d78-b1e0-4c6f-8208-9e607255b3d9 2026-03-19 02:24:43,260 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cd952d78-b1e0-4c6f-8208-9e607255b3d9 2026-03-19 02:24:43,269 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/78f61a41-f7d2-4fa4-8dff-d92a4305a56c 2026-03-19 02:24:43,276 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/78f61a41-f7d2-4fa4-8dff-d92a4305a56c 2026-03-19 02:24:43,282 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ce1ea24a-72cb-4b21-aa84-18dc2434dfa6 2026-03-19 02:24:43,288 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 02:24:43,288 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cd952d78-b1e0-4c6f-8208-9e607255b3d9 2026-03-19 02:24:43,298 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/78f61a41-f7d2-4fa4-8dff-d92a4305a56c 2026-03-19 02:24:43,311 - INFO - Verified VN network id 11 for VN cd952d78-b1e0-4c6f-8208-9e607255b3d9 2026-03-19 02:24:43,311 - INFO - Verifications in API Server for VN ctest-vn4-26950085 passed 2026-03-19 02:24:43,311 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cd952d78-b1e0-4c6f-8208-9e607255b3d9 2026-03-19 02:24:43,320 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/78f61a41-f7d2-4fa4-8dff-d92a4305a56c 2026-03-19 02:24:43,326 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/78f61a41-f7d2-4fa4-8dff-d92a4305a56c 2026-03-19 02:24:43,332 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ce1ea24a-72cb-4b21-aa84-18dc2434dfa6 2026-03-19 02:24:43,346 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96754262:ctest-vn4-26950085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96754262', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14813796545708706927', 'uuid-lslong': '9369913161816585177'}, 'enable': 'true', 'created': '2026-03-19T02:24:41', 'last-modified': '2026-03-19T02:24:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.761317'} 2026-03-19 02:24:43,352 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 02:24:43,352 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26950085 passed 2026-03-19 02:24:43,352 - DEBUG - ====Verifying policy data for ctest-vn4-26950085 in API_Server ====== 2026-03-19 02:24:43,352 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-19 02:24:43,359 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da503e89-87c8-4ea8-9617-1d886df59aad 2026-03-19 02:24:43,370 - DEBUG - Requesting: http://10.0.0.141:8082/project/065bf1e7-c0ad-4356-bf10-2aa251d13277 2026-03-19 02:24:43,441 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cd952d78-b1e0-4c6f-8208-9e607255b3d9 2026-03-19 02:24:43,450 - DEBUG - ==>Verifying data for policy with id: 316a0159-fa4c-4008-a181-05b9ac1bc612, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96754262', 'ctest-policy1-32244448'] 2026-03-19 02:24:43,450 - INFO - VN ctest-vn4-26950085 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-19 02:24:43,450 - DEBUG - Verifying the vn in opserver 2026-03-19 02:24:43,450 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96754262:ctest-vn4-26950085 virtual network link through opserver 10.0.0.141 2026-03-19 02:24:43,451 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-19 02:24:43,791 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-19 02:24:43,872 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96754262:ctest-vn4-26950085', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96754262:ctest-vn4-26950085?flat'} 2026-03-19 02:24:43,873 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96754262:ctest-vn4-26950085 is found in opserver 2026-03-19 02:24:43,882 - DEBUG - Do not have enough data to verify VN in agent 2026-03-19 02:24:43,887 - DEBUG - VRF ids for VN ctest-vn4-26950085: {} 2026-03-19 02:24:43,887 - DEBUG - ====Verifying data for ctest-policy1-32244448 in API_Server ====== 2026-03-19 02:24:43,887 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-19 02:24:43,893 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da503e89-87c8-4ea8-9617-1d886df59aad 2026-03-19 02:24:43,903 - DEBUG - Requesting: http://10.0.0.141:8082/project/065bf1e7-c0ad-4356-bf10-2aa251d13277 2026-03-19 02:24:43,982 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/316a0159-fa4c-4008-a181-05b9ac1bc612 2026-03-19 02:24:43,991 - INFO - Verified policy ctest-policy1-32244448 in API Server, Result: True 2026-03-19 02:24:43,992 - INFO - Done with setup and verification, moving onto test .. 2026-03-19 02:24:43,999 - INFO - Deleting VN ctest-vn4-26950085 2026-03-19 02:24:44,114 - DEBUG - Response for deleting network () 2026-03-19 02:24:44,114 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/78f61a41-f7d2-4fa4-8dff-d92a4305a56c 2026-03-19 02:24:44,120 - DEBUG - Response Code: 404 2026-03-19 02:24:44,120 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-19 02:24:44,124 - DEBUG - Requesting: http://10.0.0.141:8082/domain/da503e89-87c8-4ea8-9617-1d886df59aad 2026-03-19 02:24:44,179 - DEBUG - Requesting: http://10.0.0.141:8082/project/065bf1e7-c0ad-4356-bf10-2aa251d13277 2026-03-19 02:24:44,246 - INFO - Validated that VN ctest-vn4-26950085 is not found in API Server 2026-03-19 02:24:44,255 - DEBUG - VN ctest-vn4-26950085 is not present in Agent 10.0.0.141 2026-03-19 02:24:44,256 - INFO - Validated that VN ctest-vn4-26950085 is not in any agent 2026-03-19 02:24:44,268 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26950085 info 2026-03-19 02:24:44,292 - INFO - Deleted policy ctest-policy1-32244448 2026-03-19 02:24:44,453 - DEBUG - policy ctest-policy1-32244448 is not found in API Server 2026-03-19 02:24:44,707 - DEBUG - No XMPP flaps were noticed during the test 2026-03-19 02:24:44,707 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-19 02:24:44,707 - INFO - -------------------------------------------------------------------------------- 2026-03-19 02:24:44,994 - DEBUG - No XMPP flaps were noticed during the test 2026-03-19 02:24:44,994 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-19 02:24:44,994 - INFO - -------------------------------------------------------------------------------- 2026-03-19 02:24:45,708 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-96754262, ID : 065bf1e7-c0ad-4356-bf10-2aa251d13277