2026-10-12 02:46:32,267 - INFO - Domain Default found not creating 2026-10-12 02:46:32,551 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-91162245 not found, creating it 2026-10-12 02:46:33,009 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-91162245, ID : 32d5a074-b345-4386-b365-8ac2f4dc1728 2026-10-12 02:46:34,544 - INFO - ================================================================================ 2026-10-12 02:46:34,544 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-12 02:46:35,816 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.30': '0', '10.20.0.25': '0'}, '10.0.0.189': {'10.20.0.30': '0', '10.20.0.25': '0'}} with 2026-10-12 02:46:35,816 - INFO - Initial checks done. Running the testcase now 2026-10-12 02:46:35,816 - INFO - 2026-10-12 02:46:35,816 - INFO - ================================================================================ 2026-10-12 02:46:35,816 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-12 02:46:35,816 - 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-10-12 02:46:37,063 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.30': '0', '10.20.0.25': '0'}, '10.0.0.189': {'10.20.0.30': '0', '10.20.0.25': '0'}} with 2026-10-12 02:46:37,063 - INFO - Initial checks done. Running the testcase now 2026-10-12 02:46:37,063 - INFO - 2026-10-12 02:46:37,471 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037, 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-91162245:ctest-vn4-47758037, 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-91162245:ctest-vn4-47758037, 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-91162245:ctest-vn4-47758037, 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-10-12 02:46:37,973 - DEBUG - Response for create_network : {'network': {'id': 'cfd3cf29-e82d-406e-b613-6f99c7b3d2b8', 'name': 'ctest-vn4-47758037', 'tenant_id': '32d5a074b3454386b3658ac2f4dc1728', 'project_id': '32d5a074b3454386b3658ac2f4dc1728', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91162245', 'ctest-vn4-47758037'], 'port_security_enabled': True, 'description': ''}} 2026-10-12 02:46:38,196 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e06a2f0-9c7f-42b4-a720-ce36ecde89fb', 'name': '', 'tenant_id': '32d5a074b3454386b3658ac2f4dc1728', 'network_id': 'cfd3cf29-e82d-406e-b613-6f99c7b3d2b8', 'ip_version': 4, 'cidr': '76.197.194.64/26', 'allocation_pools': [{'start': '76.197.194.66', 'end': '76.197.194.126'}], 'gateway_ip': '76.197.194.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.197.194.66', 'tags': [], 'project_id': '32d5a074b3454386b3658ac2f4dc1728'}} 2026-10-12 02:46:38,410 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f297a1ba-f7dd-4090-9336-180d7980766b', 'name': '', 'tenant_id': '32d5a074b3454386b3658ac2f4dc1728', 'network_id': 'cfd3cf29-e82d-406e-b613-6f99c7b3d2b8', 'ip_version': 6, 'cidr': '2889:6fae:1fc:9f00:1f7c:48e2::/96', 'allocation_pools': [{'start': '2889:6fae:1fc:9f00:1f7c:48e2:0:2', 'end': '2889:6fae:1fc:9f00:1f7c:48e2:ffff:fffe'}], 'gateway_ip': '2889:6fae:1fc:9f00:1f7c:48e2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2889:6fae:1fc:9f00:1f7c:48e2:0:2', 'tags': [], 'project_id': '32d5a074b3454386b3658ac2f4dc1728'}} 2026-10-12 02:46:38,427 - INFO - Created VN ctest-vn4-47758037 2026-10-12 02:46:38,437 - DEBUG - VN ctest-vn4-47758037 UUID is cfd3cf29-e82d-406e-b613-6f99c7b3d2b8 2026-10-12 02:46:38,596 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cfd3cf29-e82d-406e-b613-6f99c7b3d2b8', 'name': 'ctest-vn4-47758037', 'tenant_id': '32d5a074b3454386b3658ac2f4dc1728', 'project_id': '32d5a074b3454386b3658ac2f4dc1728', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['0e06a2f0-9c7f-42b4-a720-ce36ecde89fb', 'f297a1ba-f7dd-4090-9336-180d7980766b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91162245', 'ctest-vn4-47758037'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91162245', 'ctest-policy1-38963644']], 'subnet_ipam': [{'subnet_cidr': '76.197.194.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2889:6fae:1fc:9f00:1f7c:48e2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-12 02:46:38,688 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-12 02:46:39,045 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-12 02:46:39,066 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e7595c33-d9f2-4727-95af-2f5d18bc40e3 2026-10-12 02:46:39,078 - DEBUG - Requesting: http://10.0.0.38:8082/project/32d5a074-b345-4386-b365-8ac2f4dc1728 2026-10-12 02:46:39,161 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cfd3cf29-e82d-406e-b613-6f99c7b3d2b8 2026-10-12 02:46:39,172 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cfd3cf29-e82d-406e-b613-6f99c7b3d2b8 2026-10-12 02:46:39,181 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c922173-6b39-42d5-a992-ee94c5d18e84 2026-10-12 02:46:39,187 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c922173-6b39-42d5-a992-ee94c5d18e84 2026-10-12 02:46:39,192 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e382707c-30e1-4e1d-a70a-d8abe82a432d 2026-10-12 02:46:39,197 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-10-12 02:46:39,197 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cfd3cf29-e82d-406e-b613-6f99c7b3d2b8 2026-10-12 02:46:39,206 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c922173-6b39-42d5-a992-ee94c5d18e84 2026-10-12 02:46:39,218 - INFO - Verified VN network id 15 for VN cfd3cf29-e82d-406e-b613-6f99c7b3d2b8 2026-10-12 02:46:39,218 - INFO - Verifications in API Server for VN ctest-vn4-47758037 passed 2026-10-12 02:46:39,218 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cfd3cf29-e82d-406e-b613-6f99c7b3d2b8 2026-10-12 02:46:39,227 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c922173-6b39-42d5-a992-ee94c5d18e84 2026-10-12 02:46:39,232 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c922173-6b39-42d5-a992-ee94c5d18e84 2026-10-12 02:46:39,240 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e382707c-30e1-4e1d-a70a-d8abe82a432d 2026-10-12 02:46:39,252 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-91162245', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14975540964832919662', 'uuid-lslong': '13119952845731517112'}, 'enable': 'true', 'created': '2026-10-12T02:46:37', 'last-modified': '2026-10-12T02:46:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688785'} 2026-10-12 02:46:39,258 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-10-12 02:46:39,263 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-91162245', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14975540964832919662', 'uuid-lslong': '13119952845731517112'}, 'enable': 'true', 'created': '2026-10-12T02:46:37', 'last-modified': '2026-10-12T02:46:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.697751'} 2026-10-12 02:46:39,268 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-10-12 02:46:39,273 - DEBUG - Control-node 10.0.0.191 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-91162245', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14975540964832919662', 'uuid-lslong': '13119952845731517112'}, 'enable': 'true', 'created': '2026-10-12T02:46:37', 'last-modified': '2026-10-12T02:46:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.712723'} 2026-10-12 02:46:39,277 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-10-12 02:46:39,277 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47758037 passed 2026-10-12 02:46:39,278 - DEBUG - ====Verifying policy data for ctest-vn4-47758037 in API_Server ====== 2026-10-12 02:46:39,278 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-12 02:46:39,282 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e7595c33-d9f2-4727-95af-2f5d18bc40e3 2026-10-12 02:46:39,291 - DEBUG - Requesting: http://10.0.0.38:8082/project/32d5a074-b345-4386-b365-8ac2f4dc1728 2026-10-12 02:46:39,379 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cfd3cf29-e82d-406e-b613-6f99c7b3d2b8 2026-10-12 02:46:39,387 - DEBUG - ==>Verifying data for policy with id: d5c93eec-2295-4d1b-814d-5e7398421fad, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91162245', 'ctest-policy1-38963644'] 2026-10-12 02:46:39,387 - INFO - VN ctest-vn4-47758037 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-12 02:46:39,388 - DEBUG - Verifying the vn in opserver 2026-10-12 02:46:39,388 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037 virtual network link through opserver 10.0.0.38 2026-10-12 02:46:39,388 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-12 02:46:39,747 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-12 02:46:39,793 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037?flat'} 2026-10-12 02:46:39,793 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037 virtual network link through opserver 10.0.0.50 2026-10-12 02:46:39,793 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-10-12 02:46:40,156 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-10-12 02:46:40,203 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037?flat'} 2026-10-12 02:46:40,203 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037 virtual network link through opserver 10.0.0.191 2026-10-12 02:46:40,203 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-10-12 02:46:40,569 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-10-12 02:46:40,618 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037', 'href': 'http://10.0.0.191:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037?flat'} 2026-10-12 02:46:40,618 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91162245:ctest-vn4-47758037 is found in opserver 2026-10-12 02:46:40,637 - DEBUG - Do not have enough data to verify VN in agent 2026-10-12 02:46:40,645 - DEBUG - VRF ids for VN ctest-vn4-47758037: {} 2026-10-12 02:46:40,646 - DEBUG - ====Verifying data for ctest-policy1-38963644 in API_Server ====== 2026-10-12 02:46:40,646 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-12 02:46:40,651 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e7595c33-d9f2-4727-95af-2f5d18bc40e3 2026-10-12 02:46:40,661 - DEBUG - Requesting: http://10.0.0.38:8082/project/32d5a074-b345-4386-b365-8ac2f4dc1728 2026-10-12 02:46:40,755 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/d5c93eec-2295-4d1b-814d-5e7398421fad 2026-10-12 02:46:40,763 - INFO - Verified policy ctest-policy1-38963644 in API Server, Result: True 2026-10-12 02:46:40,763 - INFO - Done with setup and verification, moving onto test .. 2026-10-12 02:46:40,773 - INFO - Deleting VN ctest-vn4-47758037 2026-10-12 02:46:40,964 - DEBUG - Response for deleting network () 2026-10-12 02:46:40,964 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9c922173-6b39-42d5-a992-ee94c5d18e84 2026-10-12 02:46:40,968 - DEBUG - Response Code: 404 2026-10-12 02:46:40,968 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-12 02:46:40,973 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e7595c33-d9f2-4727-95af-2f5d18bc40e3 2026-10-12 02:46:41,023 - DEBUG - Requesting: http://10.0.0.38:8082/project/32d5a074-b345-4386-b365-8ac2f4dc1728 2026-10-12 02:46:41,104 - INFO - Validated that VN ctest-vn4-47758037 is not found in API Server 2026-10-12 02:46:41,113 - DEBUG - VN ctest-vn4-47758037 is not present in Agent 10.0.0.188 2026-10-12 02:46:41,122 - DEBUG - VN ctest-vn4-47758037 is not present in Agent 10.0.0.189 2026-10-12 02:46:41,122 - INFO - Validated that VN ctest-vn4-47758037 is not in any agent 2026-10-12 02:46:41,149 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47758037 info 2026-10-12 02:46:41,177 - INFO - Deleted policy ctest-policy1-38963644 2026-10-12 02:46:41,355 - DEBUG - policy ctest-policy1-38963644 is not found in API Server 2026-10-12 02:46:42,614 - DEBUG - No XMPP flaps were noticed during the test 2026-10-12 02:46:42,614 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-10-12 02:46:42,614 - INFO - -------------------------------------------------------------------------------- 2026-10-12 02:46:43,869 - DEBUG - No XMPP flaps were noticed during the test 2026-10-12 02:46:43,870 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09] 2026-10-12 02:46:43,870 - INFO - -------------------------------------------------------------------------------- 2026-10-12 02:46:44,694 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-91162245, ID : 32d5a074-b345-4386-b365-8ac2f4dc1728