2026-04-20 16:30:00,194 - INFO - Domain Default found not creating 2026-04-20 16:30:00,376 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-08120824 not found, creating it 2026-04-20 16:30:00,835 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-08120824, ID : 0065fa84-7cca-4761-9be4-4e0e792a728c 2026-04-20 16:30:02,419 - INFO - ================================================================================ 2026-04-20 16:30:02,419 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 16:30:02,676 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-04-20 16:30:02,676 - INFO - Initial checks done. Running the testcase now 2026-04-20 16:30:02,676 - INFO - 2026-04-20 16:30:02,676 - INFO - ================================================================================ 2026-04-20 16:30:02,676 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 16:30:02,676 - 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-04-20 16:30:02,970 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-04-20 16:30:02,970 - INFO - Initial checks done. Running the testcase now 2026-04-20 16:30:02,970 - INFO - 2026-04-20 16:30:03,334 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08120824:ctest-vn4-47162976, 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-08120824:ctest-vn4-47162976, 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-08120824:ctest-vn4-47162976, 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-08120824:ctest-vn4-47162976, 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-04-20 16:30:03,849 - DEBUG - Response for create_network : {'network': {'id': '6e1a0577-f869-4808-9771-be118419010d', 'name': 'ctest-vn4-47162976', 'tenant_id': '0065fa847cca47619be44e0e792a728c', 'project_id': '0065fa847cca47619be44e0e792a728c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08120824', 'ctest-vn4-47162976'], 'port_security_enabled': True, 'description': ''}} 2026-04-20 16:30:04,026 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ccdbaefc-2286-4820-a768-be1ccf2995e2', 'name': '', 'tenant_id': '0065fa847cca47619be44e0e792a728c', 'network_id': '6e1a0577-f869-4808-9771-be118419010d', 'ip_version': 4, 'cidr': '194.175.188.128/26', 'allocation_pools': [{'start': '194.175.188.130', 'end': '194.175.188.190'}], 'gateway_ip': '194.175.188.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.175.188.130', 'tags': [], 'project_id': '0065fa847cca47619be44e0e792a728c'}} 2026-04-20 16:30:04,202 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a0d44c1-1769-49d6-b841-38b68a6b2508', 'name': '', 'tenant_id': '0065fa847cca47619be44e0e792a728c', 'network_id': '6e1a0577-f869-4808-9771-be118419010d', 'ip_version': 6, 'cidr': '26c2:839b:8b21:6580:7863:6aad::/96', 'allocation_pools': [{'start': '26c2:839b:8b21:6580:7863:6aad:0:2', 'end': '26c2:839b:8b21:6580:7863:6aad:ffff:fffe'}], 'gateway_ip': '26c2:839b:8b21:6580:7863:6aad:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26c2:839b:8b21:6580:7863:6aad:0:2', 'tags': [], 'project_id': '0065fa847cca47619be44e0e792a728c'}} 2026-04-20 16:30:04,245 - INFO - Created VN ctest-vn4-47162976 2026-04-20 16:30:04,298 - DEBUG - VN ctest-vn4-47162976 UUID is 6e1a0577-f869-4808-9771-be118419010d 2026-04-20 16:30:04,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e1a0577-f869-4808-9771-be118419010d', 'name': 'ctest-vn4-47162976', 'tenant_id': '0065fa847cca47619be44e0e792a728c', 'project_id': '0065fa847cca47619be44e0e792a728c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ccdbaefc-2286-4820-a768-be1ccf2995e2', '3a0d44c1-1769-49d6-b841-38b68a6b2508'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08120824', 'ctest-vn4-47162976'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08120824', 'ctest-policy1-70575361']], 'subnet_ipam': [{'subnet_cidr': '194.175.188.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '26c2:839b:8b21:6580:7863:6aad::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-20 16:30:04,658 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-04-20 16:30:04,955 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-04-20 16:30:04,989 - DEBUG - Requesting: http://10.0.0.19:8082/domain/705a8a99-d10b-4854-847a-53154751ccd6 2026-04-20 16:30:05,000 - DEBUG - Requesting: http://10.0.0.19:8082/project/0065fa84-7cca-4761-9be4-4e0e792a728c 2026-04-20 16:30:05,076 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6e1a0577-f869-4808-9771-be118419010d 2026-04-20 16:30:05,088 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6e1a0577-f869-4808-9771-be118419010d 2026-04-20 16:30:05,097 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/77cdf1ff-04d6-4dac-8d9b-779c8b318d41 2026-04-20 16:30:05,104 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/77cdf1ff-04d6-4dac-8d9b-779c8b318d41 2026-04-20 16:30:05,110 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/25b92234-b079-47bb-b15a-13e3f6031c72 2026-04-20 16:30:05,116 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 16:30:05,116 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6e1a0577-f869-4808-9771-be118419010d 2026-04-20 16:30:05,125 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/77cdf1ff-04d6-4dac-8d9b-779c8b318d41 2026-04-20 16:30:05,138 - INFO - Verified VN network id 11 for VN 6e1a0577-f869-4808-9771-be118419010d 2026-04-20 16:30:05,138 - INFO - Verifications in API Server for VN ctest-vn4-47162976 passed 2026-04-20 16:30:05,139 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6e1a0577-f869-4808-9771-be118419010d 2026-04-20 16:30:05,147 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/77cdf1ff-04d6-4dac-8d9b-779c8b318d41 2026-04-20 16:30:05,153 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/77cdf1ff-04d6-4dac-8d9b-779c8b318d41 2026-04-20 16:30:05,159 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/25b92234-b079-47bb-b15a-13e3f6031c72 2026-04-20 16:30:05,169 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08120824:ctest-vn4-47162976', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-08120824', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7933659706393446408', 'uuid-lslong': '10912712354535375117'}, 'enable': 'true', 'created': '2026-04-20T16:30:03', 'last-modified': '2026-04-20T16:30:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.700214'} 2026-04-20 16:30:05,175 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 16:30:05,175 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47162976 passed 2026-04-20 16:30:05,176 - DEBUG - ====Verifying policy data for ctest-vn4-47162976 in API_Server ====== 2026-04-20 16:30:05,176 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-04-20 16:30:05,181 - DEBUG - Requesting: http://10.0.0.19:8082/domain/705a8a99-d10b-4854-847a-53154751ccd6 2026-04-20 16:30:05,193 - DEBUG - Requesting: http://10.0.0.19:8082/project/0065fa84-7cca-4761-9be4-4e0e792a728c 2026-04-20 16:30:05,265 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6e1a0577-f869-4808-9771-be118419010d 2026-04-20 16:30:05,274 - DEBUG - ==>Verifying data for policy with id: 8d1f8460-ed64-459b-ad2f-0958621e84f8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08120824', 'ctest-policy1-70575361'] 2026-04-20 16:30:05,274 - INFO - VN ctest-vn4-47162976 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-20 16:30:05,274 - DEBUG - Verifying the vn in opserver 2026-04-20 16:30:05,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08120824:ctest-vn4-47162976 virtual network link through opserver 10.0.0.19 2026-04-20 16:30:05,274 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-04-20 16:30:05,568 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-04-20 16:30:05,635 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08120824:ctest-vn4-47162976', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08120824:ctest-vn4-47162976?flat'} 2026-04-20 16:30:05,635 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08120824:ctest-vn4-47162976 is found in opserver 2026-04-20 16:30:05,644 - DEBUG - Do not have enough data to verify VN in agent 2026-04-20 16:30:05,648 - DEBUG - VRF ids for VN ctest-vn4-47162976: {} 2026-04-20 16:30:05,648 - DEBUG - ====Verifying data for ctest-policy1-70575361 in API_Server ====== 2026-04-20 16:30:05,648 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-04-20 16:30:05,653 - DEBUG - Requesting: http://10.0.0.19:8082/domain/705a8a99-d10b-4854-847a-53154751ccd6 2026-04-20 16:30:05,665 - DEBUG - Requesting: http://10.0.0.19:8082/project/0065fa84-7cca-4761-9be4-4e0e792a728c 2026-04-20 16:30:05,736 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/8d1f8460-ed64-459b-ad2f-0958621e84f8 2026-04-20 16:30:05,744 - INFO - Verified policy ctest-policy1-70575361 in API Server, Result: True 2026-04-20 16:30:05,744 - INFO - Done with setup and verification, moving onto test .. 2026-04-20 16:30:05,753 - INFO - Deleting VN ctest-vn4-47162976 2026-04-20 16:30:05,871 - DEBUG - Response for deleting network () 2026-04-20 16:30:05,871 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/77cdf1ff-04d6-4dac-8d9b-779c8b318d41 2026-04-20 16:30:05,876 - DEBUG - Response Code: 404 2026-04-20 16:30:05,876 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-04-20 16:30:05,882 - DEBUG - Requesting: http://10.0.0.19:8082/domain/705a8a99-d10b-4854-847a-53154751ccd6 2026-04-20 16:30:05,934 - DEBUG - Requesting: http://10.0.0.19:8082/project/0065fa84-7cca-4761-9be4-4e0e792a728c 2026-04-20 16:30:06,005 - INFO - Validated that VN ctest-vn4-47162976 is not found in API Server 2026-04-20 16:30:06,014 - DEBUG - VN ctest-vn4-47162976 is not present in Agent 10.0.0.19 2026-04-20 16:30:06,014 - INFO - Validated that VN ctest-vn4-47162976 is not in any agent 2026-04-20 16:30:06,026 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47162976 info 2026-04-20 16:30:06,062 - INFO - Deleted policy ctest-policy1-70575361 2026-04-20 16:30:06,230 - DEBUG - policy ctest-policy1-70575361 is not found in API Server 2026-04-20 16:30:06,484 - DEBUG - No XMPP flaps were noticed during the test 2026-04-20 16:30:06,484 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-20 16:30:06,484 - INFO - -------------------------------------------------------------------------------- 2026-04-20 16:30:06,770 - DEBUG - No XMPP flaps were noticed during the test 2026-04-20 16:30:06,770 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-20 16:30:06,771 - INFO - -------------------------------------------------------------------------------- 2026-04-20 16:30:07,442 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-08120824, ID : 0065fa84-7cca-4761-9be4-4e0e792a728c