2026-01-29 02:13:43,660 - INFO - Domain Default found not creating 2026-01-29 02:13:43,820 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26674786 not found, creating it 2026-01-29 02:13:44,280 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26674786, ID : bca01cb1-5ad4-4d8c-bc9a-5281bd777032 2026-01-29 02:13:45,782 - INFO - ================================================================================ 2026-01-29 02:13:45,782 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 02:13:46,036 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0'}} with 2026-01-29 02:13:46,036 - INFO - Initial checks done. Running the testcase now 2026-01-29 02:13:46,036 - INFO - 2026-01-29 02:13:46,036 - INFO - ================================================================================ 2026-01-29 02:13:46,037 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 02:13:46,037 - 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-01-29 02:13:46,326 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0'}} with 2026-01-29 02:13:46,326 - INFO - Initial checks done. Running the testcase now 2026-01-29 02:13:46,327 - INFO - 2026-01-29 02:13:46,675 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26674786:ctest-vn4-38324667, 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-26674786:ctest-vn4-38324667, 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-26674786:ctest-vn4-38324667, 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-26674786:ctest-vn4-38324667, 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-01-29 02:13:47,196 - DEBUG - Response for create_network : {'network': {'id': '03b48f0d-3e35-4189-b4d4-33e97ca83e92', 'name': 'ctest-vn4-38324667', 'tenant_id': 'bca01cb15ad44d8cbc9a5281bd777032', 'project_id': 'bca01cb15ad44d8cbc9a5281bd777032', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26674786', 'ctest-vn4-38324667'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 02:13:47,361 - DEBUG - Response for create_subnet : {'subnet': {'id': '231c3cdf-fdff-4460-aed2-565f71bf282a', 'name': '', 'tenant_id': 'bca01cb15ad44d8cbc9a5281bd777032', 'network_id': '03b48f0d-3e35-4189-b4d4-33e97ca83e92', 'ip_version': 4, 'cidr': '214.7.117.0/26', 'allocation_pools': [{'start': '214.7.117.2', 'end': '214.7.117.62'}], 'gateway_ip': '214.7.117.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.7.117.2', 'tags': [], 'project_id': 'bca01cb15ad44d8cbc9a5281bd777032'}} 2026-01-29 02:13:47,511 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd01becc7-f1ff-4dcc-a1de-2bcb95dd2201', 'name': '', 'tenant_id': 'bca01cb15ad44d8cbc9a5281bd777032', 'network_id': '03b48f0d-3e35-4189-b4d4-33e97ca83e92', 'ip_version': 6, 'cidr': '2ce5:2835:fc59:e97c:c0ed:583e::/96', 'allocation_pools': [{'start': '2ce5:2835:fc59:e97c:c0ed:583e:0:2', 'end': '2ce5:2835:fc59:e97c:c0ed:583e:ffff:fffe'}], 'gateway_ip': '2ce5:2835:fc59:e97c:c0ed:583e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ce5:2835:fc59:e97c:c0ed:583e:0:2', 'tags': [], 'project_id': 'bca01cb15ad44d8cbc9a5281bd777032'}} 2026-01-29 02:13:47,534 - INFO - Created VN ctest-vn4-38324667 2026-01-29 02:13:47,585 - DEBUG - VN ctest-vn4-38324667 UUID is 03b48f0d-3e35-4189-b4d4-33e97ca83e92 2026-01-29 02:13:47,791 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03b48f0d-3e35-4189-b4d4-33e97ca83e92', 'name': 'ctest-vn4-38324667', 'tenant_id': 'bca01cb15ad44d8cbc9a5281bd777032', 'project_id': 'bca01cb15ad44d8cbc9a5281bd777032', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['231c3cdf-fdff-4460-aed2-565f71bf282a', 'd01becc7-f1ff-4dcc-a1de-2bcb95dd2201'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26674786', 'ctest-vn4-38324667'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26674786', 'ctest-policy1-27710875']], 'subnet_ipam': [{'subnet_cidr': '214.7.117.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ce5:2835:fc59:e97c:c0ed:583e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 02:13:47,950 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-29 02:13:48,243 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-29 02:13:48,275 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d71c9a98-945e-484f-9ad1-e994d610c135 2026-01-29 02:13:48,287 - DEBUG - Requesting: http://10.0.0.41:8082/project/bca01cb1-5ad4-4d8c-bc9a-5281bd777032 2026-01-29 02:13:48,354 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/03b48f0d-3e35-4189-b4d4-33e97ca83e92 2026-01-29 02:13:48,366 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/03b48f0d-3e35-4189-b4d4-33e97ca83e92 2026-01-29 02:13:48,376 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9fbe34d1-34eb-4f0c-ab8d-0759ec537384 2026-01-29 02:13:48,382 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9fbe34d1-34eb-4f0c-ab8d-0759ec537384 2026-01-29 02:13:48,389 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/bf6f70b6-c3f0-4d30-9aa6-b2420503d198 2026-01-29 02:13:48,395 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 02:13:48,395 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/03b48f0d-3e35-4189-b4d4-33e97ca83e92 2026-01-29 02:13:48,404 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9fbe34d1-34eb-4f0c-ab8d-0759ec537384 2026-01-29 02:13:48,418 - INFO - Verified VN network id 11 for VN 03b48f0d-3e35-4189-b4d4-33e97ca83e92 2026-01-29 02:13:48,418 - INFO - Verifications in API Server for VN ctest-vn4-38324667 passed 2026-01-29 02:13:48,418 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/03b48f0d-3e35-4189-b4d4-33e97ca83e92 2026-01-29 02:13:48,427 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9fbe34d1-34eb-4f0c-ab8d-0759ec537384 2026-01-29 02:13:48,434 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9fbe34d1-34eb-4f0c-ab8d-0759ec537384 2026-01-29 02:13:48,442 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/bf6f70b6-c3f0-4d30-9aa6-b2420503d198 2026-01-29 02:13:48,454 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26674786:ctest-vn4-38324667', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26674786', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '266995564962726281', 'uuid-lslong': '13030096699801484946'}, 'enable': 'true', 'created': '2026-01-29T02:13:47', 'last-modified': '2026-01-29T02:13:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.682472'} 2026-01-29 02:13:48,459 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 02:13:48,459 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38324667 passed 2026-01-29 02:13:48,460 - DEBUG - ====Verifying policy data for ctest-vn4-38324667 in API_Server ====== 2026-01-29 02:13:48,460 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-29 02:13:48,465 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d71c9a98-945e-484f-9ad1-e994d610c135 2026-01-29 02:13:48,476 - DEBUG - Requesting: http://10.0.0.41:8082/project/bca01cb1-5ad4-4d8c-bc9a-5281bd777032 2026-01-29 02:13:48,552 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/03b48f0d-3e35-4189-b4d4-33e97ca83e92 2026-01-29 02:13:48,561 - DEBUG - ==>Verifying data for policy with id: 17201b27-62d6-4721-9029-d6fd375fe010, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26674786', 'ctest-policy1-27710875'] 2026-01-29 02:13:48,561 - INFO - VN ctest-vn4-38324667 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 02:13:48,561 - DEBUG - Verifying the vn in opserver 2026-01-29 02:13:48,561 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26674786:ctest-vn4-38324667 virtual network link through opserver 10.0.0.41 2026-01-29 02:13:48,561 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-01-29 02:13:48,851 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-01-29 02:13:48,913 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26674786:ctest-vn4-38324667', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26674786:ctest-vn4-38324667?flat'} 2026-01-29 02:13:48,913 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26674786:ctest-vn4-38324667 is found in opserver 2026-01-29 02:13:48,922 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 02:13:48,926 - DEBUG - VRF ids for VN ctest-vn4-38324667: {} 2026-01-29 02:13:48,927 - DEBUG - ====Verifying data for ctest-policy1-27710875 in API_Server ====== 2026-01-29 02:13:48,927 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-29 02:13:48,931 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d71c9a98-945e-484f-9ad1-e994d610c135 2026-01-29 02:13:48,941 - DEBUG - Requesting: http://10.0.0.41:8082/project/bca01cb1-5ad4-4d8c-bc9a-5281bd777032 2026-01-29 02:13:49,011 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/17201b27-62d6-4721-9029-d6fd375fe010 2026-01-29 02:13:49,021 - INFO - Verified policy ctest-policy1-27710875 in API Server, Result: True 2026-01-29 02:13:49,021 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 02:13:49,029 - INFO - Deleting VN ctest-vn4-38324667 2026-01-29 02:13:49,147 - DEBUG - Response for deleting network () 2026-01-29 02:13:49,147 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/9fbe34d1-34eb-4f0c-ab8d-0759ec537384 2026-01-29 02:13:49,153 - DEBUG - Response Code: 404 2026-01-29 02:13:49,153 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-01-29 02:13:49,159 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d71c9a98-945e-484f-9ad1-e994d610c135 2026-01-29 02:13:49,214 - DEBUG - Requesting: http://10.0.0.41:8082/project/bca01cb1-5ad4-4d8c-bc9a-5281bd777032 2026-01-29 02:13:49,285 - INFO - Validated that VN ctest-vn4-38324667 is not found in API Server 2026-01-29 02:13:49,295 - DEBUG - VN ctest-vn4-38324667 is not present in Agent 10.0.0.41 2026-01-29 02:13:49,295 - INFO - Validated that VN ctest-vn4-38324667 is not in any agent 2026-01-29 02:13:49,310 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38324667 info 2026-01-29 02:13:49,334 - INFO - Deleted policy ctest-policy1-27710875 2026-01-29 02:13:49,501 - DEBUG - policy ctest-policy1-27710875 is not found in API Server 2026-01-29 02:13:49,766 - DEBUG - No XMPP flaps were noticed during the test 2026-01-29 02:13:49,766 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-01-29 02:13:49,767 - INFO - -------------------------------------------------------------------------------- 2026-01-29 02:13:50,053 - DEBUG - No XMPP flaps were noticed during the test 2026-01-29 02:13:50,053 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-29 02:13:50,053 - INFO - -------------------------------------------------------------------------------- 2026-01-29 02:13:50,763 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-26674786, ID : bca01cb1-5ad4-4d8c-bc9a-5281bd777032