2026-08-31 02:22:25,025 - INFO - Domain Default found not creating 2026-08-31 02:22:25,200 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05719781 not found, creating it 2026-08-31 02:22:25,697 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05719781, ID : 13fc1333-8438-4d3a-977c-a486a0e5342d 2026-08-31 02:22:27,618 - INFO - ================================================================================ 2026-08-31 02:22:27,619 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-31 02:22:27,875 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-08-31 02:22:27,875 - INFO - Initial checks done. Running the testcase now 2026-08-31 02:22:27,875 - INFO - 2026-08-31 02:22:27,875 - INFO - ================================================================================ 2026-08-31 02:22:27,875 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-31 02:22:27,875 - 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-31 02:22:28,167 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-08-31 02:22:28,167 - INFO - Initial checks done. Running the testcase now 2026-08-31 02:22:28,167 - INFO - 2026-08-31 02:22:28,521 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05719781:ctest-vn4-17889734, 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-05719781:ctest-vn4-17889734, 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-05719781:ctest-vn4-17889734, 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-05719781:ctest-vn4-17889734, 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-31 02:22:29,107 - DEBUG - Response for create_network : {'network': {'id': 'b91e2074-f5bd-48d5-8d25-1dd241bf20d1', 'name': 'ctest-vn4-17889734', 'tenant_id': '13fc133384384d3a977ca486a0e5342d', 'project_id': '13fc133384384d3a977ca486a0e5342d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05719781', 'ctest-vn4-17889734'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-08-31 02:22:29,321 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe23f19b-3c90-46c3-be88-718527296fee', 'name': '', 'tenant_id': '13fc133384384d3a977ca486a0e5342d', 'network_id': 'b91e2074-f5bd-48d5-8d25-1dd241bf20d1', 'ip_version': 4, 'cidr': '108.78.247.64/26', 'allocation_pools': [{'start': '108.78.247.66', 'end': '108.78.247.126'}], 'gateway_ip': '108.78.247.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-08-31T02:22:29.259656', 'updated_at': '2026-08-31T02:22:29.259656', 'dns_server_address': '108.78.247.66', 'tags': [], 'project_id': '13fc133384384d3a977ca486a0e5342d'}} 2026-08-31 02:22:29,517 - DEBUG - Response for create_subnet : {'subnet': {'id': '4fd12bb3-d6cf-4833-894f-c097475a1f62', 'name': '', 'tenant_id': '13fc133384384d3a977ca486a0e5342d', 'network_id': 'b91e2074-f5bd-48d5-8d25-1dd241bf20d1', 'ip_version': 6, 'cidr': '3de4:3fb:732d:fbb3:c965:5b77::/96', 'allocation_pools': [{'start': '3de4:3fb:732d:fbb3:c965:5b77:0:2', 'end': '3de4:3fb:732d:fbb3:c965:5b77:ffff:fffe'}], 'gateway_ip': '3de4:3fb:732d:fbb3:c965:5b77:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-08-31T02:22:29.462155', 'updated_at': '2026-08-31T02:22:29.462155', 'dns_server_address': '3de4:3fb:732d:fbb3:c965:5b77:0:2', 'tags': [], 'project_id': '13fc133384384d3a977ca486a0e5342d'}} 2026-08-31 02:22:29,536 - INFO - Created VN ctest-vn4-17889734 2026-08-31 02:22:29,589 - DEBUG - VN ctest-vn4-17889734 UUID is b91e2074-f5bd-48d5-8d25-1dd241bf20d1 2026-08-31 02:22:29,800 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b91e2074-f5bd-48d5-8d25-1dd241bf20d1', 'name': 'ctest-vn4-17889734', 'tenant_id': '13fc133384384d3a977ca486a0e5342d', 'project_id': '13fc133384384d3a977ca486a0e5342d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['fe23f19b-3c90-46c3-be88-718527296fee', '4fd12bb3-d6cf-4833-894f-c097475a1f62'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05719781', 'ctest-vn4-17889734'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05719781', 'ctest-policy1-25292784']], 'subnet_ipam': [{'subnet_cidr': '108.78.247.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3de4:3fb:732d:fbb3:c965:5b77::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-08-31T02:22:29.068327', 'updated_at': '2026-08-31T02:22:29.478171'}} 2026-08-31 02:22:29,961 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-31 02:22:30,279 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-31 02:22:30,304 - DEBUG - Requesting: http://10.0.0.177:8082/domain/e72092a5-ed6c-4e44-9e26-97f06214b8ee 2026-08-31 02:22:30,318 - DEBUG - Requesting: http://10.0.0.177:8082/project/13fc1333-8438-4d3a-977c-a486a0e5342d 2026-08-31 02:22:30,396 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b91e2074-f5bd-48d5-8d25-1dd241bf20d1 2026-08-31 02:22:30,409 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b91e2074-f5bd-48d5-8d25-1dd241bf20d1 2026-08-31 02:22:30,419 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/32868148-d6a2-4b18-af12-a26b57698f88 2026-08-31 02:22:30,426 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/32868148-d6a2-4b18-af12-a26b57698f88 2026-08-31 02:22:30,432 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/ff8e97bf-e0ea-471a-bd67-6f2977f88cfa 2026-08-31 02:22:30,439 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-31 02:22:30,439 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b91e2074-f5bd-48d5-8d25-1dd241bf20d1 2026-08-31 02:22:30,449 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/32868148-d6a2-4b18-af12-a26b57698f88 2026-08-31 02:22:30,462 - INFO - Verified VN network id 12 for VN b91e2074-f5bd-48d5-8d25-1dd241bf20d1 2026-08-31 02:22:30,463 - INFO - Verifications in API Server for VN ctest-vn4-17889734 passed 2026-08-31 02:22:30,463 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b91e2074-f5bd-48d5-8d25-1dd241bf20d1 2026-08-31 02:22:30,472 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/32868148-d6a2-4b18-af12-a26b57698f88 2026-08-31 02:22:30,479 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/32868148-d6a2-4b18-af12-a26b57698f88 2026-08-31 02:22:30,485 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/ff8e97bf-e0ea-471a-bd67-6f2977f88cfa 2026-08-31 02:22:30,496 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05719781:ctest-vn4-17889734', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05719781', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13339134833029105877', 'uuid-lslong': '10170568122369515729'}, 'enable': 'true', 'created': '2026-08-31T02:22:29', 'last-modified': '2026-08-31T02:22:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.728785'} 2026-08-31 02:22:30,503 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-31 02:22:30,503 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17889734 passed 2026-08-31 02:22:30,503 - DEBUG - ====Verifying policy data for ctest-vn4-17889734 in API_Server ====== 2026-08-31 02:22:30,503 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-31 02:22:30,509 - DEBUG - Requesting: http://10.0.0.177:8082/domain/e72092a5-ed6c-4e44-9e26-97f06214b8ee 2026-08-31 02:22:30,521 - DEBUG - Requesting: http://10.0.0.177:8082/project/13fc1333-8438-4d3a-977c-a486a0e5342d 2026-08-31 02:22:30,605 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/b91e2074-f5bd-48d5-8d25-1dd241bf20d1 2026-08-31 02:22:30,615 - DEBUG - ==>Verifying data for policy with id: 76e766ea-4f42-4623-932e-43215e91d8aa, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05719781', 'ctest-policy1-25292784'] 2026-08-31 02:22:30,615 - INFO - VN ctest-vn4-17889734 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-31 02:22:30,615 - DEBUG - Verifying the vn in opserver 2026-08-31 02:22:30,615 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05719781:ctest-vn4-17889734 virtual network link through opserver 10.0.0.177 2026-08-31 02:22:30,615 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-31 02:22:30,930 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-31 02:22:30,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05719781:ctest-vn4-17889734', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05719781:ctest-vn4-17889734?flat'} 2026-08-31 02:22:30,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05719781:ctest-vn4-17889734 is found in opserver 2026-08-31 02:22:30,996 - DEBUG - Do not have enough data to verify VN in agent 2026-08-31 02:22:31,000 - DEBUG - VRF ids for VN ctest-vn4-17889734: {} 2026-08-31 02:22:31,001 - DEBUG - ====Verifying data for ctest-policy1-25292784 in API_Server ====== 2026-08-31 02:22:31,001 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-31 02:22:31,007 - DEBUG - Requesting: http://10.0.0.177:8082/domain/e72092a5-ed6c-4e44-9e26-97f06214b8ee 2026-08-31 02:22:31,020 - DEBUG - Requesting: http://10.0.0.177:8082/project/13fc1333-8438-4d3a-977c-a486a0e5342d 2026-08-31 02:22:31,094 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/76e766ea-4f42-4623-932e-43215e91d8aa 2026-08-31 02:22:31,105 - INFO - Verified policy ctest-policy1-25292784 in API Server, Result: True 2026-08-31 02:22:31,105 - INFO - Done with setup and verification, moving onto test .. 2026-08-31 02:22:31,114 - INFO - Deleting VN ctest-vn4-17889734 2026-08-31 02:22:31,240 - DEBUG - Response for deleting network () 2026-08-31 02:22:31,240 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/32868148-d6a2-4b18-af12-a26b57698f88 2026-08-31 02:22:31,245 - DEBUG - Response Code: 404 2026-08-31 02:22:31,245 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-31 02:22:31,251 - DEBUG - Requesting: http://10.0.0.177:8082/domain/e72092a5-ed6c-4e44-9e26-97f06214b8ee 2026-08-31 02:22:31,302 - DEBUG - Requesting: http://10.0.0.177:8082/project/13fc1333-8438-4d3a-977c-a486a0e5342d 2026-08-31 02:22:31,377 - INFO - Validated that VN ctest-vn4-17889734 is not found in API Server 2026-08-31 02:22:31,388 - DEBUG - VN ctest-vn4-17889734 is not present in Agent 10.0.0.177 2026-08-31 02:22:31,388 - INFO - Validated that VN ctest-vn4-17889734 is not in any agent 2026-08-31 02:22:31,403 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17889734 info 2026-08-31 02:22:31,427 - INFO - Deleted policy ctest-policy1-25292784 2026-08-31 02:22:31,597 - DEBUG - policy ctest-policy1-25292784 is not found in API Server 2026-08-31 02:22:31,870 - DEBUG - No XMPP flaps were noticed during the test 2026-08-31 02:22:31,871 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-31 02:22:31,871 - INFO - -------------------------------------------------------------------------------- 2026-08-31 02:22:32,162 - DEBUG - No XMPP flaps were noticed during the test 2026-08-31 02:22:32,162 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-31 02:22:32,162 - INFO - -------------------------------------------------------------------------------- 2026-08-31 02:22:32,909 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-05719781, ID : 13fc1333-8438-4d3a-977c-a486a0e5342d