2025-10-09 14:08:15,639 - INFO - Domain Default found not creating 2025-10-09 14:08:15,806 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-89068348 not found, creating it 2025-10-09 14:08:16,304 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-89068348, ID : 1d0b163b-07eb-48ed-9a21-f77d15c70ea2 2025-10-09 14:08:17,920 - INFO - ================================================================================ 2025-10-09 14:08:17,920 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 14:08:18,180 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-10-09 14:08:18,180 - INFO - Initial checks done. Running the testcase now 2025-10-09 14:08:18,180 - INFO - 2025-10-09 14:08:18,180 - INFO - ================================================================================ 2025-10-09 14:08:18,180 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 14:08:18,181 - 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-10-09 14:08:18,497 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-10-09 14:08:18,497 - INFO - Initial checks done. Running the testcase now 2025-10-09 14:08:18,497 - INFO - 2025-10-09 14:08:18,871 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89068348:ctest-vn4-80571691, 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-89068348:ctest-vn4-80571691, 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-89068348:ctest-vn4-80571691, 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-89068348:ctest-vn4-80571691, 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-10-09 14:08:19,445 - DEBUG - Response for create_network : {'network': {'id': 'b56e3c17-1175-40e0-b994-75de03e011d4', 'name': 'ctest-vn4-80571691', 'tenant_id': '1d0b163b07eb48ed9a21f77d15c70ea2', 'project_id': '1d0b163b07eb48ed9a21f77d15c70ea2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89068348', 'ctest-vn4-80571691'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 14:08:19,629 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e852abad-5d55-4a52-85fc-38673bdd10b3', 'name': '', 'tenant_id': '1d0b163b07eb48ed9a21f77d15c70ea2', 'network_id': 'b56e3c17-1175-40e0-b994-75de03e011d4', 'ip_version': 4, 'cidr': '14.225.132.0/26', 'allocation_pools': [{'start': '14.225.132.2', 'end': '14.225.132.62'}], 'gateway_ip': '14.225.132.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.225.132.2', 'tags': [], 'project_id': '1d0b163b07eb48ed9a21f77d15c70ea2'}} 2025-10-09 14:08:19,809 - DEBUG - Response for create_subnet : {'subnet': {'id': '7948e46b-f87b-431d-8273-6c5e656e4fd6', 'name': '', 'tenant_id': '1d0b163b07eb48ed9a21f77d15c70ea2', 'network_id': 'b56e3c17-1175-40e0-b994-75de03e011d4', 'ip_version': 6, 'cidr': '365c:9b33:a30d:2941:95bf:face::/96', 'allocation_pools': [{'start': '365c:9b33:a30d:2941:95bf:face:0:2', 'end': '365c:9b33:a30d:2941:95bf:face:ffff:fffe'}], 'gateway_ip': '365c:9b33:a30d:2941:95bf:face:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '365c:9b33:a30d:2941:95bf:face:0:2', 'tags': [], 'project_id': '1d0b163b07eb48ed9a21f77d15c70ea2'}} 2025-10-09 14:08:19,831 - INFO - Created VN ctest-vn4-80571691 2025-10-09 14:08:19,884 - DEBUG - VN ctest-vn4-80571691 UUID is b56e3c17-1175-40e0-b994-75de03e011d4 2025-10-09 14:08:20,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b56e3c17-1175-40e0-b994-75de03e011d4', 'name': 'ctest-vn4-80571691', 'tenant_id': '1d0b163b07eb48ed9a21f77d15c70ea2', 'project_id': '1d0b163b07eb48ed9a21f77d15c70ea2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e852abad-5d55-4a52-85fc-38673bdd10b3', '7948e46b-f87b-431d-8273-6c5e656e4fd6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89068348', 'ctest-vn4-80571691'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89068348', 'ctest-policy1-30810252']], 'subnet_ipam': [{'subnet_cidr': '14.225.132.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '365c:9b33:a30d:2941:95bf:face::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 14:08:20,276 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-09 14:08:20,583 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-09 14:08:20,617 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4 2025-10-09 14:08:20,629 - DEBUG - Requesting: http://10.0.0.27:8082/project/1d0b163b-07eb-48ed-9a21-f77d15c70ea2 2025-10-09 14:08:20,726 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b56e3c17-1175-40e0-b994-75de03e011d4 2025-10-09 14:08:20,740 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b56e3c17-1175-40e0-b994-75de03e011d4 2025-10-09 14:08:20,751 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/50d23f2e-8217-46aa-9881-9fc6064b865a 2025-10-09 14:08:20,760 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/50d23f2e-8217-46aa-9881-9fc6064b865a 2025-10-09 14:08:20,770 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/e64ad0ad-768a-4ee5-b978-994321e2a944 2025-10-09 14:08:20,778 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 14:08:20,778 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b56e3c17-1175-40e0-b994-75de03e011d4 2025-10-09 14:08:20,791 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/50d23f2e-8217-46aa-9881-9fc6064b865a 2025-10-09 14:08:20,808 - INFO - Verified VN network id 11 for VN b56e3c17-1175-40e0-b994-75de03e011d4 2025-10-09 14:08:20,808 - INFO - Verifications in API Server for VN ctest-vn4-80571691 passed 2025-10-09 14:08:20,808 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b56e3c17-1175-40e0-b994-75de03e011d4 2025-10-09 14:08:20,820 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/50d23f2e-8217-46aa-9881-9fc6064b865a 2025-10-09 14:08:20,828 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/50d23f2e-8217-46aa-9881-9fc6064b865a 2025-10-09 14:08:20,837 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/e64ad0ad-768a-4ee5-b978-994321e2a944 2025-10-09 14:08:20,849 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89068348:ctest-vn4-80571691', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-89068348', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13073452838077939936', 'uuid-lslong': '13372442789978051028'}, 'enable': 'true', 'created': '2025-10-09T14:08:19', 'last-modified': '2025-10-09T14:08:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778271'} 2025-10-09 14:08:20,856 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 14:08:20,856 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-80571691 passed 2025-10-09 14:08:20,857 - DEBUG - ====Verifying policy data for ctest-vn4-80571691 in API_Server ====== 2025-10-09 14:08:20,857 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-09 14:08:20,863 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4 2025-10-09 14:08:20,874 - DEBUG - Requesting: http://10.0.0.27:8082/project/1d0b163b-07eb-48ed-9a21-f77d15c70ea2 2025-10-09 14:08:20,957 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b56e3c17-1175-40e0-b994-75de03e011d4 2025-10-09 14:08:20,968 - DEBUG - ==>Verifying data for policy with id: bf42e65a-6393-4e16-90bc-0d99340775c0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89068348', 'ctest-policy1-30810252'] 2025-10-09 14:08:20,968 - INFO - VN ctest-vn4-80571691 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 14:08:20,968 - DEBUG - Verifying the vn in opserver 2025-10-09 14:08:20,968 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89068348:ctest-vn4-80571691 virtual network link through opserver 10.0.0.27 2025-10-09 14:08:20,968 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-09 14:08:21,264 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-09 14:08:21,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89068348:ctest-vn4-80571691', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89068348:ctest-vn4-80571691?flat'} 2025-10-09 14:08:21,323 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-89068348:ctest-vn4-80571691 is found in opserver 2025-10-09 14:08:21,335 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 14:08:21,342 - DEBUG - VRF ids for VN ctest-vn4-80571691: {} 2025-10-09 14:08:21,343 - DEBUG - ====Verifying data for ctest-policy1-30810252 in API_Server ====== 2025-10-09 14:08:21,343 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-09 14:08:21,350 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4 2025-10-09 14:08:21,364 - DEBUG - Requesting: http://10.0.0.27:8082/project/1d0b163b-07eb-48ed-9a21-f77d15c70ea2 2025-10-09 14:08:21,450 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/bf42e65a-6393-4e16-90bc-0d99340775c0 2025-10-09 14:08:21,460 - INFO - Verified policy ctest-policy1-30810252 in API Server, Result: True 2025-10-09 14:08:21,461 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 14:08:21,469 - INFO - Deleting VN ctest-vn4-80571691 2025-10-09 14:08:21,601 - DEBUG - Response for deleting network () 2025-10-09 14:08:21,601 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/50d23f2e-8217-46aa-9881-9fc6064b865a 2025-10-09 14:08:21,609 - DEBUG - Response Code: 404 2025-10-09 14:08:21,609 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-09 14:08:21,616 - DEBUG - Requesting: http://10.0.0.27:8082/domain/fc5ea74f-f795-4d55-a6d1-f2f95952c4e4 2025-10-09 14:08:21,671 - DEBUG - Requesting: http://10.0.0.27:8082/project/1d0b163b-07eb-48ed-9a21-f77d15c70ea2 2025-10-09 14:08:21,752 - INFO - Validated that VN ctest-vn4-80571691 is not found in API Server 2025-10-09 14:08:21,765 - DEBUG - VN ctest-vn4-80571691 is not present in Agent 10.0.0.27 2025-10-09 14:08:21,765 - INFO - Validated that VN ctest-vn4-80571691 is not in any agent 2025-10-09 14:08:21,782 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-80571691 info 2025-10-09 14:08:21,812 - INFO - Deleted policy ctest-policy1-30810252 2025-10-09 14:08:21,984 - DEBUG - policy ctest-policy1-30810252 is not found in API Server 2025-10-09 14:08:22,246 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 14:08:22,246 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-09 14:08:22,246 - INFO - -------------------------------------------------------------------------------- 2025-10-09 14:08:22,538 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 14:08:22,538 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-09 14:08:22,538 - INFO - -------------------------------------------------------------------------------- 2025-10-09 14:08:23,274 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-89068348, ID : 1d0b163b-07eb-48ed-9a21-f77d15c70ea2