2026-08-20 03:47:44,434 - INFO - Domain Default found not creating 2026-08-20 03:47:44,585 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-97340665 not found, creating it 2026-08-20 03:47:45,114 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-97340665, ID : adfac44b-69e3-41f4-ae4f-5d4630dc2475 2026-08-20 03:47:46,654 - INFO - ================================================================================ 2026-08-20 03:47:46,654 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 03:47:46,917 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-08-20 03:47:46,917 - INFO - Initial checks done. Running the testcase now 2026-08-20 03:47:46,917 - INFO - 2026-08-20 03:47:46,917 - INFO - ================================================================================ 2026-08-20 03:47:46,917 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-20 03:47:46,918 - 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-20 03:47:47,209 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-08-20 03:47:47,209 - INFO - Initial checks done. Running the testcase now 2026-08-20 03:47:47,209 - INFO - 2026-08-20 03:47:47,591 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97340665:ctest-vn4-54587756, 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-97340665:ctest-vn4-54587756, 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-97340665:ctest-vn4-54587756, 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-97340665:ctest-vn4-54587756, 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-20 03:47:48,100 - DEBUG - Response for create_network : {'network': {'id': '49660f16-a9b8-4f34-b92d-3264b4b22e06', 'name': 'ctest-vn4-54587756', 'tenant_id': 'adfac44b69e341f4ae4f5d4630dc2475', 'project_id': 'adfac44b69e341f4ae4f5d4630dc2475', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97340665', 'ctest-vn4-54587756'], 'port_security_enabled': True, 'description': ''}} 2026-08-20 03:47:48,325 - DEBUG - Response for create_subnet : {'subnet': {'id': '43c2a88b-651e-414f-a773-c1dd41f8b943', 'name': '', 'tenant_id': 'adfac44b69e341f4ae4f5d4630dc2475', 'network_id': '49660f16-a9b8-4f34-b92d-3264b4b22e06', 'ip_version': 4, 'cidr': '140.110.160.64/26', 'allocation_pools': [{'start': '140.110.160.66', 'end': '140.110.160.126'}], 'gateway_ip': '140.110.160.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.110.160.66', 'tags': [], 'project_id': 'adfac44b69e341f4ae4f5d4630dc2475'}} 2026-08-20 03:47:48,501 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b000acbd-6749-41fe-91ad-296834b40313', 'name': '', 'tenant_id': 'adfac44b69e341f4ae4f5d4630dc2475', 'network_id': '49660f16-a9b8-4f34-b92d-3264b4b22e06', 'ip_version': 6, 'cidr': '2934:1aa2:729e:45aa:10fe:84b8::/96', 'allocation_pools': [{'start': '2934:1aa2:729e:45aa:10fe:84b8:0:2', 'end': '2934:1aa2:729e:45aa:10fe:84b8:ffff:fffe'}], 'gateway_ip': '2934:1aa2:729e:45aa:10fe:84b8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2934:1aa2:729e:45aa:10fe:84b8:0:2', 'tags': [], 'project_id': 'adfac44b69e341f4ae4f5d4630dc2475'}} 2026-08-20 03:47:48,534 - INFO - Created VN ctest-vn4-54587756 2026-08-20 03:47:48,588 - DEBUG - VN ctest-vn4-54587756 UUID is 49660f16-a9b8-4f34-b92d-3264b4b22e06 2026-08-20 03:47:48,794 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '49660f16-a9b8-4f34-b92d-3264b4b22e06', 'name': 'ctest-vn4-54587756', 'tenant_id': 'adfac44b69e341f4ae4f5d4630dc2475', 'project_id': 'adfac44b69e341f4ae4f5d4630dc2475', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43c2a88b-651e-414f-a773-c1dd41f8b943', 'b000acbd-6749-41fe-91ad-296834b40313'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97340665', 'ctest-vn4-54587756'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97340665', 'ctest-policy1-15978387']], 'subnet_ipam': [{'subnet_cidr': '140.110.160.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2934:1aa2:729e:45aa:10fe:84b8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-20 03:47:48,960 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-20 03:47:49,281 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-20 03:47:49,308 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2c7584be-b459-4a63-b4c0-a59ea964a8ea 2026-08-20 03:47:49,320 - DEBUG - Requesting: http://10.0.0.50:8082/project/adfac44b-69e3-41f4-ae4f-5d4630dc2475 2026-08-20 03:47:49,392 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/49660f16-a9b8-4f34-b92d-3264b4b22e06 2026-08-20 03:47:49,404 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/49660f16-a9b8-4f34-b92d-3264b4b22e06 2026-08-20 03:47:49,414 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/221c8101-c73f-411b-bd18-01129a2b3fb1 2026-08-20 03:47:49,421 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/221c8101-c73f-411b-bd18-01129a2b3fb1 2026-08-20 03:47:49,427 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a1905eb9-3aff-4e72-bcd3-f6cd89ed4493 2026-08-20 03:47:49,433 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 03:47:49,433 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/49660f16-a9b8-4f34-b92d-3264b4b22e06 2026-08-20 03:47:49,441 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/221c8101-c73f-411b-bd18-01129a2b3fb1 2026-08-20 03:47:49,455 - INFO - Verified VN network id 10 for VN 49660f16-a9b8-4f34-b92d-3264b4b22e06 2026-08-20 03:47:49,455 - INFO - Verifications in API Server for VN ctest-vn4-54587756 passed 2026-08-20 03:47:49,456 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/49660f16-a9b8-4f34-b92d-3264b4b22e06 2026-08-20 03:47:49,464 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/221c8101-c73f-411b-bd18-01129a2b3fb1 2026-08-20 03:47:49,471 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/221c8101-c73f-411b-bd18-01129a2b3fb1 2026-08-20 03:47:49,477 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a1905eb9-3aff-4e72-bcd3-f6cd89ed4493 2026-08-20 03:47:49,487 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97340665:ctest-vn4-54587756', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-97340665', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5288931402404351796', 'uuid-lslong': '13343376679078342150'}, 'enable': 'true', 'created': '2026-08-20T03:47:48', 'last-modified': '2026-08-20T03:47:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.726286'} 2026-08-20 03:47:49,494 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-20 03:47:49,494 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54587756 passed 2026-08-20 03:47:49,494 - DEBUG - ====Verifying policy data for ctest-vn4-54587756 in API_Server ====== 2026-08-20 03:47:49,494 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-20 03:47:49,499 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2c7584be-b459-4a63-b4c0-a59ea964a8ea 2026-08-20 03:47:49,509 - DEBUG - Requesting: http://10.0.0.50:8082/project/adfac44b-69e3-41f4-ae4f-5d4630dc2475 2026-08-20 03:47:49,577 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/49660f16-a9b8-4f34-b92d-3264b4b22e06 2026-08-20 03:47:49,587 - DEBUG - ==>Verifying data for policy with id: 78db84db-e3c6-4206-97ae-303b4510d4db, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97340665', 'ctest-policy1-15978387'] 2026-08-20 03:47:49,587 - INFO - VN ctest-vn4-54587756 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-20 03:47:49,587 - DEBUG - Verifying the vn in opserver 2026-08-20 03:47:49,587 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97340665:ctest-vn4-54587756 virtual network link through opserver 10.0.0.50 2026-08-20 03:47:49,587 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-20 03:47:49,903 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-20 03:47:49,960 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97340665:ctest-vn4-54587756', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97340665:ctest-vn4-54587756?flat'} 2026-08-20 03:47:49,960 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97340665:ctest-vn4-54587756 is found in opserver 2026-08-20 03:47:49,972 - DEBUG - Do not have enough data to verify VN in agent 2026-08-20 03:47:49,976 - DEBUG - VRF ids for VN ctest-vn4-54587756: {} 2026-08-20 03:47:49,977 - DEBUG - ====Verifying data for ctest-policy1-15978387 in API_Server ====== 2026-08-20 03:47:49,977 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-20 03:47:49,983 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2c7584be-b459-4a63-b4c0-a59ea964a8ea 2026-08-20 03:47:49,993 - DEBUG - Requesting: http://10.0.0.50:8082/project/adfac44b-69e3-41f4-ae4f-5d4630dc2475 2026-08-20 03:47:50,065 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/78db84db-e3c6-4206-97ae-303b4510d4db 2026-08-20 03:47:50,076 - INFO - Verified policy ctest-policy1-15978387 in API Server, Result: True 2026-08-20 03:47:50,076 - INFO - Done with setup and verification, moving onto test .. 2026-08-20 03:47:50,089 - INFO - Deleting VN ctest-vn4-54587756 2026-08-20 03:47:50,227 - DEBUG - Response for deleting network () 2026-08-20 03:47:50,228 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/221c8101-c73f-411b-bd18-01129a2b3fb1 2026-08-20 03:47:50,233 - DEBUG - Response Code: 404 2026-08-20 03:47:50,233 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-20 03:47:50,239 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2c7584be-b459-4a63-b4c0-a59ea964a8ea 2026-08-20 03:47:50,293 - DEBUG - Requesting: http://10.0.0.50:8082/project/adfac44b-69e3-41f4-ae4f-5d4630dc2475 2026-08-20 03:47:50,367 - INFO - Validated that VN ctest-vn4-54587756 is not found in API Server 2026-08-20 03:47:50,381 - DEBUG - VN ctest-vn4-54587756 is not present in Agent 10.0.0.50 2026-08-20 03:47:50,381 - INFO - Validated that VN ctest-vn4-54587756 is not in any agent 2026-08-20 03:47:50,404 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54587756 info 2026-08-20 03:47:50,444 - INFO - Deleted policy ctest-policy1-15978387 2026-08-20 03:47:50,616 - DEBUG - policy ctest-policy1-15978387 is not found in API Server 2026-08-20 03:47:50,878 - DEBUG - No XMPP flaps were noticed during the test