2026-02-10 14:53:08,345 - INFO - Domain Default found not creating 2026-02-10 14:53:08,512 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-09058502 not found, creating it 2026-02-10 14:53:08,967 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-09058502, ID : d184affc-1323-4999-a944-20681aa0160f 2026-02-10 14:53:10,422 - INFO - ================================================================================ 2026-02-10 14:53:10,422 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 14:53:10,685 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2026-02-10 14:53:10,685 - INFO - Initial checks done. Running the testcase now 2026-02-10 14:53:10,685 - INFO - 2026-02-10 14:53:10,685 - INFO - ================================================================================ 2026-02-10 14:53:10,685 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 14:53:10,685 - 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-10 14:53:10,976 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2026-02-10 14:53:10,976 - INFO - Initial checks done. Running the testcase now 2026-02-10 14:53:10,976 - INFO - 2026-02-10 14:53:11,324 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09058502:ctest-vn4-87510669, 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-09058502:ctest-vn4-87510669, 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-09058502:ctest-vn4-87510669, 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-09058502:ctest-vn4-87510669, 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-10 14:53:11,824 - DEBUG - Response for create_network : {'network': {'id': 'd8651a30-66ea-43d0-8da8-1044fdcf2d97', 'name': 'ctest-vn4-87510669', 'tenant_id': 'd184affc13234999a94420681aa0160f', 'project_id': 'd184affc13234999a94420681aa0160f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09058502', 'ctest-vn4-87510669'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 14:53:12,011 - DEBUG - Response for create_subnet : {'subnet': {'id': '3cdf3c38-0e2c-40a3-b271-7be884b17501', 'name': '', 'tenant_id': 'd184affc13234999a94420681aa0160f', 'network_id': 'd8651a30-66ea-43d0-8da8-1044fdcf2d97', 'ip_version': 4, 'cidr': '67.137.29.128/26', 'allocation_pools': [{'start': '67.137.29.130', 'end': '67.137.29.190'}], 'gateway_ip': '67.137.29.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.137.29.130', 'tags': [], 'project_id': 'd184affc13234999a94420681aa0160f'}} 2026-02-10 14:53:12,147 - DEBUG - Response for create_subnet : {'subnet': {'id': '22e06984-b080-4661-8ebb-3f629c174d0e', 'name': '', 'tenant_id': 'd184affc13234999a94420681aa0160f', 'network_id': 'd8651a30-66ea-43d0-8da8-1044fdcf2d97', 'ip_version': 6, 'cidr': '297f:6b64:8394:a04c:f792:d8c6::/96', 'allocation_pools': [{'start': '297f:6b64:8394:a04c:f792:d8c6:0:2', 'end': '297f:6b64:8394:a04c:f792:d8c6:ffff:fffe'}], 'gateway_ip': '297f:6b64:8394:a04c:f792:d8c6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '297f:6b64:8394:a04c:f792:d8c6:0:2', 'tags': [], 'project_id': 'd184affc13234999a94420681aa0160f'}} 2026-02-10 14:53:12,166 - INFO - Created VN ctest-vn4-87510669 2026-02-10 14:53:12,218 - DEBUG - VN ctest-vn4-87510669 UUID is d8651a30-66ea-43d0-8da8-1044fdcf2d97 2026-02-10 14:53:12,410 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8651a30-66ea-43d0-8da8-1044fdcf2d97', 'name': 'ctest-vn4-87510669', 'tenant_id': 'd184affc13234999a94420681aa0160f', 'project_id': 'd184affc13234999a94420681aa0160f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3cdf3c38-0e2c-40a3-b271-7be884b17501', '22e06984-b080-4661-8ebb-3f629c174d0e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09058502', 'ctest-vn4-87510669'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09058502', 'ctest-policy1-43572533']], 'subnet_ipam': [{'subnet_cidr': '67.137.29.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '297f:6b64:8394:a04c:f792:d8c6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 14:53:12,570 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 14:53:12,862 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 14:53:12,890 - DEBUG - Requesting: http://10.0.0.50:8082/domain/720e9c69-1aee-4a07-a532-e782b9880da3 2026-02-10 14:53:12,901 - DEBUG - Requesting: http://10.0.0.50:8082/project/d184affc-1323-4999-a944-20681aa0160f 2026-02-10 14:53:12,973 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8651a30-66ea-43d0-8da8-1044fdcf2d97 2026-02-10 14:53:12,984 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8651a30-66ea-43d0-8da8-1044fdcf2d97 2026-02-10 14:53:12,994 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/20fffe58-a62f-4ba9-8117-fc86f577d5bb 2026-02-10 14:53:13,005 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/20fffe58-a62f-4ba9-8117-fc86f577d5bb 2026-02-10 14:53:13,013 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2569ea9d-42d7-4491-abb1-e3503dac8611 2026-02-10 14:53:13,019 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 14:53:13,020 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8651a30-66ea-43d0-8da8-1044fdcf2d97 2026-02-10 14:53:13,029 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/20fffe58-a62f-4ba9-8117-fc86f577d5bb 2026-02-10 14:53:13,041 - INFO - Verified VN network id 12 for VN d8651a30-66ea-43d0-8da8-1044fdcf2d97 2026-02-10 14:53:13,041 - INFO - Verifications in API Server for VN ctest-vn4-87510669 passed 2026-02-10 14:53:13,041 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8651a30-66ea-43d0-8da8-1044fdcf2d97 2026-02-10 14:53:13,050 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/20fffe58-a62f-4ba9-8117-fc86f577d5bb 2026-02-10 14:53:13,057 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/20fffe58-a62f-4ba9-8117-fc86f577d5bb 2026-02-10 14:53:13,066 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2569ea9d-42d7-4491-abb1-e3503dac8611 2026-02-10 14:53:13,078 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09058502:ctest-vn4-87510669', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09058502', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15592898080027591632', 'uuid-lslong': '10207426443937262999'}, 'enable': 'true', 'created': '2026-02-10T14:53:11', 'last-modified': '2026-02-10T14:53:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688950'} 2026-02-10 14:53:13,083 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 14:53:13,083 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-87510669 passed 2026-02-10 14:53:13,083 - DEBUG - ====Verifying policy data for ctest-vn4-87510669 in API_Server ====== 2026-02-10 14:53:13,083 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 14:53:13,088 - DEBUG - Requesting: http://10.0.0.50:8082/domain/720e9c69-1aee-4a07-a532-e782b9880da3 2026-02-10 14:53:13,098 - DEBUG - Requesting: http://10.0.0.50:8082/project/d184affc-1323-4999-a944-20681aa0160f 2026-02-10 14:53:13,168 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8651a30-66ea-43d0-8da8-1044fdcf2d97 2026-02-10 14:53:13,177 - DEBUG - ==>Verifying data for policy with id: b3b22492-3724-4236-9be0-ab2bd0e16f1b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09058502', 'ctest-policy1-43572533'] 2026-02-10 14:53:13,177 - INFO - VN ctest-vn4-87510669 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 14:53:13,177 - DEBUG - Verifying the vn in opserver 2026-02-10 14:53:13,177 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09058502:ctest-vn4-87510669 virtual network link through opserver 10.0.0.50 2026-02-10 14:53:13,177 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-10 14:53:13,465 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-10 14:53:13,520 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09058502:ctest-vn4-87510669', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09058502:ctest-vn4-87510669?flat'} 2026-02-10 14:53:13,520 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09058502:ctest-vn4-87510669 is found in opserver 2026-02-10 14:53:13,529 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 14:53:13,532 - DEBUG - VRF ids for VN ctest-vn4-87510669: {} 2026-02-10 14:53:13,533 - DEBUG - ====Verifying data for ctest-policy1-43572533 in API_Server ====== 2026-02-10 14:53:13,533 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 14:53:13,537 - DEBUG - Requesting: http://10.0.0.50:8082/domain/720e9c69-1aee-4a07-a532-e782b9880da3 2026-02-10 14:53:13,546 - DEBUG - Requesting: http://10.0.0.50:8082/project/d184affc-1323-4999-a944-20681aa0160f 2026-02-10 14:53:13,614 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/b3b22492-3724-4236-9be0-ab2bd0e16f1b 2026-02-10 14:53:13,623 - INFO - Verified policy ctest-policy1-43572533 in API Server, Result: True 2026-02-10 14:53:13,624 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 14:53:13,630 - INFO - Deleting VN ctest-vn4-87510669 2026-02-10 14:53:13,726 - DEBUG - Response for deleting network () 2026-02-10 14:53:13,726 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/20fffe58-a62f-4ba9-8117-fc86f577d5bb 2026-02-10 14:53:13,731 - DEBUG - Response Code: 404 2026-02-10 14:53:13,731 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-10 14:53:13,736 - DEBUG - Requesting: http://10.0.0.50:8082/domain/720e9c69-1aee-4a07-a532-e782b9880da3 2026-02-10 14:53:13,787 - DEBUG - Requesting: http://10.0.0.50:8082/project/d184affc-1323-4999-a944-20681aa0160f 2026-02-10 14:53:13,856 - INFO - Validated that VN ctest-vn4-87510669 is not found in API Server 2026-02-10 14:53:13,866 - DEBUG - VN ctest-vn4-87510669 is not present in Agent 10.0.0.50 2026-02-10 14:53:13,866 - INFO - Validated that VN ctest-vn4-87510669 is not in any agent 2026-02-10 14:53:13,879 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-87510669 info 2026-02-10 14:53:13,901 - INFO - Deleted policy ctest-policy1-43572533 2026-02-10 14:53:14,058 - DEBUG - policy ctest-policy1-43572533 is not found in API Server 2026-02-10 14:53:14,311 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 14:53:14,311 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-10 14:53:14,311 - INFO - -------------------------------------------------------------------------------- 2026-02-10 14:53:14,600 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 14:53:14,600 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-10 14:53:14,600 - INFO - -------------------------------------------------------------------------------- 2026-02-10 14:53:15,261 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-09058502, ID : d184affc-1323-4999-a944-20681aa0160f