2025-11-05 06:39:35,984 - INFO - Domain Default found not creating 2025-11-05 06:39:36,165 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43571520 not found, creating it 2025-11-05 06:39:36,649 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43571520, ID : 813778f9-b24d-4f60-81b7-efb111f4da67 2025-11-05 06:39:38,296 - INFO - ================================================================================ 2025-11-05 06:39:38,296 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 06:39:38,557 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-11-05 06:39:38,557 - INFO - Initial checks done. Running the testcase now 2025-11-05 06:39:38,558 - INFO - 2025-11-05 06:39:38,558 - INFO - ================================================================================ 2025-11-05 06:39:38,558 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 06:39:38,558 - 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-11-05 06:39:38,852 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-11-05 06:39:38,852 - INFO - Initial checks done. Running the testcase now 2025-11-05 06:39:38,852 - INFO - 2025-11-05 06:39:39,254 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43571520:ctest-vn4-92996435, 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-43571520:ctest-vn4-92996435, 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-43571520:ctest-vn4-92996435, 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-43571520:ctest-vn4-92996435, 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-11-05 06:39:39,814 - DEBUG - Response for create_network : {'network': {'id': '616b5cee-1630-4bf7-a728-531b6eb8688a', 'name': 'ctest-vn4-92996435', 'tenant_id': '813778f9b24d4f6081b7efb111f4da67', 'project_id': '813778f9b24d4f6081b7efb111f4da67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43571520', 'ctest-vn4-92996435'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 06:39:40,006 - DEBUG - Response for create_subnet : {'subnet': {'id': '4943e049-14a5-4285-8cc9-9efd317837d0', 'name': '', 'tenant_id': '813778f9b24d4f6081b7efb111f4da67', 'network_id': '616b5cee-1630-4bf7-a728-531b6eb8688a', 'ip_version': 4, 'cidr': '73.10.50.192/26', 'allocation_pools': [{'start': '73.10.50.194', 'end': '73.10.50.254'}], 'gateway_ip': '73.10.50.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.10.50.194', 'tags': [], 'project_id': '813778f9b24d4f6081b7efb111f4da67'}} 2025-11-05 06:39:40,177 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a7b2970-0e0a-47fc-ad9e-8c30ecccfb97', 'name': '', 'tenant_id': '813778f9b24d4f6081b7efb111f4da67', 'network_id': '616b5cee-1630-4bf7-a728-531b6eb8688a', 'ip_version': 6, 'cidr': '386a:f8e2:9229:7558:5056:efbf::/96', 'allocation_pools': [{'start': '386a:f8e2:9229:7558:5056:efbf:0:2', 'end': '386a:f8e2:9229:7558:5056:efbf:ffff:fffe'}], 'gateway_ip': '386a:f8e2:9229:7558:5056:efbf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '386a:f8e2:9229:7558:5056:efbf:0:2', 'tags': [], 'project_id': '813778f9b24d4f6081b7efb111f4da67'}} 2025-11-05 06:39:40,200 - INFO - Created VN ctest-vn4-92996435 2025-11-05 06:39:40,253 - DEBUG - VN ctest-vn4-92996435 UUID is 616b5cee-1630-4bf7-a728-531b6eb8688a 2025-11-05 06:39:40,464 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '616b5cee-1630-4bf7-a728-531b6eb8688a', 'name': 'ctest-vn4-92996435', 'tenant_id': '813778f9b24d4f6081b7efb111f4da67', 'project_id': '813778f9b24d4f6081b7efb111f4da67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4943e049-14a5-4285-8cc9-9efd317837d0', '3a7b2970-0e0a-47fc-ad9e-8c30ecccfb97'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43571520', 'ctest-vn4-92996435'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43571520', 'ctest-policy1-48739662']], 'subnet_ipam': [{'subnet_cidr': '73.10.50.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '386a:f8e2:9229:7558:5056:efbf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 06:39:40,625 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-11-05 06:39:40,965 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-11-05 06:39:40,995 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e38da72f-f1e5-4c94-a4a6-7a222e1ac34c 2025-11-05 06:39:41,007 - DEBUG - Requesting: http://10.0.0.130:8082/project/813778f9-b24d-4f60-81b7-efb111f4da67 2025-11-05 06:39:41,085 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/616b5cee-1630-4bf7-a728-531b6eb8688a 2025-11-05 06:39:41,099 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/616b5cee-1630-4bf7-a728-531b6eb8688a 2025-11-05 06:39:41,110 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/65c5d38c-5123-4798-af3c-a184a9a4714e 2025-11-05 06:39:41,118 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/65c5d38c-5123-4798-af3c-a184a9a4714e 2025-11-05 06:39:41,125 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/0071d6cc-67e7-462a-9237-03adcb9053b7 2025-11-05 06:39:41,131 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 06:39:41,131 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/616b5cee-1630-4bf7-a728-531b6eb8688a 2025-11-05 06:39:41,143 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/65c5d38c-5123-4798-af3c-a184a9a4714e 2025-11-05 06:39:41,158 - INFO - Verified VN network id 11 for VN 616b5cee-1630-4bf7-a728-531b6eb8688a 2025-11-05 06:39:41,158 - INFO - Verifications in API Server for VN ctest-vn4-92996435 passed 2025-11-05 06:39:41,158 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/616b5cee-1630-4bf7-a728-531b6eb8688a 2025-11-05 06:39:41,169 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/65c5d38c-5123-4798-af3c-a184a9a4714e 2025-11-05 06:39:41,176 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/65c5d38c-5123-4798-af3c-a184a9a4714e 2025-11-05 06:39:41,186 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/0071d6cc-67e7-462a-9237-03adcb9053b7 2025-11-05 06:39:41,202 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43571520:ctest-vn4-92996435', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43571520', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7019806621831285751', 'uuid-lslong': '12044968580689193098'}, 'enable': 'true', 'created': '2025-11-05T06:39:39', 'last-modified': '2025-11-05T06:39:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.766870'} 2025-11-05 06:39:41,210 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 06:39:41,210 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92996435 passed 2025-11-05 06:39:41,210 - DEBUG - ====Verifying policy data for ctest-vn4-92996435 in API_Server ====== 2025-11-05 06:39:41,210 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-11-05 06:39:41,217 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e38da72f-f1e5-4c94-a4a6-7a222e1ac34c 2025-11-05 06:39:41,228 - DEBUG - Requesting: http://10.0.0.130:8082/project/813778f9-b24d-4f60-81b7-efb111f4da67 2025-11-05 06:39:41,314 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/616b5cee-1630-4bf7-a728-531b6eb8688a 2025-11-05 06:39:41,326 - DEBUG - ==>Verifying data for policy with id: 550fed49-695a-479f-8967-43dbc577b789, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43571520', 'ctest-policy1-48739662'] 2025-11-05 06:39:41,326 - INFO - VN ctest-vn4-92996435 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 06:39:41,326 - DEBUG - Verifying the vn in opserver 2025-11-05 06:39:41,326 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43571520:ctest-vn4-92996435 virtual network link through opserver 10.0.0.130 2025-11-05 06:39:41,326 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-11-05 06:39:41,679 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-11-05 06:39:41,744 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43571520:ctest-vn4-92996435', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43571520:ctest-vn4-92996435?flat'} 2025-11-05 06:39:41,744 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43571520:ctest-vn4-92996435 is found in opserver 2025-11-05 06:39:41,754 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 06:39:41,759 - DEBUG - VRF ids for VN ctest-vn4-92996435: {} 2025-11-05 06:39:41,759 - DEBUG - ====Verifying data for ctest-policy1-48739662 in API_Server ====== 2025-11-05 06:39:41,759 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-11-05 06:39:41,765 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e38da72f-f1e5-4c94-a4a6-7a222e1ac34c 2025-11-05 06:39:41,777 - DEBUG - Requesting: http://10.0.0.130:8082/project/813778f9-b24d-4f60-81b7-efb111f4da67 2025-11-05 06:39:41,856 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/550fed49-695a-479f-8967-43dbc577b789 2025-11-05 06:39:41,868 - INFO - Verified policy ctest-policy1-48739662 in API Server, Result: True 2025-11-05 06:39:41,868 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 06:39:41,879 - INFO - Deleting VN ctest-vn4-92996435 2025-11-05 06:39:42,012 - DEBUG - Response for deleting network () 2025-11-05 06:39:42,012 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/65c5d38c-5123-4798-af3c-a184a9a4714e 2025-11-05 06:39:42,018 - DEBUG - Response Code: 404 2025-11-05 06:39:42,018 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-11-05 06:39:42,024 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e38da72f-f1e5-4c94-a4a6-7a222e1ac34c 2025-11-05 06:39:42,079 - DEBUG - Requesting: http://10.0.0.130:8082/project/813778f9-b24d-4f60-81b7-efb111f4da67 2025-11-05 06:39:42,157 - INFO - Validated that VN ctest-vn4-92996435 is not found in API Server 2025-11-05 06:39:42,169 - DEBUG - VN ctest-vn4-92996435 is not present in Agent 10.0.0.130 2025-11-05 06:39:42,169 - INFO - Validated that VN ctest-vn4-92996435 is not in any agent 2025-11-05 06:39:42,184 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92996435 info 2025-11-05 06:39:42,209 - INFO - Deleted policy ctest-policy1-48739662 2025-11-05 06:39:42,381 - DEBUG - policy ctest-policy1-48739662 is not found in API Server 2025-11-05 06:39:42,639 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 06:39:42,639 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-05 06:39:42,639 - INFO - -------------------------------------------------------------------------------- 2025-11-05 06:39:42,930 - DEBUG - No XMPP flaps were noticed during the test 2025-11-05 06:39:42,931 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-05 06:39:42,931 - INFO - -------------------------------------------------------------------------------- 2025-11-05 06:39:43,665 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43571520, ID : 813778f9-b24d-4f60-81b7-efb111f4da67