2026-07-31 06:42:32,691 - INFO - Domain Default found not creating 2026-07-31 06:42:32,890 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80138278 not found, creating it 2026-07-31 06:42:33,427 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80138278, ID : d4e6c14b-9b48-4ed1-a213-1bd3a310df44 2026-07-31 06:42:36,072 - INFO - ================================================================================ 2026-07-31 06:42:36,073 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-31 06:42:36,356 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-07-31 06:42:36,356 - INFO - Initial checks done. Running the testcase now 2026-07-31 06:42:36,356 - INFO - 2026-07-31 06:42:36,356 - INFO - ================================================================================ 2026-07-31 06:42:36,357 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-31 06:42:36,357 - 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-07-31 06:42:36,661 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-07-31 06:42:36,662 - INFO - Initial checks done. Running the testcase now 2026-07-31 06:42:36,662 - INFO - 2026-07-31 06:42:37,080 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80138278:ctest-vn4-60142157, 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-80138278:ctest-vn4-60142157, 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-80138278:ctest-vn4-60142157, 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-80138278:ctest-vn4-60142157, 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-07-31 06:42:37,672 - DEBUG - Response for create_network : {'network': {'id': 'c8b9b2a2-995e-4a10-a172-392bdc82fe1f', 'name': 'ctest-vn4-60142157', 'tenant_id': 'd4e6c14b9b484ed1a2131bd3a310df44', 'project_id': 'd4e6c14b9b484ed1a2131bd3a310df44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80138278', 'ctest-vn4-60142157'], 'port_security_enabled': True, 'description': ''}} 2026-07-31 06:42:37,902 - DEBUG - Response for create_subnet : {'subnet': {'id': '5cbea13c-739b-490a-b466-4e114ef11373', 'name': '', 'tenant_id': 'd4e6c14b9b484ed1a2131bd3a310df44', 'network_id': 'c8b9b2a2-995e-4a10-a172-392bdc82fe1f', 'ip_version': 4, 'cidr': '125.173.215.0/26', 'allocation_pools': [{'start': '125.173.215.2', 'end': '125.173.215.62'}], 'gateway_ip': '125.173.215.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.173.215.2', 'tags': [], 'project_id': 'd4e6c14b9b484ed1a2131bd3a310df44'}} 2026-07-31 06:42:38,132 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca567ead-632b-4771-a4e5-c309bd3cf45b', 'name': '', 'tenant_id': 'd4e6c14b9b484ed1a2131bd3a310df44', 'network_id': 'c8b9b2a2-995e-4a10-a172-392bdc82fe1f', 'ip_version': 6, 'cidr': '2aa3:3e95:21ca:bc4b:724b:7949::/96', 'allocation_pools': [{'start': '2aa3:3e95:21ca:bc4b:724b:7949:0:2', 'end': '2aa3:3e95:21ca:bc4b:724b:7949:ffff:fffe'}], 'gateway_ip': '2aa3:3e95:21ca:bc4b:724b:7949:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2aa3:3e95:21ca:bc4b:724b:7949:0:2', 'tags': [], 'project_id': 'd4e6c14b9b484ed1a2131bd3a310df44'}} 2026-07-31 06:42:38,154 - INFO - Created VN ctest-vn4-60142157 2026-07-31 06:42:38,208 - DEBUG - VN ctest-vn4-60142157 UUID is c8b9b2a2-995e-4a10-a172-392bdc82fe1f 2026-07-31 06:42:38,446 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c8b9b2a2-995e-4a10-a172-392bdc82fe1f', 'name': 'ctest-vn4-60142157', 'tenant_id': 'd4e6c14b9b484ed1a2131bd3a310df44', 'project_id': 'd4e6c14b9b484ed1a2131bd3a310df44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5cbea13c-739b-490a-b466-4e114ef11373', 'ca567ead-632b-4771-a4e5-c309bd3cf45b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80138278', 'ctest-vn4-60142157'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80138278', 'ctest-policy1-34714116']], 'subnet_ipam': [{'subnet_cidr': '125.173.215.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2aa3:3e95:21ca:bc4b:724b:7949::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-31 06:42:38,628 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-31 06:42:39,016 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-31 06:42:39,049 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d6f12d36-309c-4360-bc26-971b626d83f1 2026-07-31 06:42:39,065 - DEBUG - Requesting: http://10.0.0.50:8082/project/d4e6c14b-9b48-4ed1-a213-1bd3a310df44 2026-07-31 06:42:39,164 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8b9b2a2-995e-4a10-a172-392bdc82fe1f 2026-07-31 06:42:39,179 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8b9b2a2-995e-4a10-a172-392bdc82fe1f 2026-07-31 06:42:39,196 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f8bb809-e589-412e-b299-cb5ec6f133f7 2026-07-31 06:42:39,206 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f8bb809-e589-412e-b299-cb5ec6f133f7 2026-07-31 06:42:39,214 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/31dd75f2-f269-4b18-b175-47edbcd8248d 2026-07-31 06:42:39,222 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-31 06:42:39,222 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8b9b2a2-995e-4a10-a172-392bdc82fe1f 2026-07-31 06:42:39,235 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f8bb809-e589-412e-b299-cb5ec6f133f7 2026-07-31 06:42:39,256 - INFO - Verified VN network id 11 for VN c8b9b2a2-995e-4a10-a172-392bdc82fe1f 2026-07-31 06:42:39,256 - INFO - Verifications in API Server for VN ctest-vn4-60142157 passed 2026-07-31 06:42:39,256 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8b9b2a2-995e-4a10-a172-392bdc82fe1f 2026-07-31 06:42:39,270 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f8bb809-e589-412e-b299-cb5ec6f133f7 2026-07-31 06:42:39,279 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f8bb809-e589-412e-b299-cb5ec6f133f7 2026-07-31 06:42:39,287 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/31dd75f2-f269-4b18-b175-47edbcd8248d 2026-07-31 06:42:39,304 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80138278:ctest-vn4-60142157', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80138278', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14463788089704598032', 'uuid-lslong': '11633423647997361695'}, 'enable': 'true', 'created': '2026-07-31T06:42:37', 'last-modified': '2026-07-31T06:42:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.903100'} 2026-07-31 06:42:39,312 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-31 06:42:39,313 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-60142157 passed 2026-07-31 06:42:39,313 - DEBUG - ====Verifying policy data for ctest-vn4-60142157 in API_Server ====== 2026-07-31 06:42:39,313 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-31 06:42:39,320 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d6f12d36-309c-4360-bc26-971b626d83f1 2026-07-31 06:42:39,334 - DEBUG - Requesting: http://10.0.0.50:8082/project/d4e6c14b-9b48-4ed1-a213-1bd3a310df44 2026-07-31 06:42:39,417 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c8b9b2a2-995e-4a10-a172-392bdc82fe1f 2026-07-31 06:42:39,430 - DEBUG - ==>Verifying data for policy with id: 295e7ef8-dea7-4b84-8e0d-5cfdb6af54aa, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80138278', 'ctest-policy1-34714116'] 2026-07-31 06:42:39,430 - INFO - VN ctest-vn4-60142157 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-31 06:42:39,430 - DEBUG - Verifying the vn in opserver 2026-07-31 06:42:39,430 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80138278:ctest-vn4-60142157 virtual network link through opserver 10.0.0.50 2026-07-31 06:42:39,431 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-31 06:42:39,802 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-31 06:42:39,856 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80138278:ctest-vn4-60142157', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80138278:ctest-vn4-60142157?flat'} 2026-07-31 06:42:39,856 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80138278:ctest-vn4-60142157 is found in opserver 2026-07-31 06:42:39,867 - DEBUG - Do not have enough data to verify VN in agent 2026-07-31 06:42:39,873 - DEBUG - VRF ids for VN ctest-vn4-60142157: {} 2026-07-31 06:42:39,873 - DEBUG - ====Verifying data for ctest-policy1-34714116 in API_Server ====== 2026-07-31 06:42:39,873 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-31 06:42:39,880 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d6f12d36-309c-4360-bc26-971b626d83f1 2026-07-31 06:42:39,893 - DEBUG - Requesting: http://10.0.0.50:8082/project/d4e6c14b-9b48-4ed1-a213-1bd3a310df44 2026-07-31 06:42:39,975 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/295e7ef8-dea7-4b84-8e0d-5cfdb6af54aa 2026-07-31 06:42:39,988 - INFO - Verified policy ctest-policy1-34714116 in API Server, Result: True 2026-07-31 06:42:39,988 - INFO - Done with setup and verification, moving onto test .. 2026-07-31 06:42:40,002 - INFO - Deleting VN ctest-vn4-60142157 2026-07-31 06:42:40,177 - DEBUG - Response for deleting network () 2026-07-31 06:42:40,177 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f8bb809-e589-412e-b299-cb5ec6f133f7 2026-07-31 06:42:40,183 - DEBUG - Response Code: 404 2026-07-31 06:42:40,184 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-31 06:42:40,191 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d6f12d36-309c-4360-bc26-971b626d83f1 2026-07-31 06:42:40,250 - DEBUG - Requesting: http://10.0.0.50:8082/project/d4e6c14b-9b48-4ed1-a213-1bd3a310df44 2026-07-31 06:42:40,336 - INFO - Validated that VN ctest-vn4-60142157 is not found in API Server 2026-07-31 06:42:40,348 - DEBUG - VN ctest-vn4-60142157 is not present in Agent 10.0.0.50 2026-07-31 06:42:40,348 - INFO - Validated that VN ctest-vn4-60142157 is not in any agent 2026-07-31 06:42:40,368 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-60142157 info 2026-07-31 06:42:40,399 - INFO - Deleted policy ctest-policy1-34714116 2026-07-31 06:42:40,580 - DEBUG - policy ctest-policy1-34714116 is not found in API Server 2026-07-31 06:42:40,857 - DEBUG - No XMPP flaps were noticed during the test 2026-07-31 06:42:40,858 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-07-31 06:42:40,858 - INFO - -------------------------------------------------------------------------------- 2026-07-31 06:42:41,154 - DEBUG - No XMPP flaps were noticed during the test 2026-07-31 06:42:41,155 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-07-31 06:42:41,155 - INFO - -------------------------------------------------------------------------------- 2026-07-31 06:42:41,954 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80138278, ID : d4e6c14b-9b48-4ed1-a213-1bd3a310df44