2026-08-17 12:55:25,541 - INFO - Domain Default found not creating 2026-08-17 12:55:25,730 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02215252 not found, creating it 2026-08-17 12:55:26,239 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02215252, ID : 9201a212-8915-4eb5-b8be-595c5034da4a 2026-08-17 12:55:27,950 - INFO - ================================================================================ 2026-08-17 12:55:27,950 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 12:55:28,232 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-08-17 12:55:28,232 - INFO - Initial checks done. Running the testcase now 2026-08-17 12:55:28,232 - INFO - 2026-08-17 12:55:28,232 - INFO - ================================================================================ 2026-08-17 12:55:28,232 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 12:55:28,233 - 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-17 12:55:28,527 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-08-17 12:55:28,528 - INFO - Initial checks done. Running the testcase now 2026-08-17 12:55:28,528 - INFO - 2026-08-17 12:55:28,968 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02215252:ctest-vn4-76370570, 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-02215252:ctest-vn4-76370570, 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-02215252:ctest-vn4-76370570, 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-02215252:ctest-vn4-76370570, 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-17 12:55:29,499 - DEBUG - Response for create_network : {'network': {'id': '84234634-f6b2-4721-84f2-65e7d56c939d', 'name': 'ctest-vn4-76370570', 'tenant_id': '9201a21289154eb5b8be595c5034da4a', 'project_id': '9201a21289154eb5b8be595c5034da4a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02215252', 'ctest-vn4-76370570'], 'port_security_enabled': True, 'description': ''}} 2026-08-17 12:55:29,736 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ca2bddb-c232-46e9-b9d9-4491ce24a855', 'name': '', 'tenant_id': '9201a21289154eb5b8be595c5034da4a', 'network_id': '84234634-f6b2-4721-84f2-65e7d56c939d', 'ip_version': 4, 'cidr': '114.209.53.192/26', 'allocation_pools': [{'start': '114.209.53.194', 'end': '114.209.53.254'}], 'gateway_ip': '114.209.53.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.209.53.194', 'tags': [], 'project_id': '9201a21289154eb5b8be595c5034da4a'}} 2026-08-17 12:55:29,902 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed0ed570-fd4c-49d2-a23e-5f68558c5c7c', 'name': '', 'tenant_id': '9201a21289154eb5b8be595c5034da4a', 'network_id': '84234634-f6b2-4721-84f2-65e7d56c939d', 'ip_version': 6, 'cidr': '218b:beee:ba1d:e588:3d5a:228b::/96', 'allocation_pools': [{'start': '218b:beee:ba1d:e588:3d5a:228b:0:2', 'end': '218b:beee:ba1d:e588:3d5a:228b:ffff:fffe'}], 'gateway_ip': '218b:beee:ba1d:e588:3d5a:228b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218b:beee:ba1d:e588:3d5a:228b:0:2', 'tags': [], 'project_id': '9201a21289154eb5b8be595c5034da4a'}} 2026-08-17 12:55:29,922 - INFO - Created VN ctest-vn4-76370570 2026-08-17 12:55:29,975 - DEBUG - VN ctest-vn4-76370570 UUID is 84234634-f6b2-4721-84f2-65e7d56c939d 2026-08-17 12:55:30,184 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '84234634-f6b2-4721-84f2-65e7d56c939d', 'name': 'ctest-vn4-76370570', 'tenant_id': '9201a21289154eb5b8be595c5034da4a', 'project_id': '9201a21289154eb5b8be595c5034da4a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ca2bddb-c232-46e9-b9d9-4491ce24a855', 'ed0ed570-fd4c-49d2-a23e-5f68558c5c7c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02215252', 'ctest-vn4-76370570'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02215252', 'ctest-policy1-68180555']], 'subnet_ipam': [{'subnet_cidr': '114.209.53.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '218b:beee:ba1d:e588:3d5a:228b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-17 12:55:30,351 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-08-17 12:55:30,718 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-08-17 12:55:30,749 - DEBUG - Requesting: http://10.0.0.19:8082/domain/1a209ccb-caea-46f0-be44-9feb50676ccf 2026-08-17 12:55:30,763 - DEBUG - Requesting: http://10.0.0.19:8082/project/9201a212-8915-4eb5-b8be-595c5034da4a 2026-08-17 12:55:30,844 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/84234634-f6b2-4721-84f2-65e7d56c939d 2026-08-17 12:55:30,857 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/84234634-f6b2-4721-84f2-65e7d56c939d 2026-08-17 12:55:30,868 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/95ba83f5-09e8-4de1-a785-bec1c1af8411 2026-08-17 12:55:30,876 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/95ba83f5-09e8-4de1-a785-bec1c1af8411 2026-08-17 12:55:30,883 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/7e00699e-80ee-48e3-9191-f048e9ae8ecf 2026-08-17 12:55:30,891 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 12:55:30,891 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/84234634-f6b2-4721-84f2-65e7d56c939d 2026-08-17 12:55:30,901 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/95ba83f5-09e8-4de1-a785-bec1c1af8411 2026-08-17 12:55:30,916 - INFO - Verified VN network id 11 for VN 84234634-f6b2-4721-84f2-65e7d56c939d 2026-08-17 12:55:30,916 - INFO - Verifications in API Server for VN ctest-vn4-76370570 passed 2026-08-17 12:55:30,916 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/84234634-f6b2-4721-84f2-65e7d56c939d 2026-08-17 12:55:30,927 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/95ba83f5-09e8-4de1-a785-bec1c1af8411 2026-08-17 12:55:30,934 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/95ba83f5-09e8-4de1-a785-bec1c1af8411 2026-08-17 12:55:30,942 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/7e00699e-80ee-48e3-9191-f048e9ae8ecf 2026-08-17 12:55:30,955 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02215252:ctest-vn4-76370570', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02215252', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9521531230482482977', 'uuid-lslong': '9579831403762979741'}, 'enable': 'true', 'created': '2026-08-17T12:55:29', 'last-modified': '2026-08-17T12:55:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.801202'} 2026-08-17 12:55:30,962 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 12:55:30,962 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76370570 passed 2026-08-17 12:55:30,962 - DEBUG - ====Verifying policy data for ctest-vn4-76370570 in API_Server ====== 2026-08-17 12:55:30,962 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-08-17 12:55:30,968 - DEBUG - Requesting: http://10.0.0.19:8082/domain/1a209ccb-caea-46f0-be44-9feb50676ccf 2026-08-17 12:55:30,979 - DEBUG - Requesting: http://10.0.0.19:8082/project/9201a212-8915-4eb5-b8be-595c5034da4a 2026-08-17 12:55:31,050 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/84234634-f6b2-4721-84f2-65e7d56c939d 2026-08-17 12:55:31,060 - DEBUG - ==>Verifying data for policy with id: fc1a7e89-b39e-49bd-b969-9e48ddfac010, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02215252', 'ctest-policy1-68180555'] 2026-08-17 12:55:31,061 - INFO - VN ctest-vn4-76370570 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-17 12:55:31,062 - DEBUG - Verifying the vn in opserver 2026-08-17 12:55:31,062 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02215252:ctest-vn4-76370570 virtual network link through opserver 10.0.0.19 2026-08-17 12:55:31,062 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-08-17 12:55:31,426 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-08-17 12:55:31,482 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02215252:ctest-vn4-76370570', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02215252:ctest-vn4-76370570?flat'} 2026-08-17 12:55:31,482 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02215252:ctest-vn4-76370570 is found in opserver 2026-08-17 12:55:31,496 - DEBUG - Do not have enough data to verify VN in agent 2026-08-17 12:55:31,504 - DEBUG - VRF ids for VN ctest-vn4-76370570: {} 2026-08-17 12:55:31,504 - DEBUG - ====Verifying data for ctest-policy1-68180555 in API_Server ====== 2026-08-17 12:55:31,504 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-08-17 12:55:31,510 - DEBUG - Requesting: http://10.0.0.19:8082/domain/1a209ccb-caea-46f0-be44-9feb50676ccf 2026-08-17 12:55:31,525 - DEBUG - Requesting: http://10.0.0.19:8082/project/9201a212-8915-4eb5-b8be-595c5034da4a 2026-08-17 12:55:31,601 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/fc1a7e89-b39e-49bd-b969-9e48ddfac010 2026-08-17 12:55:31,612 - INFO - Verified policy ctest-policy1-68180555 in API Server, Result: True 2026-08-17 12:55:31,612 - INFO - Done with setup and verification, moving onto test .. 2026-08-17 12:55:31,622 - INFO - Deleting VN ctest-vn4-76370570 2026-08-17 12:55:31,750 - DEBUG - Response for deleting network () 2026-08-17 12:55:31,750 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/95ba83f5-09e8-4de1-a785-bec1c1af8411 2026-08-17 12:55:31,756 - DEBUG - Response Code: 404 2026-08-17 12:55:31,757 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-08-17 12:55:31,763 - DEBUG - Requesting: http://10.0.0.19:8082/domain/1a209ccb-caea-46f0-be44-9feb50676ccf 2026-08-17 12:55:31,817 - DEBUG - Requesting: http://10.0.0.19:8082/project/9201a212-8915-4eb5-b8be-595c5034da4a 2026-08-17 12:55:31,897 - INFO - Validated that VN ctest-vn4-76370570 is not found in API Server 2026-08-17 12:55:31,908 - DEBUG - VN ctest-vn4-76370570 is not present in Agent 10.0.0.19 2026-08-17 12:55:31,909 - INFO - Validated that VN ctest-vn4-76370570 is not in any agent 2026-08-17 12:55:31,930 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76370570 info 2026-08-17 12:55:31,962 - INFO - Deleted policy ctest-policy1-68180555 2026-08-17 12:55:32,131 - DEBUG - policy ctest-policy1-68180555 is not found in API Server 2026-08-17 12:55:32,407 - DEBUG - No XMPP flaps were noticed during the test