2026-04-18 05:18:40,574 - INFO - Domain Default found not creating 2026-04-18 05:18:40,769 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-00325956 not found, creating it 2026-04-18 05:18:41,223 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-00325956, ID : 6ea34e5e-c26a-44fe-a705-a22293315e69 2026-04-18 05:18:42,862 - INFO - ================================================================================ 2026-04-18 05:18:42,862 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-18 05:18:43,120 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-18 05:18:43,120 - INFO - Initial checks done. Running the testcase now 2026-04-18 05:18:43,120 - INFO - 2026-04-18 05:18:43,120 - INFO - ================================================================================ 2026-04-18 05:18:43,120 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-18 05:18:43,120 - 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-04-18 05:18:43,409 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-18 05:18:43,409 - INFO - Initial checks done. Running the testcase now 2026-04-18 05:18:43,409 - INFO - 2026-04-18 05:18:43,787 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00325956:ctest-vn4-24492166, 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-00325956:ctest-vn4-24492166, 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-00325956:ctest-vn4-24492166, 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-00325956:ctest-vn4-24492166, 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-04-18 05:18:44,328 - DEBUG - Response for create_network : {'network': {'id': 'c61781f4-721c-4bc6-820e-0cee903140ef', 'name': 'ctest-vn4-24492166', 'tenant_id': '6ea34e5ec26a44fea705a22293315e69', 'project_id': '6ea34e5ec26a44fea705a22293315e69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00325956', 'ctest-vn4-24492166'], 'port_security_enabled': True, 'description': ''}} 2026-04-18 05:18:44,552 - DEBUG - Response for create_subnet : {'subnet': {'id': '9873bbcc-0bc9-4382-965d-75677982cdaa', 'name': '', 'tenant_id': '6ea34e5ec26a44fea705a22293315e69', 'network_id': 'c61781f4-721c-4bc6-820e-0cee903140ef', 'ip_version': 4, 'cidr': '149.9.209.128/26', 'allocation_pools': [{'start': '149.9.209.130', 'end': '149.9.209.190'}], 'gateway_ip': '149.9.209.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.9.209.130', 'tags': [], 'project_id': '6ea34e5ec26a44fea705a22293315e69'}} 2026-04-18 05:18:44,728 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f8bd87d-daf8-491a-a524-be67cb46845b', 'name': '', 'tenant_id': '6ea34e5ec26a44fea705a22293315e69', 'network_id': 'c61781f4-721c-4bc6-820e-0cee903140ef', 'ip_version': 6, 'cidr': '3274:6c44:c1d6:e66b:b70b:1380::/96', 'allocation_pools': [{'start': '3274:6c44:c1d6:e66b:b70b:1380:0:2', 'end': '3274:6c44:c1d6:e66b:b70b:1380:ffff:fffe'}], 'gateway_ip': '3274:6c44:c1d6:e66b:b70b:1380:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3274:6c44:c1d6:e66b:b70b:1380:0:2', 'tags': [], 'project_id': '6ea34e5ec26a44fea705a22293315e69'}} 2026-04-18 05:18:44,751 - INFO - Created VN ctest-vn4-24492166 2026-04-18 05:18:44,806 - DEBUG - VN ctest-vn4-24492166 UUID is c61781f4-721c-4bc6-820e-0cee903140ef 2026-04-18 05:18:45,041 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c61781f4-721c-4bc6-820e-0cee903140ef', 'name': 'ctest-vn4-24492166', 'tenant_id': '6ea34e5ec26a44fea705a22293315e69', 'project_id': '6ea34e5ec26a44fea705a22293315e69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9873bbcc-0bc9-4382-965d-75677982cdaa', '0f8bd87d-daf8-491a-a524-be67cb46845b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00325956', 'ctest-vn4-24492166'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00325956', 'ctest-policy1-72925804']], 'subnet_ipam': [{'subnet_cidr': '149.9.209.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3274:6c44:c1d6:e66b:b70b:1380::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-18 05:18:45,218 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-18 05:18:45,523 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-18 05:18:45,558 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e2384996-7fce-463e-a572-4cec72ba830b 2026-04-18 05:18:45,571 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ea34e5e-c26a-44fe-a705-a22293315e69 2026-04-18 05:18:45,648 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c61781f4-721c-4bc6-820e-0cee903140ef 2026-04-18 05:18:45,660 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c61781f4-721c-4bc6-820e-0cee903140ef 2026-04-18 05:18:45,670 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b948bbb-89c7-433c-80fe-bbb645840987 2026-04-18 05:18:45,678 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b948bbb-89c7-433c-80fe-bbb645840987 2026-04-18 05:18:45,685 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a2d9cc54-c4e1-49a5-a9e4-5bab56e0e1c6 2026-04-18 05:18:45,693 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-18 05:18:45,693 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c61781f4-721c-4bc6-820e-0cee903140ef 2026-04-18 05:18:45,703 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b948bbb-89c7-433c-80fe-bbb645840987 2026-04-18 05:18:45,719 - INFO - Verified VN network id 11 for VN c61781f4-721c-4bc6-820e-0cee903140ef 2026-04-18 05:18:45,719 - INFO - Verifications in API Server for VN ctest-vn4-24492166 passed 2026-04-18 05:18:45,719 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c61781f4-721c-4bc6-820e-0cee903140ef 2026-04-18 05:18:45,731 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b948bbb-89c7-433c-80fe-bbb645840987 2026-04-18 05:18:45,738 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b948bbb-89c7-433c-80fe-bbb645840987 2026-04-18 05:18:45,747 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a2d9cc54-c4e1-49a5-a9e4-5bab56e0e1c6 2026-04-18 05:18:45,760 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00325956:ctest-vn4-24492166', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-00325956', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14274020430860536774', 'uuid-lslong': '9371442093365477615'}, 'enable': 'true', 'created': '2026-04-18T05:18:44', 'last-modified': '2026-04-18T05:18:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.740743'} 2026-04-18 05:18:45,768 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-18 05:18:45,768 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24492166 passed 2026-04-18 05:18:45,768 - DEBUG - ====Verifying policy data for ctest-vn4-24492166 in API_Server ====== 2026-04-18 05:18:45,768 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-18 05:18:45,775 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e2384996-7fce-463e-a572-4cec72ba830b 2026-04-18 05:18:45,786 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ea34e5e-c26a-44fe-a705-a22293315e69 2026-04-18 05:18:45,856 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c61781f4-721c-4bc6-820e-0cee903140ef 2026-04-18 05:18:45,866 - DEBUG - ==>Verifying data for policy with id: 33c90341-bee1-4904-9c7e-345daeb956fb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00325956', 'ctest-policy1-72925804'] 2026-04-18 05:18:45,866 - INFO - VN ctest-vn4-24492166 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-18 05:18:45,866 - DEBUG - Verifying the vn in opserver 2026-04-18 05:18:45,866 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00325956:ctest-vn4-24492166 virtual network link through opserver 10.0.0.50 2026-04-18 05:18:45,866 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-18 05:18:46,163 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-18 05:18:46,233 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00325956:ctest-vn4-24492166', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00325956:ctest-vn4-24492166?flat'} 2026-04-18 05:18:46,233 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00325956:ctest-vn4-24492166 is found in opserver 2026-04-18 05:18:46,245 - DEBUG - Do not have enough data to verify VN in agent 2026-04-18 05:18:46,252 - DEBUG - VRF ids for VN ctest-vn4-24492166: {} 2026-04-18 05:18:46,252 - DEBUG - ====Verifying data for ctest-policy1-72925804 in API_Server ====== 2026-04-18 05:18:46,252 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-18 05:18:46,259 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e2384996-7fce-463e-a572-4cec72ba830b 2026-04-18 05:18:46,271 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ea34e5e-c26a-44fe-a705-a22293315e69 2026-04-18 05:18:46,347 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/33c90341-bee1-4904-9c7e-345daeb956fb 2026-04-18 05:18:46,360 - INFO - Verified policy ctest-policy1-72925804 in API Server, Result: True 2026-04-18 05:18:46,361 - INFO - Done with setup and verification, moving onto test .. 2026-04-18 05:18:46,372 - INFO - Deleting VN ctest-vn4-24492166 2026-04-18 05:18:46,534 - DEBUG - Response for deleting network () 2026-04-18 05:18:46,534 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b948bbb-89c7-433c-80fe-bbb645840987 2026-04-18 05:18:46,541 - DEBUG - Response Code: 404 2026-04-18 05:18:46,541 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-18 05:18:46,548 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e2384996-7fce-463e-a572-4cec72ba830b 2026-04-18 05:18:46,604 - DEBUG - Requesting: http://10.0.0.50:8082/project/6ea34e5e-c26a-44fe-a705-a22293315e69 2026-04-18 05:18:46,688 - INFO - Validated that VN ctest-vn4-24492166 is not found in API Server 2026-04-18 05:18:46,703 - DEBUG - VN ctest-vn4-24492166 is not present in Agent 10.0.0.50 2026-04-18 05:18:46,703 - INFO - Validated that VN ctest-vn4-24492166 is not in any agent 2026-04-18 05:18:46,725 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24492166 info 2026-04-18 05:18:46,761 - INFO - Deleted policy ctest-policy1-72925804 2026-04-18 05:18:46,934 - DEBUG - policy ctest-policy1-72925804 is not found in API Server 2026-04-18 05:18:47,187 - DEBUG - No XMPP flaps were noticed during the test