2025-12-29 17:04:08,560 - INFO - Domain Default found not creating 2025-12-29 17:04:08,767 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-39669790 not found, creating it 2025-12-29 17:04:09,286 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-39669790, ID : 3872a233-59f2-4b32-b080-590b14104114 2025-12-29 17:04:10,976 - INFO - ================================================================================ 2025-12-29 17:04:10,976 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-29 17:04:11,253 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2025-12-29 17:04:11,254 - INFO - Initial checks done. Running the testcase now 2025-12-29 17:04:11,254 - INFO - 2025-12-29 17:04:11,254 - INFO - ================================================================================ 2025-12-29 17:04:11,254 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-29 17:04:11,254 - 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-12-29 17:04:11,559 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2025-12-29 17:04:11,559 - INFO - Initial checks done. Running the testcase now 2025-12-29 17:04:11,559 - INFO - 2025-12-29 17:04:11,981 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39669790:ctest-vn4-88635543, 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-39669790:ctest-vn4-88635543, 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-39669790:ctest-vn4-88635543, 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-39669790:ctest-vn4-88635543, 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-12-29 17:04:12,608 - DEBUG - Response for create_network : {'network': {'id': 'd4d731aa-3487-4f06-82c6-17b898a707f4', 'name': 'ctest-vn4-88635543', 'tenant_id': '3872a23359f24b32b080590b14104114', 'project_id': '3872a23359f24b32b080590b14104114', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39669790', 'ctest-vn4-88635543'], 'port_security_enabled': True, 'description': ''}} 2025-12-29 17:04:12,792 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b71a8049-c517-4d1b-aaa0-67d1709a409e', 'name': '', 'tenant_id': '3872a23359f24b32b080590b14104114', 'network_id': 'd4d731aa-3487-4f06-82c6-17b898a707f4', 'ip_version': 4, 'cidr': '37.217.229.0/26', 'allocation_pools': [{'start': '37.217.229.2', 'end': '37.217.229.62'}], 'gateway_ip': '37.217.229.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.217.229.2', 'tags': [], 'project_id': '3872a23359f24b32b080590b14104114'}} 2025-12-29 17:04:13,008 - DEBUG - Response for create_subnet : {'subnet': {'id': '499c4c7d-75c1-4c8e-9176-3b005aa4c476', 'name': '', 'tenant_id': '3872a23359f24b32b080590b14104114', 'network_id': 'd4d731aa-3487-4f06-82c6-17b898a707f4', 'ip_version': 6, 'cidr': '3271:3bf6:4760:3a4c:b03b:1ce8::/96', 'allocation_pools': [{'start': '3271:3bf6:4760:3a4c:b03b:1ce8:0:2', 'end': '3271:3bf6:4760:3a4c:b03b:1ce8:ffff:fffe'}], 'gateway_ip': '3271:3bf6:4760:3a4c:b03b:1ce8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3271:3bf6:4760:3a4c:b03b:1ce8:0:2', 'tags': [], 'project_id': '3872a23359f24b32b080590b14104114'}} 2025-12-29 17:04:13,031 - INFO - Created VN ctest-vn4-88635543 2025-12-29 17:04:13,085 - DEBUG - VN ctest-vn4-88635543 UUID is d4d731aa-3487-4f06-82c6-17b898a707f4 2025-12-29 17:04:13,331 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd4d731aa-3487-4f06-82c6-17b898a707f4', 'name': 'ctest-vn4-88635543', 'tenant_id': '3872a23359f24b32b080590b14104114', 'project_id': '3872a23359f24b32b080590b14104114', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b71a8049-c517-4d1b-aaa0-67d1709a409e', '499c4c7d-75c1-4c8e-9176-3b005aa4c476'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39669790', 'ctest-vn4-88635543'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39669790', 'ctest-policy1-26020247']], 'subnet_ipam': [{'subnet_cidr': '37.217.229.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3271:3bf6:4760:3a4c:b03b:1ce8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-29 17:04:13,509 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-29 17:04:13,806 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-29 17:04:13,860 - DEBUG - Requesting: http://10.0.0.249:8082/domain/aec8dca6-0af3-4484-afb2-8e13fa5e1371 2025-12-29 17:04:13,876 - DEBUG - Requesting: http://10.0.0.249:8082/project/3872a233-59f2-4b32-b080-590b14104114 2025-12-29 17:04:13,953 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d4d731aa-3487-4f06-82c6-17b898a707f4 2025-12-29 17:04:13,969 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d4d731aa-3487-4f06-82c6-17b898a707f4 2025-12-29 17:04:13,980 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1d694c51-4446-47be-bb14-035938367ea0 2025-12-29 17:04:13,989 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1d694c51-4446-47be-bb14-035938367ea0 2025-12-29 17:04:13,998 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/16d69636-e847-4f77-86ef-00accadd9ffd 2025-12-29 17:04:14,006 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 17:04:14,006 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d4d731aa-3487-4f06-82c6-17b898a707f4 2025-12-29 17:04:14,016 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1d694c51-4446-47be-bb14-035938367ea0 2025-12-29 17:04:14,033 - INFO - Verified VN network id 11 for VN d4d731aa-3487-4f06-82c6-17b898a707f4 2025-12-29 17:04:14,033 - INFO - Verifications in API Server for VN ctest-vn4-88635543 passed 2025-12-29 17:04:14,033 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d4d731aa-3487-4f06-82c6-17b898a707f4 2025-12-29 17:04:14,045 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1d694c51-4446-47be-bb14-035938367ea0 2025-12-29 17:04:14,054 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1d694c51-4446-47be-bb14-035938367ea0 2025-12-29 17:04:14,062 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/16d69636-e847-4f77-86ef-00accadd9ffd 2025-12-29 17:04:14,077 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39669790:ctest-vn4-88635543', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-39669790', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15336781663128997638', 'uuid-lslong': '9423245351921846260'}, 'enable': 'true', 'created': '2025-12-29T17:04:12', 'last-modified': '2025-12-29T17:04:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.777642'} 2025-12-29 17:04:14,084 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-29 17:04:14,084 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88635543 passed 2025-12-29 17:04:14,085 - DEBUG - ====Verifying policy data for ctest-vn4-88635543 in API_Server ====== 2025-12-29 17:04:14,085 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-29 17:04:14,092 - DEBUG - Requesting: http://10.0.0.249:8082/domain/aec8dca6-0af3-4484-afb2-8e13fa5e1371 2025-12-29 17:04:14,105 - DEBUG - Requesting: http://10.0.0.249:8082/project/3872a233-59f2-4b32-b080-590b14104114 2025-12-29 17:04:14,177 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d4d731aa-3487-4f06-82c6-17b898a707f4 2025-12-29 17:04:14,189 - DEBUG - ==>Verifying data for policy with id: cb3a4b63-0a20-4626-9d14-6e0c585d28c1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-39669790', 'ctest-policy1-26020247'] 2025-12-29 17:04:14,189 - INFO - VN ctest-vn4-88635543 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-29 17:04:14,189 - DEBUG - Verifying the vn in opserver 2025-12-29 17:04:14,189 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39669790:ctest-vn4-88635543 virtual network link through opserver 10.0.0.249 2025-12-29 17:04:14,189 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-12-29 17:04:14,500 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-12-29 17:04:14,585 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39669790:ctest-vn4-88635543', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39669790:ctest-vn4-88635543?flat'} 2025-12-29 17:04:14,585 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-39669790:ctest-vn4-88635543 is found in opserver 2025-12-29 17:04:14,596 - DEBUG - Do not have enough data to verify VN in agent 2025-12-29 17:04:14,601 - DEBUG - VRF ids for VN ctest-vn4-88635543: {} 2025-12-29 17:04:14,602 - DEBUG - ====Verifying data for ctest-policy1-26020247 in API_Server ====== 2025-12-29 17:04:14,602 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-29 17:04:14,608 - DEBUG - Requesting: http://10.0.0.249:8082/domain/aec8dca6-0af3-4484-afb2-8e13fa5e1371 2025-12-29 17:04:14,622 - DEBUG - Requesting: http://10.0.0.249:8082/project/3872a233-59f2-4b32-b080-590b14104114 2025-12-29 17:04:14,697 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/cb3a4b63-0a20-4626-9d14-6e0c585d28c1 2025-12-29 17:04:14,707 - INFO - Verified policy ctest-policy1-26020247 in API Server, Result: True 2025-12-29 17:04:14,707 - INFO - Done with setup and verification, moving onto test .. 2025-12-29 17:04:14,716 - INFO - Deleting VN ctest-vn4-88635543 2025-12-29 17:04:14,866 - DEBUG - Response for deleting network () 2025-12-29 17:04:14,866 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1d694c51-4446-47be-bb14-035938367ea0 2025-12-29 17:04:14,872 - DEBUG - Response Code: 404 2025-12-29 17:04:14,872 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-29 17:04:14,879 - DEBUG - Requesting: http://10.0.0.249:8082/domain/aec8dca6-0af3-4484-afb2-8e13fa5e1371 2025-12-29 17:04:14,935 - DEBUG - Requesting: http://10.0.0.249:8082/project/3872a233-59f2-4b32-b080-590b14104114 2025-12-29 17:04:15,008 - INFO - Validated that VN ctest-vn4-88635543 is not found in API Server 2025-12-29 17:04:15,019 - DEBUG - VN ctest-vn4-88635543 is not present in Agent 10.0.0.249 2025-12-29 17:04:15,019 - INFO - Validated that VN ctest-vn4-88635543 is not in any agent 2025-12-29 17:04:15,034 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88635543 info 2025-12-29 17:04:15,066 - INFO - Deleted policy ctest-policy1-26020247 2025-12-29 17:04:15,233 - DEBUG - policy ctest-policy1-26020247 is not found in API Server 2025-12-29 17:04:15,491 - DEBUG - No XMPP flaps were noticed during the test
2025-12-29 17:04:15,491 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-29 17:04:15,491 - INFO - -------------------------------------------------------------------------------- 2025-12-29 17:04:15,795 - DEBUG - No XMPP flaps were noticed during the test
2025-12-29 17:04:15,795 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-12-29 17:04:15,795 - INFO - -------------------------------------------------------------------------------- 2025-12-29 17:04:16,525 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-39669790, ID : 3872a233-59f2-4b32-b080-590b14104114