2026-05-20 08:11:17,239 - INFO - Domain Default found not creating 2026-05-20 08:11:17,405 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73035216 not found, creating it 2026-05-20 08:11:17,869 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73035216, ID : 7b9b5570-f43b-431a-9262-6010fa588701 2026-05-20 08:11:19,394 - INFO - ================================================================================ 2026-05-20 08:11:19,394 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-20 08:11:19,646 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-05-20 08:11:19,646 - INFO - Initial checks done. Running the testcase now 2026-05-20 08:11:19,646 - INFO - 2026-05-20 08:11:19,646 - INFO - ================================================================================ 2026-05-20 08:11:19,646 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-20 08:11:19,646 - 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-05-20 08:11:19,934 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-05-20 08:11:19,934 - INFO - Initial checks done. Running the testcase now 2026-05-20 08:11:19,934 - INFO - 2026-05-20 08:11:20,291 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73035216:ctest-vn4-39736738, 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-73035216:ctest-vn4-39736738, 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-73035216:ctest-vn4-39736738, 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-73035216:ctest-vn4-39736738, 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-05-20 08:11:20,820 - DEBUG - Response for create_network : {'network': {'id': '97242484-5583-425e-a6f2-f07bc430b4d7', 'name': 'ctest-vn4-39736738', 'tenant_id': '7b9b5570f43b431a92626010fa588701', 'project_id': '7b9b5570f43b431a92626010fa588701', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73035216', 'ctest-vn4-39736738'], 'port_security_enabled': True, 'description': ''}} 2026-05-20 08:11:20,964 - DEBUG - Response for create_subnet : {'subnet': {'id': '36bc903f-58d3-400e-a652-cbe4cc7a166f', 'name': '', 'tenant_id': '7b9b5570f43b431a92626010fa588701', 'network_id': '97242484-5583-425e-a6f2-f07bc430b4d7', 'ip_version': 4, 'cidr': '193.199.57.128/26', 'allocation_pools': [{'start': '193.199.57.130', 'end': '193.199.57.190'}], 'gateway_ip': '193.199.57.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.199.57.130', 'tags': [], 'project_id': '7b9b5570f43b431a92626010fa588701'}} 2026-05-20 08:11:21,171 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b3651ec-7f51-4d55-aa78-fd8ef7cb4627', 'name': '', 'tenant_id': '7b9b5570f43b431a92626010fa588701', 'network_id': '97242484-5583-425e-a6f2-f07bc430b4d7', 'ip_version': 6, 'cidr': '37d3:31ed:f8be:25:bece:9290::/96', 'allocation_pools': [{'start': '37d3:31ed:f8be:25:bece:9290:0:2', 'end': '37d3:31ed:f8be:25:bece:9290:ffff:fffe'}], 'gateway_ip': '37d3:31ed:f8be:25:bece:9290:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37d3:31ed:f8be:25:bece:9290:0:2', 'tags': [], 'project_id': '7b9b5570f43b431a92626010fa588701'}} 2026-05-20 08:11:21,192 - INFO - Created VN ctest-vn4-39736738 2026-05-20 08:11:21,245 - DEBUG - VN ctest-vn4-39736738 UUID is 97242484-5583-425e-a6f2-f07bc430b4d7 2026-05-20 08:11:21,518 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97242484-5583-425e-a6f2-f07bc430b4d7', 'name': 'ctest-vn4-39736738', 'tenant_id': '7b9b5570f43b431a92626010fa588701', 'project_id': '7b9b5570f43b431a92626010fa588701', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36bc903f-58d3-400e-a652-cbe4cc7a166f', '9b3651ec-7f51-4d55-aa78-fd8ef7cb4627'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73035216', 'ctest-vn4-39736738'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73035216', 'ctest-policy1-41445186']], 'subnet_ipam': [{'subnet_cidr': '193.199.57.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '37d3:31ed:f8be:25:bece:9290::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-20 08:11:21,681 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-20 08:11:21,972 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-20 08:11:22,002 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e3ce85a5-f5d1-4737-8cdd-53bfbfa75820 2026-05-20 08:11:22,014 - DEBUG - Requesting: http://10.0.0.22:8082/project/7b9b5570-f43b-431a-9262-6010fa588701 2026-05-20 08:11:22,086 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/97242484-5583-425e-a6f2-f07bc430b4d7 2026-05-20 08:11:22,099 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/97242484-5583-425e-a6f2-f07bc430b4d7 2026-05-20 08:11:22,113 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a8a7fa5-db25-4c79-99f0-f55395147533 2026-05-20 08:11:22,122 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a8a7fa5-db25-4c79-99f0-f55395147533 2026-05-20 08:11:22,129 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b029d8c1-42ce-41fa-8610-1531d200aa0c 2026-05-20 08:11:22,136 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-20 08:11:22,136 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/97242484-5583-425e-a6f2-f07bc430b4d7 2026-05-20 08:11:22,144 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a8a7fa5-db25-4c79-99f0-f55395147533 2026-05-20 08:11:22,159 - INFO - Verified VN network id 10 for VN 97242484-5583-425e-a6f2-f07bc430b4d7 2026-05-20 08:11:22,159 - INFO - Verifications in API Server for VN ctest-vn4-39736738 passed 2026-05-20 08:11:22,159 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/97242484-5583-425e-a6f2-f07bc430b4d7 2026-05-20 08:11:22,168 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a8a7fa5-db25-4c79-99f0-f55395147533 2026-05-20 08:11:22,174 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a8a7fa5-db25-4c79-99f0-f55395147533 2026-05-20 08:11:22,180 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b029d8c1-42ce-41fa-8610-1531d200aa0c 2026-05-20 08:11:22,192 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73035216:ctest-vn4-39736738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73035216', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10890869949677650526', 'uuid-lslong': '12029941969023186135'}, 'enable': 'true', 'created': '2026-05-20T08:11:20', 'last-modified': '2026-05-20T08:11:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.705498'} 2026-05-20 08:11:22,197 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-20 08:11:22,198 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39736738 passed 2026-05-20 08:11:22,198 - DEBUG - ====Verifying policy data for ctest-vn4-39736738 in API_Server ====== 2026-05-20 08:11:22,198 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-20 08:11:22,203 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e3ce85a5-f5d1-4737-8cdd-53bfbfa75820 2026-05-20 08:11:22,213 - DEBUG - Requesting: http://10.0.0.22:8082/project/7b9b5570-f43b-431a-9262-6010fa588701 2026-05-20 08:11:22,310 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/97242484-5583-425e-a6f2-f07bc430b4d7 2026-05-20 08:11:22,330 - DEBUG - ==>Verifying data for policy with id: 59f5b303-2e5c-4c0c-8dc6-e01046fa9b1b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73035216', 'ctest-policy1-41445186'] 2026-05-20 08:11:22,330 - INFO - VN ctest-vn4-39736738 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-20 08:11:22,330 - DEBUG - Verifying the vn in opserver 2026-05-20 08:11:22,330 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73035216:ctest-vn4-39736738 virtual network link through opserver 10.0.0.22 2026-05-20 08:11:22,331 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-20 08:11:22,684 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-20 08:11:22,770 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73035216:ctest-vn4-39736738', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73035216:ctest-vn4-39736738?flat'} 2026-05-20 08:11:22,770 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73035216:ctest-vn4-39736738 is found in opserver 2026-05-20 08:11:22,781 - DEBUG - Do not have enough data to verify VN in agent 2026-05-20 08:11:22,786 - DEBUG - VRF ids for VN ctest-vn4-39736738: {} 2026-05-20 08:11:22,786 - DEBUG - ====Verifying data for ctest-policy1-41445186 in API_Server ====== 2026-05-20 08:11:22,786 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-20 08:11:22,793 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e3ce85a5-f5d1-4737-8cdd-53bfbfa75820 2026-05-20 08:11:22,807 - DEBUG - Requesting: http://10.0.0.22:8082/project/7b9b5570-f43b-431a-9262-6010fa588701 2026-05-20 08:11:22,878 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/59f5b303-2e5c-4c0c-8dc6-e01046fa9b1b 2026-05-20 08:11:22,887 - INFO - Verified policy ctest-policy1-41445186 in API Server, Result: True 2026-05-20 08:11:22,887 - INFO - Done with setup and verification, moving onto test .. 2026-05-20 08:11:22,894 - INFO - Deleting VN ctest-vn4-39736738 2026-05-20 08:11:23,018 - DEBUG - Response for deleting network () 2026-05-20 08:11:23,018 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a8a7fa5-db25-4c79-99f0-f55395147533 2026-05-20 08:11:23,024 - DEBUG - Response Code: 404 2026-05-20 08:11:23,024 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-05-20 08:11:23,030 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e3ce85a5-f5d1-4737-8cdd-53bfbfa75820 2026-05-20 08:11:23,086 - DEBUG - Requesting: http://10.0.0.22:8082/project/7b9b5570-f43b-431a-9262-6010fa588701 2026-05-20 08:11:23,159 - INFO - Validated that VN ctest-vn4-39736738 is not found in API Server 2026-05-20 08:11:23,171 - DEBUG - VN ctest-vn4-39736738 is not present in Agent 10.0.0.22 2026-05-20 08:11:23,171 - INFO - Validated that VN ctest-vn4-39736738 is not in any agent 2026-05-20 08:11:23,184 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39736738 info 2026-05-20 08:11:23,206 - INFO - Deleted policy ctest-policy1-41445186 2026-05-20 08:11:23,368 - DEBUG - policy ctest-policy1-41445186 is not found in API Server 2026-05-20 08:11:23,622 - DEBUG - No XMPP flaps were noticed during the test