2026-08-26 12:45:39,887 - INFO - Domain Default found not creating 2026-08-26 12:45:40,061 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99342312 not found, creating it 2026-08-26 12:45:40,537 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99342312, ID : 52074f0a-39af-4d75-9369-f0a929f8c5f4 2026-08-26 12:45:42,144 - INFO - ================================================================================ 2026-08-26 12:45:42,144 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-26 12:45:42,398 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-08-26 12:45:42,398 - INFO - Initial checks done. Running the testcase now 2026-08-26 12:45:42,398 - INFO - 2026-08-26 12:45:42,398 - INFO - ================================================================================ 2026-08-26 12:45:42,398 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-26 12:45:42,398 - 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-26 12:45:42,685 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-08-26 12:45:42,685 - INFO - Initial checks done. Running the testcase now 2026-08-26 12:45:42,686 - INFO - 2026-08-26 12:45:43,075 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99342312:ctest-vn4-79067329, 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-99342312:ctest-vn4-79067329, 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-99342312:ctest-vn4-79067329, 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-99342312:ctest-vn4-79067329, 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-26 12:45:43,605 - DEBUG - Response for create_network : {'network': {'id': 'd4233995-d71d-46e5-925f-e4ad0da481f3', 'name': 'ctest-vn4-79067329', 'tenant_id': '52074f0a39af4d759369f0a929f8c5f4', 'project_id': '52074f0a39af4d759369f0a929f8c5f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99342312', 'ctest-vn4-79067329'], 'port_security_enabled': True, 'description': ''}} 2026-08-26 12:45:43,801 - DEBUG - Response for create_subnet : {'subnet': {'id': '7826ce1d-48bd-4687-9e73-a72034f229e5', 'name': '', 'tenant_id': '52074f0a39af4d759369f0a929f8c5f4', 'network_id': 'd4233995-d71d-46e5-925f-e4ad0da481f3', 'ip_version': 4, 'cidr': '151.110.184.0/26', 'allocation_pools': [{'start': '151.110.184.2', 'end': '151.110.184.62'}], 'gateway_ip': '151.110.184.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.110.184.2', 'tags': [], 'project_id': '52074f0a39af4d759369f0a929f8c5f4'}} 2026-08-26 12:45:43,949 - DEBUG - Response for create_subnet : {'subnet': {'id': 'efa93b15-847e-4b32-b810-6838f0cc1dd3', 'name': '', 'tenant_id': '52074f0a39af4d759369f0a929f8c5f4', 'network_id': 'd4233995-d71d-46e5-925f-e4ad0da481f3', 'ip_version': 6, 'cidr': '3005:5843:d62:e877:8af9:2e67::/96', 'allocation_pools': [{'start': '3005:5843:d62:e877:8af9:2e67:0:2', 'end': '3005:5843:d62:e877:8af9:2e67:ffff:fffe'}], 'gateway_ip': '3005:5843:d62:e877:8af9:2e67:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3005:5843:d62:e877:8af9:2e67:0:2', 'tags': [], 'project_id': '52074f0a39af4d759369f0a929f8c5f4'}} 2026-08-26 12:45:43,971 - INFO - Created VN ctest-vn4-79067329 2026-08-26 12:45:44,024 - DEBUG - VN ctest-vn4-79067329 UUID is d4233995-d71d-46e5-925f-e4ad0da481f3 2026-08-26 12:45:44,228 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd4233995-d71d-46e5-925f-e4ad0da481f3', 'name': 'ctest-vn4-79067329', 'tenant_id': '52074f0a39af4d759369f0a929f8c5f4', 'project_id': '52074f0a39af4d759369f0a929f8c5f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['7826ce1d-48bd-4687-9e73-a72034f229e5', 'efa93b15-847e-4b32-b810-6838f0cc1dd3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99342312', 'ctest-vn4-79067329'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99342312', 'ctest-policy1-30081372']], 'subnet_ipam': [{'subnet_cidr': '151.110.184.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3005:5843:d62:e877:8af9:2e67::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-26 12:45:44,400 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 12:45:44,745 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 12:45:44,776 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208 2026-08-26 12:45:44,789 - DEBUG - Requesting: http://10.0.0.177:8082/project/52074f0a-39af-4d75-9369-f0a929f8c5f4 2026-08-26 12:45:44,874 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d4233995-d71d-46e5-925f-e4ad0da481f3 2026-08-26 12:45:44,892 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d4233995-d71d-46e5-925f-e4ad0da481f3 2026-08-26 12:45:44,903 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/54a3d51e-63d8-46d9-9d1e-e95586ef8065 2026-08-26 12:45:44,911 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/54a3d51e-63d8-46d9-9d1e-e95586ef8065 2026-08-26 12:45:44,921 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/04604646-33e5-49d6-942e-ff5ad31c9119 2026-08-26 12:45:44,930 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-26 12:45:44,930 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d4233995-d71d-46e5-925f-e4ad0da481f3 2026-08-26 12:45:44,941 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/54a3d51e-63d8-46d9-9d1e-e95586ef8065 2026-08-26 12:45:44,958 - INFO - Verified VN network id 12 for VN d4233995-d71d-46e5-925f-e4ad0da481f3 2026-08-26 12:45:44,958 - INFO - Verifications in API Server for VN ctest-vn4-79067329 passed 2026-08-26 12:45:44,958 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d4233995-d71d-46e5-925f-e4ad0da481f3 2026-08-26 12:45:44,969 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/54a3d51e-63d8-46d9-9d1e-e95586ef8065 2026-08-26 12:45:44,976 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/54a3d51e-63d8-46d9-9d1e-e95586ef8065 2026-08-26 12:45:44,983 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/04604646-33e5-49d6-942e-ff5ad31c9119 2026-08-26 12:45:44,997 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99342312:ctest-vn4-79067329', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99342312', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15286124875947525861', 'uuid-lslong': '10547400284234351091'}, 'enable': 'true', 'created': '2026-08-26T12:45:43', 'last-modified': '2026-08-26T12:45:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.797838'} 2026-08-26 12:45:45,004 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-26 12:45:45,004 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79067329 passed 2026-08-26 12:45:45,004 - DEBUG - ====Verifying policy data for ctest-vn4-79067329 in API_Server ====== 2026-08-26 12:45:45,004 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 12:45:45,010 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208 2026-08-26 12:45:45,021 - DEBUG - Requesting: http://10.0.0.177:8082/project/52074f0a-39af-4d75-9369-f0a929f8c5f4 2026-08-26 12:45:45,098 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/d4233995-d71d-46e5-925f-e4ad0da481f3 2026-08-26 12:45:45,109 - DEBUG - ==>Verifying data for policy with id: 4aefc6fc-baa8-4bde-843e-e01ddec8dce2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99342312', 'ctest-policy1-30081372'] 2026-08-26 12:45:45,109 - INFO - VN ctest-vn4-79067329 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-26 12:45:45,110 - DEBUG - Verifying the vn in opserver 2026-08-26 12:45:45,110 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99342312:ctest-vn4-79067329 virtual network link through opserver 10.0.0.177 2026-08-26 12:45:45,110 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-26 12:45:45,443 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-26 12:45:45,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99342312:ctest-vn4-79067329', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99342312:ctest-vn4-79067329?flat'} 2026-08-26 12:45:45,502 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99342312:ctest-vn4-79067329 is found in opserver 2026-08-26 12:45:45,513 - DEBUG - Do not have enough data to verify VN in agent 2026-08-26 12:45:45,519 - DEBUG - VRF ids for VN ctest-vn4-79067329: {} 2026-08-26 12:45:45,519 - DEBUG - ====Verifying data for ctest-policy1-30081372 in API_Server ====== 2026-08-26 12:45:45,520 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 12:45:45,526 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208 2026-08-26 12:45:45,537 - DEBUG - Requesting: http://10.0.0.177:8082/project/52074f0a-39af-4d75-9369-f0a929f8c5f4 2026-08-26 12:45:45,622 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/4aefc6fc-baa8-4bde-843e-e01ddec8dce2 2026-08-26 12:45:45,633 - INFO - Verified policy ctest-policy1-30081372 in API Server, Result: True 2026-08-26 12:45:45,633 - INFO - Done with setup and verification, moving onto test .. 2026-08-26 12:45:45,643 - INFO - Deleting VN ctest-vn4-79067329 2026-08-26 12:45:45,779 - DEBUG - Response for deleting network () 2026-08-26 12:45:45,779 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/54a3d51e-63d8-46d9-9d1e-e95586ef8065 2026-08-26 12:45:45,785 - DEBUG - Response Code: 404 2026-08-26 12:45:45,786 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-26 12:45:45,791 - DEBUG - Requesting: http://10.0.0.177:8082/domain/eb09514e-90f8-4347-a2ec-88f26e45e208 2026-08-26 12:45:45,845 - DEBUG - Requesting: http://10.0.0.177:8082/project/52074f0a-39af-4d75-9369-f0a929f8c5f4 2026-08-26 12:45:45,918 - INFO - Validated that VN ctest-vn4-79067329 is not found in API Server 2026-08-26 12:45:45,930 - DEBUG - VN ctest-vn4-79067329 is not present in Agent 10.0.0.177 2026-08-26 12:45:45,930 - INFO - Validated that VN ctest-vn4-79067329 is not in any agent 2026-08-26 12:45:45,949 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79067329 info 2026-08-26 12:45:45,976 - INFO - Deleted policy ctest-policy1-30081372 2026-08-26 12:45:46,143 - DEBUG - policy ctest-policy1-30081372 is not found in API Server 2026-08-26 12:45:46,407 - DEBUG - No XMPP flaps were noticed during the test