2026-02-16 02:04:48,159 - INFO - Domain Default found not creating 2026-02-16 02:04:48,299 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-57358523 not found, creating it 2026-02-16 02:04:48,730 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-57358523, ID : 36ef8c45-be98-4eb8-bb77-9f20037edbaf 2026-02-16 02:04:50,148 - INFO - ================================================================================ 2026-02-16 02:04:50,148 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 02:04:50,405 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.252': '0'}} with 2026-02-16 02:04:50,406 - INFO - Initial checks done. Running the testcase now 2026-02-16 02:04:50,406 - INFO - 2026-02-16 02:04:50,406 - INFO - ================================================================================ 2026-02-16 02:04:50,406 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 02:04:50,406 - 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-16 02:04:50,694 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.252': '0'}} with 2026-02-16 02:04:50,694 - INFO - Initial checks done. Running the testcase now 2026-02-16 02:04:50,694 - INFO - 2026-02-16 02:04:51,035 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57358523:ctest-vn4-31064678, 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-57358523:ctest-vn4-31064678, 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-57358523:ctest-vn4-31064678, 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-57358523:ctest-vn4-31064678, 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-16 02:04:51,535 - DEBUG - Response for create_network : {'network': {'id': '66dcb919-eb71-4a59-9175-b638fd0dec6a', 'name': 'ctest-vn4-31064678', 'tenant_id': '36ef8c45be984eb8bb779f20037edbaf', 'project_id': '36ef8c45be984eb8bb779f20037edbaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57358523', 'ctest-vn4-31064678'], 'port_security_enabled': True, 'description': ''}} 2026-02-16 02:04:51,701 - DEBUG - Response for create_subnet : {'subnet': {'id': '19728138-0f82-4950-8b7c-cff272b621d2', 'name': '', 'tenant_id': '36ef8c45be984eb8bb779f20037edbaf', 'network_id': '66dcb919-eb71-4a59-9175-b638fd0dec6a', 'ip_version': 4, 'cidr': '123.26.240.128/26', 'allocation_pools': [{'start': '123.26.240.130', 'end': '123.26.240.190'}], 'gateway_ip': '123.26.240.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.26.240.130', 'tags': [], 'project_id': '36ef8c45be984eb8bb779f20037edbaf'}} 2026-02-16 02:04:51,833 - DEBUG - Response for create_subnet : {'subnet': {'id': '04368811-3043-4929-b3b1-ca1c0c9dc035', 'name': '', 'tenant_id': '36ef8c45be984eb8bb779f20037edbaf', 'network_id': '66dcb919-eb71-4a59-9175-b638fd0dec6a', 'ip_version': 6, 'cidr': '3809:3801:d53d:8087:825a:ced4::/96', 'allocation_pools': [{'start': '3809:3801:d53d:8087:825a:ced4:0:2', 'end': '3809:3801:d53d:8087:825a:ced4:ffff:fffe'}], 'gateway_ip': '3809:3801:d53d:8087:825a:ced4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3809:3801:d53d:8087:825a:ced4:0:2', 'tags': [], 'project_id': '36ef8c45be984eb8bb779f20037edbaf'}} 2026-02-16 02:04:51,850 - INFO - Created VN ctest-vn4-31064678 2026-02-16 02:04:51,900 - DEBUG - VN ctest-vn4-31064678 UUID is 66dcb919-eb71-4a59-9175-b638fd0dec6a 2026-02-16 02:04:52,082 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66dcb919-eb71-4a59-9175-b638fd0dec6a', 'name': 'ctest-vn4-31064678', 'tenant_id': '36ef8c45be984eb8bb779f20037edbaf', 'project_id': '36ef8c45be984eb8bb779f20037edbaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19728138-0f82-4950-8b7c-cff272b621d2', '04368811-3043-4929-b3b1-ca1c0c9dc035'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57358523', 'ctest-vn4-31064678'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57358523', 'ctest-policy1-03387413']], 'subnet_ipam': [{'subnet_cidr': '123.26.240.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3809:3801:d53d:8087:825a:ced4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-16 02:04:52,244 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-16 02:04:52,550 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-16 02:04:52,624 - DEBUG - Requesting: http://10.0.0.240:8082/domain/8aafcd2b-0b65-4a08-9d21-acfcbece5df8 2026-02-16 02:04:52,636 - DEBUG - Requesting: http://10.0.0.240:8082/project/36ef8c45-be98-4eb8-bb77-9f20037edbaf 2026-02-16 02:04:52,707 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/66dcb919-eb71-4a59-9175-b638fd0dec6a 2026-02-16 02:04:52,717 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/66dcb919-eb71-4a59-9175-b638fd0dec6a 2026-02-16 02:04:52,726 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/0413fec4-c840-4c81-b6a8-ccdcb48d81af 2026-02-16 02:04:52,731 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/0413fec4-c840-4c81-b6a8-ccdcb48d81af 2026-02-16 02:04:52,736 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/447fdef1-27b7-4f1b-b569-c8951f55b56b 2026-02-16 02:04:52,741 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 02:04:52,741 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/66dcb919-eb71-4a59-9175-b638fd0dec6a 2026-02-16 02:04:52,748 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/0413fec4-c840-4c81-b6a8-ccdcb48d81af 2026-02-16 02:04:52,759 - INFO - Verified VN network id 11 for VN 66dcb919-eb71-4a59-9175-b638fd0dec6a 2026-02-16 02:04:52,760 - INFO - Verifications in API Server for VN ctest-vn4-31064678 passed 2026-02-16 02:04:52,760 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/66dcb919-eb71-4a59-9175-b638fd0dec6a 2026-02-16 02:04:52,769 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/0413fec4-c840-4c81-b6a8-ccdcb48d81af 2026-02-16 02:04:52,775 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/0413fec4-c840-4c81-b6a8-ccdcb48d81af 2026-02-16 02:04:52,781 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/447fdef1-27b7-4f1b-b569-c8951f55b56b 2026-02-16 02:04:52,790 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57358523:ctest-vn4-31064678', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57358523', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7412002607720385113', 'uuid-lslong': '10481484063654669418'}, 'enable': 'true', 'created': '2026-02-16T02:04:51', 'last-modified': '2026-02-16T02:04:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.729383'} 2026-02-16 02:04:52,796 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 02:04:52,796 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31064678 passed 2026-02-16 02:04:52,796 - DEBUG - ====Verifying policy data for ctest-vn4-31064678 in API_Server ====== 2026-02-16 02:04:52,796 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-16 02:04:52,800 - DEBUG - Requesting: http://10.0.0.240:8082/domain/8aafcd2b-0b65-4a08-9d21-acfcbece5df8 2026-02-16 02:04:52,809 - DEBUG - Requesting: http://10.0.0.240:8082/project/36ef8c45-be98-4eb8-bb77-9f20037edbaf 2026-02-16 02:04:52,887 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/66dcb919-eb71-4a59-9175-b638fd0dec6a 2026-02-16 02:04:52,895 - DEBUG - ==>Verifying data for policy with id: 70c3a8e1-a9d9-4e0e-9498-0095aae75c4b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57358523', 'ctest-policy1-03387413'] 2026-02-16 02:04:52,895 - INFO - VN ctest-vn4-31064678 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-16 02:04:52,896 - DEBUG - Verifying the vn in opserver 2026-02-16 02:04:52,896 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57358523:ctest-vn4-31064678 virtual network link through opserver 10.0.0.240 2026-02-16 02:04:52,896 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-02-16 02:04:53,205 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-02-16 02:04:53,263 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57358523:ctest-vn4-31064678', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57358523:ctest-vn4-31064678?flat'} 2026-02-16 02:04:53,263 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57358523:ctest-vn4-31064678 is found in opserver 2026-02-16 02:04:53,273 - DEBUG - Do not have enough data to verify VN in agent 2026-02-16 02:04:53,277 - DEBUG - VRF ids for VN ctest-vn4-31064678: {} 2026-02-16 02:04:53,277 - DEBUG - ====Verifying data for ctest-policy1-03387413 in API_Server ====== 2026-02-16 02:04:53,278 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-16 02:04:53,283 - DEBUG - Requesting: http://10.0.0.240:8082/domain/8aafcd2b-0b65-4a08-9d21-acfcbece5df8 2026-02-16 02:04:53,293 - DEBUG - Requesting: http://10.0.0.240:8082/project/36ef8c45-be98-4eb8-bb77-9f20037edbaf 2026-02-16 02:04:53,357 - DEBUG - Requesting: http://10.0.0.240:8082/network-policy/70c3a8e1-a9d9-4e0e-9498-0095aae75c4b 2026-02-16 02:04:53,365 - INFO - Verified policy ctest-policy1-03387413 in API Server, Result: True 2026-02-16 02:04:53,365 - INFO - Done with setup and verification, moving onto test .. 2026-02-16 02:04:53,371 - INFO - Deleting VN ctest-vn4-31064678 2026-02-16 02:04:53,475 - DEBUG - Response for deleting network () 2026-02-16 02:04:53,475 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/0413fec4-c840-4c81-b6a8-ccdcb48d81af 2026-02-16 02:04:53,479 - DEBUG - Response Code: 404 2026-02-16 02:04:53,479 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-16 02:04:53,484 - DEBUG - Requesting: http://10.0.0.240:8082/domain/8aafcd2b-0b65-4a08-9d21-acfcbece5df8 2026-02-16 02:04:53,536 - DEBUG - Requesting: http://10.0.0.240:8082/project/36ef8c45-be98-4eb8-bb77-9f20037edbaf 2026-02-16 02:04:53,608 - INFO - Validated that VN ctest-vn4-31064678 is not found in API Server 2026-02-16 02:04:53,616 - DEBUG - VN ctest-vn4-31064678 is not present in Agent 10.0.0.240 2026-02-16 02:04:53,616 - INFO - Validated that VN ctest-vn4-31064678 is not in any agent 2026-02-16 02:04:53,629 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31064678 info 2026-02-16 02:04:53,649 - INFO - Deleted policy ctest-policy1-03387413 2026-02-16 02:04:53,808 - DEBUG - policy ctest-policy1-03387413 is not found in API Server 2026-02-16 02:04:54,060 - DEBUG - No XMPP flaps were noticed during the test 2026-02-16 02:04:54,060 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-16 02:04:54,060 - INFO - -------------------------------------------------------------------------------- 2026-02-16 02:04:54,356 - DEBUG - No XMPP flaps were noticed during the test 2026-02-16 02:04:54,356 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-16 02:04:54,356 - INFO - -------------------------------------------------------------------------------- 2026-02-16 02:04:55,014 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-57358523, ID : 36ef8c45-be98-4eb8-bb77-9f20037edbaf