2026-05-14 13:38:23,142 - INFO - Domain Default found not creating 2026-05-14 13:38:23,346 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71788225 not found, creating it 2026-05-14 13:38:23,843 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71788225, ID : ac1770e8-0d0a-4ebb-88d0-6447b60e9379 2026-05-14 13:38:25,361 - INFO - ================================================================================ 2026-05-14 13:38:25,361 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-14 13:38:25,619 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-05-14 13:38:25,619 - INFO - Initial checks done. Running the testcase now 2026-05-14 13:38:25,619 - INFO - 2026-05-14 13:38:25,619 - INFO - ================================================================================ 2026-05-14 13:38:25,619 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-14 13:38:25,619 - 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-05-14 13:38:25,908 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-05-14 13:38:25,908 - INFO - Initial checks done. Running the testcase now 2026-05-14 13:38:25,908 - INFO - 2026-05-14 13:38:26,272 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71788225:ctest-vn4-67860116, 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-71788225:ctest-vn4-67860116, 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-71788225:ctest-vn4-67860116, 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-71788225:ctest-vn4-67860116, 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-05-14 13:38:26,816 - DEBUG - Response for create_network : {'network': {'id': '32fc7488-0139-48d4-99b7-afa264ccfd6b', 'name': 'ctest-vn4-67860116', 'tenant_id': 'ac1770e80d0a4ebb88d06447b60e9379', 'project_id': 'ac1770e80d0a4ebb88d06447b60e9379', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71788225', 'ctest-vn4-67860116'], 'port_security_enabled': True, 'description': ''}} 2026-05-14 13:38:27,033 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b3b6864-8dc0-4c29-9c55-228484edadd8', 'name': '', 'tenant_id': 'ac1770e80d0a4ebb88d06447b60e9379', 'network_id': '32fc7488-0139-48d4-99b7-afa264ccfd6b', 'ip_version': 4, 'cidr': '36.8.42.192/26', 'allocation_pools': [{'start': '36.8.42.194', 'end': '36.8.42.254'}], 'gateway_ip': '36.8.42.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.8.42.194', 'tags': [], 'project_id': 'ac1770e80d0a4ebb88d06447b60e9379'}} 2026-05-14 13:38:27,251 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d4b5db2-e971-4402-bd12-0f628959cc83', 'name': '', 'tenant_id': 'ac1770e80d0a4ebb88d06447b60e9379', 'network_id': '32fc7488-0139-48d4-99b7-afa264ccfd6b', 'ip_version': 6, 'cidr': '3976:6043:a540:1962:164f:582d::/96', 'allocation_pools': [{'start': '3976:6043:a540:1962:164f:582d:0:2', 'end': '3976:6043:a540:1962:164f:582d:ffff:fffe'}], 'gateway_ip': '3976:6043:a540:1962:164f:582d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3976:6043:a540:1962:164f:582d:0:2', 'tags': [], 'project_id': 'ac1770e80d0a4ebb88d06447b60e9379'}} 2026-05-14 13:38:27,273 - INFO - Created VN ctest-vn4-67860116 2026-05-14 13:38:27,325 - DEBUG - VN ctest-vn4-67860116 UUID is 32fc7488-0139-48d4-99b7-afa264ccfd6b 2026-05-14 13:38:27,534 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '32fc7488-0139-48d4-99b7-afa264ccfd6b', 'name': 'ctest-vn4-67860116', 'tenant_id': 'ac1770e80d0a4ebb88d06447b60e9379', 'project_id': 'ac1770e80d0a4ebb88d06447b60e9379', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b3b6864-8dc0-4c29-9c55-228484edadd8', '4d4b5db2-e971-4402-bd12-0f628959cc83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71788225', 'ctest-vn4-67860116'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71788225', 'ctest-policy1-11741884']], 'subnet_ipam': [{'subnet_cidr': '36.8.42.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3976:6043:a540:1962:164f:582d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-14 13:38:27,693 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 13:38:27,987 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 13:38:28,021 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29a28108-8ebc-4845-b7b3-3d2c2dc49465 2026-05-14 13:38:28,035 - DEBUG - Requesting: http://10.0.0.50:8082/project/ac1770e8-0d0a-4ebb-88d0-6447b60e9379 2026-05-14 13:38:28,108 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32fc7488-0139-48d4-99b7-afa264ccfd6b 2026-05-14 13:38:28,119 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32fc7488-0139-48d4-99b7-afa264ccfd6b 2026-05-14 13:38:28,129 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50009a41-f720-4daa-b8bb-228c4fb8c748 2026-05-14 13:38:28,137 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50009a41-f720-4daa-b8bb-228c4fb8c748 2026-05-14 13:38:28,145 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cc89967f-6e12-498b-80b8-5966e0360d95 2026-05-14 13:38:28,152 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 13:38:28,152 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32fc7488-0139-48d4-99b7-afa264ccfd6b 2026-05-14 13:38:28,163 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50009a41-f720-4daa-b8bb-228c4fb8c748 2026-05-14 13:38:28,180 - INFO - Verified VN network id 11 for VN 32fc7488-0139-48d4-99b7-afa264ccfd6b 2026-05-14 13:38:28,180 - INFO - Verifications in API Server for VN ctest-vn4-67860116 passed 2026-05-14 13:38:28,180 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32fc7488-0139-48d4-99b7-afa264ccfd6b 2026-05-14 13:38:28,191 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50009a41-f720-4daa-b8bb-228c4fb8c748 2026-05-14 13:38:28,200 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50009a41-f720-4daa-b8bb-228c4fb8c748 2026-05-14 13:38:28,209 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cc89967f-6e12-498b-80b8-5966e0360d95 2026-05-14 13:38:28,223 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71788225:ctest-vn4-67860116', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71788225', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3673939523512387796', 'uuid-lslong': '11076514920551742827'}, 'enable': 'true', 'created': '2026-05-14T13:38:26', 'last-modified': '2026-05-14T13:38:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715529'} 2026-05-14 13:38:28,229 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-14 13:38:28,229 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67860116 passed 2026-05-14 13:38:28,230 - DEBUG - ====Verifying policy data for ctest-vn4-67860116 in API_Server ====== 2026-05-14 13:38:28,230 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 13:38:28,236 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29a28108-8ebc-4845-b7b3-3d2c2dc49465 2026-05-14 13:38:28,251 - DEBUG - Requesting: http://10.0.0.50:8082/project/ac1770e8-0d0a-4ebb-88d0-6447b60e9379 2026-05-14 13:38:28,323 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/32fc7488-0139-48d4-99b7-afa264ccfd6b 2026-05-14 13:38:28,334 - DEBUG - ==>Verifying data for policy with id: 1429e177-ed3f-4795-8203-ab2d8f94fde9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71788225', 'ctest-policy1-11741884'] 2026-05-14 13:38:28,334 - INFO - VN ctest-vn4-67860116 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-14 13:38:28,334 - DEBUG - Verifying the vn in opserver 2026-05-14 13:38:28,334 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71788225:ctest-vn4-67860116 virtual network link through opserver 10.0.0.50 2026-05-14 13:38:28,334 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-14 13:38:28,628 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-14 13:38:28,695 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71788225:ctest-vn4-67860116', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71788225:ctest-vn4-67860116?flat'} 2026-05-14 13:38:28,695 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71788225:ctest-vn4-67860116 is found in opserver 2026-05-14 13:38:28,706 - DEBUG - Do not have enough data to verify VN in agent 2026-05-14 13:38:28,711 - DEBUG - VRF ids for VN ctest-vn4-67860116: {} 2026-05-14 13:38:28,712 - DEBUG - ====Verifying data for ctest-policy1-11741884 in API_Server ====== 2026-05-14 13:38:28,712 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 13:38:28,718 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29a28108-8ebc-4845-b7b3-3d2c2dc49465 2026-05-14 13:38:28,731 - DEBUG - Requesting: http://10.0.0.50:8082/project/ac1770e8-0d0a-4ebb-88d0-6447b60e9379 2026-05-14 13:38:28,801 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/1429e177-ed3f-4795-8203-ab2d8f94fde9 2026-05-14 13:38:28,810 - INFO - Verified policy ctest-policy1-11741884 in API Server, Result: True 2026-05-14 13:38:28,810 - INFO - Done with setup and verification, moving onto test .. 2026-05-14 13:38:28,817 - INFO - Deleting VN ctest-vn4-67860116 2026-05-14 13:38:28,936 - DEBUG - Response for deleting network () 2026-05-14 13:38:28,936 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/50009a41-f720-4daa-b8bb-228c4fb8c748 2026-05-14 13:38:28,941 - DEBUG - Response Code: 404 2026-05-14 13:38:28,941 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-14 13:38:28,947 - DEBUG - Requesting: http://10.0.0.50:8082/domain/29a28108-8ebc-4845-b7b3-3d2c2dc49465 2026-05-14 13:38:28,998 - DEBUG - Requesting: http://10.0.0.50:8082/project/ac1770e8-0d0a-4ebb-88d0-6447b60e9379 2026-05-14 13:38:29,070 - INFO - Validated that VN ctest-vn4-67860116 is not found in API Server 2026-05-14 13:38:29,080 - DEBUG - VN ctest-vn4-67860116 is not present in Agent 10.0.0.50 2026-05-14 13:38:29,080 - INFO - Validated that VN ctest-vn4-67860116 is not in any agent 2026-05-14 13:38:29,096 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67860116 info 2026-05-14 13:38:29,126 - INFO - Deleted policy ctest-policy1-11741884 2026-05-14 13:38:29,289 - DEBUG - policy ctest-policy1-11741884 is not found in API Server 2026-05-14 13:38:29,544 - DEBUG - No XMPP flaps were noticed during the test
2026-05-14 13:38:29,544 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-14 13:38:29,545 - INFO - -------------------------------------------------------------------------------- 2026-05-14 13:38:29,835 - DEBUG - No XMPP flaps were noticed during the test
2026-05-14 13:38:29,835 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-14 13:38:29,836 - INFO - -------------------------------------------------------------------------------- 2026-05-14 13:38:30,564 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-71788225, ID : ac1770e8-0d0a-4ebb-88d0-6447b60e9379