2026-01-29 22:28:53,093 - INFO - Domain Default found not creating 2026-01-29 22:28:53,248 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03315841 not found, creating it 2026-01-29 22:28:53,683 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03315841, ID : 6ed7f6a7-9320-4fe1-b96e-ecd89174a1a4 2026-01-29 22:28:55,214 - INFO - ================================================================================ 2026-01-29 22:28:55,215 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 22:28:55,473 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-29 22:28:55,473 - INFO - Initial checks done. Running the testcase now 2026-01-29 22:28:55,473 - INFO - 2026-01-29 22:28:55,473 - INFO - ================================================================================ 2026-01-29 22:28:55,473 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 22:28:55,473 - 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 22:28:55,770 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-29 22:28:55,770 - INFO - Initial checks done. Running the testcase now 2026-01-29 22:28:55,770 - INFO - 2026-01-29 22:28:56,130 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03315841:ctest-vn4-52524043, 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-03315841:ctest-vn4-52524043, 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-03315841:ctest-vn4-52524043, 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-03315841:ctest-vn4-52524043, 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 22:28:56,630 - DEBUG - Response for create_network : {'network': {'id': '4133df27-89a7-44ed-9fc2-77270cc041d8', 'name': 'ctest-vn4-52524043', 'tenant_id': '6ed7f6a793204fe1b96eecd89174a1a4', 'project_id': '6ed7f6a793204fe1b96eecd89174a1a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03315841', 'ctest-vn4-52524043'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 22:28:56,861 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df79c855-6d77-4c05-b58c-4bb456da5d26', 'name': '', 'tenant_id': '6ed7f6a793204fe1b96eecd89174a1a4', 'network_id': '4133df27-89a7-44ed-9fc2-77270cc041d8', 'ip_version': 4, 'cidr': '205.200.79.128/26', 'allocation_pools': [{'start': '205.200.79.130', 'end': '205.200.79.190'}], 'gateway_ip': '205.200.79.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.200.79.130', 'tags': [], 'project_id': '6ed7f6a793204fe1b96eecd89174a1a4'}} 2026-01-29 22:28:56,994 - DEBUG - Response for create_subnet : {'subnet': {'id': '50077d7e-6f23-4673-9a16-d89afd28560b', 'name': '', 'tenant_id': '6ed7f6a793204fe1b96eecd89174a1a4', 'network_id': '4133df27-89a7-44ed-9fc2-77270cc041d8', 'ip_version': 6, 'cidr': '3198:f663:e470:1ee9:c059:4e18::/96', 'allocation_pools': [{'start': '3198:f663:e470:1ee9:c059:4e18:0:2', 'end': '3198:f663:e470:1ee9:c059:4e18:ffff:fffe'}], 'gateway_ip': '3198:f663:e470:1ee9:c059:4e18:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3198:f663:e470:1ee9:c059:4e18:0:2', 'tags': [], 'project_id': '6ed7f6a793204fe1b96eecd89174a1a4'}} 2026-01-29 22:28:57,015 - INFO - Created VN ctest-vn4-52524043 2026-01-29 22:28:57,067 - DEBUG - VN ctest-vn4-52524043 UUID is 4133df27-89a7-44ed-9fc2-77270cc041d8 2026-01-29 22:28:57,255 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4133df27-89a7-44ed-9fc2-77270cc041d8', 'name': 'ctest-vn4-52524043', 'tenant_id': '6ed7f6a793204fe1b96eecd89174a1a4', 'project_id': '6ed7f6a793204fe1b96eecd89174a1a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['df79c855-6d77-4c05-b58c-4bb456da5d26', '50077d7e-6f23-4673-9a16-d89afd28560b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03315841', 'ctest-vn4-52524043'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03315841', 'ctest-policy1-07055071']], 'subnet_ipam': [{'subnet_cidr': '205.200.79.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3198:f663:e470:1ee9:c059:4e18::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 22:28:57,419 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-29 22:28:57,719 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-29 22:28:57,750 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b1895f56-948c-40a9-8589-157f6c8c1d14 2026-01-29 22:28:57,761 - DEBUG - Requesting: http://10.0.0.38:8082/project/6ed7f6a7-9320-4fe1-b96e-ecd89174a1a4 2026-01-29 22:28:57,829 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4133df27-89a7-44ed-9fc2-77270cc041d8 2026-01-29 22:28:57,840 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4133df27-89a7-44ed-9fc2-77270cc041d8 2026-01-29 22:28:57,848 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6ff4ee0-d2a2-4c4b-b153-3d05c6fca0f4 2026-01-29 22:28:57,855 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6ff4ee0-d2a2-4c4b-b153-3d05c6fca0f4 2026-01-29 22:28:57,860 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fb7f0083-e266-41d7-ba23-f98e3252d95d 2026-01-29 22:28:57,866 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 22:28:57,866 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4133df27-89a7-44ed-9fc2-77270cc041d8 2026-01-29 22:28:57,873 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6ff4ee0-d2a2-4c4b-b153-3d05c6fca0f4 2026-01-29 22:28:57,884 - INFO - Verified VN network id 11 for VN 4133df27-89a7-44ed-9fc2-77270cc041d8 2026-01-29 22:28:57,884 - INFO - Verifications in API Server for VN ctest-vn4-52524043 passed 2026-01-29 22:28:57,884 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4133df27-89a7-44ed-9fc2-77270cc041d8 2026-01-29 22:28:57,892 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6ff4ee0-d2a2-4c4b-b153-3d05c6fca0f4 2026-01-29 22:28:57,897 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6ff4ee0-d2a2-4c4b-b153-3d05c6fca0f4 2026-01-29 22:28:57,903 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fb7f0083-e266-41d7-ba23-f98e3252d95d 2026-01-29 22:28:57,916 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03315841:ctest-vn4-52524043', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03315841', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4698344197183718637', 'uuid-lslong': '11511894607113765336'}, 'enable': 'true', 'created': '2026-01-29T22:28:56', 'last-modified': '2026-01-29T22:28:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.685568'} 2026-01-29 22:28:57,922 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 22:28:57,922 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52524043 passed 2026-01-29 22:28:57,922 - DEBUG - ====Verifying policy data for ctest-vn4-52524043 in API_Server ====== 2026-01-29 22:28:57,922 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-29 22:28:57,927 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b1895f56-948c-40a9-8589-157f6c8c1d14 2026-01-29 22:28:57,936 - DEBUG - Requesting: http://10.0.0.38:8082/project/6ed7f6a7-9320-4fe1-b96e-ecd89174a1a4 2026-01-29 22:28:58,006 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4133df27-89a7-44ed-9fc2-77270cc041d8 2026-01-29 22:28:58,014 - DEBUG - ==>Verifying data for policy with id: 10e7e101-7d99-4102-8a36-3c3cfeadf922, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03315841', 'ctest-policy1-07055071'] 2026-01-29 22:28:58,015 - INFO - VN ctest-vn4-52524043 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 22:28:58,015 - DEBUG - Verifying the vn in opserver 2026-01-29 22:28:58,015 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03315841:ctest-vn4-52524043 virtual network link through opserver 10.0.0.38 2026-01-29 22:28:58,015 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-29 22:28:58,311 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-29 22:28:58,366 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03315841:ctest-vn4-52524043', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03315841:ctest-vn4-52524043?flat'} 2026-01-29 22:28:58,366 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03315841:ctest-vn4-52524043 is found in opserver 2026-01-29 22:28:58,376 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 22:28:58,381 - DEBUG - VRF ids for VN ctest-vn4-52524043: {} 2026-01-29 22:28:58,381 - DEBUG - ====Verifying data for ctest-policy1-07055071 in API_Server ====== 2026-01-29 22:28:58,381 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-29 22:28:58,386 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b1895f56-948c-40a9-8589-157f6c8c1d14 2026-01-29 22:28:58,395 - DEBUG - Requesting: http://10.0.0.38:8082/project/6ed7f6a7-9320-4fe1-b96e-ecd89174a1a4 2026-01-29 22:28:58,463 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/10e7e101-7d99-4102-8a36-3c3cfeadf922 2026-01-29 22:28:58,471 - INFO - Verified policy ctest-policy1-07055071 in API Server, Result: True 2026-01-29 22:28:58,471 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 22:28:58,477 - INFO - Deleting VN ctest-vn4-52524043 2026-01-29 22:28:58,585 - DEBUG - Response for deleting network () 2026-01-29 22:28:58,585 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a6ff4ee0-d2a2-4c4b-b153-3d05c6fca0f4 2026-01-29 22:28:58,590 - DEBUG - Response Code: 404 2026-01-29 22:28:58,591 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-29 22:28:58,595 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b1895f56-948c-40a9-8589-157f6c8c1d14 2026-01-29 22:28:58,647 - DEBUG - Requesting: http://10.0.0.38:8082/project/6ed7f6a7-9320-4fe1-b96e-ecd89174a1a4 2026-01-29 22:28:58,721 - INFO - Validated that VN ctest-vn4-52524043 is not found in API Server 2026-01-29 22:28:58,730 - DEBUG - VN ctest-vn4-52524043 is not present in Agent 10.0.0.38 2026-01-29 22:28:58,730 - INFO - Validated that VN ctest-vn4-52524043 is not in any agent 2026-01-29 22:28:58,744 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52524043 info 2026-01-29 22:28:58,765 - INFO - Deleted policy ctest-policy1-07055071 2026-01-29 22:28:58,927 - DEBUG - policy ctest-policy1-07055071 is not found in API Server 2026-01-29 22:28:59,180 - DEBUG - No XMPP flaps were noticed during the test