2026-05-06 14:10:53,516 - INFO - Domain Default found not creating 2026-05-06 14:10:53,732 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51766606 not found, creating it 2026-05-06 14:10:54,240 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51766606, ID : 482cc417-fb1f-4fde-9875-e0b43bc394c1 2026-05-06 14:10:55,885 - INFO - ================================================================================ 2026-05-06 14:10:55,885 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-06 14:10:56,144 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-06 14:10:56,145 - INFO - Initial checks done. Running the testcase now 2026-05-06 14:10:56,145 - INFO - 2026-05-06 14:10:56,145 - INFO - ================================================================================ 2026-05-06 14:10:56,145 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-06 14:10:56,145 - 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-06 14:10:56,430 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-06 14:10:56,430 - INFO - Initial checks done. Running the testcase now 2026-05-06 14:10:56,430 - INFO - 2026-05-06 14:10:56,821 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51766606:ctest-vn4-38359938, 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-51766606:ctest-vn4-38359938, 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-51766606:ctest-vn4-38359938, 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-51766606:ctest-vn4-38359938, 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-06 14:10:57,385 - DEBUG - Response for create_network : {'network': {'id': '5afda98b-d7da-4586-a4ab-ab2f38628922', 'name': 'ctest-vn4-38359938', 'tenant_id': '482cc417fb1f4fde9875e0b43bc394c1', 'project_id': '482cc417fb1f4fde9875e0b43bc394c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51766606', 'ctest-vn4-38359938'], 'port_security_enabled': True, 'description': ''}} 2026-05-06 14:10:57,591 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cbeeb598-00dc-40b9-8ca4-050c9aaa91b1', 'name': '', 'tenant_id': '482cc417fb1f4fde9875e0b43bc394c1', 'network_id': '5afda98b-d7da-4586-a4ab-ab2f38628922', 'ip_version': 4, 'cidr': '40.109.219.192/26', 'allocation_pools': [{'start': '40.109.219.194', 'end': '40.109.219.254'}], 'gateway_ip': '40.109.219.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.109.219.194', 'tags': [], 'project_id': '482cc417fb1f4fde9875e0b43bc394c1'}} 2026-05-06 14:10:57,791 - DEBUG - Response for create_subnet : {'subnet': {'id': '517358f7-1bb9-4227-b14a-2c937c0f69db', 'name': '', 'tenant_id': '482cc417fb1f4fde9875e0b43bc394c1', 'network_id': '5afda98b-d7da-4586-a4ab-ab2f38628922', 'ip_version': 6, 'cidr': '3931:898a:6132:eafd:f0ca:7a9::/96', 'allocation_pools': [{'start': '3931:898a:6132:eafd:f0ca:7a9:0:2', 'end': '3931:898a:6132:eafd:f0ca:7a9:ffff:fffe'}], 'gateway_ip': '3931:898a:6132:eafd:f0ca:7a9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3931:898a:6132:eafd:f0ca:7a9:0:2', 'tags': [], 'project_id': '482cc417fb1f4fde9875e0b43bc394c1'}} 2026-05-06 14:10:57,817 - INFO - Created VN ctest-vn4-38359938 2026-05-06 14:10:57,873 - DEBUG - VN ctest-vn4-38359938 UUID is 5afda98b-d7da-4586-a4ab-ab2f38628922 2026-05-06 14:10:58,127 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5afda98b-d7da-4586-a4ab-ab2f38628922', 'name': 'ctest-vn4-38359938', 'tenant_id': '482cc417fb1f4fde9875e0b43bc394c1', 'project_id': '482cc417fb1f4fde9875e0b43bc394c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cbeeb598-00dc-40b9-8ca4-050c9aaa91b1', '517358f7-1bb9-4227-b14a-2c937c0f69db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51766606', 'ctest-vn4-38359938'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51766606', 'ctest-policy1-16197225']], 'subnet_ipam': [{'subnet_cidr': '40.109.219.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3931:898a:6132:eafd:f0ca:7a9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-06 14:10:58,305 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-06 14:10:58,622 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-06 14:10:58,666 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f42ad9d-5ab3-4d08-a15b-3c7ba53893d2 2026-05-06 14:10:58,680 - DEBUG - Requesting: http://10.0.0.50:8082/project/482cc417-fb1f-4fde-9875-e0b43bc394c1 2026-05-06 14:10:58,756 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5afda98b-d7da-4586-a4ab-ab2f38628922 2026-05-06 14:10:58,770 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5afda98b-d7da-4586-a4ab-ab2f38628922 2026-05-06 14:10:58,780 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9bbd6314-32d9-4796-bf16-8beb14216119 2026-05-06 14:10:58,787 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9bbd6314-32d9-4796-bf16-8beb14216119 2026-05-06 14:10:58,794 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2727e988-513c-46d9-ac6a-e2c103d912cc 2026-05-06 14:10:58,801 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-06 14:10:58,801 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5afda98b-d7da-4586-a4ab-ab2f38628922 2026-05-06 14:10:58,810 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9bbd6314-32d9-4796-bf16-8beb14216119 2026-05-06 14:10:58,826 - INFO - Verified VN network id 11 for VN 5afda98b-d7da-4586-a4ab-ab2f38628922 2026-05-06 14:10:58,826 - INFO - Verifications in API Server for VN ctest-vn4-38359938 passed 2026-05-06 14:10:58,826 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5afda98b-d7da-4586-a4ab-ab2f38628922 2026-05-06 14:10:58,836 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9bbd6314-32d9-4796-bf16-8beb14216119 2026-05-06 14:10:58,843 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9bbd6314-32d9-4796-bf16-8beb14216119 2026-05-06 14:10:58,851 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2727e988-513c-46d9-ac6a-e2c103d912cc 2026-05-06 14:10:58,865 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51766606:ctest-vn4-38359938', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51766606', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6556583050608264582', 'uuid-lslong': '11865765862535498018'}, 'enable': 'true', 'created': '2026-05-06T14:10:57', 'last-modified': '2026-05-06T14:10:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.774987'} 2026-05-06 14:10:58,873 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-06 14:10:58,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38359938 passed 2026-05-06 14:10:58,873 - DEBUG - ====Verifying policy data for ctest-vn4-38359938 in API_Server ====== 2026-05-06 14:10:58,873 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-06 14:10:58,880 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f42ad9d-5ab3-4d08-a15b-3c7ba53893d2 2026-05-06 14:10:58,892 - DEBUG - Requesting: http://10.0.0.50:8082/project/482cc417-fb1f-4fde-9875-e0b43bc394c1 2026-05-06 14:10:58,967 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5afda98b-d7da-4586-a4ab-ab2f38628922 2026-05-06 14:10:58,979 - DEBUG - ==>Verifying data for policy with id: 1477bf1b-dcdd-44d4-950f-b2aa737b8c39, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51766606', 'ctest-policy1-16197225'] 2026-05-06 14:10:58,979 - INFO - VN ctest-vn4-38359938 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-06 14:10:58,979 - DEBUG - Verifying the vn in opserver 2026-05-06 14:10:58,979 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51766606:ctest-vn4-38359938 virtual network link through opserver 10.0.0.50 2026-05-06 14:10:58,979 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-06 14:10:59,274 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-06 14:10:59,343 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51766606:ctest-vn4-38359938', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51766606:ctest-vn4-38359938?flat'} 2026-05-06 14:10:59,343 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51766606:ctest-vn4-38359938 is found in opserver 2026-05-06 14:10:59,354 - DEBUG - Do not have enough data to verify VN in agent 2026-05-06 14:10:59,360 - DEBUG - VRF ids for VN ctest-vn4-38359938: {} 2026-05-06 14:10:59,361 - DEBUG - ====Verifying data for ctest-policy1-16197225 in API_Server ====== 2026-05-06 14:10:59,361 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-06 14:10:59,367 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f42ad9d-5ab3-4d08-a15b-3c7ba53893d2 2026-05-06 14:10:59,379 - DEBUG - Requesting: http://10.0.0.50:8082/project/482cc417-fb1f-4fde-9875-e0b43bc394c1 2026-05-06 14:10:59,452 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/1477bf1b-dcdd-44d4-950f-b2aa737b8c39 2026-05-06 14:10:59,463 - INFO - Verified policy ctest-policy1-16197225 in API Server, Result: True 2026-05-06 14:10:59,463 - INFO - Done with setup and verification, moving onto test .. 2026-05-06 14:10:59,473 - INFO - Deleting VN ctest-vn4-38359938 2026-05-06 14:10:59,604 - DEBUG - Response for deleting network () 2026-05-06 14:10:59,604 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9bbd6314-32d9-4796-bf16-8beb14216119 2026-05-06 14:10:59,610 - DEBUG - Response Code: 404 2026-05-06 14:10:59,610 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-06 14:10:59,615 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5f42ad9d-5ab3-4d08-a15b-3c7ba53893d2 2026-05-06 14:10:59,671 - DEBUG - Requesting: http://10.0.0.50:8082/project/482cc417-fb1f-4fde-9875-e0b43bc394c1 2026-05-06 14:10:59,745 - INFO - Validated that VN ctest-vn4-38359938 is not found in API Server 2026-05-06 14:10:59,756 - DEBUG - VN ctest-vn4-38359938 is not present in Agent 10.0.0.50 2026-05-06 14:10:59,756 - INFO - Validated that VN ctest-vn4-38359938 is not in any agent 2026-05-06 14:10:59,774 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38359938 info 2026-05-06 14:10:59,799 - INFO - Deleted policy ctest-policy1-16197225 2026-05-06 14:10:59,973 - DEBUG - policy ctest-policy1-16197225 is not found in API Server 2026-05-06 14:11:00,234 - DEBUG - No XMPP flaps were noticed during the test