2025-08-20 15:56:53,431 - INFO - Domain Default found not creating 2025-08-20 15:56:53,560 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33508300 not found, creating it 2025-08-20 15:56:54,022 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33508300, ID : 12ba392a-d1fd-4f83-9a12-f80e68c7edba 2025-08-20 15:56:55,375 - INFO - ================================================================================ 2025-08-20 15:56:55,376 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 15:56:55,632 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-08-20 15:56:55,633 - INFO - Initial checks done. Running the testcase now 2025-08-20 15:56:55,633 - INFO - 2025-08-20 15:56:55,633 - INFO - ================================================================================ 2025-08-20 15:56:55,633 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 15:56:55,633 - 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-20 15:56:55,919 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with 2025-08-20 15:56:55,919 - INFO - Initial checks done. Running the testcase now 2025-08-20 15:56:55,919 - INFO - 2025-08-20 15:56:56,260 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33508300:ctest-vn4-14848103, 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-33508300:ctest-vn4-14848103, 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-33508300:ctest-vn4-14848103, 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-33508300:ctest-vn4-14848103, 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-20 15:56:56,756 - DEBUG - Response for create_network : {'network': {'id': 'f5f693bd-bd86-4b02-95ae-b0f702727c9d', 'name': 'ctest-vn4-14848103', 'tenant_id': '12ba392ad1fd4f839a12f80e68c7edba', 'project_id': '12ba392ad1fd4f839a12f80e68c7edba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33508300', 'ctest-vn4-14848103'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 15:56:56,955 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c94e071-53b3-4268-82b8-7f0c40ad6fd8', 'name': '', 'tenant_id': '12ba392ad1fd4f839a12f80e68c7edba', 'network_id': 'f5f693bd-bd86-4b02-95ae-b0f702727c9d', 'ip_version': 4, 'cidr': '93.100.45.0/26', 'allocation_pools': [{'start': '93.100.45.2', 'end': '93.100.45.62'}], 'gateway_ip': '93.100.45.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.100.45.2', 'tags': [], 'project_id': '12ba392ad1fd4f839a12f80e68c7edba'}} 2025-08-20 15:56:57,157 - DEBUG - Response for create_subnet : {'subnet': {'id': '6db19f30-57e5-4452-994e-38369a544bca', 'name': '', 'tenant_id': '12ba392ad1fd4f839a12f80e68c7edba', 'network_id': 'f5f693bd-bd86-4b02-95ae-b0f702727c9d', 'ip_version': 6, 'cidr': '217f:bcc1:d87e:2b8b:f97e:27ee::/96', 'allocation_pools': [{'start': '217f:bcc1:d87e:2b8b:f97e:27ee:0:2', 'end': '217f:bcc1:d87e:2b8b:f97e:27ee:ffff:fffe'}], 'gateway_ip': '217f:bcc1:d87e:2b8b:f97e:27ee:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217f:bcc1:d87e:2b8b:f97e:27ee:0:2', 'tags': [], 'project_id': '12ba392ad1fd4f839a12f80e68c7edba'}} 2025-08-20 15:56:57,174 - INFO - Created VN ctest-vn4-14848103 2025-08-20 15:56:57,226 - DEBUG - VN ctest-vn4-14848103 UUID is f5f693bd-bd86-4b02-95ae-b0f702727c9d 2025-08-20 15:56:57,412 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5f693bd-bd86-4b02-95ae-b0f702727c9d', 'name': 'ctest-vn4-14848103', 'tenant_id': '12ba392ad1fd4f839a12f80e68c7edba', 'project_id': '12ba392ad1fd4f839a12f80e68c7edba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c94e071-53b3-4268-82b8-7f0c40ad6fd8', '6db19f30-57e5-4452-994e-38369a544bca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33508300', 'ctest-vn4-14848103'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33508300', 'ctest-policy1-07104151']], 'subnet_ipam': [{'subnet_cidr': '93.100.45.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '217f:bcc1:d87e:2b8b:f97e:27ee::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-20 15:56:57,570 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 15:56:57,858 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 15:56:57,883 - DEBUG - Requesting: http://10.0.0.65:8082/domain/40704709-79c1-40e2-9b62-9eb8ae53f251 2025-08-20 15:56:57,894 - DEBUG - Requesting: http://10.0.0.65:8082/project/12ba392a-d1fd-4f83-9a12-f80e68c7edba 2025-08-20 15:56:57,968 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f5f693bd-bd86-4b02-95ae-b0f702727c9d 2025-08-20 15:56:57,984 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f5f693bd-bd86-4b02-95ae-b0f702727c9d 2025-08-20 15:56:57,994 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d2b97c21-a505-4a9d-b323-c6f6b3b8281d 2025-08-20 15:56:58,001 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d2b97c21-a505-4a9d-b323-c6f6b3b8281d 2025-08-20 15:56:58,007 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/468bc4c5-4589-4d09-9981-9df22e657559 2025-08-20 15:56:58,014 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 15:56:58,014 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f5f693bd-bd86-4b02-95ae-b0f702727c9d 2025-08-20 15:56:58,025 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d2b97c21-a505-4a9d-b323-c6f6b3b8281d 2025-08-20 15:56:58,041 - INFO - Verified VN network id 12 for VN f5f693bd-bd86-4b02-95ae-b0f702727c9d 2025-08-20 15:56:58,041 - INFO - Verifications in API Server for VN ctest-vn4-14848103 passed 2025-08-20 15:56:58,041 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f5f693bd-bd86-4b02-95ae-b0f702727c9d 2025-08-20 15:56:58,053 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d2b97c21-a505-4a9d-b323-c6f6b3b8281d 2025-08-20 15:56:58,060 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d2b97c21-a505-4a9d-b323-c6f6b3b8281d 2025-08-20 15:56:58,068 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/468bc4c5-4589-4d09-9981-9df22e657559 2025-08-20 15:56:58,080 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33508300:ctest-vn4-14848103', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33508300', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17723515826700962562', 'uuid-lslong': '10785752732543384733'}, 'enable': 'true', 'created': '2025-08-20T15:56:56', 'last-modified': '2025-08-20T15:56:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.695150'} 2025-08-20 15:56:58,086 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 15:56:58,086 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14848103 passed 2025-08-20 15:56:58,086 - DEBUG - ====Verifying policy data for ctest-vn4-14848103 in API_Server ====== 2025-08-20 15:56:58,086 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 15:56:58,091 - DEBUG - Requesting: http://10.0.0.65:8082/domain/40704709-79c1-40e2-9b62-9eb8ae53f251 2025-08-20 15:56:58,101 - DEBUG - Requesting: http://10.0.0.65:8082/project/12ba392a-d1fd-4f83-9a12-f80e68c7edba 2025-08-20 15:56:58,170 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/f5f693bd-bd86-4b02-95ae-b0f702727c9d 2025-08-20 15:56:58,180 - DEBUG - ==>Verifying data for policy with id: a360b765-cd49-4d40-a0c3-816b703e7e7a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33508300', 'ctest-policy1-07104151'] 2025-08-20 15:56:58,180 - INFO - VN ctest-vn4-14848103 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-20 15:56:58,180 - DEBUG - Verifying the vn in opserver 2025-08-20 15:56:58,180 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33508300:ctest-vn4-14848103 virtual network link through opserver 10.0.0.65 2025-08-20 15:56:58,180 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-20 15:56:58,467 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-08-20 15:56:58,516 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33508300:ctest-vn4-14848103', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33508300:ctest-vn4-14848103?flat'} 2025-08-20 15:56:58,516 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33508300:ctest-vn4-14848103 is found in opserver 2025-08-20 15:56:58,526 - DEBUG - Do not have enough data to verify VN in agent 2025-08-20 15:56:58,531 - DEBUG - VRF ids for VN ctest-vn4-14848103: {} 2025-08-20 15:56:58,531 - DEBUG - ====Verifying data for ctest-policy1-07104151 in API_Server ====== 2025-08-20 15:56:58,531 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 15:56:58,536 - DEBUG - Requesting: http://10.0.0.65:8082/domain/40704709-79c1-40e2-9b62-9eb8ae53f251 2025-08-20 15:56:58,547 - DEBUG - Requesting: http://10.0.0.65:8082/project/12ba392a-d1fd-4f83-9a12-f80e68c7edba 2025-08-20 15:56:58,613 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/a360b765-cd49-4d40-a0c3-816b703e7e7a 2025-08-20 15:56:58,623 - INFO - Verified policy ctest-policy1-07104151 in API Server, Result: True 2025-08-20 15:56:58,623 - INFO - Done with setup and verification, moving onto test .. 2025-08-20 15:56:58,630 - INFO - Deleting VN ctest-vn4-14848103 2025-08-20 15:56:58,735 - DEBUG - Response for deleting network () 2025-08-20 15:56:58,735 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d2b97c21-a505-4a9d-b323-c6f6b3b8281d 2025-08-20 15:56:58,740 - DEBUG - Response Code: 404 2025-08-20 15:56:58,740 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-08-20 15:56:58,745 - DEBUG - Requesting: http://10.0.0.65:8082/domain/40704709-79c1-40e2-9b62-9eb8ae53f251 2025-08-20 15:56:58,799 - DEBUG - Requesting: http://10.0.0.65:8082/project/12ba392a-d1fd-4f83-9a12-f80e68c7edba 2025-08-20 15:56:58,868 - INFO - Validated that VN ctest-vn4-14848103 is not found in API Server 2025-08-20 15:56:58,878 - DEBUG - VN ctest-vn4-14848103 is not present in Agent 10.0.0.65 2025-08-20 15:56:58,878 - INFO - Validated that VN ctest-vn4-14848103 is not in any agent 2025-08-20 15:56:58,892 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14848103 info 2025-08-20 15:56:58,915 - INFO - Deleted policy ctest-policy1-07104151 2025-08-20 15:56:59,078 - DEBUG - policy ctest-policy1-07104151 is not found in API Server 2025-08-20 15:56:59,359 - DEBUG - No XMPP flaps were noticed during the test 2025-08-20 15:56:59,360 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-20 15:56:59,360 - INFO - -------------------------------------------------------------------------------- 2025-08-20 15:56:59,647 - DEBUG - No XMPP flaps were noticed during the test 2025-08-20 15:56:59,647 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-20 15:56:59,647 - INFO - -------------------------------------------------------------------------------- 2025-08-20 15:57:00,295 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-33508300, ID : 12ba392a-d1fd-4f83-9a12-f80e68c7edba