2026-04-21 16:56:06,210 - INFO - Domain Default found not creating 2026-04-21 16:56:06,377 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06406260 not found, creating it 2026-04-21 16:56:06,845 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06406260, ID : 0a33e50c-6b09-429e-88ef-e91c5e8c986c 2026-04-21 16:56:08,320 - INFO - ================================================================================ 2026-04-21 16:56:08,321 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-21 16:56:08,573 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-04-21 16:56:08,573 - INFO - Initial checks done. Running the testcase now 2026-04-21 16:56:08,573 - INFO - 2026-04-21 16:56:08,573 - INFO - ================================================================================ 2026-04-21 16:56:08,573 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-21 16:56:08,573 - 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-04-21 16:56:08,861 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-04-21 16:56:08,861 - INFO - Initial checks done. Running the testcase now 2026-04-21 16:56:08,861 - INFO - 2026-04-21 16:56:09,216 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06406260:ctest-vn4-36563222, 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-06406260:ctest-vn4-36563222, 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-06406260:ctest-vn4-36563222, 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-06406260:ctest-vn4-36563222, 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-04-21 16:56:09,747 - DEBUG - Response for create_network : {'network': {'id': 'ba732443-4ab4-4a39-98b9-265129877067', 'name': 'ctest-vn4-36563222', 'tenant_id': '0a33e50c6b09429e88efe91c5e8c986c', 'project_id': '0a33e50c6b09429e88efe91c5e8c986c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06406260', 'ctest-vn4-36563222'], 'port_security_enabled': True, 'description': ''}} 2026-04-21 16:56:09,941 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a995262a-7b9e-47e5-b2de-08b99fb76943', 'name': '', 'tenant_id': '0a33e50c6b09429e88efe91c5e8c986c', 'network_id': 'ba732443-4ab4-4a39-98b9-265129877067', 'ip_version': 4, 'cidr': '56.54.252.128/26', 'allocation_pools': [{'start': '56.54.252.130', 'end': '56.54.252.190'}], 'gateway_ip': '56.54.252.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.54.252.130', 'tags': [], 'project_id': '0a33e50c6b09429e88efe91c5e8c986c'}} 2026-04-21 16:56:10,146 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd313c92f-7bf1-44d0-aac8-b100b850a0af', 'name': '', 'tenant_id': '0a33e50c6b09429e88efe91c5e8c986c', 'network_id': 'ba732443-4ab4-4a39-98b9-265129877067', 'ip_version': 6, 'cidr': '3b17:bd47:e336:359c:7694:150d::/96', 'allocation_pools': [{'start': '3b17:bd47:e336:359c:7694:150d:0:2', 'end': '3b17:bd47:e336:359c:7694:150d:ffff:fffe'}], 'gateway_ip': '3b17:bd47:e336:359c:7694:150d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b17:bd47:e336:359c:7694:150d:0:2', 'tags': [], 'project_id': '0a33e50c6b09429e88efe91c5e8c986c'}} 2026-04-21 16:56:10,169 - INFO - Created VN ctest-vn4-36563222 2026-04-21 16:56:10,220 - DEBUG - VN ctest-vn4-36563222 UUID is ba732443-4ab4-4a39-98b9-265129877067 2026-04-21 16:56:10,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba732443-4ab4-4a39-98b9-265129877067', 'name': 'ctest-vn4-36563222', 'tenant_id': '0a33e50c6b09429e88efe91c5e8c986c', 'project_id': '0a33e50c6b09429e88efe91c5e8c986c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a995262a-7b9e-47e5-b2de-08b99fb76943', 'd313c92f-7bf1-44d0-aac8-b100b850a0af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06406260', 'ctest-vn4-36563222'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06406260', 'ctest-policy1-76448007']], 'subnet_ipam': [{'subnet_cidr': '56.54.252.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b17:bd47:e336:359c:7694:150d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-21 16:56:10,604 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 16:56:10,901 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 16:56:10,930 - DEBUG - Requesting: http://10.0.0.38:8082/domain/719a58e8-2958-4921-8112-efcd54c1ebec 2026-04-21 16:56:10,941 - DEBUG - Requesting: http://10.0.0.38:8082/project/0a33e50c-6b09-429e-88ef-e91c5e8c986c 2026-04-21 16:56:11,011 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ba732443-4ab4-4a39-98b9-265129877067 2026-04-21 16:56:11,023 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ba732443-4ab4-4a39-98b9-265129877067 2026-04-21 16:56:11,033 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/593a0141-8707-4aba-b5ed-23f3d68e4b96 2026-04-21 16:56:11,040 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/593a0141-8707-4aba-b5ed-23f3d68e4b96 2026-04-21 16:56:11,047 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e1309854-ae93-452b-a509-5147a627bf29 2026-04-21 16:56:11,053 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-21 16:56:11,053 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ba732443-4ab4-4a39-98b9-265129877067 2026-04-21 16:56:11,063 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/593a0141-8707-4aba-b5ed-23f3d68e4b96 2026-04-21 16:56:11,075 - INFO - Verified VN network id 11 for VN ba732443-4ab4-4a39-98b9-265129877067 2026-04-21 16:56:11,075 - INFO - Verifications in API Server for VN ctest-vn4-36563222 passed 2026-04-21 16:56:11,075 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ba732443-4ab4-4a39-98b9-265129877067 2026-04-21 16:56:11,084 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/593a0141-8707-4aba-b5ed-23f3d68e4b96 2026-04-21 16:56:11,091 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/593a0141-8707-4aba-b5ed-23f3d68e4b96 2026-04-21 16:56:11,098 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e1309854-ae93-452b-a509-5147a627bf29 2026-04-21 16:56:11,108 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06406260:ctest-vn4-36563222', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06406260', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13435121984811059769', 'uuid-lslong': '11004869294487466087'}, 'enable': 'true', 'created': '2026-04-21T16:56:09', 'last-modified': '2026-04-21T16:56:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.698160'} 2026-04-21 16:56:11,114 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-21 16:56:11,114 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36563222 passed 2026-04-21 16:56:11,114 - DEBUG - ====Verifying policy data for ctest-vn4-36563222 in API_Server ====== 2026-04-21 16:56:11,114 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 16:56:11,120 - DEBUG - Requesting: http://10.0.0.38:8082/domain/719a58e8-2958-4921-8112-efcd54c1ebec 2026-04-21 16:56:11,132 - DEBUG - Requesting: http://10.0.0.38:8082/project/0a33e50c-6b09-429e-88ef-e91c5e8c986c 2026-04-21 16:56:11,202 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ba732443-4ab4-4a39-98b9-265129877067 2026-04-21 16:56:11,210 - DEBUG - ==>Verifying data for policy with id: 5bcdb563-701a-466c-99cd-ae081e5dacbb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06406260', 'ctest-policy1-76448007'] 2026-04-21 16:56:11,210 - INFO - VN ctest-vn4-36563222 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-21 16:56:11,210 - DEBUG - Verifying the vn in opserver 2026-04-21 16:56:11,210 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06406260:ctest-vn4-36563222 virtual network link through opserver 10.0.0.38 2026-04-21 16:56:11,211 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-21 16:56:11,504 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-21 16:56:11,565 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06406260:ctest-vn4-36563222', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06406260:ctest-vn4-36563222?flat'} 2026-04-21 16:56:11,565 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06406260:ctest-vn4-36563222 is found in opserver 2026-04-21 16:56:11,575 - DEBUG - Do not have enough data to verify VN in agent 2026-04-21 16:56:11,579 - DEBUG - VRF ids for VN ctest-vn4-36563222: {} 2026-04-21 16:56:11,580 - DEBUG - ====Verifying data for ctest-policy1-76448007 in API_Server ====== 2026-04-21 16:56:11,580 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 16:56:11,585 - DEBUG - Requesting: http://10.0.0.38:8082/domain/719a58e8-2958-4921-8112-efcd54c1ebec 2026-04-21 16:56:11,596 - DEBUG - Requesting: http://10.0.0.38:8082/project/0a33e50c-6b09-429e-88ef-e91c5e8c986c 2026-04-21 16:56:11,667 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/5bcdb563-701a-466c-99cd-ae081e5dacbb 2026-04-21 16:56:11,678 - INFO - Verified policy ctest-policy1-76448007 in API Server, Result: True 2026-04-21 16:56:11,678 - INFO - Done with setup and verification, moving onto test .. 2026-04-21 16:56:11,687 - INFO - Deleting VN ctest-vn4-36563222 2026-04-21 16:56:11,800 - DEBUG - Response for deleting network () 2026-04-21 16:56:11,800 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/593a0141-8707-4aba-b5ed-23f3d68e4b96 2026-04-21 16:56:11,804 - DEBUG - Response Code: 404 2026-04-21 16:56:11,805 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 16:56:11,811 - DEBUG - Requesting: http://10.0.0.38:8082/domain/719a58e8-2958-4921-8112-efcd54c1ebec 2026-04-21 16:56:11,860 - DEBUG - Requesting: http://10.0.0.38:8082/project/0a33e50c-6b09-429e-88ef-e91c5e8c986c 2026-04-21 16:56:11,942 - INFO - Validated that VN ctest-vn4-36563222 is not found in API Server 2026-04-21 16:56:11,950 - DEBUG - VN ctest-vn4-36563222 is not present in Agent 10.0.0.38 2026-04-21 16:56:11,951 - INFO - Validated that VN ctest-vn4-36563222 is not in any agent 2026-04-21 16:56:11,963 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36563222 info 2026-04-21 16:56:11,987 - INFO - Deleted policy ctest-policy1-76448007 2026-04-21 16:56:12,156 - DEBUG - policy ctest-policy1-76448007 is not found in API Server 2026-04-21 16:56:12,413 - DEBUG - No XMPP flaps were noticed during the test
2026-04-21 16:56:12,413 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-21 16:56:12,413 - INFO - -------------------------------------------------------------------------------- 2026-04-21 16:56:12,701 - DEBUG - No XMPP flaps were noticed during the test
2026-04-21 16:56:12,701 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-21 16:56:12,701 - INFO - -------------------------------------------------------------------------------- 2026-04-21 16:56:13,370 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06406260, ID : 0a33e50c-6b09-429e-88ef-e91c5e8c986c