2026-02-11 17:58:34,379 - INFO - Domain Default found not creating 2026-02-11 17:58:34,542 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87735222 not found, creating it 2026-02-11 17:58:34,987 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87735222, ID : 5e451d6e-2222-4e4e-9155-da068bf132b2 2026-02-11 17:58:36,510 - INFO - ================================================================================ 2026-02-11 17:58:36,510 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 17:58:36,768 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2026-02-11 17:58:36,768 - INFO - Initial checks done. Running the testcase now 2026-02-11 17:58:36,768 - INFO - 2026-02-11 17:58:36,768 - INFO - ================================================================================ 2026-02-11 17:58:36,768 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 17:58:36,768 - 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-02-11 17:58:37,055 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2026-02-11 17:58:37,055 - INFO - Initial checks done. Running the testcase now 2026-02-11 17:58:37,056 - INFO - 2026-02-11 17:58:37,406 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87735222:ctest-vn4-88574071, 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-87735222:ctest-vn4-88574071, 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-87735222:ctest-vn4-88574071, 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-87735222:ctest-vn4-88574071, 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-02-11 17:58:37,920 - DEBUG - Response for create_network : {'network': {'id': '2690f99f-d285-459a-ac39-54b87ac7b196', 'name': 'ctest-vn4-88574071', 'tenant_id': '5e451d6e22224e4e9155da068bf132b2', 'project_id': '5e451d6e22224e4e9155da068bf132b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87735222', 'ctest-vn4-88574071'], 'port_security_enabled': True, 'description': ''}} 2026-02-11 17:58:38,117 - DEBUG - Response for create_subnet : {'subnet': {'id': '80b6e288-9feb-405a-ab4c-f3e1afeb9ea3', 'name': '', 'tenant_id': '5e451d6e22224e4e9155da068bf132b2', 'network_id': '2690f99f-d285-459a-ac39-54b87ac7b196', 'ip_version': 4, 'cidr': '197.39.218.64/26', 'allocation_pools': [{'start': '197.39.218.66', 'end': '197.39.218.126'}], 'gateway_ip': '197.39.218.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.39.218.66', 'tags': [], 'project_id': '5e451d6e22224e4e9155da068bf132b2'}} 2026-02-11 17:58:38,315 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a50e2136-64ce-4823-9f5e-b8a564822ec6', 'name': '', 'tenant_id': '5e451d6e22224e4e9155da068bf132b2', 'network_id': '2690f99f-d285-459a-ac39-54b87ac7b196', 'ip_version': 6, 'cidr': '3603:d50:79d1:a5ab:9b84:7245::/96', 'allocation_pools': [{'start': '3603:d50:79d1:a5ab:9b84:7245:0:2', 'end': '3603:d50:79d1:a5ab:9b84:7245:ffff:fffe'}], 'gateway_ip': '3603:d50:79d1:a5ab:9b84:7245:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3603:d50:79d1:a5ab:9b84:7245:0:2', 'tags': [], 'project_id': '5e451d6e22224e4e9155da068bf132b2'}} 2026-02-11 17:58:38,335 - INFO - Created VN ctest-vn4-88574071 2026-02-11 17:58:38,386 - DEBUG - VN ctest-vn4-88574071 UUID is 2690f99f-d285-459a-ac39-54b87ac7b196 2026-02-11 17:58:38,573 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2690f99f-d285-459a-ac39-54b87ac7b196', 'name': 'ctest-vn4-88574071', 'tenant_id': '5e451d6e22224e4e9155da068bf132b2', 'project_id': '5e451d6e22224e4e9155da068bf132b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80b6e288-9feb-405a-ab4c-f3e1afeb9ea3', 'a50e2136-64ce-4823-9f5e-b8a564822ec6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87735222', 'ctest-vn4-88574071'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87735222', 'ctest-policy1-45603359']], 'subnet_ipam': [{'subnet_cidr': '197.39.218.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3603:d50:79d1:a5ab:9b84:7245::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-11 17:58:38,742 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-11 17:58:39,034 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-11 17:58:39,062 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7f06294f-678d-439f-a02e-752dc0e08a6c 2026-02-11 17:58:39,075 - DEBUG - Requesting: http://10.0.0.141:8082/project/5e451d6e-2222-4e4e-9155-da068bf132b2 2026-02-11 17:58:39,143 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2690f99f-d285-459a-ac39-54b87ac7b196 2026-02-11 17:58:39,156 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2690f99f-d285-459a-ac39-54b87ac7b196 2026-02-11 17:58:39,165 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f473bf33-12f3-4b19-b1ce-ba8fa5bda882 2026-02-11 17:58:39,172 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f473bf33-12f3-4b19-b1ce-ba8fa5bda882 2026-02-11 17:58:39,178 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/48a9bd43-9af2-48eb-b176-3835d906ebdf 2026-02-11 17:58:39,184 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 17:58:39,184 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2690f99f-d285-459a-ac39-54b87ac7b196 2026-02-11 17:58:39,193 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f473bf33-12f3-4b19-b1ce-ba8fa5bda882 2026-02-11 17:58:39,206 - INFO - Verified VN network id 12 for VN 2690f99f-d285-459a-ac39-54b87ac7b196 2026-02-11 17:58:39,207 - INFO - Verifications in API Server for VN ctest-vn4-88574071 passed 2026-02-11 17:58:39,207 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2690f99f-d285-459a-ac39-54b87ac7b196 2026-02-11 17:58:39,215 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f473bf33-12f3-4b19-b1ce-ba8fa5bda882 2026-02-11 17:58:39,222 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f473bf33-12f3-4b19-b1ce-ba8fa5bda882 2026-02-11 17:58:39,228 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/48a9bd43-9af2-48eb-b176-3835d906ebdf 2026-02-11 17:58:39,239 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87735222:ctest-vn4-88574071', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87735222', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2778995434914661786', 'uuid-lslong': '12410043399506735510'}, 'enable': 'true', 'created': '2026-02-11T17:58:37', 'last-modified': '2026-02-11T17:58:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.686667'} 2026-02-11 17:58:39,245 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 17:58:39,245 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88574071 passed 2026-02-11 17:58:39,246 - DEBUG - ====Verifying policy data for ctest-vn4-88574071 in API_Server ====== 2026-02-11 17:58:39,246 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-11 17:58:39,251 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7f06294f-678d-439f-a02e-752dc0e08a6c 2026-02-11 17:58:39,261 - DEBUG - Requesting: http://10.0.0.141:8082/project/5e451d6e-2222-4e4e-9155-da068bf132b2 2026-02-11 17:58:39,335 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/2690f99f-d285-459a-ac39-54b87ac7b196 2026-02-11 17:58:39,345 - DEBUG - ==>Verifying data for policy with id: fe29b3d8-b31a-4d38-851f-040072513ace, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87735222', 'ctest-policy1-45603359'] 2026-02-11 17:58:39,345 - INFO - VN ctest-vn4-88574071 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-11 17:58:39,345 - DEBUG - Verifying the vn in opserver 2026-02-11 17:58:39,345 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87735222:ctest-vn4-88574071 virtual network link through opserver 10.0.0.141 2026-02-11 17:58:39,346 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-11 17:58:39,636 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-11 17:58:39,696 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87735222:ctest-vn4-88574071', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87735222:ctest-vn4-88574071?flat'} 2026-02-11 17:58:39,697 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87735222:ctest-vn4-88574071 is found in opserver 2026-02-11 17:58:39,706 - DEBUG - Do not have enough data to verify VN in agent 2026-02-11 17:58:39,711 - DEBUG - VRF ids for VN ctest-vn4-88574071: {} 2026-02-11 17:58:39,711 - DEBUG - ====Verifying data for ctest-policy1-45603359 in API_Server ====== 2026-02-11 17:58:39,711 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-11 17:58:39,717 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7f06294f-678d-439f-a02e-752dc0e08a6c 2026-02-11 17:58:39,728 - DEBUG - Requesting: http://10.0.0.141:8082/project/5e451d6e-2222-4e4e-9155-da068bf132b2 2026-02-11 17:58:39,799 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/fe29b3d8-b31a-4d38-851f-040072513ace 2026-02-11 17:58:39,810 - INFO - Verified policy ctest-policy1-45603359 in API Server, Result: True 2026-02-11 17:58:39,810 - INFO - Done with setup and verification, moving onto test .. 2026-02-11 17:58:39,819 - INFO - Deleting VN ctest-vn4-88574071 2026-02-11 17:58:39,945 - DEBUG - Response for deleting network () 2026-02-11 17:58:39,945 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f473bf33-12f3-4b19-b1ce-ba8fa5bda882 2026-02-11 17:58:39,950 - DEBUG - Response Code: 404 2026-02-11 17:58:39,951 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-11 17:58:39,958 - DEBUG - Requesting: http://10.0.0.141:8082/domain/7f06294f-678d-439f-a02e-752dc0e08a6c 2026-02-11 17:58:40,012 - DEBUG - Requesting: http://10.0.0.141:8082/project/5e451d6e-2222-4e4e-9155-da068bf132b2 2026-02-11 17:58:40,084 - INFO - Validated that VN ctest-vn4-88574071 is not found in API Server 2026-02-11 17:58:40,093 - DEBUG - VN ctest-vn4-88574071 is not present in Agent 10.0.0.141 2026-02-11 17:58:40,093 - INFO - Validated that VN ctest-vn4-88574071 is not in any agent 2026-02-11 17:58:40,107 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88574071 info 2026-02-11 17:58:40,133 - INFO - Deleted policy ctest-policy1-45603359 2026-02-11 17:58:40,294 - DEBUG - policy ctest-policy1-45603359 is not found in API Server 2026-02-11 17:58:40,548 - DEBUG - No XMPP flaps were noticed during the test 2026-02-11 17:58:40,548 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-11 17:58:40,548 - INFO - -------------------------------------------------------------------------------- 2026-02-11 17:58:40,838 - DEBUG - No XMPP flaps were noticed during the test 2026-02-11 17:58:40,839 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-11 17:58:40,839 - INFO - -------------------------------------------------------------------------------- 2026-02-11 17:58:41,529 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-87735222, ID : 5e451d6e-2222-4e4e-9155-da068bf132b2