2026-06-19 18:33:03,538 - INFO - Domain Default found not creating 2026-06-19 18:33:03,664 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82158144 not found, creating it 2026-06-19 18:33:04,092 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82158144, ID : 7a440106-005f-419e-9f1a-58553255958e 2026-06-19 18:33:05,491 - INFO - ================================================================================ 2026-06-19 18:33:05,491 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 18:33:05,745 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-06-19 18:33:05,745 - INFO - Initial checks done. Running the testcase now 2026-06-19 18:33:05,745 - INFO - 2026-06-19 18:33:05,745 - INFO - ================================================================================ 2026-06-19 18:33:05,745 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 18:33:05,745 - 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-06-19 18:33:06,035 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2026-06-19 18:33:06,035 - INFO - Initial checks done. Running the testcase now 2026-06-19 18:33:06,035 - INFO - 2026-06-19 18:33:06,393 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82158144:ctest-vn4-61025934, 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-82158144:ctest-vn4-61025934, 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-82158144:ctest-vn4-61025934, 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-82158144:ctest-vn4-61025934, 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-06-19 18:33:06,870 - DEBUG - Response for create_network : {'network': {'id': 'be460887-7179-4981-9044-77e9edbb72d9', 'name': 'ctest-vn4-61025934', 'tenant_id': '7a440106005f419e9f1a58553255958e', 'project_id': '7a440106005f419e9f1a58553255958e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82158144', 'ctest-vn4-61025934'], 'port_security_enabled': True, 'description': ''}} 2026-06-19 18:33:07,075 - DEBUG - Response for create_subnet : {'subnet': {'id': '549344f6-b43c-49ce-aa1f-9b3f882c22cb', 'name': '', 'tenant_id': '7a440106005f419e9f1a58553255958e', 'network_id': 'be460887-7179-4981-9044-77e9edbb72d9', 'ip_version': 4, 'cidr': '31.195.154.0/26', 'allocation_pools': [{'start': '31.195.154.2', 'end': '31.195.154.62'}], 'gateway_ip': '31.195.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.195.154.2', 'tags': [], 'project_id': '7a440106005f419e9f1a58553255958e'}} 2026-06-19 18:33:07,209 - DEBUG - Response for create_subnet : {'subnet': {'id': '26c0c118-601a-4f18-a66f-b629c76d4ef2', 'name': '', 'tenant_id': '7a440106005f419e9f1a58553255958e', 'network_id': 'be460887-7179-4981-9044-77e9edbb72d9', 'ip_version': 6, 'cidr': '3304:128c:833a:e16c:7d96:faa4::/96', 'allocation_pools': [{'start': '3304:128c:833a:e16c:7d96:faa4:0:2', 'end': '3304:128c:833a:e16c:7d96:faa4:ffff:fffe'}], 'gateway_ip': '3304:128c:833a:e16c:7d96:faa4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3304:128c:833a:e16c:7d96:faa4:0:2', 'tags': [], 'project_id': '7a440106005f419e9f1a58553255958e'}} 2026-06-19 18:33:07,223 - INFO - Created VN ctest-vn4-61025934 2026-06-19 18:33:07,275 - DEBUG - VN ctest-vn4-61025934 UUID is be460887-7179-4981-9044-77e9edbb72d9 2026-06-19 18:33:07,438 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be460887-7179-4981-9044-77e9edbb72d9', 'name': 'ctest-vn4-61025934', 'tenant_id': '7a440106005f419e9f1a58553255958e', 'project_id': '7a440106005f419e9f1a58553255958e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['549344f6-b43c-49ce-aa1f-9b3f882c22cb', '26c0c118-601a-4f18-a66f-b629c76d4ef2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82158144', 'ctest-vn4-61025934'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82158144', 'ctest-policy1-88224362']], 'subnet_ipam': [{'subnet_cidr': '31.195.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3304:128c:833a:e16c:7d96:faa4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-19 18:33:07,607 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-19 18:33:07,919 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-19 18:33:07,941 - DEBUG - Requesting: http://10.0.0.33:8082/domain/557505ac-6a99-45d5-8320-cac4d8aae725 2026-06-19 18:33:07,951 - DEBUG - Requesting: http://10.0.0.33:8082/project/7a440106-005f-419e-9f1a-58553255958e 2026-06-19 18:33:08,018 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be460887-7179-4981-9044-77e9edbb72d9 2026-06-19 18:33:08,028 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be460887-7179-4981-9044-77e9edbb72d9 2026-06-19 18:33:08,036 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6a82e4db-41ac-4791-ac15-880d91e8e927 2026-06-19 18:33:08,041 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6a82e4db-41ac-4791-ac15-880d91e8e927 2026-06-19 18:33:08,046 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/13596399-7996-4699-90e1-96c143a530eb 2026-06-19 18:33:08,051 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 18:33:08,051 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be460887-7179-4981-9044-77e9edbb72d9 2026-06-19 18:33:08,058 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6a82e4db-41ac-4791-ac15-880d91e8e927 2026-06-19 18:33:08,069 - INFO - Verified VN network id 11 for VN be460887-7179-4981-9044-77e9edbb72d9 2026-06-19 18:33:08,069 - INFO - Verifications in API Server for VN ctest-vn4-61025934 passed 2026-06-19 18:33:08,069 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be460887-7179-4981-9044-77e9edbb72d9 2026-06-19 18:33:08,076 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6a82e4db-41ac-4791-ac15-880d91e8e927 2026-06-19 18:33:08,081 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6a82e4db-41ac-4791-ac15-880d91e8e927 2026-06-19 18:33:08,086 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/13596399-7996-4699-90e1-96c143a530eb 2026-06-19 18:33:08,095 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82158144:ctest-vn4-61025934', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82158144', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13710655493393435009', 'uuid-lslong': '10395565686477517529'}, 'enable': 'true', 'created': '2026-06-19T18:33:06', 'last-modified': '2026-06-19T18:33:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.675703'} 2026-06-19 18:33:08,100 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 18:33:08,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-61025934 passed 2026-06-19 18:33:08,100 - DEBUG - ====Verifying policy data for ctest-vn4-61025934 in API_Server ====== 2026-06-19 18:33:08,100 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-19 18:33:08,104 - DEBUG - Requesting: http://10.0.0.33:8082/domain/557505ac-6a99-45d5-8320-cac4d8aae725 2026-06-19 18:33:08,113 - DEBUG - Requesting: http://10.0.0.33:8082/project/7a440106-005f-419e-9f1a-58553255958e 2026-06-19 18:33:08,176 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/be460887-7179-4981-9044-77e9edbb72d9 2026-06-19 18:33:08,183 - DEBUG - ==>Verifying data for policy with id: d0cf187a-c65a-466b-b9de-6a71a96e9961, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82158144', 'ctest-policy1-88224362'] 2026-06-19 18:33:08,184 - INFO - VN ctest-vn4-61025934 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-19 18:33:08,184 - DEBUG - Verifying the vn in opserver 2026-06-19 18:33:08,184 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82158144:ctest-vn4-61025934 virtual network link through opserver 10.0.0.33 2026-06-19 18:33:08,184 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-19 18:33:08,498 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-19 18:33:08,540 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82158144:ctest-vn4-61025934', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82158144:ctest-vn4-61025934?flat'} 2026-06-19 18:33:08,540 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82158144:ctest-vn4-61025934 is found in opserver 2026-06-19 18:33:08,548 - DEBUG - Do not have enough data to verify VN in agent 2026-06-19 18:33:08,551 - DEBUG - VRF ids for VN ctest-vn4-61025934: {} 2026-06-19 18:33:08,551 - DEBUG - ====Verifying data for ctest-policy1-88224362 in API_Server ====== 2026-06-19 18:33:08,551 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-19 18:33:08,556 - DEBUG - Requesting: http://10.0.0.33:8082/domain/557505ac-6a99-45d5-8320-cac4d8aae725 2026-06-19 18:33:08,564 - DEBUG - Requesting: http://10.0.0.33:8082/project/7a440106-005f-419e-9f1a-58553255958e 2026-06-19 18:33:08,633 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/d0cf187a-c65a-466b-b9de-6a71a96e9961 2026-06-19 18:33:08,641 - INFO - Verified policy ctest-policy1-88224362 in API Server, Result: True 2026-06-19 18:33:08,642 - INFO - Done with setup and verification, moving onto test .. 2026-06-19 18:33:08,648 - INFO - Deleting VN ctest-vn4-61025934 2026-06-19 18:33:08,743 - DEBUG - Response for deleting network () 2026-06-19 18:33:08,743 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6a82e4db-41ac-4791-ac15-880d91e8e927 2026-06-19 18:33:08,748 - DEBUG - Response Code: 404 2026-06-19 18:33:08,748 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-19 18:33:08,752 - DEBUG - Requesting: http://10.0.0.33:8082/domain/557505ac-6a99-45d5-8320-cac4d8aae725 2026-06-19 18:33:08,807 - DEBUG - Requesting: http://10.0.0.33:8082/project/7a440106-005f-419e-9f1a-58553255958e 2026-06-19 18:33:08,873 - INFO - Validated that VN ctest-vn4-61025934 is not found in API Server 2026-06-19 18:33:08,881 - DEBUG - VN ctest-vn4-61025934 is not present in Agent 10.0.0.33 2026-06-19 18:33:08,881 - INFO - Validated that VN ctest-vn4-61025934 is not in any agent 2026-06-19 18:33:08,894 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-61025934 info 2026-06-19 18:33:08,914 - INFO - Deleted policy ctest-policy1-88224362 2026-06-19 18:33:09,070 - DEBUG - policy ctest-policy1-88224362 is not found in API Server 2026-06-19 18:33:09,324 - DEBUG - No XMPP flaps were noticed during the test