2026-11-23 02:19:46,997 - INFO - Domain Default found not creating 2026-11-23 02:19:47,176 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94884626 not found, creating it 2026-11-23 02:19:47,669 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94884626, ID : 5686a6b2-0dd3-4d65-99f9-9aa8dbd1b809 2026-11-23 02:19:49,391 - INFO - ================================================================================ 2026-11-23 02:19:49,392 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-23 02:19:49,664 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-11-23 02:19:49,664 - INFO - Initial checks done. Running the testcase now 2026-11-23 02:19:49,664 - INFO - 2026-11-23 02:19:49,665 - INFO - ================================================================================ 2026-11-23 02:19:49,665 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-23 02:19:49,665 - 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-11-23 02:19:49,968 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-11-23 02:19:49,968 - INFO - Initial checks done. Running the testcase now 2026-11-23 02:19:49,968 - INFO - 2026-11-23 02:19:50,400 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94884626:ctest-vn4-31292976, 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-94884626:ctest-vn4-31292976, 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-94884626:ctest-vn4-31292976, 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-94884626:ctest-vn4-31292976, 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-11-23 02:19:51,050 - DEBUG - Response for create_network : {'network': {'id': '6b361787-ec93-4782-8155-3acbe5dfb70f', 'name': 'ctest-vn4-31292976', 'tenant_id': '5686a6b20dd34d6599f99aa8dbd1b809', 'project_id': '5686a6b20dd34d6599f99aa8dbd1b809', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94884626', 'ctest-vn4-31292976'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-11-23 02:19:51,238 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3c6990a-ff1f-4022-91c7-b3d6481ab878', 'name': '', 'tenant_id': '5686a6b20dd34d6599f99aa8dbd1b809', 'network_id': '6b361787-ec93-4782-8155-3acbe5dfb70f', 'ip_version': 4, 'cidr': '81.199.235.0/26', 'allocation_pools': [{'start': '81.199.235.2', 'end': '81.199.235.62'}], 'gateway_ip': '81.199.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-11-23T02:19:51.181328', 'updated_at': '2026-11-23T02:19:51.181328', 'dns_server_address': '81.199.235.2', 'tags': [], 'project_id': '5686a6b20dd34d6599f99aa8dbd1b809'}} 2026-11-23 02:19:51,458 - DEBUG - Response for create_subnet : {'subnet': {'id': '19f0c4f6-369e-4723-bdc3-c034b2d51412', 'name': '', 'tenant_id': '5686a6b20dd34d6599f99aa8dbd1b809', 'network_id': '6b361787-ec93-4782-8155-3acbe5dfb70f', 'ip_version': 6, 'cidr': '2a60:b18b:43dc:76fd:52e4:948e::/96', 'allocation_pools': [{'start': '2a60:b18b:43dc:76fd:52e4:948e:0:2', 'end': '2a60:b18b:43dc:76fd:52e4:948e:ffff:fffe'}], 'gateway_ip': '2a60:b18b:43dc:76fd:52e4:948e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-11-23T02:19:51.388455', 'updated_at': '2026-11-23T02:19:51.388455', 'dns_server_address': '2a60:b18b:43dc:76fd:52e4:948e:0:2', 'tags': [], 'project_id': '5686a6b20dd34d6599f99aa8dbd1b809'}} 2026-11-23 02:19:51,476 - INFO - Created VN ctest-vn4-31292976 2026-11-23 02:19:51,533 - DEBUG - VN ctest-vn4-31292976 UUID is 6b361787-ec93-4782-8155-3acbe5dfb70f 2026-11-23 02:19:51,730 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6b361787-ec93-4782-8155-3acbe5dfb70f', 'name': 'ctest-vn4-31292976', 'tenant_id': '5686a6b20dd34d6599f99aa8dbd1b809', 'project_id': '5686a6b20dd34d6599f99aa8dbd1b809', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['a3c6990a-ff1f-4022-91c7-b3d6481ab878', '19f0c4f6-369e-4723-bdc3-c034b2d51412'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94884626', 'ctest-vn4-31292976'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94884626', 'ctest-policy1-60340740']], 'subnet_ipam': [{'subnet_cidr': '81.199.235.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a60:b18b:43dc:76fd:52e4:948e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-11-23T02:19:51.001974', 'updated_at': '2026-11-23T02:19:51.404317'}} 2026-11-23 02:19:51,893 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-23 02:19:52,262 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-23 02:19:52,291 - DEBUG - Requesting: http://10.0.0.177:8082/domain/985314f2-7c90-4a11-898d-107bdef7f5e5 2026-11-23 02:19:52,304 - DEBUG - Requesting: http://10.0.0.177:8082/project/5686a6b2-0dd3-4d65-99f9-9aa8dbd1b809 2026-11-23 02:19:52,386 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6b361787-ec93-4782-8155-3acbe5dfb70f 2026-11-23 02:19:52,397 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6b361787-ec93-4782-8155-3acbe5dfb70f 2026-11-23 02:19:52,406 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/929b31a7-9c01-468b-bb1d-cc3f9e662930 2026-11-23 02:19:52,412 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/929b31a7-9c01-468b-bb1d-cc3f9e662930 2026-11-23 02:19:52,418 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/a9480c5f-8ee8-4b6b-926d-aecb800fe052 2026-11-23 02:19:52,425 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-23 02:19:52,425 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6b361787-ec93-4782-8155-3acbe5dfb70f 2026-11-23 02:19:52,435 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/929b31a7-9c01-468b-bb1d-cc3f9e662930 2026-11-23 02:19:52,458 - INFO - Verified VN network id 11 for VN 6b361787-ec93-4782-8155-3acbe5dfb70f 2026-11-23 02:19:52,459 - INFO - Verifications in API Server for VN ctest-vn4-31292976 passed 2026-11-23 02:19:52,459 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6b361787-ec93-4782-8155-3acbe5dfb70f 2026-11-23 02:19:52,469 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/929b31a7-9c01-468b-bb1d-cc3f9e662930 2026-11-23 02:19:52,476 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/929b31a7-9c01-468b-bb1d-cc3f9e662930 2026-11-23 02:19:52,484 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/a9480c5f-8ee8-4b6b-926d-aecb800fe052 2026-11-23 02:19:52,501 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94884626:ctest-vn4-31292976', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94884626', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7725388083357763458', 'uuid-lslong': '9319419651322525455'}, 'enable': 'true', 'created': '2026-11-23T02:19:51', 'last-modified': '2026-11-23T02:19:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.798353'} 2026-11-23 02:19:52,508 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-23 02:19:52,509 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31292976 passed 2026-11-23 02:19:52,509 - DEBUG - ====Verifying policy data for ctest-vn4-31292976 in API_Server ====== 2026-11-23 02:19:52,509 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-23 02:19:52,517 - DEBUG - Requesting: http://10.0.0.177:8082/domain/985314f2-7c90-4a11-898d-107bdef7f5e5 2026-11-23 02:19:52,532 - DEBUG - Requesting: http://10.0.0.177:8082/project/5686a6b2-0dd3-4d65-99f9-9aa8dbd1b809 2026-11-23 02:19:52,609 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6b361787-ec93-4782-8155-3acbe5dfb70f 2026-11-23 02:19:52,620 - DEBUG - ==>Verifying data for policy with id: cc5f3eba-5335-482b-adf4-c8b9260703b1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94884626', 'ctest-policy1-60340740'] 2026-11-23 02:19:52,620 - INFO - VN ctest-vn4-31292976 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-23 02:19:52,620 - DEBUG - Verifying the vn in opserver 2026-11-23 02:19:52,620 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94884626:ctest-vn4-31292976 virtual network link through opserver 10.0.0.177 2026-11-23 02:19:52,620 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-23 02:19:52,983 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-23 02:19:53,036 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94884626:ctest-vn4-31292976', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94884626:ctest-vn4-31292976?flat'} 2026-11-23 02:19:53,036 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94884626:ctest-vn4-31292976 is found in opserver 2026-11-23 02:19:53,047 - DEBUG - Do not have enough data to verify VN in agent 2026-11-23 02:19:53,051 - DEBUG - VRF ids for VN ctest-vn4-31292976: {} 2026-11-23 02:19:53,052 - DEBUG - ====Verifying data for ctest-policy1-60340740 in API_Server ====== 2026-11-23 02:19:53,052 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-23 02:19:53,057 - DEBUG - Requesting: http://10.0.0.177:8082/domain/985314f2-7c90-4a11-898d-107bdef7f5e5 2026-11-23 02:19:53,067 - DEBUG - Requesting: http://10.0.0.177:8082/project/5686a6b2-0dd3-4d65-99f9-9aa8dbd1b809 2026-11-23 02:19:53,138 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/cc5f3eba-5335-482b-adf4-c8b9260703b1 2026-11-23 02:19:53,147 - INFO - Verified policy ctest-policy1-60340740 in API Server, Result: True 2026-11-23 02:19:53,148 - INFO - Done with setup and verification, moving onto test .. 2026-11-23 02:19:53,156 - INFO - Deleting VN ctest-vn4-31292976 2026-11-23 02:19:53,264 - DEBUG - Response for deleting network () 2026-11-23 02:19:53,264 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/929b31a7-9c01-468b-bb1d-cc3f9e662930 2026-11-23 02:19:53,269 - DEBUG - Response Code: 404 2026-11-23 02:19:53,269 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-23 02:19:53,275 - DEBUG - Requesting: http://10.0.0.177:8082/domain/985314f2-7c90-4a11-898d-107bdef7f5e5 2026-11-23 02:19:53,328 - DEBUG - Requesting: http://10.0.0.177:8082/project/5686a6b2-0dd3-4d65-99f9-9aa8dbd1b809 2026-11-23 02:19:53,403 - INFO - Validated that VN ctest-vn4-31292976 is not found in API Server 2026-11-23 02:19:53,414 - DEBUG - VN ctest-vn4-31292976 is not present in Agent 10.0.0.177 2026-11-23 02:19:53,414 - INFO - Validated that VN ctest-vn4-31292976 is not in any agent 2026-11-23 02:19:53,428 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31292976 info 2026-11-23 02:19:53,451 - INFO - Deleted policy ctest-policy1-60340740 2026-11-23 02:19:53,613 - DEBUG - policy ctest-policy1-60340740 is not found in API Server 2026-11-23 02:19:53,867 - DEBUG - No XMPP flaps were noticed during the test 2026-11-23 02:19:53,867 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-23 02:19:53,867 - INFO - -------------------------------------------------------------------------------- 2026-11-23 02:19:54,155 - DEBUG - No XMPP flaps were noticed during the test 2026-11-23 02:19:54,155 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-11-23 02:19:54,155 - INFO - -------------------------------------------------------------------------------- 2026-11-23 02:19:54,905 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94884626, ID : 5686a6b2-0dd3-4d65-99f9-9aa8dbd1b809