2026-06-23 11:26:57,937 - INFO - Domain Default found not creating 2026-06-23 11:26:58,088 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26625944 not found, creating it 2026-06-23 11:26:58,556 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26625944, ID : 82cd7589-7618-4358-ad28-3f724de9ba8e 2026-06-23 11:27:00,061 - INFO - ================================================================================ 2026-06-23 11:27:00,061 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-23 11:27:00,319 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-23 11:27:00,319 - INFO - Initial checks done. Running the testcase now 2026-06-23 11:27:00,319 - INFO - 2026-06-23 11:27:00,319 - INFO - ================================================================================ 2026-06-23 11:27:00,319 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-23 11:27:00,319 - 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-23 11:27:00,609 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-23 11:27:00,609 - INFO - Initial checks done. Running the testcase now 2026-06-23 11:27:00,609 - INFO - 2026-06-23 11:27:00,979 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26625944:ctest-vn4-95893384, 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-26625944:ctest-vn4-95893384, 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-26625944:ctest-vn4-95893384, 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-26625944:ctest-vn4-95893384, 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-23 11:27:01,468 - DEBUG - Response for create_network : {'network': {'id': '006f4f83-3140-4879-9af8-bbfa81b4fc5f', 'name': 'ctest-vn4-95893384', 'tenant_id': '82cd758976184358ad283f724de9ba8e', 'project_id': '82cd758976184358ad283f724de9ba8e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26625944', 'ctest-vn4-95893384'], 'port_security_enabled': True, 'description': ''}} 2026-06-23 11:27:01,622 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f452fcbf-0aef-46ad-ac9b-66895fdc1ff1', 'name': '', 'tenant_id': '82cd758976184358ad283f724de9ba8e', 'network_id': '006f4f83-3140-4879-9af8-bbfa81b4fc5f', 'ip_version': 4, 'cidr': '144.35.123.192/26', 'allocation_pools': [{'start': '144.35.123.194', 'end': '144.35.123.254'}], 'gateway_ip': '144.35.123.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.35.123.194', 'tags': [], 'project_id': '82cd758976184358ad283f724de9ba8e'}} 2026-06-23 11:27:01,818 - DEBUG - Response for create_subnet : {'subnet': {'id': '544dbfc1-88cb-4737-9e42-8991efbd12d0', 'name': '', 'tenant_id': '82cd758976184358ad283f724de9ba8e', 'network_id': '006f4f83-3140-4879-9af8-bbfa81b4fc5f', 'ip_version': 6, 'cidr': '3810:6482:8db0:cfa6:d090:19b7::/96', 'allocation_pools': [{'start': '3810:6482:8db0:cfa6:d090:19b7:0:2', 'end': '3810:6482:8db0:cfa6:d090:19b7:ffff:fffe'}], 'gateway_ip': '3810:6482:8db0:cfa6:d090:19b7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3810:6482:8db0:cfa6:d090:19b7:0:2', 'tags': [], 'project_id': '82cd758976184358ad283f724de9ba8e'}} 2026-06-23 11:27:01,834 - INFO - Created VN ctest-vn4-95893384 2026-06-23 11:27:01,892 - DEBUG - VN ctest-vn4-95893384 UUID is 006f4f83-3140-4879-9af8-bbfa81b4fc5f 2026-06-23 11:27:02,083 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '006f4f83-3140-4879-9af8-bbfa81b4fc5f', 'name': 'ctest-vn4-95893384', 'tenant_id': '82cd758976184358ad283f724de9ba8e', 'project_id': '82cd758976184358ad283f724de9ba8e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f452fcbf-0aef-46ad-ac9b-66895fdc1ff1', '544dbfc1-88cb-4737-9e42-8991efbd12d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26625944', 'ctest-vn4-95893384'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26625944', 'ctest-policy1-43945230']], 'subnet_ipam': [{'subnet_cidr': '144.35.123.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3810:6482:8db0:cfa6:d090:19b7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-23 11:27:02,244 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-23 11:27:02,561 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-23 11:27:02,587 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2af497c6-0f68-49a8-8ae8-5db3c1ed57bc 2026-06-23 11:27:02,599 - DEBUG - Requesting: http://10.0.0.50:8082/project/82cd7589-7618-4358-ad28-3f724de9ba8e 2026-06-23 11:27:02,670 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/006f4f83-3140-4879-9af8-bbfa81b4fc5f 2026-06-23 11:27:02,682 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/006f4f83-3140-4879-9af8-bbfa81b4fc5f 2026-06-23 11:27:02,691 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6f1cb677-8082-4f38-a4f7-a1f051af4b8a 2026-06-23 11:27:02,700 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6f1cb677-8082-4f38-a4f7-a1f051af4b8a 2026-06-23 11:27:02,707 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6a305701-f654-4a2a-8513-b65ef06fdd41 2026-06-23 11:27:02,714 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-23 11:27:02,714 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/006f4f83-3140-4879-9af8-bbfa81b4fc5f 2026-06-23 11:27:02,723 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6f1cb677-8082-4f38-a4f7-a1f051af4b8a 2026-06-23 11:27:02,737 - INFO - Verified VN network id 12 for VN 006f4f83-3140-4879-9af8-bbfa81b4fc5f 2026-06-23 11:27:02,737 - INFO - Verifications in API Server for VN ctest-vn4-95893384 passed 2026-06-23 11:27:02,737 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/006f4f83-3140-4879-9af8-bbfa81b4fc5f 2026-06-23 11:27:02,746 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6f1cb677-8082-4f38-a4f7-a1f051af4b8a 2026-06-23 11:27:02,753 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6f1cb677-8082-4f38-a4f7-a1f051af4b8a 2026-06-23 11:27:02,759 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6a305701-f654-4a2a-8513-b65ef06fdd41 2026-06-23 11:27:02,770 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26625944:ctest-vn4-95893384', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26625944', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '31331147300489337', 'uuid-lslong': '11166881960657484895'}, 'enable': 'true', 'created': '2026-06-23T11:27:01', 'last-modified': '2026-06-23T11:27:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.712853'} 2026-06-23 11:27:02,776 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-23 11:27:02,776 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-95893384 passed 2026-06-23 11:27:02,776 - DEBUG - ====Verifying policy data for ctest-vn4-95893384 in API_Server ====== 2026-06-23 11:27:02,776 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-23 11:27:02,782 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2af497c6-0f68-49a8-8ae8-5db3c1ed57bc 2026-06-23 11:27:02,792 - DEBUG - Requesting: http://10.0.0.50:8082/project/82cd7589-7618-4358-ad28-3f724de9ba8e 2026-06-23 11:27:02,863 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/006f4f83-3140-4879-9af8-bbfa81b4fc5f 2026-06-23 11:27:02,872 - DEBUG - ==>Verifying data for policy with id: 5c3c4d84-4e69-4c92-8314-92d494dfa98a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26625944', 'ctest-policy1-43945230'] 2026-06-23 11:27:02,872 - INFO - VN ctest-vn4-95893384 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-23 11:27:02,872 - DEBUG - Verifying the vn in opserver 2026-06-23 11:27:02,872 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26625944:ctest-vn4-95893384 virtual network link through opserver 10.0.0.50 2026-06-23 11:27:02,873 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-23 11:27:03,188 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-23 11:27:03,237 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26625944:ctest-vn4-95893384', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26625944:ctest-vn4-95893384?flat'} 2026-06-23 11:27:03,238 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26625944:ctest-vn4-95893384 is found in opserver 2026-06-23 11:27:03,246 - DEBUG - Do not have enough data to verify VN in agent 2026-06-23 11:27:03,251 - DEBUG - VRF ids for VN ctest-vn4-95893384: {} 2026-06-23 11:27:03,251 - DEBUG - ====Verifying data for ctest-policy1-43945230 in API_Server ====== 2026-06-23 11:27:03,251 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-23 11:27:03,257 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2af497c6-0f68-49a8-8ae8-5db3c1ed57bc 2026-06-23 11:27:03,271 - DEBUG - Requesting: http://10.0.0.50:8082/project/82cd7589-7618-4358-ad28-3f724de9ba8e 2026-06-23 11:27:03,340 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/5c3c4d84-4e69-4c92-8314-92d494dfa98a 2026-06-23 11:27:03,349 - INFO - Verified policy ctest-policy1-43945230 in API Server, Result: True 2026-06-23 11:27:03,349 - INFO - Done with setup and verification, moving onto test .. 2026-06-23 11:27:03,356 - INFO - Deleting VN ctest-vn4-95893384 2026-06-23 11:27:03,485 - DEBUG - Response for deleting network () 2026-06-23 11:27:03,485 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6f1cb677-8082-4f38-a4f7-a1f051af4b8a 2026-06-23 11:27:03,490 - DEBUG - Response Code: 404 2026-06-23 11:27:03,490 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-23 11:27:03,497 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2af497c6-0f68-49a8-8ae8-5db3c1ed57bc 2026-06-23 11:27:03,549 - DEBUG - Requesting: http://10.0.0.50:8082/project/82cd7589-7618-4358-ad28-3f724de9ba8e 2026-06-23 11:27:03,618 - INFO - Validated that VN ctest-vn4-95893384 is not found in API Server 2026-06-23 11:27:03,627 - DEBUG - VN ctest-vn4-95893384 is not present in Agent 10.0.0.50 2026-06-23 11:27:03,627 - INFO - Validated that VN ctest-vn4-95893384 is not in any agent 2026-06-23 11:27:03,639 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-95893384 info 2026-06-23 11:27:03,666 - INFO - Deleted policy ctest-policy1-43945230 2026-06-23 11:27:03,824 - DEBUG - policy ctest-policy1-43945230 is not found in API Server 2026-06-23 11:27:04,079 - DEBUG - No XMPP flaps were noticed during the test
2026-06-23 11:27:04,079 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-23 11:27:04,080 - INFO - -------------------------------------------------------------------------------- 2026-06-23 11:27:04,365 - DEBUG - No XMPP flaps were noticed during the test
2026-06-23 11:27:04,365 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-23 11:27:04,365 - INFO - -------------------------------------------------------------------------------- 2026-06-23 11:27:05,049 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-26625944, ID : 82cd7589-7618-4358-ad28-3f724de9ba8e