2025-08-12 17:19:52,798 - INFO - Domain Default found not creating 2025-08-12 17:19:52,925 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-76780384 not found, creating it 2025-08-12 17:19:53,338 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-76780384, ID : 1c186a31-d755-474f-8904-7566fc0daf85 2025-08-12 17:19:54,633 - INFO - ================================================================================ 2025-08-12 17:19:54,633 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 17:19:54,888 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-08-12 17:19:54,888 - INFO - Initial checks done. Running the testcase now 2025-08-12 17:19:54,888 - INFO - 2025-08-12 17:19:54,889 - INFO - ================================================================================ 2025-08-12 17:19:54,889 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 17:19:54,889 - 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. 2025-08-12 17:19:55,188 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-08-12 17:19:55,188 - INFO - Initial checks done. Running the testcase now 2025-08-12 17:19:55,188 - INFO - 2025-08-12 17:19:55,523 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76780384:ctest-vn4-13208605, 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-76780384:ctest-vn4-13208605, 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-76780384:ctest-vn4-13208605, 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-76780384:ctest-vn4-13208605, 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] 2025-08-12 17:19:56,021 - DEBUG - Response for create_network : {'network': {'id': 'b988daea-0221-4002-8340-ae9fb32b463d', 'name': 'ctest-vn4-13208605', 'tenant_id': '1c186a31d755474f89047566fc0daf85', 'project_id': '1c186a31d755474f89047566fc0daf85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76780384', 'ctest-vn4-13208605'], 'port_security_enabled': True, 'description': ''}} 2025-08-12 17:19:56,172 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f389afaf-d1ad-46aa-97e1-283ad106332c', 'name': '', 'tenant_id': '1c186a31d755474f89047566fc0daf85', 'network_id': 'b988daea-0221-4002-8340-ae9fb32b463d', 'ip_version': 4, 'cidr': '94.52.161.128/26', 'allocation_pools': [{'start': '94.52.161.130', 'end': '94.52.161.190'}], 'gateway_ip': '94.52.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.52.161.130', 'tags': [], 'project_id': '1c186a31d755474f89047566fc0daf85'}} 2025-08-12 17:19:56,342 - DEBUG - Response for create_subnet : {'subnet': {'id': '71a43df6-e01f-48be-8538-18fc04a7ef85', 'name': '', 'tenant_id': '1c186a31d755474f89047566fc0daf85', 'network_id': 'b988daea-0221-4002-8340-ae9fb32b463d', 'ip_version': 6, 'cidr': '3b0b:3a26:3a18:2552:d859:9917::/96', 'allocation_pools': [{'start': '3b0b:3a26:3a18:2552:d859:9917:0:2', 'end': '3b0b:3a26:3a18:2552:d859:9917:ffff:fffe'}], 'gateway_ip': '3b0b:3a26:3a18:2552:d859:9917:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b0b:3a26:3a18:2552:d859:9917:0:2', 'tags': [], 'project_id': '1c186a31d755474f89047566fc0daf85'}} 2025-08-12 17:19:56,360 - INFO - Created VN ctest-vn4-13208605 2025-08-12 17:19:56,410 - DEBUG - VN ctest-vn4-13208605 UUID is b988daea-0221-4002-8340-ae9fb32b463d 2025-08-12 17:19:56,584 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b988daea-0221-4002-8340-ae9fb32b463d', 'name': 'ctest-vn4-13208605', 'tenant_id': '1c186a31d755474f89047566fc0daf85', 'project_id': '1c186a31d755474f89047566fc0daf85', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f389afaf-d1ad-46aa-97e1-283ad106332c', '71a43df6-e01f-48be-8538-18fc04a7ef85'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76780384', 'ctest-vn4-13208605'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76780384', 'ctest-policy1-17739587']], 'subnet_ipam': [{'subnet_cidr': '94.52.161.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b0b:3a26:3a18:2552:d859:9917::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-12 17:19:56,743 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 17:19:57,032 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 17:19:57,056 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43 2025-08-12 17:19:57,068 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c186a31-d755-474f-8904-7566fc0daf85 2025-08-12 17:19:57,139 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b988daea-0221-4002-8340-ae9fb32b463d 2025-08-12 17:19:57,151 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b988daea-0221-4002-8340-ae9fb32b463d 2025-08-12 17:19:57,161 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/afb2ddf6-9dfc-46ae-8669-8d479df5d48f 2025-08-12 17:19:57,167 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/afb2ddf6-9dfc-46ae-8669-8d479df5d48f 2025-08-12 17:19:57,172 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a837c195-a374-4e75-8bf4-96ec66a66ba6 2025-08-12 17:19:57,178 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 17:19:57,179 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b988daea-0221-4002-8340-ae9fb32b463d 2025-08-12 17:19:57,187 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/afb2ddf6-9dfc-46ae-8669-8d479df5d48f 2025-08-12 17:19:57,199 - INFO - Verified VN network id 11 for VN b988daea-0221-4002-8340-ae9fb32b463d 2025-08-12 17:19:57,199 - INFO - Verifications in API Server for VN ctest-vn4-13208605 passed 2025-08-12 17:19:57,200 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b988daea-0221-4002-8340-ae9fb32b463d 2025-08-12 17:19:57,210 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/afb2ddf6-9dfc-46ae-8669-8d479df5d48f 2025-08-12 17:19:57,215 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/afb2ddf6-9dfc-46ae-8669-8d479df5d48f 2025-08-12 17:19:57,221 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a837c195-a374-4e75-8bf4-96ec66a66ba6 2025-08-12 17:19:57,232 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76780384:ctest-vn4-13208605', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-76780384', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13369176192442253314', 'uuid-lslong': '9457751218407032381'}, 'enable': 'true', 'created': '2025-08-12T17:19:55', 'last-modified': '2025-08-12T17:19:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.678007'} 2025-08-12 17:19:57,240 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 17:19:57,241 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13208605 passed 2025-08-12 17:19:57,241 - DEBUG - ====Verifying policy data for ctest-vn4-13208605 in API_Server ====== 2025-08-12 17:19:57,241 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 17:19:57,245 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43 2025-08-12 17:19:57,255 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c186a31-d755-474f-8904-7566fc0daf85 2025-08-12 17:19:57,325 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b988daea-0221-4002-8340-ae9fb32b463d 2025-08-12 17:19:57,335 - DEBUG - ==>Verifying data for policy with id: 3ab28627-1131-40e7-bcde-9672f52b3516, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76780384', 'ctest-policy1-17739587'] 2025-08-12 17:19:57,335 - INFO - VN ctest-vn4-13208605 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-12 17:19:57,335 - DEBUG - Verifying the vn in opserver 2025-08-12 17:19:57,335 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76780384:ctest-vn4-13208605 virtual network link through opserver 10.0.0.254 2025-08-12 17:19:57,335 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-12 17:19:57,622 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-12 17:19:57,669 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76780384:ctest-vn4-13208605', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76780384:ctest-vn4-13208605?flat'} 2025-08-12 17:19:57,669 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76780384:ctest-vn4-13208605 is found in opserver 2025-08-12 17:19:57,679 - DEBUG - Do not have enough data to verify VN in agent 2025-08-12 17:19:57,684 - DEBUG - VRF ids for VN ctest-vn4-13208605: {} 2025-08-12 17:19:57,684 - DEBUG - ====Verifying data for ctest-policy1-17739587 in API_Server ====== 2025-08-12 17:19:57,684 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 17:19:57,689 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43 2025-08-12 17:19:57,700 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c186a31-d755-474f-8904-7566fc0daf85 2025-08-12 17:19:57,774 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/3ab28627-1131-40e7-bcde-9672f52b3516 2025-08-12 17:19:57,785 - INFO - Verified policy ctest-policy1-17739587 in API Server, Result: True 2025-08-12 17:19:57,785 - INFO - Done with setup and verification, moving onto test .. 2025-08-12 17:19:57,792 - INFO - Deleting VN ctest-vn4-13208605 2025-08-12 17:19:57,899 - DEBUG - Response for deleting network () 2025-08-12 17:19:57,900 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/afb2ddf6-9dfc-46ae-8669-8d479df5d48f 2025-08-12 17:19:57,904 - DEBUG - Response Code: 404 2025-08-12 17:19:57,904 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-12 17:19:57,909 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b01152c3-6f33-419c-850c-8b041f7f2d43 2025-08-12 17:19:57,959 - DEBUG - Requesting: http://10.0.0.254:8082/project/1c186a31-d755-474f-8904-7566fc0daf85 2025-08-12 17:19:58,027 - INFO - Validated that VN ctest-vn4-13208605 is not found in API Server 2025-08-12 17:19:58,037 - DEBUG - VN ctest-vn4-13208605 is not present in Agent 10.0.0.254 2025-08-12 17:19:58,037 - INFO - Validated that VN ctest-vn4-13208605 is not in any agent 2025-08-12 17:19:58,051 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13208605 info 2025-08-12 17:19:58,076 - INFO - Deleted policy ctest-policy1-17739587 2025-08-12 17:19:58,234 - DEBUG - policy ctest-policy1-17739587 is not found in API Server 2025-08-12 17:19:58,488 - DEBUG - No XMPP flaps were noticed during the test
2025-08-12 17:19:58,488 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-12 17:19:58,488 - INFO - -------------------------------------------------------------------------------- 2025-08-12 17:19:58,772 - DEBUG - No XMPP flaps were noticed during the test
2025-08-12 17:19:58,772 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-12 17:19:58,772 - INFO - -------------------------------------------------------------------------------- 2025-08-12 17:19:59,404 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-76780384, ID : 1c186a31-d755-474f-8904-7566fc0daf85