2026-02-02 13:09:51,449 - INFO - Domain Default found not creating 2026-02-02 13:09:51,634 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10090510 not found, creating it 2026-02-02 13:09:52,145 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10090510, ID : 131236f5-5f58-44d6-8fab-38c5b9707173 2026-02-02 13:09:53,805 - INFO - ================================================================================ 2026-02-02 13:09:53,805 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 13:09:54,066 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2026-02-02 13:09:54,066 - INFO - Initial checks done. Running the testcase now 2026-02-02 13:09:54,066 - INFO - 2026-02-02 13:09:54,067 - INFO - ================================================================================ 2026-02-02 13:09:54,067 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 13:09:54,067 - 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-02-02 13:09:54,363 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2026-02-02 13:09:54,363 - INFO - Initial checks done. Running the testcase now 2026-02-02 13:09:54,363 - INFO - 2026-02-02 13:09:54,776 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10090510:ctest-vn4-75432952, 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-10090510:ctest-vn4-75432952, 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-10090510:ctest-vn4-75432952, 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-10090510:ctest-vn4-75432952, 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-02-02 13:09:55,531 - DEBUG - Response for create_network : {'network': {'id': '2d44adec-ebac-4e36-b6d2-7f4c67718b6d', 'name': 'ctest-vn4-75432952', 'tenant_id': '131236f55f5844d68fab38c5b9707173', 'project_id': '131236f55f5844d68fab38c5b9707173', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10090510', 'ctest-vn4-75432952'], 'port_security_enabled': True, 'description': ''}} 2026-02-02 13:09:55,764 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee41158a-684e-4a0b-86fa-12b911026923', 'name': '', 'tenant_id': '131236f55f5844d68fab38c5b9707173', 'network_id': '2d44adec-ebac-4e36-b6d2-7f4c67718b6d', 'ip_version': 4, 'cidr': '157.71.186.128/26', 'allocation_pools': [{'start': '157.71.186.130', 'end': '157.71.186.190'}], 'gateway_ip': '157.71.186.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.71.186.130', 'tags': [], 'project_id': '131236f55f5844d68fab38c5b9707173'}} 2026-02-02 13:09:55,963 - DEBUG - Response for create_subnet : {'subnet': {'id': '97fb3e24-9489-4549-a173-183fcc806bba', 'name': '', 'tenant_id': '131236f55f5844d68fab38c5b9707173', 'network_id': '2d44adec-ebac-4e36-b6d2-7f4c67718b6d', 'ip_version': 6, 'cidr': '3577:bcf9:cb04:4b39:7e63:5bfc::/96', 'allocation_pools': [{'start': '3577:bcf9:cb04:4b39:7e63:5bfc:0:2', 'end': '3577:bcf9:cb04:4b39:7e63:5bfc:ffff:fffe'}], 'gateway_ip': '3577:bcf9:cb04:4b39:7e63:5bfc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3577:bcf9:cb04:4b39:7e63:5bfc:0:2', 'tags': [], 'project_id': '131236f55f5844d68fab38c5b9707173'}} 2026-02-02 13:09:55,988 - INFO - Created VN ctest-vn4-75432952 2026-02-02 13:09:56,040 - DEBUG - VN ctest-vn4-75432952 UUID is 2d44adec-ebac-4e36-b6d2-7f4c67718b6d 2026-02-02 13:09:56,261 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d44adec-ebac-4e36-b6d2-7f4c67718b6d', 'name': 'ctest-vn4-75432952', 'tenant_id': '131236f55f5844d68fab38c5b9707173', 'project_id': '131236f55f5844d68fab38c5b9707173', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee41158a-684e-4a0b-86fa-12b911026923', '97fb3e24-9489-4549-a173-183fcc806bba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10090510', 'ctest-vn4-75432952'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10090510', 'ctest-policy1-27007369']], 'subnet_ipam': [{'subnet_cidr': '157.71.186.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3577:bcf9:cb04:4b39:7e63:5bfc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-02 13:09:56,416 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-02 13:09:56,711 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-02 13:09:56,745 - DEBUG - Requesting: http://10.0.0.41:8082/domain/afca86ae-5a0b-4d74-a2b9-f8801d022134 2026-02-02 13:09:56,758 - DEBUG - Requesting: http://10.0.0.41:8082/project/131236f5-5f58-44d6-8fab-38c5b9707173 2026-02-02 13:09:56,834 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2d44adec-ebac-4e36-b6d2-7f4c67718b6d 2026-02-02 13:09:56,846 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2d44adec-ebac-4e36-b6d2-7f4c67718b6d 2026-02-02 13:09:56,856 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/382de102-5354-48e6-a7a2-9f15430e4548 2026-02-02 13:09:56,865 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/382de102-5354-48e6-a7a2-9f15430e4548 2026-02-02 13:09:56,872 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/ff181377-9f80-46bb-a25a-d8b1fd62e59a 2026-02-02 13:09:56,879 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 13:09:56,879 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2d44adec-ebac-4e36-b6d2-7f4c67718b6d 2026-02-02 13:09:56,888 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/382de102-5354-48e6-a7a2-9f15430e4548 2026-02-02 13:09:56,902 - INFO - Verified VN network id 9 for VN 2d44adec-ebac-4e36-b6d2-7f4c67718b6d 2026-02-02 13:09:56,902 - INFO - Verifications in API Server for VN ctest-vn4-75432952 passed 2026-02-02 13:09:56,902 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2d44adec-ebac-4e36-b6d2-7f4c67718b6d 2026-02-02 13:09:56,912 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/382de102-5354-48e6-a7a2-9f15430e4548 2026-02-02 13:09:56,920 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/382de102-5354-48e6-a7a2-9f15430e4548 2026-02-02 13:09:56,928 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/ff181377-9f80-46bb-a25a-d8b1fd62e59a 2026-02-02 13:09:56,941 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10090510:ctest-vn4-75432952', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10090510', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3261923263200906806', 'uuid-lslong': '13173731826141858669'}, 'enable': 'true', 'created': '2026-02-02T13:09:55', 'last-modified': '2026-02-02T13:09:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714272'} 2026-02-02 13:09:56,947 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 13:09:56,947 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75432952 passed 2026-02-02 13:09:56,948 - DEBUG - ====Verifying policy data for ctest-vn4-75432952 in API_Server ====== 2026-02-02 13:09:56,948 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-02 13:09:56,953 - DEBUG - Requesting: http://10.0.0.41:8082/domain/afca86ae-5a0b-4d74-a2b9-f8801d022134 2026-02-02 13:09:56,965 - DEBUG - Requesting: http://10.0.0.41:8082/project/131236f5-5f58-44d6-8fab-38c5b9707173 2026-02-02 13:09:57,038 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2d44adec-ebac-4e36-b6d2-7f4c67718b6d 2026-02-02 13:09:57,048 - DEBUG - ==>Verifying data for policy with id: ebd13144-61fb-4601-ba89-dac2e16b7f3b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10090510', 'ctest-policy1-27007369'] 2026-02-02 13:09:57,048 - INFO - VN ctest-vn4-75432952 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 13:09:57,048 - DEBUG - Verifying the vn in opserver 2026-02-02 13:09:57,048 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10090510:ctest-vn4-75432952 virtual network link through opserver 10.0.0.41 2026-02-02 13:09:57,048 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-02-02 13:09:57,345 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-02-02 13:09:57,410 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10090510:ctest-vn4-75432952', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10090510:ctest-vn4-75432952?flat'} 2026-02-02 13:09:57,410 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10090510:ctest-vn4-75432952 is found in opserver 2026-02-02 13:09:57,422 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 13:09:57,428 - DEBUG - VRF ids for VN ctest-vn4-75432952: {} 2026-02-02 13:09:57,429 - DEBUG - ====Verifying data for ctest-policy1-27007369 in API_Server ====== 2026-02-02 13:09:57,429 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-02 13:09:57,436 - DEBUG - Requesting: http://10.0.0.41:8082/domain/afca86ae-5a0b-4d74-a2b9-f8801d022134 2026-02-02 13:09:57,447 - DEBUG - Requesting: http://10.0.0.41:8082/project/131236f5-5f58-44d6-8fab-38c5b9707173 2026-02-02 13:09:57,520 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/ebd13144-61fb-4601-ba89-dac2e16b7f3b 2026-02-02 13:09:57,529 - INFO - Verified policy ctest-policy1-27007369 in API Server, Result: True 2026-02-02 13:09:57,530 - INFO - Done with setup and verification, moving onto test .. 2026-02-02 13:09:57,538 - INFO - Deleting VN ctest-vn4-75432952 2026-02-02 13:09:57,676 - DEBUG - Response for deleting network () 2026-02-02 13:09:57,676 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/382de102-5354-48e6-a7a2-9f15430e4548 2026-02-02 13:09:57,684 - DEBUG - Response Code: 404 2026-02-02 13:09:57,684 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-02 13:09:57,689 - DEBUG - Requesting: http://10.0.0.41:8082/domain/afca86ae-5a0b-4d74-a2b9-f8801d022134 2026-02-02 13:09:57,746 - DEBUG - Requesting: http://10.0.0.41:8082/project/131236f5-5f58-44d6-8fab-38c5b9707173 2026-02-02 13:09:57,826 - INFO - Validated that VN ctest-vn4-75432952 is not found in API Server 2026-02-02 13:09:57,836 - DEBUG - VN ctest-vn4-75432952 is not present in Agent 10.0.0.41 2026-02-02 13:09:57,836 - INFO - Validated that VN ctest-vn4-75432952 is not in any agent 2026-02-02 13:09:57,850 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75432952 info 2026-02-02 13:09:57,878 - INFO - Deleted policy ctest-policy1-27007369 2026-02-02 13:09:58,044 - DEBUG - policy ctest-policy1-27007369 is not found in API Server 2026-02-02 13:09:58,302 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 13:09:58,302 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-02 13:09:58,302 - INFO - -------------------------------------------------------------------------------- 2026-02-02 13:09:58,594 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 13:09:58,594 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-02 13:09:58,594 - INFO - -------------------------------------------------------------------------------- 2026-02-02 13:09:59,299 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-10090510, ID : 131236f5-5f58-44d6-8fab-38c5b9707173