2026-01-28 22:09:28,924 - INFO - Domain Default found not creating 2026-01-28 22:09:29,111 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98045264 not found, creating it 2026-01-28 22:09:29,574 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98045264, ID : 0f008715-5e0c-4a36-898c-470b2fa717c4 2026-01-28 22:09:31,094 - INFO - ================================================================================ 2026-01-28 22:09:31,094 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 22:09:31,349 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-01-28 22:09:31,349 - INFO - Initial checks done. Running the testcase now 2026-01-28 22:09:31,349 - INFO - 2026-01-28 22:09:31,349 - INFO - ================================================================================ 2026-01-28 22:09:31,349 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 22:09:31,349 - 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-01-28 22:09:31,653 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-01-28 22:09:31,654 - INFO - Initial checks done. Running the testcase now 2026-01-28 22:09:31,654 - INFO - 2026-01-28 22:09:32,041 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98045264:ctest-vn4-92465207, 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-98045264:ctest-vn4-92465207, 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-98045264:ctest-vn4-92465207, 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-98045264:ctest-vn4-92465207, 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-01-28 22:09:32,566 - DEBUG - Response for create_network : {'network': {'id': '25b842b6-6c8e-4940-ab9c-4406519500c0', 'name': 'ctest-vn4-92465207', 'tenant_id': '0f0087155e0c4a36898c470b2fa717c4', 'project_id': '0f0087155e0c4a36898c470b2fa717c4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98045264', 'ctest-vn4-92465207'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 22:09:32,795 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f310644-6fa6-4e16-aa6b-c3605e5c6983', 'name': '', 'tenant_id': '0f0087155e0c4a36898c470b2fa717c4', 'network_id': '25b842b6-6c8e-4940-ab9c-4406519500c0', 'ip_version': 4, 'cidr': '33.246.203.0/26', 'allocation_pools': [{'start': '33.246.203.2', 'end': '33.246.203.62'}], 'gateway_ip': '33.246.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.246.203.2', 'tags': [], 'project_id': '0f0087155e0c4a36898c470b2fa717c4'}} 2026-01-28 22:09:32,964 - DEBUG - Response for create_subnet : {'subnet': {'id': '3bbb5773-420c-4f12-b936-2d01c6f61a29', 'name': '', 'tenant_id': '0f0087155e0c4a36898c470b2fa717c4', 'network_id': '25b842b6-6c8e-4940-ab9c-4406519500c0', 'ip_version': 6, 'cidr': '3384:cef4:1576:4726:241a:48c6::/96', 'allocation_pools': [{'start': '3384:cef4:1576:4726:241a:48c6:0:2', 'end': '3384:cef4:1576:4726:241a:48c6:ffff:fffe'}], 'gateway_ip': '3384:cef4:1576:4726:241a:48c6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3384:cef4:1576:4726:241a:48c6:0:2', 'tags': [], 'project_id': '0f0087155e0c4a36898c470b2fa717c4'}} 2026-01-28 22:09:32,983 - INFO - Created VN ctest-vn4-92465207 2026-01-28 22:09:33,035 - DEBUG - VN ctest-vn4-92465207 UUID is 25b842b6-6c8e-4940-ab9c-4406519500c0 2026-01-28 22:09:33,224 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '25b842b6-6c8e-4940-ab9c-4406519500c0', 'name': 'ctest-vn4-92465207', 'tenant_id': '0f0087155e0c4a36898c470b2fa717c4', 'project_id': '0f0087155e0c4a36898c470b2fa717c4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5f310644-6fa6-4e16-aa6b-c3605e5c6983', '3bbb5773-420c-4f12-b936-2d01c6f61a29'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98045264', 'ctest-vn4-92465207'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98045264', 'ctest-policy1-15192704']], 'subnet_ipam': [{'subnet_cidr': '33.246.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3384:cef4:1576:4726:241a:48c6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 22:09:33,379 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 22:09:33,678 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 22:09:33,714 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4868b45f-f611-498c-9320-4a2c50853c88 2026-01-28 22:09:33,725 - DEBUG - Requesting: http://10.0.0.22:8082/project/0f008715-5e0c-4a36-898c-470b2fa717c4 2026-01-28 22:09:33,805 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/25b842b6-6c8e-4940-ab9c-4406519500c0 2026-01-28 22:09:33,819 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/25b842b6-6c8e-4940-ab9c-4406519500c0 2026-01-28 22:09:33,829 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/630eb65a-ade8-42fb-87f8-7391a34b4800 2026-01-28 22:09:33,836 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/630eb65a-ade8-42fb-87f8-7391a34b4800 2026-01-28 22:09:33,842 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e497a1e4-5b82-404c-b988-663bdfb82fff 2026-01-28 22:09:33,848 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 22:09:33,848 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/25b842b6-6c8e-4940-ab9c-4406519500c0 2026-01-28 22:09:33,857 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/630eb65a-ade8-42fb-87f8-7391a34b4800 2026-01-28 22:09:33,871 - INFO - Verified VN network id 11 for VN 25b842b6-6c8e-4940-ab9c-4406519500c0 2026-01-28 22:09:33,871 - INFO - Verifications in API Server for VN ctest-vn4-92465207 passed 2026-01-28 22:09:33,871 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/25b842b6-6c8e-4940-ab9c-4406519500c0 2026-01-28 22:09:33,881 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/630eb65a-ade8-42fb-87f8-7391a34b4800 2026-01-28 22:09:33,887 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/630eb65a-ade8-42fb-87f8-7391a34b4800 2026-01-28 22:09:33,893 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e497a1e4-5b82-404c-b988-663bdfb82fff 2026-01-28 22:09:33,904 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98045264:ctest-vn4-92465207', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98045264', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2717995726390839616', 'uuid-lslong': '12365833470781751488'}, 'enable': 'true', 'created': '2026-01-28T22:09:32', 'last-modified': '2026-01-28T22:09:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.701199'} 2026-01-28 22:09:33,910 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 22:09:33,910 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92465207 passed 2026-01-28 22:09:33,910 - DEBUG - ====Verifying policy data for ctest-vn4-92465207 in API_Server ====== 2026-01-28 22:09:33,910 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 22:09:33,916 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4868b45f-f611-498c-9320-4a2c50853c88 2026-01-28 22:09:33,926 - DEBUG - Requesting: http://10.0.0.22:8082/project/0f008715-5e0c-4a36-898c-470b2fa717c4 2026-01-28 22:09:33,997 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/25b842b6-6c8e-4940-ab9c-4406519500c0 2026-01-28 22:09:34,007 - DEBUG - ==>Verifying data for policy with id: ca559d82-fec0-44af-abe9-e8a4f10f8423, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98045264', 'ctest-policy1-15192704'] 2026-01-28 22:09:34,007 - INFO - VN ctest-vn4-92465207 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 22:09:34,007 - DEBUG - Verifying the vn in opserver 2026-01-28 22:09:34,007 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98045264:ctest-vn4-92465207 virtual network link through opserver 10.0.0.22 2026-01-28 22:09:34,007 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-28 22:09:34,311 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-28 22:09:34,367 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98045264:ctest-vn4-92465207', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98045264:ctest-vn4-92465207?flat'} 2026-01-28 22:09:34,367 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98045264:ctest-vn4-92465207 is found in opserver 2026-01-28 22:09:34,376 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 22:09:34,380 - DEBUG - VRF ids for VN ctest-vn4-92465207: {} 2026-01-28 22:09:34,381 - DEBUG - ====Verifying data for ctest-policy1-15192704 in API_Server ====== 2026-01-28 22:09:34,381 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 22:09:34,386 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4868b45f-f611-498c-9320-4a2c50853c88 2026-01-28 22:09:34,397 - DEBUG - Requesting: http://10.0.0.22:8082/project/0f008715-5e0c-4a36-898c-470b2fa717c4 2026-01-28 22:09:34,468 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/ca559d82-fec0-44af-abe9-e8a4f10f8423 2026-01-28 22:09:34,477 - INFO - Verified policy ctest-policy1-15192704 in API Server, Result: True 2026-01-28 22:09:34,477 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 22:09:34,484 - INFO - Deleting VN ctest-vn4-92465207 2026-01-28 22:09:34,591 - DEBUG - Response for deleting network () 2026-01-28 22:09:34,591 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/630eb65a-ade8-42fb-87f8-7391a34b4800 2026-01-28 22:09:34,595 - DEBUG - Response Code: 404 2026-01-28 22:09:34,596 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 22:09:34,601 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4868b45f-f611-498c-9320-4a2c50853c88 2026-01-28 22:09:34,652 - DEBUG - Requesting: http://10.0.0.22:8082/project/0f008715-5e0c-4a36-898c-470b2fa717c4 2026-01-28 22:09:34,718 - INFO - Validated that VN ctest-vn4-92465207 is not found in API Server 2026-01-28 22:09:34,728 - DEBUG - VN ctest-vn4-92465207 is not present in Agent 10.0.0.22 2026-01-28 22:09:34,728 - INFO - Validated that VN ctest-vn4-92465207 is not in any agent 2026-01-28 22:09:34,740 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92465207 info 2026-01-28 22:09:34,763 - INFO - Deleted policy ctest-policy1-15192704 2026-01-28 22:09:34,927 - DEBUG - policy ctest-policy1-15192704 is not found in API Server 2026-01-28 22:09:35,188 - DEBUG - No XMPP flaps were noticed during the test
2026-01-28 22:09:35,188 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-28 22:09:35,188 - INFO - -------------------------------------------------------------------------------- 2026-01-28 22:09:35,480 - DEBUG - No XMPP flaps were noticed during the test
2026-01-28 22:09:35,481 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-28 22:09:35,481 - INFO - -------------------------------------------------------------------------------- 2026-01-28 22:09:36,180 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-98045264, ID : 0f008715-5e0c-4a36-898c-470b2fa717c4