2025-11-05 15:55:36,933 - INFO - Domain Default found not creating 2025-11-05 15:55:37,084 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31479235 not found, creating it 2025-11-05 15:55:37,542 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31479235, ID : 40f1d014-06ce-4fb4-9427-59270d9b8bf6 2025-11-05 15:55:39,150 - INFO - ================================================================================ 2025-11-05 15:55:39,150 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 15:55:39,399 - WARNING - Test is running with cores: {'10.0.0.40': ['core.isc-loop-0003.72957.cn-jenkins-deploy-platform-ansible-os-4646-1.1762357600']} 2025-11-05 15:55:39,405 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.200': '0'}} with 2025-11-05 15:55:39,405 - INFO - Initial checks done. Running the testcase now 2025-11-05 15:55:39,405 - INFO - 2025-11-05 15:55:39,405 - INFO - ================================================================================ 2025-11-05 15:55:39,405 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 15:55:39,405 - 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 15:55:39,688 - WARNING - Test is running with cores: {'10.0.0.40': ['core.isc-loop-0003.72957.cn-jenkins-deploy-platform-ansible-os-4646-1.1762357600']} 2025-11-05 15:55:39,693 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.200': '0'}} with 2025-11-05 15:55:39,693 - INFO - Initial checks done. Running the testcase now 2025-11-05 15:55:39,693 - INFO - 2025-11-05 15:55:40,091 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31479235:ctest-vn4-51573102, 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-31479235:ctest-vn4-51573102, 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-31479235:ctest-vn4-51573102, 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-31479235:ctest-vn4-51573102, 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 15:55:40,976 - DEBUG - Response for create_network : {'network': {'id': 'f0c64367-fad3-4b2d-a39d-29da3b072e04', 'name': 'ctest-vn4-51573102', 'tenant_id': '40f1d01406ce4fb4942759270d9b8bf6', 'project_id': '40f1d01406ce4fb4942759270d9b8bf6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31479235', 'ctest-vn4-51573102'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 15:55:41,139 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ec30301-77ba-4eca-bf7d-333a3371a653', 'name': '', 'tenant_id': '40f1d01406ce4fb4942759270d9b8bf6', 'network_id': 'f0c64367-fad3-4b2d-a39d-29da3b072e04', 'ip_version': 4, 'cidr': '219.234.136.0/26', 'allocation_pools': [{'start': '219.234.136.2', 'end': '219.234.136.62'}], 'gateway_ip': '219.234.136.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.234.136.2', 'tags': [], 'project_id': '40f1d01406ce4fb4942759270d9b8bf6'}} 2025-11-05 15:55:41,330 - DEBUG - Response for create_subnet : {'subnet': {'id': '1af2c906-331c-477b-8641-e9e198a6eac1', 'name': '', 'tenant_id': '40f1d01406ce4fb4942759270d9b8bf6', 'network_id': 'f0c64367-fad3-4b2d-a39d-29da3b072e04', 'ip_version': 6, 'cidr': '3857:c888:bfd6:cbc6:9583:b71b::/96', 'allocation_pools': [{'start': '3857:c888:bfd6:cbc6:9583:b71b:0:2', 'end': '3857:c888:bfd6:cbc6:9583:b71b:ffff:fffe'}], 'gateway_ip': '3857:c888:bfd6:cbc6:9583:b71b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3857:c888:bfd6:cbc6:9583:b71b:0:2', 'tags': [], 'project_id': '40f1d01406ce4fb4942759270d9b8bf6'}} 2025-11-05 15:55:41,352 - INFO - Created VN ctest-vn4-51573102 2025-11-05 15:55:41,403 - DEBUG - VN ctest-vn4-51573102 UUID is f0c64367-fad3-4b2d-a39d-29da3b072e04 2025-11-05 15:55:41,614 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f0c64367-fad3-4b2d-a39d-29da3b072e04', 'name': 'ctest-vn4-51573102', 'tenant_id': '40f1d01406ce4fb4942759270d9b8bf6', 'project_id': '40f1d01406ce4fb4942759270d9b8bf6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ec30301-77ba-4eca-bf7d-333a3371a653', '1af2c906-331c-477b-8641-e9e198a6eac1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31479235', 'ctest-vn4-51573102'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31479235', 'ctest-policy1-17481282']], 'subnet_ipam': [{'subnet_cidr': '219.234.136.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3857:c888:bfd6:cbc6:9583:b71b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 15:55:41,775 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-11-05 15:55:42,111 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-11-05 15:55:42,140 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75 2025-11-05 15:55:42,152 - DEBUG - Requesting: http://10.0.0.40:8082/project/40f1d014-06ce-4fb4-9427-59270d9b8bf6 2025-11-05 15:55:42,227 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f0c64367-fad3-4b2d-a39d-29da3b072e04 2025-11-05 15:55:42,241 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f0c64367-fad3-4b2d-a39d-29da3b072e04 2025-11-05 15:55:42,250 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7885c9a4-e430-4a53-9940-20fcddd05606 2025-11-05 15:55:42,256 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7885c9a4-e430-4a53-9940-20fcddd05606 2025-11-05 15:55:42,262 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a18f14d6-367d-46d5-bc3a-f1a82e55caf7 2025-11-05 15:55:42,268 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 15:55:42,268 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f0c64367-fad3-4b2d-a39d-29da3b072e04 2025-11-05 15:55:42,277 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7885c9a4-e430-4a53-9940-20fcddd05606 2025-11-05 15:55:42,292 - INFO - Verified VN network id 10 for VN f0c64367-fad3-4b2d-a39d-29da3b072e04 2025-11-05 15:55:42,292 - INFO - Verifications in API Server for VN ctest-vn4-51573102 passed 2025-11-05 15:55:42,292 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f0c64367-fad3-4b2d-a39d-29da3b072e04 2025-11-05 15:55:42,302 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7885c9a4-e430-4a53-9940-20fcddd05606 2025-11-05 15:55:42,309 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7885c9a4-e430-4a53-9940-20fcddd05606 2025-11-05 15:55:42,316 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a18f14d6-367d-46d5-bc3a-f1a82e55caf7 2025-11-05 15:55:42,328 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31479235:ctest-vn4-51573102', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31479235', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17349628728360258349', 'uuid-lslong': '11789625416795762180'}, 'enable': 'true', 'created': '2025-11-05T15:55:40', 'last-modified': '2025-11-05T15:55:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.749497'} 2025-11-05 15:55:42,334 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 15:55:42,334 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51573102 passed 2025-11-05 15:55:42,334 - DEBUG - ====Verifying policy data for ctest-vn4-51573102 in API_Server ====== 2025-11-05 15:55:42,334 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-11-05 15:55:42,340 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75 2025-11-05 15:55:42,350 - DEBUG - Requesting: http://10.0.0.40:8082/project/40f1d014-06ce-4fb4-9427-59270d9b8bf6 2025-11-05 15:55:42,423 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/f0c64367-fad3-4b2d-a39d-29da3b072e04 2025-11-05 15:55:42,433 - DEBUG - ==>Verifying data for policy with id: 2642dd8f-7465-43f9-b1a3-90606adeb193, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31479235', 'ctest-policy1-17481282'] 2025-11-05 15:55:42,434 - INFO - VN ctest-vn4-51573102 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 15:55:42,434 - DEBUG - Verifying the vn in opserver 2025-11-05 15:55:42,434 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31479235:ctest-vn4-51573102 virtual network link through opserver 10.0.0.40 2025-11-05 15:55:42,434 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2025-11-05 15:55:42,776 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks 2025-11-05 15:55:42,835 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31479235:ctest-vn4-51573102', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31479235:ctest-vn4-51573102?flat'} 2025-11-05 15:55:42,835 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31479235:ctest-vn4-51573102 is found in opserver 2025-11-05 15:55:42,846 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 15:55:42,850 - DEBUG - VRF ids for VN ctest-vn4-51573102: {} 2025-11-05 15:55:42,850 - DEBUG - ====Verifying data for ctest-policy1-17481282 in API_Server ====== 2025-11-05 15:55:42,851 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-11-05 15:55:42,856 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75 2025-11-05 15:55:42,866 - DEBUG - Requesting: http://10.0.0.40:8082/project/40f1d014-06ce-4fb4-9427-59270d9b8bf6 2025-11-05 15:55:42,944 - DEBUG - Requesting: http://10.0.0.40:8082/network-policy/2642dd8f-7465-43f9-b1a3-90606adeb193 2025-11-05 15:55:42,954 - INFO - Verified policy ctest-policy1-17481282 in API Server, Result: True 2025-11-05 15:55:42,954 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 15:55:42,962 - INFO - Deleting VN ctest-vn4-51573102 2025-11-05 15:55:43,107 - DEBUG - Response for deleting network () 2025-11-05 15:55:43,107 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/7885c9a4-e430-4a53-9940-20fcddd05606 2025-11-05 15:55:43,112 - DEBUG - Response Code: 404 2025-11-05 15:55:43,113 - DEBUG - Requesting: http://10.0.0.40:8082/domains 2025-11-05 15:55:43,118 - DEBUG - Requesting: http://10.0.0.40:8082/domain/4db89bc9-d504-4028-b1c4-d835675a8b75 2025-11-05 15:55:43,173 - DEBUG - Requesting: http://10.0.0.40:8082/project/40f1d014-06ce-4fb4-9427-59270d9b8bf6 2025-11-05 15:55:43,252 - INFO - Validated that VN ctest-vn4-51573102 is not found in API Server 2025-11-05 15:55:43,262 - DEBUG - VN ctest-vn4-51573102 is not present in Agent 10.0.0.40 2025-11-05 15:55:43,262 - INFO - Validated that VN ctest-vn4-51573102 is not in any agent 2025-11-05 15:55:43,276 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51573102 info 2025-11-05 15:55:43,303 - INFO - Deleted policy ctest-policy1-17481282 2025-11-05 15:55:43,471 - DEBUG - policy ctest-policy1-17481282 is not found in API Server 2025-11-05 15:55:43,740 - DEBUG - No XMPP flaps were noticed during the test
2025-11-05 15:55:43,740 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-05 15:55:43,740 - INFO - -------------------------------------------------------------------------------- 2025-11-05 15:55:44,021 - DEBUG - No XMPP flaps were noticed during the test
2025-11-05 15:55:44,021 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-05 15:55:44,021 - INFO - -------------------------------------------------------------------------------- 2025-11-05 15:55:44,766 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-31479235, ID : 40f1d014-06ce-4fb4-9427-59270d9b8bf6