2025-09-05 13:39:39,210 - INFO - Domain Default found not creating 2025-09-05 13:39:39,350 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-27170749 not found, creating it 2025-09-05 13:39:39,794 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-27170749, ID : 1dc4193f-b900-4272-9206-c5912b148b0e 2025-09-05 13:39:41,154 - INFO - ================================================================================ 2025-09-05 13:39:41,154 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-05 13:39:41,408 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-05 13:39:41,408 - INFO - Initial checks done. Running the testcase now 2025-09-05 13:39:41,408 - INFO - 2025-09-05 13:39:41,408 - INFO - ================================================================================ 2025-09-05 13:39:41,408 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-05 13:39:41,409 - 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-09-05 13:39:41,696 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-09-05 13:39:41,696 - INFO - Initial checks done. Running the testcase now 2025-09-05 13:39:41,696 - INFO - 2025-09-05 13:39:42,035 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27170749:ctest-vn4-56375578, 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-27170749:ctest-vn4-56375578, 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-27170749:ctest-vn4-56375578, 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-27170749:ctest-vn4-56375578, 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-09-05 13:39:42,531 - DEBUG - Response for create_network : {'network': {'id': '4a4a085a-bf97-4c83-9b4c-eb2b67372b95', 'name': 'ctest-vn4-56375578', 'tenant_id': '1dc4193fb90042729206c5912b148b0e', 'project_id': '1dc4193fb90042729206c5912b148b0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27170749', 'ctest-vn4-56375578'], 'port_security_enabled': True, 'description': ''}} 2025-09-05 13:39:42,708 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea91c37f-8e0a-466a-94ee-01b1e3d9126f', 'name': '', 'tenant_id': '1dc4193fb90042729206c5912b148b0e', 'network_id': '4a4a085a-bf97-4c83-9b4c-eb2b67372b95', 'ip_version': 4, 'cidr': '142.65.145.0/26', 'allocation_pools': [{'start': '142.65.145.2', 'end': '142.65.145.62'}], 'gateway_ip': '142.65.145.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.65.145.2', 'tags': [], 'project_id': '1dc4193fb90042729206c5912b148b0e'}} 2025-09-05 13:39:42,912 - DEBUG - Response for create_subnet : {'subnet': {'id': '0457f6ec-f5d0-4226-863c-a6c589726ef2', 'name': '', 'tenant_id': '1dc4193fb90042729206c5912b148b0e', 'network_id': '4a4a085a-bf97-4c83-9b4c-eb2b67372b95', 'ip_version': 6, 'cidr': '2ebf:d44f:a779:bcf3:1bb5:8fd1::/96', 'allocation_pools': [{'start': '2ebf:d44f:a779:bcf3:1bb5:8fd1:0:2', 'end': '2ebf:d44f:a779:bcf3:1bb5:8fd1:ffff:fffe'}], 'gateway_ip': '2ebf:d44f:a779:bcf3:1bb5:8fd1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ebf:d44f:a779:bcf3:1bb5:8fd1:0:2', 'tags': [], 'project_id': '1dc4193fb90042729206c5912b148b0e'}} 2025-09-05 13:39:42,931 - INFO - Created VN ctest-vn4-56375578 2025-09-05 13:39:42,984 - DEBUG - VN ctest-vn4-56375578 UUID is 4a4a085a-bf97-4c83-9b4c-eb2b67372b95 2025-09-05 13:39:43,172 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a4a085a-bf97-4c83-9b4c-eb2b67372b95', 'name': 'ctest-vn4-56375578', 'tenant_id': '1dc4193fb90042729206c5912b148b0e', 'project_id': '1dc4193fb90042729206c5912b148b0e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea91c37f-8e0a-466a-94ee-01b1e3d9126f', '0457f6ec-f5d0-4226-863c-a6c589726ef2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27170749', 'ctest-vn4-56375578'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27170749', 'ctest-policy1-08989231']], 'subnet_ipam': [{'subnet_cidr': '142.65.145.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ebf:d44f:a779:bcf3:1bb5:8fd1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-05 13:39:43,332 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-05 13:39:43,620 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-05 13:39:43,645 - DEBUG - Requesting: http://10.0.0.254:8082/domain/45575216-447d-4e01-ba31-10643541734f 2025-09-05 13:39:43,656 - DEBUG - Requesting: http://10.0.0.254:8082/project/1dc4193f-b900-4272-9206-c5912b148b0e 2025-09-05 13:39:43,724 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4a4a085a-bf97-4c83-9b4c-eb2b67372b95 2025-09-05 13:39:43,737 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4a4a085a-bf97-4c83-9b4c-eb2b67372b95 2025-09-05 13:39:43,746 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2c966d4-f5d9-4b7a-aac2-d9f326242581 2025-09-05 13:39:43,752 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2c966d4-f5d9-4b7a-aac2-d9f326242581 2025-09-05 13:39:43,758 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/020df451-d653-40fe-8362-063df22aa997 2025-09-05 13:39:43,764 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-05 13:39:43,764 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4a4a085a-bf97-4c83-9b4c-eb2b67372b95 2025-09-05 13:39:43,772 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2c966d4-f5d9-4b7a-aac2-d9f326242581 2025-09-05 13:39:43,839 - INFO - Verified VN network id 12 for VN 4a4a085a-bf97-4c83-9b4c-eb2b67372b95 2025-09-05 13:39:43,839 - INFO - Verifications in API Server for VN ctest-vn4-56375578 passed 2025-09-05 13:39:43,839 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4a4a085a-bf97-4c83-9b4c-eb2b67372b95 2025-09-05 13:39:43,847 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2c966d4-f5d9-4b7a-aac2-d9f326242581 2025-09-05 13:39:43,853 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2c966d4-f5d9-4b7a-aac2-d9f326242581 2025-09-05 13:39:43,858 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/020df451-d653-40fe-8362-063df22aa997 2025-09-05 13:39:43,868 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27170749:ctest-vn4-56375578', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-27170749', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5353100292937698435', 'uuid-lslong': '11190577745756629909'}, 'enable': 'true', 'created': '2025-09-05T13:39:42', 'last-modified': '2025-09-05T13:39:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.721372'} 2025-09-05 13:39:43,873 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-05 13:39:43,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56375578 passed 2025-09-05 13:39:43,874 - DEBUG - ====Verifying policy data for ctest-vn4-56375578 in API_Server ====== 2025-09-05 13:39:43,874 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-05 13:39:43,879 - DEBUG - Requesting: http://10.0.0.254:8082/domain/45575216-447d-4e01-ba31-10643541734f 2025-09-05 13:39:43,888 - DEBUG - Requesting: http://10.0.0.254:8082/project/1dc4193f-b900-4272-9206-c5912b148b0e 2025-09-05 13:39:43,961 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4a4a085a-bf97-4c83-9b4c-eb2b67372b95 2025-09-05 13:39:43,969 - DEBUG - ==>Verifying data for policy with id: 181bc5ae-ec84-4491-84d6-f7d6810544f6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-27170749', 'ctest-policy1-08989231'] 2025-09-05 13:39:43,969 - INFO - VN ctest-vn4-56375578 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-05 13:39:43,969 - DEBUG - Verifying the vn in opserver 2025-09-05 13:39:43,969 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27170749:ctest-vn4-56375578 virtual network link through opserver 10.0.0.254 2025-09-05 13:39:43,970 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-05 13:39:44,258 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-09-05 13:39:44,306 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27170749:ctest-vn4-56375578', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27170749:ctest-vn4-56375578?flat'} 2025-09-05 13:39:44,306 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-27170749:ctest-vn4-56375578 is found in opserver 2025-09-05 13:39:44,315 - DEBUG - Do not have enough data to verify VN in agent 2025-09-05 13:39:44,320 - DEBUG - VRF ids for VN ctest-vn4-56375578: {} 2025-09-05 13:39:44,320 - DEBUG - ====Verifying data for ctest-policy1-08989231 in API_Server ====== 2025-09-05 13:39:44,320 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-05 13:39:44,325 - DEBUG - Requesting: http://10.0.0.254:8082/domain/45575216-447d-4e01-ba31-10643541734f 2025-09-05 13:39:44,335 - DEBUG - Requesting: http://10.0.0.254:8082/project/1dc4193f-b900-4272-9206-c5912b148b0e 2025-09-05 13:39:44,405 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/181bc5ae-ec84-4491-84d6-f7d6810544f6 2025-09-05 13:39:44,414 - INFO - Verified policy ctest-policy1-08989231 in API Server, Result: True 2025-09-05 13:39:44,414 - INFO - Done with setup and verification, moving onto test .. 2025-09-05 13:39:44,422 - INFO - Deleting VN ctest-vn4-56375578 2025-09-05 13:39:44,524 - DEBUG - Response for deleting network () 2025-09-05 13:39:44,524 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f2c966d4-f5d9-4b7a-aac2-d9f326242581 2025-09-05 13:39:44,528 - DEBUG - Response Code: 404 2025-09-05 13:39:44,528 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-09-05 13:39:44,533 - DEBUG - Requesting: http://10.0.0.254:8082/domain/45575216-447d-4e01-ba31-10643541734f 2025-09-05 13:39:44,586 - DEBUG - Requesting: http://10.0.0.254:8082/project/1dc4193f-b900-4272-9206-c5912b148b0e 2025-09-05 13:39:44,656 - INFO - Validated that VN ctest-vn4-56375578 is not found in API Server 2025-09-05 13:39:44,666 - DEBUG - VN ctest-vn4-56375578 is not present in Agent 10.0.0.254 2025-09-05 13:39:44,666 - INFO - Validated that VN ctest-vn4-56375578 is not in any agent 2025-09-05 13:39:44,680 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56375578 info 2025-09-05 13:39:44,703 - INFO - Deleted policy ctest-policy1-08989231 2025-09-05 13:39:44,864 - DEBUG - policy ctest-policy1-08989231 is not found in API Server 2025-09-05 13:39:45,119 - DEBUG - No XMPP flaps were noticed during the test