2025-12-15 02:17:35,217 - INFO - Domain Default found not creating 2025-12-15 02:17:35,396 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30348282 not found, creating it 2025-12-15 02:17:35,876 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30348282, ID : d9cc286c-e728-48d6-bdcd-a378713d354f 2025-12-15 02:17:37,405 - INFO - ================================================================================ 2025-12-15 02:17:37,405 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-15 02:17:37,665 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2025-12-15 02:17:37,665 - INFO - Initial checks done. Running the testcase now 2025-12-15 02:17:37,665 - INFO - 2025-12-15 02:17:37,665 - INFO - ================================================================================ 2025-12-15 02:17:37,665 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-15 02:17:37,665 - 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-15 02:17:37,959 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with 2025-12-15 02:17:37,960 - INFO - Initial checks done. Running the testcase now 2025-12-15 02:17:37,960 - INFO - 2025-12-15 02:17:38,325 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30348282:ctest-vn4-58179302, 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-30348282:ctest-vn4-58179302, 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-30348282:ctest-vn4-58179302, 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-30348282:ctest-vn4-58179302, 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-15 02:17:38,874 - DEBUG - Response for create_network : {'network': {'id': 'f60604e8-9e4c-4414-a962-83d34ed10210', 'name': 'ctest-vn4-58179302', 'tenant_id': 'd9cc286ce72848d6bdcda378713d354f', 'project_id': 'd9cc286ce72848d6bdcda378713d354f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30348282', 'ctest-vn4-58179302'], 'port_security_enabled': True, 'description': ''}} 2025-12-15 02:17:39,051 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ea59161-03d4-489e-8e5c-31bb9eee0762', 'name': '', 'tenant_id': 'd9cc286ce72848d6bdcda378713d354f', 'network_id': 'f60604e8-9e4c-4414-a962-83d34ed10210', 'ip_version': 4, 'cidr': '141.208.46.0/26', 'allocation_pools': [{'start': '141.208.46.2', 'end': '141.208.46.62'}], 'gateway_ip': '141.208.46.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.208.46.2', 'tags': [], 'project_id': 'd9cc286ce72848d6bdcda378713d354f'}} 2025-12-15 02:17:39,207 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e2c4c79-1112-438d-aeb8-f9ee9ac3c9eb', 'name': '', 'tenant_id': 'd9cc286ce72848d6bdcda378713d354f', 'network_id': 'f60604e8-9e4c-4414-a962-83d34ed10210', 'ip_version': 6, 'cidr': '35b0:c27d:ec4f:d649:9e41:7a32::/96', 'allocation_pools': [{'start': '35b0:c27d:ec4f:d649:9e41:7a32:0:2', 'end': '35b0:c27d:ec4f:d649:9e41:7a32:ffff:fffe'}], 'gateway_ip': '35b0:c27d:ec4f:d649:9e41:7a32:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35b0:c27d:ec4f:d649:9e41:7a32:0:2', 'tags': [], 'project_id': 'd9cc286ce72848d6bdcda378713d354f'}} 2025-12-15 02:17:39,229 - INFO - Created VN ctest-vn4-58179302 2025-12-15 02:17:39,282 - DEBUG - VN ctest-vn4-58179302 UUID is f60604e8-9e4c-4414-a962-83d34ed10210 2025-12-15 02:17:39,494 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f60604e8-9e4c-4414-a962-83d34ed10210', 'name': 'ctest-vn4-58179302', 'tenant_id': 'd9cc286ce72848d6bdcda378713d354f', 'project_id': 'd9cc286ce72848d6bdcda378713d354f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ea59161-03d4-489e-8e5c-31bb9eee0762', '1e2c4c79-1112-438d-aeb8-f9ee9ac3c9eb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30348282', 'ctest-vn4-58179302'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30348282', 'ctest-policy1-90063920']], 'subnet_ipam': [{'subnet_cidr': '141.208.46.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35b0:c27d:ec4f:d649:9e41:7a32::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-15 02:17:39,654 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-15 02:17:39,953 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-15 02:17:39,987 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c959a1cc-a431-4201-a490-78c8beb5183f 2025-12-15 02:17:40,001 - DEBUG - Requesting: http://10.0.0.249:8082/project/d9cc286c-e728-48d6-bdcd-a378713d354f 2025-12-15 02:17:40,076 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f60604e8-9e4c-4414-a962-83d34ed10210 2025-12-15 02:17:40,088 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f60604e8-9e4c-4414-a962-83d34ed10210 2025-12-15 02:17:40,097 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/46ae4a55-27a8-4ff2-893e-699ad31a32d0 2025-12-15 02:17:40,104 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/46ae4a55-27a8-4ff2-893e-699ad31a32d0 2025-12-15 02:17:40,111 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/dd246d1c-de30-4e49-b146-d2aa2378d492 2025-12-15 02:17:40,117 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:17:40,117 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f60604e8-9e4c-4414-a962-83d34ed10210 2025-12-15 02:17:40,127 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/46ae4a55-27a8-4ff2-893e-699ad31a32d0 2025-12-15 02:17:40,140 - INFO - Verified VN network id 11 for VN f60604e8-9e4c-4414-a962-83d34ed10210 2025-12-15 02:17:40,140 - INFO - Verifications in API Server for VN ctest-vn4-58179302 passed 2025-12-15 02:17:40,140 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f60604e8-9e4c-4414-a962-83d34ed10210 2025-12-15 02:17:40,148 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/46ae4a55-27a8-4ff2-893e-699ad31a32d0 2025-12-15 02:17:40,155 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/46ae4a55-27a8-4ff2-893e-699ad31a32d0 2025-12-15 02:17:40,162 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/dd246d1c-de30-4e49-b146-d2aa2378d492 2025-12-15 02:17:40,175 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30348282:ctest-vn4-58179302', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30348282', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17727862380325258260', 'uuid-lslong': '12205462883711123984'}, 'enable': 'true', 'created': '2025-12-15T02:17:38', 'last-modified': '2025-12-15T02:17:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711439'} 2025-12-15 02:17:40,181 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-15 02:17:40,181 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-58179302 passed 2025-12-15 02:17:40,181 - DEBUG - ====Verifying policy data for ctest-vn4-58179302 in API_Server ====== 2025-12-15 02:17:40,181 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-15 02:17:40,190 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c959a1cc-a431-4201-a490-78c8beb5183f 2025-12-15 02:17:40,201 - DEBUG - Requesting: http://10.0.0.249:8082/project/d9cc286c-e728-48d6-bdcd-a378713d354f 2025-12-15 02:17:40,275 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f60604e8-9e4c-4414-a962-83d34ed10210 2025-12-15 02:17:40,285 - DEBUG - ==>Verifying data for policy with id: bc7e265f-8f6e-458b-b17a-4e35eee38c20, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30348282', 'ctest-policy1-90063920'] 2025-12-15 02:17:40,285 - INFO - VN ctest-vn4-58179302 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-15 02:17:40,285 - DEBUG - Verifying the vn in opserver 2025-12-15 02:17:40,285 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30348282:ctest-vn4-58179302 virtual network link through opserver 10.0.0.249 2025-12-15 02:17:40,285 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-12-15 02:17:40,577 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-12-15 02:17:40,647 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30348282:ctest-vn4-58179302', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30348282:ctest-vn4-58179302?flat'} 2025-12-15 02:17:40,647 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30348282:ctest-vn4-58179302 is found in opserver 2025-12-15 02:17:40,657 - DEBUG - Do not have enough data to verify VN in agent 2025-12-15 02:17:40,662 - DEBUG - VRF ids for VN ctest-vn4-58179302: {} 2025-12-15 02:17:40,663 - DEBUG - ====Verifying data for ctest-policy1-90063920 in API_Server ====== 2025-12-15 02:17:40,663 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-15 02:17:40,671 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c959a1cc-a431-4201-a490-78c8beb5183f 2025-12-15 02:17:40,683 - DEBUG - Requesting: http://10.0.0.249:8082/project/d9cc286c-e728-48d6-bdcd-a378713d354f 2025-12-15 02:17:40,756 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/bc7e265f-8f6e-458b-b17a-4e35eee38c20 2025-12-15 02:17:40,766 - INFO - Verified policy ctest-policy1-90063920 in API Server, Result: True 2025-12-15 02:17:40,766 - INFO - Done with setup and verification, moving onto test .. 2025-12-15 02:17:40,775 - INFO - Deleting VN ctest-vn4-58179302 2025-12-15 02:17:40,914 - DEBUG - Response for deleting network () 2025-12-15 02:17:40,915 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/46ae4a55-27a8-4ff2-893e-699ad31a32d0 2025-12-15 02:17:40,920 - DEBUG - Response Code: 404 2025-12-15 02:17:40,920 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-12-15 02:17:40,925 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c959a1cc-a431-4201-a490-78c8beb5183f 2025-12-15 02:17:40,975 - DEBUG - Requesting: http://10.0.0.249:8082/project/d9cc286c-e728-48d6-bdcd-a378713d354f 2025-12-15 02:17:41,051 - INFO - Validated that VN ctest-vn4-58179302 is not found in API Server 2025-12-15 02:17:41,059 - DEBUG - VN ctest-vn4-58179302 is not present in Agent 10.0.0.249 2025-12-15 02:17:41,059 - INFO - Validated that VN ctest-vn4-58179302 is not in any agent 2025-12-15 02:17:41,072 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-58179302 info 2025-12-15 02:17:41,096 - INFO - Deleted policy ctest-policy1-90063920 2025-12-15 02:17:41,258 - DEBUG - policy ctest-policy1-90063920 is not found in API Server 2025-12-15 02:17:41,512 - DEBUG - No XMPP flaps were noticed during the test