2026-06-04 02:25:46,403 - INFO - Domain Default found not creating 2026-06-04 02:25:46,566 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98163727 not found, creating it 2026-06-04 02:25:47,024 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98163727, ID : 711c9d16-2fe7-4130-9629-1ff449c165c8 2026-06-04 02:25:48,572 - INFO - ================================================================================ 2026-06-04 02:25:48,572 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 02:25:48,826 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-06-04 02:25:48,826 - INFO - Initial checks done. Running the testcase now 2026-06-04 02:25:48,826 - INFO - 2026-06-04 02:25:48,826 - INFO - ================================================================================ 2026-06-04 02:25:48,826 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 02:25:48,826 - 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-04 02:25:49,128 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-06-04 02:25:49,129 - INFO - Initial checks done. Running the testcase now 2026-06-04 02:25:49,129 - INFO - 2026-06-04 02:25:49,494 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98163727:ctest-vn4-44869708, 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-98163727:ctest-vn4-44869708, 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-98163727:ctest-vn4-44869708, 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-98163727:ctest-vn4-44869708, 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-04 02:25:50,030 - DEBUG - Response for create_network : {'network': {'id': '021b19ee-54a6-452f-810b-967af47d0c25', 'name': 'ctest-vn4-44869708', 'tenant_id': '711c9d162fe7413096291ff449c165c8', 'project_id': '711c9d162fe7413096291ff449c165c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98163727', 'ctest-vn4-44869708'], 'port_security_enabled': True, 'description': ''}} 2026-06-04 02:25:50,244 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c0aac0a-54e9-488f-9e45-5d42178dc8a1', 'name': '', 'tenant_id': '711c9d162fe7413096291ff449c165c8', 'network_id': '021b19ee-54a6-452f-810b-967af47d0c25', 'ip_version': 4, 'cidr': '126.48.87.0/26', 'allocation_pools': [{'start': '126.48.87.2', 'end': '126.48.87.62'}], 'gateway_ip': '126.48.87.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.48.87.2', 'tags': [], 'project_id': '711c9d162fe7413096291ff449c165c8'}} 2026-06-04 02:25:50,411 - DEBUG - Response for create_subnet : {'subnet': {'id': '52a9f411-9512-4e1f-85e5-d8229d64e193', 'name': '', 'tenant_id': '711c9d162fe7413096291ff449c165c8', 'network_id': '021b19ee-54a6-452f-810b-967af47d0c25', 'ip_version': 6, 'cidr': '2362:d698:47f1:43b:3d3d:af75::/96', 'allocation_pools': [{'start': '2362:d698:47f1:43b:3d3d:af75:0:2', 'end': '2362:d698:47f1:43b:3d3d:af75:ffff:fffe'}], 'gateway_ip': '2362:d698:47f1:43b:3d3d:af75:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2362:d698:47f1:43b:3d3d:af75:0:2', 'tags': [], 'project_id': '711c9d162fe7413096291ff449c165c8'}} 2026-06-04 02:25:50,432 - INFO - Created VN ctest-vn4-44869708 2026-06-04 02:25:50,485 - DEBUG - VN ctest-vn4-44869708 UUID is 021b19ee-54a6-452f-810b-967af47d0c25 2026-06-04 02:25:50,689 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '021b19ee-54a6-452f-810b-967af47d0c25', 'name': 'ctest-vn4-44869708', 'tenant_id': '711c9d162fe7413096291ff449c165c8', 'project_id': '711c9d162fe7413096291ff449c165c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c0aac0a-54e9-488f-9e45-5d42178dc8a1', '52a9f411-9512-4e1f-85e5-d8229d64e193'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98163727', 'ctest-vn4-44869708'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98163727', 'ctest-policy1-86638194']], 'subnet_ipam': [{'subnet_cidr': '126.48.87.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2362:d698:47f1:43b:3d3d:af75::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-04 02:25:50,849 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-04 02:25:51,143 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-04 02:25:51,173 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e506eb7a-b2dc-43f7-9128-6e432f346ffe 2026-06-04 02:25:51,184 - DEBUG - Requesting: http://10.0.0.22:8082/project/711c9d16-2fe7-4130-9629-1ff449c165c8 2026-06-04 02:25:51,256 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/021b19ee-54a6-452f-810b-967af47d0c25 2026-06-04 02:25:51,268 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/021b19ee-54a6-452f-810b-967af47d0c25 2026-06-04 02:25:51,277 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/692f5604-b9fc-47c6-8d27-d50542c33ffc 2026-06-04 02:25:51,284 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/692f5604-b9fc-47c6-8d27-d50542c33ffc 2026-06-04 02:25:51,290 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2c76352d-4083-4a91-8efa-e82cdeed0387 2026-06-04 02:25:51,297 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 02:25:51,297 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/021b19ee-54a6-452f-810b-967af47d0c25 2026-06-04 02:25:51,307 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/692f5604-b9fc-47c6-8d27-d50542c33ffc 2026-06-04 02:25:51,324 - INFO - Verified VN network id 11 for VN 021b19ee-54a6-452f-810b-967af47d0c25 2026-06-04 02:25:51,324 - INFO - Verifications in API Server for VN ctest-vn4-44869708 passed 2026-06-04 02:25:51,324 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/021b19ee-54a6-452f-810b-967af47d0c25 2026-06-04 02:25:51,333 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/692f5604-b9fc-47c6-8d27-d50542c33ffc 2026-06-04 02:25:51,339 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/692f5604-b9fc-47c6-8d27-d50542c33ffc 2026-06-04 02:25:51,345 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/2c76352d-4083-4a91-8efa-e82cdeed0387 2026-06-04 02:25:51,358 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98163727:ctest-vn4-44869708', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98163727', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '151743523860137263', 'uuid-lslong': '9298691310468533285'}, 'enable': 'true', 'created': '2026-06-04T02:25:49', 'last-modified': '2026-06-04T02:25:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.698993'} 2026-06-04 02:25:51,363 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 02:25:51,363 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44869708 passed 2026-06-04 02:25:51,364 - DEBUG - ====Verifying policy data for ctest-vn4-44869708 in API_Server ====== 2026-06-04 02:25:51,364 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-04 02:25:51,369 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e506eb7a-b2dc-43f7-9128-6e432f346ffe 2026-06-04 02:25:51,380 - DEBUG - Requesting: http://10.0.0.22:8082/project/711c9d16-2fe7-4130-9629-1ff449c165c8 2026-06-04 02:25:51,450 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/021b19ee-54a6-452f-810b-967af47d0c25 2026-06-04 02:25:51,460 - DEBUG - ==>Verifying data for policy with id: 60b3a8ac-3e35-4758-8376-e3fde2a543f6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98163727', 'ctest-policy1-86638194'] 2026-06-04 02:25:51,460 - INFO - VN ctest-vn4-44869708 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-04 02:25:51,460 - DEBUG - Verifying the vn in opserver 2026-06-04 02:25:51,460 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98163727:ctest-vn4-44869708 virtual network link through opserver 10.0.0.22 2026-06-04 02:25:51,460 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-06-04 02:25:51,753 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-06-04 02:25:51,812 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98163727:ctest-vn4-44869708', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98163727:ctest-vn4-44869708?flat'} 2026-06-04 02:25:51,812 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98163727:ctest-vn4-44869708 is found in opserver 2026-06-04 02:25:51,821 - DEBUG - Do not have enough data to verify VN in agent 2026-06-04 02:25:51,826 - DEBUG - VRF ids for VN ctest-vn4-44869708: {} 2026-06-04 02:25:51,826 - DEBUG - ====Verifying data for ctest-policy1-86638194 in API_Server ====== 2026-06-04 02:25:51,826 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-04 02:25:51,831 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e506eb7a-b2dc-43f7-9128-6e432f346ffe 2026-06-04 02:25:51,841 - DEBUG - Requesting: http://10.0.0.22:8082/project/711c9d16-2fe7-4130-9629-1ff449c165c8 2026-06-04 02:25:51,909 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/60b3a8ac-3e35-4758-8376-e3fde2a543f6 2026-06-04 02:25:51,918 - INFO - Verified policy ctest-policy1-86638194 in API Server, Result: True 2026-06-04 02:25:51,918 - INFO - Done with setup and verification, moving onto test .. 2026-06-04 02:25:51,926 - INFO - Deleting VN ctest-vn4-44869708 2026-06-04 02:25:52,031 - DEBUG - Response for deleting network () 2026-06-04 02:25:52,031 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/692f5604-b9fc-47c6-8d27-d50542c33ffc 2026-06-04 02:25:52,036 - DEBUG - Response Code: 404 2026-06-04 02:25:52,036 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-04 02:25:52,042 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e506eb7a-b2dc-43f7-9128-6e432f346ffe 2026-06-04 02:25:52,098 - DEBUG - Requesting: http://10.0.0.22:8082/project/711c9d16-2fe7-4130-9629-1ff449c165c8 2026-06-04 02:25:52,173 - INFO - Validated that VN ctest-vn4-44869708 is not found in API Server 2026-06-04 02:25:52,183 - DEBUG - VN ctest-vn4-44869708 is not present in Agent 10.0.0.22 2026-06-04 02:25:52,183 - INFO - Validated that VN ctest-vn4-44869708 is not in any agent 2026-06-04 02:25:52,196 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44869708 info 2026-06-04 02:25:52,220 - INFO - Deleted policy ctest-policy1-86638194 2026-06-04 02:25:52,384 - DEBUG - policy ctest-policy1-86638194 is not found in API Server 2026-06-04 02:25:52,638 - DEBUG - No XMPP flaps were noticed during the test
2026-06-04 02:25:52,638 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-04 02:25:52,638 - INFO - -------------------------------------------------------------------------------- 2026-06-04 02:25:52,925 - DEBUG - No XMPP flaps were noticed during the test
2026-06-04 02:25:52,925 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-04 02:25:52,925 - INFO - -------------------------------------------------------------------------------- 2026-06-04 02:25:53,604 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-98163727, ID : 711c9d16-2fe7-4130-9629-1ff449c165c8