2026-08-24 17:32:09,769 - INFO - Domain Default found not creating 2026-08-24 17:32:09,918 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-16726812 not found, creating it 2026-08-24 17:32:10,397 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-16726812, ID : 443b50ad-7361-46a4-b651-065dd46aeb54 2026-08-24 17:32:11,981 - INFO - ================================================================================ 2026-08-24 17:32:11,981 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-24 17:32:12,245 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-08-24 17:32:12,246 - INFO - Initial checks done. Running the testcase now 2026-08-24 17:32:12,246 - INFO - 2026-08-24 17:32:12,246 - INFO - ================================================================================ 2026-08-24 17:32:12,246 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-24 17:32:12,246 - 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-08-24 17:32:12,551 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-08-24 17:32:12,551 - INFO - Initial checks done. Running the testcase now 2026-08-24 17:32:12,551 - INFO - 2026-08-24 17:32:12,933 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16726812:ctest-vn4-50391875, 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-16726812:ctest-vn4-50391875, 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-16726812:ctest-vn4-50391875, 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-16726812:ctest-vn4-50391875, 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-08-24 17:32:13,472 - DEBUG - Response for create_network : {'network': {'id': '591a97f2-f597-4d02-bcb7-41df0d08d004', 'name': 'ctest-vn4-50391875', 'tenant_id': '443b50ad736146a4b651065dd46aeb54', 'project_id': '443b50ad736146a4b651065dd46aeb54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16726812', 'ctest-vn4-50391875'], 'port_security_enabled': True, 'description': ''}} 2026-08-24 17:32:13,662 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9e696c0-5f4a-41ba-a58d-d27b93dd5217', 'name': '', 'tenant_id': '443b50ad736146a4b651065dd46aeb54', 'network_id': '591a97f2-f597-4d02-bcb7-41df0d08d004', 'ip_version': 4, 'cidr': '36.238.197.64/26', 'allocation_pools': [{'start': '36.238.197.66', 'end': '36.238.197.126'}], 'gateway_ip': '36.238.197.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.238.197.66', 'tags': [], 'project_id': '443b50ad736146a4b651065dd46aeb54'}} 2026-08-24 17:32:13,838 - DEBUG - Response for create_subnet : {'subnet': {'id': '62e8fb07-b019-43b5-aa3d-643a10055852', 'name': '', 'tenant_id': '443b50ad736146a4b651065dd46aeb54', 'network_id': '591a97f2-f597-4d02-bcb7-41df0d08d004', 'ip_version': 6, 'cidr': '239c:fa7e:5c4d:f0d1:f6f:f567::/96', 'allocation_pools': [{'start': '239c:fa7e:5c4d:f0d1:f6f:f567:0:2', 'end': '239c:fa7e:5c4d:f0d1:f6f:f567:ffff:fffe'}], 'gateway_ip': '239c:fa7e:5c4d:f0d1:f6f:f567:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '239c:fa7e:5c4d:f0d1:f6f:f567:0:2', 'tags': [], 'project_id': '443b50ad736146a4b651065dd46aeb54'}} 2026-08-24 17:32:13,860 - INFO - Created VN ctest-vn4-50391875 2026-08-24 17:32:13,915 - DEBUG - VN ctest-vn4-50391875 UUID is 591a97f2-f597-4d02-bcb7-41df0d08d004 2026-08-24 17:32:14,123 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '591a97f2-f597-4d02-bcb7-41df0d08d004', 'name': 'ctest-vn4-50391875', 'tenant_id': '443b50ad736146a4b651065dd46aeb54', 'project_id': '443b50ad736146a4b651065dd46aeb54', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f9e696c0-5f4a-41ba-a58d-d27b93dd5217', '62e8fb07-b019-43b5-aa3d-643a10055852'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16726812', 'ctest-vn4-50391875'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16726812', 'ctest-policy1-53650295']], 'subnet_ipam': [{'subnet_cidr': '36.238.197.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '239c:fa7e:5c4d:f0d1:f6f:f567::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-24 17:32:14,287 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-24 17:32:14,609 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-24 17:32:14,635 - DEBUG - Requesting: http://10.0.0.161:8082/domain/86f499ed-8838-419b-b07a-e41db5a473c4 2026-08-24 17:32:14,647 - DEBUG - Requesting: http://10.0.0.161:8082/project/443b50ad-7361-46a4-b651-065dd46aeb54 2026-08-24 17:32:14,729 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/591a97f2-f597-4d02-bcb7-41df0d08d004 2026-08-24 17:32:14,743 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/591a97f2-f597-4d02-bcb7-41df0d08d004 2026-08-24 17:32:14,753 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/594214d2-b41d-479c-905a-c39650dc4c2c 2026-08-24 17:32:14,762 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/594214d2-b41d-479c-905a-c39650dc4c2c 2026-08-24 17:32:14,770 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/1e9b4178-e7d6-41a5-a4a7-0fa6467edd87 2026-08-24 17:32:14,777 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 17:32:14,777 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/591a97f2-f597-4d02-bcb7-41df0d08d004 2026-08-24 17:32:14,788 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/594214d2-b41d-479c-905a-c39650dc4c2c 2026-08-24 17:32:14,803 - INFO - Verified VN network id 11 for VN 591a97f2-f597-4d02-bcb7-41df0d08d004 2026-08-24 17:32:14,803 - INFO - Verifications in API Server for VN ctest-vn4-50391875 passed 2026-08-24 17:32:14,803 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/591a97f2-f597-4d02-bcb7-41df0d08d004 2026-08-24 17:32:14,812 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/594214d2-b41d-479c-905a-c39650dc4c2c 2026-08-24 17:32:14,819 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/594214d2-b41d-479c-905a-c39650dc4c2c 2026-08-24 17:32:14,826 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/1e9b4178-e7d6-41a5-a4a7-0fa6467edd87 2026-08-24 17:32:14,837 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16726812:ctest-vn4-50391875', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16726812', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6420611288528276738', 'uuid-lslong': '13598410026120695812'}, 'enable': 'true', 'created': '2026-08-24T17:32:13', 'last-modified': '2026-08-24T17:32:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.747376'} 2026-08-24 17:32:14,843 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-24 17:32:14,843 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-50391875 passed 2026-08-24 17:32:14,844 - DEBUG - ====Verifying policy data for ctest-vn4-50391875 in API_Server ====== 2026-08-24 17:32:14,844 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-24 17:32:14,850 - DEBUG - Requesting: http://10.0.0.161:8082/domain/86f499ed-8838-419b-b07a-e41db5a473c4 2026-08-24 17:32:14,861 - DEBUG - Requesting: http://10.0.0.161:8082/project/443b50ad-7361-46a4-b651-065dd46aeb54 2026-08-24 17:32:14,937 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/591a97f2-f597-4d02-bcb7-41df0d08d004 2026-08-24 17:32:14,947 - DEBUG - ==>Verifying data for policy with id: 97d09237-b3da-415e-8708-4314169f0b6b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16726812', 'ctest-policy1-53650295'] 2026-08-24 17:32:14,947 - INFO - VN ctest-vn4-50391875 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-24 17:32:14,947 - DEBUG - Verifying the vn in opserver 2026-08-24 17:32:14,947 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16726812:ctest-vn4-50391875 virtual network link through opserver 10.0.0.161 2026-08-24 17:32:14,947 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-08-24 17:32:15,274 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-08-24 17:32:15,328 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16726812:ctest-vn4-50391875', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16726812:ctest-vn4-50391875?flat'} 2026-08-24 17:32:15,328 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16726812:ctest-vn4-50391875 is found in opserver 2026-08-24 17:32:15,339 - DEBUG - Do not have enough data to verify VN in agent 2026-08-24 17:32:15,344 - DEBUG - VRF ids for VN ctest-vn4-50391875: {} 2026-08-24 17:32:15,344 - DEBUG - ====Verifying data for ctest-policy1-53650295 in API_Server ====== 2026-08-24 17:32:15,344 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-24 17:32:15,350 - DEBUG - Requesting: http://10.0.0.161:8082/domain/86f499ed-8838-419b-b07a-e41db5a473c4 2026-08-24 17:32:15,362 - DEBUG - Requesting: http://10.0.0.161:8082/project/443b50ad-7361-46a4-b651-065dd46aeb54 2026-08-24 17:32:15,439 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/97d09237-b3da-415e-8708-4314169f0b6b 2026-08-24 17:32:15,450 - INFO - Verified policy ctest-policy1-53650295 in API Server, Result: True 2026-08-24 17:32:15,450 - INFO - Done with setup and verification, moving onto test .. 2026-08-24 17:32:15,458 - INFO - Deleting VN ctest-vn4-50391875 2026-08-24 17:32:15,582 - DEBUG - Response for deleting network () 2026-08-24 17:32:15,583 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/594214d2-b41d-479c-905a-c39650dc4c2c 2026-08-24 17:32:15,588 - DEBUG - Response Code: 404 2026-08-24 17:32:15,588 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-24 17:32:15,593 - DEBUG - Requesting: http://10.0.0.161:8082/domain/86f499ed-8838-419b-b07a-e41db5a473c4 2026-08-24 17:32:15,648 - DEBUG - Requesting: http://10.0.0.161:8082/project/443b50ad-7361-46a4-b651-065dd46aeb54 2026-08-24 17:32:15,727 - INFO - Validated that VN ctest-vn4-50391875 is not found in API Server 2026-08-24 17:32:15,739 - DEBUG - VN ctest-vn4-50391875 is not present in Agent 10.0.0.161 2026-08-24 17:32:15,739 - INFO - Validated that VN ctest-vn4-50391875 is not in any agent 2026-08-24 17:32:15,756 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-50391875 info 2026-08-24 17:32:15,789 - INFO - Deleted policy ctest-policy1-53650295 2026-08-24 17:32:15,951 - DEBUG - policy ctest-policy1-53650295 is not found in API Server 2026-08-24 17:32:16,209 - DEBUG - No XMPP flaps were noticed during the test 2026-08-24 17:32:16,209 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-24 17:32:16,209 - INFO - -------------------------------------------------------------------------------- 2026-08-24 17:32:16,512 - DEBUG - No XMPP flaps were noticed during the test 2026-08-24 17:32:16,512 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-24 17:32:16,513 - INFO - -------------------------------------------------------------------------------- 2026-08-24 17:32:17,239 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-16726812, ID : 443b50ad-7361-46a4-b651-065dd46aeb54