2026-08-21 17:56:30,774 - INFO - Domain Default found not creating 2026-08-21 17:56:30,951 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42171983 not found, creating it 2026-08-21 17:56:31,457 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42171983, ID : 5b83c8a9-392c-4578-84bf-6fec0876cec2 2026-08-21 17:56:33,186 - INFO - ================================================================================ 2026-08-21 17:56:33,186 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 17:56:33,459 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-08-21 17:56:33,459 - INFO - Initial checks done. Running the testcase now 2026-08-21 17:56:33,459 - INFO - 2026-08-21 17:56:33,459 - INFO - ================================================================================ 2026-08-21 17:56:33,459 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 17:56:33,460 - 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-08-21 17:56:33,752 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-08-21 17:56:33,752 - INFO - Initial checks done. Running the testcase now 2026-08-21 17:56:33,752 - INFO - 2026-08-21 17:56:34,200 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42171983:ctest-vn4-33918179, 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-42171983:ctest-vn4-33918179, 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-42171983:ctest-vn4-33918179, 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-42171983:ctest-vn4-33918179, 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-08-21 17:56:34,753 - DEBUG - Response for create_network : {'network': {'id': '2f8a9259-e6ba-4ebc-9740-618bf22315b7', 'name': 'ctest-vn4-33918179', 'tenant_id': '5b83c8a9392c457884bf6fec0876cec2', 'project_id': '5b83c8a9392c457884bf6fec0876cec2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42171983', 'ctest-vn4-33918179'], 'port_security_enabled': True, 'description': ''}} 2026-08-21 17:56:34,974 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aafdaad9-e403-4c58-85d7-b41f04d9efbc', 'name': '', 'tenant_id': '5b83c8a9392c457884bf6fec0876cec2', 'network_id': '2f8a9259-e6ba-4ebc-9740-618bf22315b7', 'ip_version': 4, 'cidr': '111.18.226.128/26', 'allocation_pools': [{'start': '111.18.226.130', 'end': '111.18.226.190'}], 'gateway_ip': '111.18.226.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.18.226.130', 'tags': [], 'project_id': '5b83c8a9392c457884bf6fec0876cec2'}} 2026-08-21 17:56:35,146 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa384bd0-a5c9-478e-a2ff-acc95a029a26', 'name': '', 'tenant_id': '5b83c8a9392c457884bf6fec0876cec2', 'network_id': '2f8a9259-e6ba-4ebc-9740-618bf22315b7', 'ip_version': 6, 'cidr': '2060:d242:63bb:f0b1:d013:e418::/96', 'allocation_pools': [{'start': '2060:d242:63bb:f0b1:d013:e418:0:2', 'end': '2060:d242:63bb:f0b1:d013:e418:ffff:fffe'}], 'gateway_ip': '2060:d242:63bb:f0b1:d013:e418:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2060:d242:63bb:f0b1:d013:e418:0:2', 'tags': [], 'project_id': '5b83c8a9392c457884bf6fec0876cec2'}} 2026-08-21 17:56:35,169 - INFO - Created VN ctest-vn4-33918179 2026-08-21 17:56:35,224 - DEBUG - VN ctest-vn4-33918179 UUID is 2f8a9259-e6ba-4ebc-9740-618bf22315b7 2026-08-21 17:56:35,481 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2f8a9259-e6ba-4ebc-9740-618bf22315b7', 'name': 'ctest-vn4-33918179', 'tenant_id': '5b83c8a9392c457884bf6fec0876cec2', 'project_id': '5b83c8a9392c457884bf6fec0876cec2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aafdaad9-e403-4c58-85d7-b41f04d9efbc', 'aa384bd0-a5c9-478e-a2ff-acc95a029a26'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42171983', 'ctest-vn4-33918179'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42171983', 'ctest-policy1-75045307']], 'subnet_ipam': [{'subnet_cidr': '111.18.226.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2060:d242:63bb:f0b1:d013:e418::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-21 17:56:35,648 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-21 17:56:36,024 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-21 17:56:36,054 - DEBUG - Requesting: http://10.0.0.161:8082/domain/71fe0c43-1586-4618-a544-4e5e7f77c7ed 2026-08-21 17:56:36,068 - DEBUG - Requesting: http://10.0.0.161:8082/project/5b83c8a9-392c-4578-84bf-6fec0876cec2 2026-08-21 17:56:36,152 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2f8a9259-e6ba-4ebc-9740-618bf22315b7 2026-08-21 17:56:36,166 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2f8a9259-e6ba-4ebc-9740-618bf22315b7 2026-08-21 17:56:36,178 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3ffc5728-e99d-4990-8758-35f59fc07d9f 2026-08-21 17:56:36,186 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3ffc5728-e99d-4990-8758-35f59fc07d9f 2026-08-21 17:56:36,196 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/380f0920-65d9-4f26-b141-a2d4d5d44dd3 2026-08-21 17:56:36,204 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-21 17:56:36,205 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2f8a9259-e6ba-4ebc-9740-618bf22315b7 2026-08-21 17:56:36,216 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3ffc5728-e99d-4990-8758-35f59fc07d9f 2026-08-21 17:56:36,235 - INFO - Verified VN network id 11 for VN 2f8a9259-e6ba-4ebc-9740-618bf22315b7 2026-08-21 17:56:36,235 - INFO - Verifications in API Server for VN ctest-vn4-33918179 passed 2026-08-21 17:56:36,235 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2f8a9259-e6ba-4ebc-9740-618bf22315b7 2026-08-21 17:56:36,247 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3ffc5728-e99d-4990-8758-35f59fc07d9f 2026-08-21 17:56:36,256 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3ffc5728-e99d-4990-8758-35f59fc07d9f 2026-08-21 17:56:36,264 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/380f0920-65d9-4f26-b141-a2d4d5d44dd3 2026-08-21 17:56:36,281 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42171983:ctest-vn4-33918179', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42171983', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3425711381389397692', 'uuid-lslong': '10898818351927334327'}, 'enable': 'true', 'created': '2026-08-21T17:56:34', 'last-modified': '2026-08-21T17:56:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.847187'} 2026-08-21 17:56:36,288 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-21 17:56:36,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33918179 passed 2026-08-21 17:56:36,289 - DEBUG - ====Verifying policy data for ctest-vn4-33918179 in API_Server ====== 2026-08-21 17:56:36,289 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-21 17:56:36,296 - DEBUG - Requesting: http://10.0.0.161:8082/domain/71fe0c43-1586-4618-a544-4e5e7f77c7ed 2026-08-21 17:56:36,308 - DEBUG - Requesting: http://10.0.0.161:8082/project/5b83c8a9-392c-4578-84bf-6fec0876cec2 2026-08-21 17:56:36,392 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/2f8a9259-e6ba-4ebc-9740-618bf22315b7 2026-08-21 17:56:36,407 - DEBUG - ==>Verifying data for policy with id: 4b683731-3435-46e5-bab1-340d4257dd73, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42171983', 'ctest-policy1-75045307'] 2026-08-21 17:56:36,407 - INFO - VN ctest-vn4-33918179 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-21 17:56:36,407 - DEBUG - Verifying the vn in opserver 2026-08-21 17:56:36,407 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42171983:ctest-vn4-33918179 virtual network link through opserver 10.0.0.161 2026-08-21 17:56:36,407 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-08-21 17:56:36,791 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-08-21 17:56:36,854 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42171983:ctest-vn4-33918179', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42171983:ctest-vn4-33918179?flat'} 2026-08-21 17:56:36,854 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42171983:ctest-vn4-33918179 is found in opserver 2026-08-21 17:56:36,867 - DEBUG - Do not have enough data to verify VN in agent 2026-08-21 17:56:36,874 - DEBUG - VRF ids for VN ctest-vn4-33918179: {} 2026-08-21 17:56:36,875 - DEBUG - ====Verifying data for ctest-policy1-75045307 in API_Server ====== 2026-08-21 17:56:36,875 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-21 17:56:36,882 - DEBUG - Requesting: http://10.0.0.161:8082/domain/71fe0c43-1586-4618-a544-4e5e7f77c7ed 2026-08-21 17:56:36,896 - DEBUG - Requesting: http://10.0.0.161:8082/project/5b83c8a9-392c-4578-84bf-6fec0876cec2 2026-08-21 17:56:36,983 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/4b683731-3435-46e5-bab1-340d4257dd73 2026-08-21 17:56:36,996 - INFO - Verified policy ctest-policy1-75045307 in API Server, Result: True 2026-08-21 17:56:36,996 - INFO - Done with setup and verification, moving onto test .. 2026-08-21 17:56:37,006 - INFO - Deleting VN ctest-vn4-33918179 2026-08-21 17:56:37,175 - DEBUG - Response for deleting network () 2026-08-21 17:56:37,175 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/3ffc5728-e99d-4990-8758-35f59fc07d9f 2026-08-21 17:56:37,183 - DEBUG - Response Code: 404 2026-08-21 17:56:37,183 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-08-21 17:56:37,191 - DEBUG - Requesting: http://10.0.0.161:8082/domain/71fe0c43-1586-4618-a544-4e5e7f77c7ed 2026-08-21 17:56:37,245 - DEBUG - Requesting: http://10.0.0.161:8082/project/5b83c8a9-392c-4578-84bf-6fec0876cec2 2026-08-21 17:56:37,328 - INFO - Validated that VN ctest-vn4-33918179 is not found in API Server 2026-08-21 17:56:37,340 - DEBUG - VN ctest-vn4-33918179 is not present in Agent 10.0.0.161 2026-08-21 17:56:37,340 - INFO - Validated that VN ctest-vn4-33918179 is not in any agent 2026-08-21 17:56:37,363 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33918179 info 2026-08-21 17:56:37,395 - INFO - Deleted policy ctest-policy1-75045307 2026-08-21 17:56:37,575 - DEBUG - policy ctest-policy1-75045307 is not found in API Server 2026-08-21 17:56:37,835 - DEBUG - No XMPP flaps were noticed during the test