2026-01-07 14:35:52,965 - INFO - Domain Default found not creating 2026-01-07 14:35:53,449 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-76905041 not found, creating it 2026-01-07 14:35:53,907 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-76905041, ID : 58963e53-8ddb-458e-b9b6-4d6f1341e023 2026-01-07 14:35:55,405 - INFO - ================================================================================ 2026-01-07 14:35:55,406 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-07 14:35:55,662 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-01-07 14:35:55,662 - INFO - Initial checks done. Running the testcase now 2026-01-07 14:35:55,662 - INFO - 2026-01-07 14:35:55,662 - INFO - ================================================================================ 2026-01-07 14:35:55,662 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-07 14:35:55,663 - 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. 2026-01-07 14:35:55,958 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-01-07 14:35:55,958 - INFO - Initial checks done. Running the testcase now 2026-01-07 14:35:55,958 - INFO - 2026-01-07 14:35:56,309 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76905041:ctest-vn4-90615882, 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-76905041:ctest-vn4-90615882, 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-76905041:ctest-vn4-90615882, 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-76905041:ctest-vn4-90615882, 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] 2026-01-07 14:35:56,824 - DEBUG - Response for create_network : {'network': {'id': 'd492ea02-2816-4a1a-8d54-4c405c02d0fb', 'name': 'ctest-vn4-90615882', 'tenant_id': '58963e538ddb458eb9b64d6f1341e023', 'project_id': '58963e538ddb458eb9b64d6f1341e023', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76905041', 'ctest-vn4-90615882'], 'port_security_enabled': True, 'description': ''}} 2026-01-07 14:35:56,994 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aab13544-c7ee-4759-9574-dd4d9f1caf04', 'name': '', 'tenant_id': '58963e538ddb458eb9b64d6f1341e023', 'network_id': 'd492ea02-2816-4a1a-8d54-4c405c02d0fb', 'ip_version': 4, 'cidr': '164.163.68.192/26', 'allocation_pools': [{'start': '164.163.68.194', 'end': '164.163.68.254'}], 'gateway_ip': '164.163.68.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.163.68.194', 'tags': [], 'project_id': '58963e538ddb458eb9b64d6f1341e023'}} 2026-01-07 14:35:57,145 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cdd50291-eb79-472d-aee2-0d253bfce1d2', 'name': '', 'tenant_id': '58963e538ddb458eb9b64d6f1341e023', 'network_id': 'd492ea02-2816-4a1a-8d54-4c405c02d0fb', 'ip_version': 6, 'cidr': '3171:ccba:ee68:e1f6:9e5c:765c::/96', 'allocation_pools': [{'start': '3171:ccba:ee68:e1f6:9e5c:765c:0:2', 'end': '3171:ccba:ee68:e1f6:9e5c:765c:ffff:fffe'}], 'gateway_ip': '3171:ccba:ee68:e1f6:9e5c:765c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3171:ccba:ee68:e1f6:9e5c:765c:0:2', 'tags': [], 'project_id': '58963e538ddb458eb9b64d6f1341e023'}} 2026-01-07 14:35:57,165 - INFO - Created VN ctest-vn4-90615882 2026-01-07 14:35:57,217 - DEBUG - VN ctest-vn4-90615882 UUID is d492ea02-2816-4a1a-8d54-4c405c02d0fb 2026-01-07 14:35:57,426 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd492ea02-2816-4a1a-8d54-4c405c02d0fb', 'name': 'ctest-vn4-90615882', 'tenant_id': '58963e538ddb458eb9b64d6f1341e023', 'project_id': '58963e538ddb458eb9b64d6f1341e023', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aab13544-c7ee-4759-9574-dd4d9f1caf04', 'cdd50291-eb79-472d-aee2-0d253bfce1d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76905041', 'ctest-vn4-90615882'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76905041', 'ctest-policy1-57062481']], 'subnet_ipam': [{'subnet_cidr': '164.163.68.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3171:ccba:ee68:e1f6:9e5c:765c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-07 14:35:57,573 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-07 14:35:57,867 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-07 14:35:57,896 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5ff24043-93dc-47e2-a211-f7d7a5ceb3b5 2026-01-07 14:35:57,907 - DEBUG - Requesting: http://10.0.0.33:8082/project/58963e53-8ddb-458e-b9b6-4d6f1341e023 2026-01-07 14:35:57,980 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d492ea02-2816-4a1a-8d54-4c405c02d0fb 2026-01-07 14:35:57,991 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d492ea02-2816-4a1a-8d54-4c405c02d0fb 2026-01-07 14:35:58,000 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cdfe2149-1783-46e5-a216-16bec4d5652d 2026-01-07 14:35:58,007 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cdfe2149-1783-46e5-a216-16bec4d5652d 2026-01-07 14:35:58,013 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f00e7e5d-e993-479c-9ba5-cbe4f790fbce 2026-01-07 14:35:58,019 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-07 14:35:58,019 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d492ea02-2816-4a1a-8d54-4c405c02d0fb 2026-01-07 14:35:58,028 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cdfe2149-1783-46e5-a216-16bec4d5652d 2026-01-07 14:35:58,042 - INFO - Verified VN network id 11 for VN d492ea02-2816-4a1a-8d54-4c405c02d0fb 2026-01-07 14:35:58,042 - INFO - Verifications in API Server for VN ctest-vn4-90615882 passed 2026-01-07 14:35:58,042 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d492ea02-2816-4a1a-8d54-4c405c02d0fb 2026-01-07 14:35:58,051 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cdfe2149-1783-46e5-a216-16bec4d5652d 2026-01-07 14:35:58,058 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cdfe2149-1783-46e5-a216-16bec4d5652d 2026-01-07 14:35:58,064 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/f00e7e5d-e993-479c-9ba5-cbe4f790fbce 2026-01-07 14:35:58,075 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76905041:ctest-vn4-90615882', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-76905041', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15317562577623861786', 'uuid-lslong': '10183848496696840443'}, 'enable': 'true', 'created': '2026-01-07T14:35:56', 'last-modified': '2026-01-07T14:35:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.679247'} 2026-01-07 14:35:58,081 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-07 14:35:58,081 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-90615882 passed 2026-01-07 14:35:58,081 - DEBUG - ====Verifying policy data for ctest-vn4-90615882 in API_Server ====== 2026-01-07 14:35:58,081 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-07 14:35:58,086 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5ff24043-93dc-47e2-a211-f7d7a5ceb3b5 2026-01-07 14:35:58,097 - DEBUG - Requesting: http://10.0.0.33:8082/project/58963e53-8ddb-458e-b9b6-4d6f1341e023 2026-01-07 14:35:58,168 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d492ea02-2816-4a1a-8d54-4c405c02d0fb 2026-01-07 14:35:58,179 - DEBUG - ==>Verifying data for policy with id: 5121f937-c3fd-4839-b5a0-ac9374f661b3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76905041', 'ctest-policy1-57062481'] 2026-01-07 14:35:58,180 - INFO - VN ctest-vn4-90615882 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-07 14:35:58,180 - DEBUG - Verifying the vn in opserver 2026-01-07 14:35:58,180 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76905041:ctest-vn4-90615882 virtual network link through opserver 10.0.0.33 2026-01-07 14:35:58,180 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-07 14:35:58,471 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-07 14:35:58,527 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76905041:ctest-vn4-90615882', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76905041:ctest-vn4-90615882?flat'} 2026-01-07 14:35:58,527 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76905041:ctest-vn4-90615882 is found in opserver 2026-01-07 14:35:58,536 - DEBUG - Do not have enough data to verify VN in agent 2026-01-07 14:35:58,541 - DEBUG - VRF ids for VN ctest-vn4-90615882: {} 2026-01-07 14:35:58,541 - DEBUG - ====Verifying data for ctest-policy1-57062481 in API_Server ====== 2026-01-07 14:35:58,541 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-07 14:35:58,546 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5ff24043-93dc-47e2-a211-f7d7a5ceb3b5 2026-01-07 14:35:58,556 - DEBUG - Requesting: http://10.0.0.33:8082/project/58963e53-8ddb-458e-b9b6-4d6f1341e023 2026-01-07 14:35:58,625 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/5121f937-c3fd-4839-b5a0-ac9374f661b3 2026-01-07 14:35:58,634 - INFO - Verified policy ctest-policy1-57062481 in API Server, Result: True 2026-01-07 14:35:58,634 - INFO - Done with setup and verification, moving onto test .. 2026-01-07 14:35:58,641 - INFO - Deleting VN ctest-vn4-90615882 2026-01-07 14:35:58,750 - DEBUG - Response for deleting network () 2026-01-07 14:35:58,750 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cdfe2149-1783-46e5-a216-16bec4d5652d 2026-01-07 14:35:58,754 - DEBUG - Response Code: 404 2026-01-07 14:35:58,754 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-07 14:35:58,759 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5ff24043-93dc-47e2-a211-f7d7a5ceb3b5 2026-01-07 14:35:58,809 - DEBUG - Requesting: http://10.0.0.33:8082/project/58963e53-8ddb-458e-b9b6-4d6f1341e023 2026-01-07 14:35:58,877 - INFO - Validated that VN ctest-vn4-90615882 is not found in API Server 2026-01-07 14:35:58,886 - DEBUG - VN ctest-vn4-90615882 is not present in Agent 10.0.0.33 2026-01-07 14:35:58,886 - INFO - Validated that VN ctest-vn4-90615882 is not in any agent 2026-01-07 14:35:58,899 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-90615882 info 2026-01-07 14:35:58,925 - INFO - Deleted policy ctest-policy1-57062481 2026-01-07 14:35:59,089 - DEBUG - policy ctest-policy1-57062481 is not found in API Server 2026-01-07 14:35:59,342 - DEBUG - No XMPP flaps were noticed during the test