2026-02-02 09:16:14,962 - INFO - Domain Default found not creating 2026-02-02 09:16:15,146 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-08678558 not found, creating it 2026-02-02 09:16:15,626 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-08678558, ID : ebbba944-ee35-4509-bf1c-e1b8b2db1e8c 2026-02-02 09:16:17,151 - INFO - ================================================================================ 2026-02-02 09:16:17,151 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 09:16:17,406 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-02-02 09:16:17,406 - INFO - Initial checks done. Running the testcase now 2026-02-02 09:16:17,407 - INFO - 2026-02-02 09:16:17,407 - INFO - ================================================================================ 2026-02-02 09:16:17,407 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 09:16:17,407 - 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 09:16:17,694 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-02-02 09:16:17,694 - INFO - Initial checks done. Running the testcase now 2026-02-02 09:16:17,694 - INFO - 2026-02-02 09:16:18,055 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08678558:ctest-vn4-96165132, 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-08678558:ctest-vn4-96165132, 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-08678558:ctest-vn4-96165132, 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-08678558:ctest-vn4-96165132, 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 09:16:18,569 - DEBUG - Response for create_network : {'network': {'id': 'd4b05d9a-2035-4360-8939-2022e9e454ad', 'name': 'ctest-vn4-96165132', 'tenant_id': 'ebbba944ee354509bf1ce1b8b2db1e8c', 'project_id': 'ebbba944ee354509bf1ce1b8b2db1e8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08678558', 'ctest-vn4-96165132'], 'port_security_enabled': True, 'description': ''}} 2026-02-02 09:16:18,721 - DEBUG - Response for create_subnet : {'subnet': {'id': '268f8952-62d8-4503-80f5-94d7b7dbdfa2', 'name': '', 'tenant_id': 'ebbba944ee354509bf1ce1b8b2db1e8c', 'network_id': 'd4b05d9a-2035-4360-8939-2022e9e454ad', 'ip_version': 4, 'cidr': '102.242.31.64/26', 'allocation_pools': [{'start': '102.242.31.66', 'end': '102.242.31.126'}], 'gateway_ip': '102.242.31.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.242.31.66', 'tags': [], 'project_id': 'ebbba944ee354509bf1ce1b8b2db1e8c'}} 2026-02-02 09:16:18,880 - DEBUG - Response for create_subnet : {'subnet': {'id': '1df1e5b7-6346-42b3-9cce-815b25d37500', 'name': '', 'tenant_id': 'ebbba944ee354509bf1ce1b8b2db1e8c', 'network_id': 'd4b05d9a-2035-4360-8939-2022e9e454ad', 'ip_version': 6, 'cidr': '30c2:fd26:5ef:59:8137:42ad::/96', 'allocation_pools': [{'start': '30c2:fd26:5ef:59:8137:42ad:0:2', 'end': '30c2:fd26:5ef:59:8137:42ad:ffff:fffe'}], 'gateway_ip': '30c2:fd26:5ef:59:8137:42ad:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30c2:fd26:5ef:59:8137:42ad:0:2', 'tags': [], 'project_id': 'ebbba944ee354509bf1ce1b8b2db1e8c'}} 2026-02-02 09:16:18,902 - INFO - Created VN ctest-vn4-96165132 2026-02-02 09:16:18,956 - DEBUG - VN ctest-vn4-96165132 UUID is d4b05d9a-2035-4360-8939-2022e9e454ad 2026-02-02 09:16:19,165 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd4b05d9a-2035-4360-8939-2022e9e454ad', 'name': 'ctest-vn4-96165132', 'tenant_id': 'ebbba944ee354509bf1ce1b8b2db1e8c', 'project_id': 'ebbba944ee354509bf1ce1b8b2db1e8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['268f8952-62d8-4503-80f5-94d7b7dbdfa2', '1df1e5b7-6346-42b3-9cce-815b25d37500'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08678558', 'ctest-vn4-96165132'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08678558', 'ctest-policy1-68092320']], 'subnet_ipam': [{'subnet_cidr': '102.242.31.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30c2:fd26:5ef:59:8137:42ad::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-02 09:16:19,336 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-02 09:16:19,634 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-02 09:16:19,670 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e95fce11-2ae1-425a-b2ce-6e2e6df5975a 2026-02-02 09:16:19,685 - DEBUG - Requesting: http://10.0.0.19:8082/project/ebbba944-ee35-4509-bf1c-e1b8b2db1e8c 2026-02-02 09:16:19,756 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d4b05d9a-2035-4360-8939-2022e9e454ad 2026-02-02 09:16:19,770 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d4b05d9a-2035-4360-8939-2022e9e454ad 2026-02-02 09:16:19,780 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/eda8a8ce-b300-4644-a99b-5195f18e09fe 2026-02-02 09:16:19,789 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/eda8a8ce-b300-4644-a99b-5195f18e09fe 2026-02-02 09:16:19,797 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/9076a759-7ae2-4255-ae4e-6973c5ac1bd8 2026-02-02 09:16:19,804 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 09:16:19,804 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d4b05d9a-2035-4360-8939-2022e9e454ad 2026-02-02 09:16:19,814 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/eda8a8ce-b300-4644-a99b-5195f18e09fe 2026-02-02 09:16:19,829 - INFO - Verified VN network id 11 for VN d4b05d9a-2035-4360-8939-2022e9e454ad 2026-02-02 09:16:19,830 - INFO - Verifications in API Server for VN ctest-vn4-96165132 passed 2026-02-02 09:16:19,830 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d4b05d9a-2035-4360-8939-2022e9e454ad 2026-02-02 09:16:19,840 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/eda8a8ce-b300-4644-a99b-5195f18e09fe 2026-02-02 09:16:19,849 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/eda8a8ce-b300-4644-a99b-5195f18e09fe 2026-02-02 09:16:19,857 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/9076a759-7ae2-4255-ae4e-6973c5ac1bd8 2026-02-02 09:16:19,872 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08678558:ctest-vn4-96165132', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-08678558', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15325852448488506208', 'uuid-lslong': '9887969791193666733'}, 'enable': 'true', 'created': '2026-02-02T09:16:18', 'last-modified': '2026-02-02T09:16:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.733501'} 2026-02-02 09:16:19,879 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 09:16:19,879 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96165132 passed 2026-02-02 09:16:19,880 - DEBUG - ====Verifying policy data for ctest-vn4-96165132 in API_Server ====== 2026-02-02 09:16:19,880 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-02 09:16:19,886 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e95fce11-2ae1-425a-b2ce-6e2e6df5975a 2026-02-02 09:16:19,897 - DEBUG - Requesting: http://10.0.0.19:8082/project/ebbba944-ee35-4509-bf1c-e1b8b2db1e8c 2026-02-02 09:16:19,965 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/d4b05d9a-2035-4360-8939-2022e9e454ad 2026-02-02 09:16:19,976 - DEBUG - ==>Verifying data for policy with id: bde2f678-b53b-42a0-9cb4-9cfb33b44fc2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08678558', 'ctest-policy1-68092320'] 2026-02-02 09:16:19,976 - INFO - VN ctest-vn4-96165132 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 09:16:19,976 - DEBUG - Verifying the vn in opserver 2026-02-02 09:16:19,976 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08678558:ctest-vn4-96165132 virtual network link through opserver 10.0.0.19 2026-02-02 09:16:19,976 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-02 09:16:20,274 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-02 09:16:20,345 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08678558:ctest-vn4-96165132', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08678558:ctest-vn4-96165132?flat'} 2026-02-02 09:16:20,345 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08678558:ctest-vn4-96165132 is found in opserver 2026-02-02 09:16:20,356 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 09:16:20,361 - DEBUG - VRF ids for VN ctest-vn4-96165132: {} 2026-02-02 09:16:20,362 - DEBUG - ====Verifying data for ctest-policy1-68092320 in API_Server ====== 2026-02-02 09:16:20,362 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-02 09:16:20,368 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e95fce11-2ae1-425a-b2ce-6e2e6df5975a 2026-02-02 09:16:20,381 - DEBUG - Requesting: http://10.0.0.19:8082/project/ebbba944-ee35-4509-bf1c-e1b8b2db1e8c 2026-02-02 09:16:20,453 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/bde2f678-b53b-42a0-9cb4-9cfb33b44fc2 2026-02-02 09:16:20,463 - INFO - Verified policy ctest-policy1-68092320 in API Server, Result: True 2026-02-02 09:16:20,463 - INFO - Done with setup and verification, moving onto test .. 2026-02-02 09:16:20,473 - INFO - Deleting VN ctest-vn4-96165132 2026-02-02 09:16:20,607 - DEBUG - Response for deleting network () 2026-02-02 09:16:20,607 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/eda8a8ce-b300-4644-a99b-5195f18e09fe 2026-02-02 09:16:20,612 - DEBUG - Response Code: 404 2026-02-02 09:16:20,613 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-02 09:16:20,620 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e95fce11-2ae1-425a-b2ce-6e2e6df5975a 2026-02-02 09:16:20,677 - DEBUG - Requesting: http://10.0.0.19:8082/project/ebbba944-ee35-4509-bf1c-e1b8b2db1e8c 2026-02-02 09:16:20,746 - INFO - Validated that VN ctest-vn4-96165132 is not found in API Server 2026-02-02 09:16:20,756 - DEBUG - VN ctest-vn4-96165132 is not present in Agent 10.0.0.19 2026-02-02 09:16:20,756 - INFO - Validated that VN ctest-vn4-96165132 is not in any agent 2026-02-02 09:16:20,769 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96165132 info 2026-02-02 09:16:20,794 - INFO - Deleted policy ctest-policy1-68092320 2026-02-02 09:16:20,956 - DEBUG - policy ctest-policy1-68092320 is not found in API Server 2026-02-02 09:16:21,213 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 09:16:21,214 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-02 09:16:21,214 - INFO - -------------------------------------------------------------------------------- 2026-02-02 09:16:21,517 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 09:16:21,517 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-02 09:16:21,517 - INFO - -------------------------------------------------------------------------------- 2026-02-02 09:16:22,195 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-08678558, ID : ebbba944-ee35-4509-bf1c-e1b8b2db1e8c