2026-06-08 02:45:18,395 - INFO - Domain Default found not creating 2026-06-08 02:45:18,568 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-66103066 not found, creating it 2026-06-08 02:45:19,180 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-66103066, ID : b3a2c70c-bcf5-4713-9e64-59265e479128 2026-06-08 02:45:20,769 - INFO - ================================================================================ 2026-06-08 02:45:20,769 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-08 02:45:22,061 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.193': '3', '10.20.0.25': '1'}, '10.0.0.240': {'10.20.0.129': '3', '10.20.0.25': '2'}} with 2026-06-08 02:45:22,061 - INFO - Initial checks done. Running the testcase now 2026-06-08 02:45:22,062 - INFO - 2026-06-08 02:45:22,062 - INFO - ================================================================================ 2026-06-08 02:45:22,062 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-08 02:45:22,062 - 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-06-08 02:45:23,338 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.193': '3', '10.20.0.25': '1'}, '10.0.0.240': {'10.20.0.129': '3', '10.20.0.25': '2'}} with 2026-06-08 02:45:23,338 - INFO - Initial checks done. Running the testcase now 2026-06-08 02:45:23,338 - INFO - 2026-06-08 02:45:23,708 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232, 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-66103066:ctest-vn4-65056232, 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-66103066:ctest-vn4-65056232, 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-66103066:ctest-vn4-65056232, 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-06-08 02:45:24,492 - DEBUG - Response for create_network : {'network': {'id': '5ebfb63e-619f-4afe-9d4d-7078835a514c', 'name': 'ctest-vn4-65056232', 'tenant_id': 'b3a2c70cbcf547139e6459265e479128', 'project_id': 'b3a2c70cbcf547139e6459265e479128', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66103066', 'ctest-vn4-65056232'], 'port_security_enabled': True, 'description': ''}} 2026-06-08 02:45:24,870 - DEBUG - Response for create_subnet : {'subnet': {'id': '81b31616-edc7-4d24-844f-7fd8975eac97', 'name': '', 'tenant_id': 'b3a2c70cbcf547139e6459265e479128', 'network_id': '5ebfb63e-619f-4afe-9d4d-7078835a514c', 'ip_version': 4, 'cidr': '49.13.239.64/26', 'allocation_pools': [{'start': '49.13.239.66', 'end': '49.13.239.126'}], 'gateway_ip': '49.13.239.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.13.239.66', 'tags': [], 'project_id': 'b3a2c70cbcf547139e6459265e479128'}} 2026-06-08 02:45:25,085 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a8adc6c9-5b4f-43f1-8465-0efd498e5dbc', 'name': '', 'tenant_id': 'b3a2c70cbcf547139e6459265e479128', 'network_id': '5ebfb63e-619f-4afe-9d4d-7078835a514c', 'ip_version': 6, 'cidr': '3c21:2195:41ce:dd9:fb3d:c926::/96', 'allocation_pools': [{'start': '3c21:2195:41ce:dd9:fb3d:c926:0:2', 'end': '3c21:2195:41ce:dd9:fb3d:c926:ffff:fffe'}], 'gateway_ip': '3c21:2195:41ce:dd9:fb3d:c926:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c21:2195:41ce:dd9:fb3d:c926:0:2', 'tags': [], 'project_id': 'b3a2c70cbcf547139e6459265e479128'}} 2026-06-08 02:45:25,108 - INFO - Created VN ctest-vn4-65056232 2026-06-08 02:45:25,120 - DEBUG - VN ctest-vn4-65056232 UUID is 5ebfb63e-619f-4afe-9d4d-7078835a514c 2026-06-08 02:45:25,363 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5ebfb63e-619f-4afe-9d4d-7078835a514c', 'name': 'ctest-vn4-65056232', 'tenant_id': 'b3a2c70cbcf547139e6459265e479128', 'project_id': 'b3a2c70cbcf547139e6459265e479128', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81b31616-edc7-4d24-844f-7fd8975eac97', 'a8adc6c9-5b4f-43f1-8465-0efd498e5dbc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66103066', 'ctest-vn4-65056232'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66103066', 'ctest-policy1-78289654']], 'subnet_ipam': [{'subnet_cidr': '49.13.239.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c21:2195:41ce:dd9:fb3d:c926::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-08 02:45:25,486 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-08 02:45:25,784 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-08 02:45:25,817 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2441b78a-01cc-4005-9aa7-6b434eb6fb41 2026-06-08 02:45:25,831 - DEBUG - Requesting: http://10.0.0.33:8082/project/b3a2c70c-bcf5-4713-9e64-59265e479128 2026-06-08 02:45:25,929 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5ebfb63e-619f-4afe-9d4d-7078835a514c 2026-06-08 02:45:25,942 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5ebfb63e-619f-4afe-9d4d-7078835a514c 2026-06-08 02:45:25,952 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ab62dea-955f-41ad-b5b5-80a284dd3b76 2026-06-08 02:45:25,960 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ab62dea-955f-41ad-b5b5-80a284dd3b76 2026-06-08 02:45:25,968 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/cd0d5381-9357-4b1f-9fdf-a78bfb716642 2026-06-08 02:45:25,975 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 02:45:25,975 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5ebfb63e-619f-4afe-9d4d-7078835a514c 2026-06-08 02:45:25,984 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ab62dea-955f-41ad-b5b5-80a284dd3b76 2026-06-08 02:45:26,001 - INFO - Verified VN network id 15 for VN 5ebfb63e-619f-4afe-9d4d-7078835a514c 2026-06-08 02:45:26,002 - INFO - Verifications in API Server for VN ctest-vn4-65056232 passed 2026-06-08 02:45:26,002 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5ebfb63e-619f-4afe-9d4d-7078835a514c 2026-06-08 02:45:26,012 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ab62dea-955f-41ad-b5b5-80a284dd3b76 2026-06-08 02:45:26,020 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ab62dea-955f-41ad-b5b5-80a284dd3b76 2026-06-08 02:45:26,027 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/cd0d5381-9357-4b1f-9fdf-a78bfb716642 2026-06-08 02:45:26,040 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66103066', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6827375939159018238', 'uuid-lslong': '11334839500063527244'}, 'enable': 'true', 'created': '2026-06-08T02:45:24', 'last-modified': '2026-06-08T02:45:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727322'} 2026-06-08 02:45:26,045 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 02:45:26,050 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66103066', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6827375939159018238', 'uuid-lslong': '11334839500063527244'}, 'enable': 'true', 'created': '2026-06-08T02:45:24', 'last-modified': '2026-06-08T02:45:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.747878'} 2026-06-08 02:45:26,056 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 02:45:26,061 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-66103066', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6827375939159018238', 'uuid-lslong': '11334839500063527244'}, 'enable': 'true', 'created': '2026-06-08T02:45:24', 'last-modified': '2026-06-08T02:45:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.759403'} 2026-06-08 02:45:26,067 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 02:45:26,067 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65056232 passed 2026-06-08 02:45:26,067 - DEBUG - ====Verifying policy data for ctest-vn4-65056232 in API_Server ====== 2026-06-08 02:45:26,067 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-08 02:45:26,073 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2441b78a-01cc-4005-9aa7-6b434eb6fb41 2026-06-08 02:45:26,084 - DEBUG - Requesting: http://10.0.0.33:8082/project/b3a2c70c-bcf5-4713-9e64-59265e479128 2026-06-08 02:45:26,194 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5ebfb63e-619f-4afe-9d4d-7078835a514c 2026-06-08 02:45:26,204 - DEBUG - ==>Verifying data for policy with id: a195f5ab-8027-4d5b-ab70-d09b8e669445, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-66103066', 'ctest-policy1-78289654'] 2026-06-08 02:45:26,204 - INFO - VN ctest-vn4-65056232 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-08 02:45:26,204 - DEBUG - Verifying the vn in opserver 2026-06-08 02:45:26,204 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232 virtual network link through opserver 10.0.0.33 2026-06-08 02:45:26,204 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-08 02:45:26,500 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-08 02:45:26,580 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232?flat'} 2026-06-08 02:45:26,580 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232 virtual network link through opserver 10.0.0.249 2026-06-08 02:45:26,580 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-08 02:45:26,874 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-08 02:45:26,942 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232?flat'} 2026-06-08 02:45:26,942 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232 virtual network link through opserver 10.0.0.27 2026-06-08 02:45:26,943 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-06-08 02:45:27,239 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-06-08 02:45:27,306 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232?flat'} 2026-06-08 02:45:27,306 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-66103066:ctest-vn4-65056232 is found in opserver 2026-06-08 02:45:27,328 - DEBUG - Do not have enough data to verify VN in agent 2026-06-08 02:45:27,339 - DEBUG - VRF ids for VN ctest-vn4-65056232: {} 2026-06-08 02:45:27,339 - DEBUG - ====Verifying data for ctest-policy1-78289654 in API_Server ====== 2026-06-08 02:45:27,339 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-08 02:45:27,344 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2441b78a-01cc-4005-9aa7-6b434eb6fb41 2026-06-08 02:45:27,356 - DEBUG - Requesting: http://10.0.0.33:8082/project/b3a2c70c-bcf5-4713-9e64-59265e479128 2026-06-08 02:45:27,449 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/a195f5ab-8027-4d5b-ab70-d09b8e669445 2026-06-08 02:45:27,460 - INFO - Verified policy ctest-policy1-78289654 in API Server, Result: True 2026-06-08 02:45:27,460 - INFO - Done with setup and verification, moving onto test .. 2026-06-08 02:45:27,472 - INFO - Deleting VN ctest-vn4-65056232 2026-06-08 02:45:27,695 - DEBUG - Response for deleting network () 2026-06-08 02:45:27,695 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ab62dea-955f-41ad-b5b5-80a284dd3b76 2026-06-08 02:45:27,704 - DEBUG - Response Code: 404 2026-06-08 02:45:27,705 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-08 02:45:27,712 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2441b78a-01cc-4005-9aa7-6b434eb6fb41 2026-06-08 02:45:27,768 - DEBUG - Requesting: http://10.0.0.33:8082/project/b3a2c70c-bcf5-4713-9e64-59265e479128 2026-06-08 02:45:27,859 - INFO - Validated that VN ctest-vn4-65056232 is not found in API Server 2026-06-08 02:45:27,871 - DEBUG - VN ctest-vn4-65056232 is not present in Agent 10.0.0.23 2026-06-08 02:45:27,881 - DEBUG - VN ctest-vn4-65056232 is not present in Agent 10.0.0.240 2026-06-08 02:45:27,881 - INFO - Validated that VN ctest-vn4-65056232 is not in any agent 2026-06-08 02:45:27,911 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65056232 info 2026-06-08 02:45:27,961 - INFO - Deleted policy ctest-policy1-78289654 2026-06-08 02:45:28,151 - DEBUG - policy ctest-policy1-78289654 is not found in API Server 2026-06-08 02:45:29,444 - DEBUG - No XMPP flaps were noticed during the test 2026-06-08 02:45:29,444 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-06-08 02:45:29,444 - INFO - -------------------------------------------------------------------------------- 2026-06-08 02:45:30,713 - DEBUG - No XMPP flaps were noticed during the test 2026-06-08 02:45:30,713 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-06-08 02:45:30,713 - INFO - -------------------------------------------------------------------------------- 2026-06-08 02:45:31,479 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-66103066, ID : b3a2c70c-bcf5-4713-9e64-59265e479128