2026-07-10 20:00:09,411 - INFO - Domain Default found not creating 2026-07-10 20:00:09,558 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70258362 not found, creating it 2026-07-10 20:00:10,004 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70258362, ID : ccfc57d8-b759-4511-8c47-937be1ec9c95 2026-07-10 20:00:11,470 - INFO - ================================================================================ 2026-07-10 20:00:11,470 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-10 20:00:11,726 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-07-10 20:00:11,726 - INFO - Initial checks done. Running the testcase now 2026-07-10 20:00:11,726 - INFO - 2026-07-10 20:00:11,726 - INFO - ================================================================================ 2026-07-10 20:00:11,726 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-10 20:00:11,726 - 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-10 20:00:12,017 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-07-10 20:00:12,017 - INFO - Initial checks done. Running the testcase now 2026-07-10 20:00:12,017 - INFO - 2026-07-10 20:00:12,437 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70258362:ctest-vn4-43265041, 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-70258362:ctest-vn4-43265041, 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-70258362:ctest-vn4-43265041, 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-70258362:ctest-vn4-43265041, 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-10 20:00:12,931 - DEBUG - Response for create_network : {'network': {'id': 'a07f5a1c-f104-4c3b-8a9f-7d80984c81ed', 'name': 'ctest-vn4-43265041', 'tenant_id': 'ccfc57d8b75945118c47937be1ec9c95', 'project_id': 'ccfc57d8b75945118c47937be1ec9c95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70258362', 'ctest-vn4-43265041'], 'port_security_enabled': True, 'description': ''}} 2026-07-10 20:00:13,158 - DEBUG - Response for create_subnet : {'subnet': {'id': '134d1f53-40fb-41b0-8049-38ae0af0d536', 'name': '', 'tenant_id': 'ccfc57d8b75945118c47937be1ec9c95', 'network_id': 'a07f5a1c-f104-4c3b-8a9f-7d80984c81ed', 'ip_version': 4, 'cidr': '73.54.192.64/26', 'allocation_pools': [{'start': '73.54.192.66', 'end': '73.54.192.126'}], 'gateway_ip': '73.54.192.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.54.192.66', 'tags': [], 'project_id': 'ccfc57d8b75945118c47937be1ec9c95'}} 2026-07-10 20:00:13,357 - DEBUG - Response for create_subnet : {'subnet': {'id': '696bde00-0e6f-4f66-bd47-ea14cb498e95', 'name': '', 'tenant_id': 'ccfc57d8b75945118c47937be1ec9c95', 'network_id': 'a07f5a1c-f104-4c3b-8a9f-7d80984c81ed', 'ip_version': 6, 'cidr': '2d44:584a:6180:8fed:c27d:4b66::/96', 'allocation_pools': [{'start': '2d44:584a:6180:8fed:c27d:4b66:0:2', 'end': '2d44:584a:6180:8fed:c27d:4b66:ffff:fffe'}], 'gateway_ip': '2d44:584a:6180:8fed:c27d:4b66:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d44:584a:6180:8fed:c27d:4b66:0:2', 'tags': [], 'project_id': 'ccfc57d8b75945118c47937be1ec9c95'}} 2026-07-10 20:00:13,375 - INFO - Created VN ctest-vn4-43265041 2026-07-10 20:00:13,425 - DEBUG - VN ctest-vn4-43265041 UUID is a07f5a1c-f104-4c3b-8a9f-7d80984c81ed 2026-07-10 20:00:13,609 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a07f5a1c-f104-4c3b-8a9f-7d80984c81ed', 'name': 'ctest-vn4-43265041', 'tenant_id': 'ccfc57d8b75945118c47937be1ec9c95', 'project_id': 'ccfc57d8b75945118c47937be1ec9c95', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['134d1f53-40fb-41b0-8049-38ae0af0d536', '696bde00-0e6f-4f66-bd47-ea14cb498e95'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70258362', 'ctest-vn4-43265041'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70258362', 'ctest-policy1-40167433']], 'subnet_ipam': [{'subnet_cidr': '73.54.192.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d44:584a:6180:8fed:c27d:4b66::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-10 20:00:13,773 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-10 20:00:14,096 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-10 20:00:14,121 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c626fe5f-6b66-4953-b8e0-704f2f70f9dc 2026-07-10 20:00:14,131 - DEBUG - Requesting: http://10.0.0.50:8082/project/ccfc57d8-b759-4511-8c47-937be1ec9c95 2026-07-10 20:00:14,198 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a07f5a1c-f104-4c3b-8a9f-7d80984c81ed 2026-07-10 20:00:14,211 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a07f5a1c-f104-4c3b-8a9f-7d80984c81ed 2026-07-10 20:00:14,220 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/97578576-70bc-470a-82e0-c823b92be05e 2026-07-10 20:00:14,225 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/97578576-70bc-470a-82e0-c823b92be05e 2026-07-10 20:00:14,231 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c241524c-a34f-44fb-a123-04c43b6b7d76 2026-07-10 20:00:14,237 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-10 20:00:14,237 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a07f5a1c-f104-4c3b-8a9f-7d80984c81ed 2026-07-10 20:00:14,245 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/97578576-70bc-470a-82e0-c823b92be05e 2026-07-10 20:00:14,258 - INFO - Verified VN network id 12 for VN a07f5a1c-f104-4c3b-8a9f-7d80984c81ed 2026-07-10 20:00:14,258 - INFO - Verifications in API Server for VN ctest-vn4-43265041 passed 2026-07-10 20:00:14,259 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a07f5a1c-f104-4c3b-8a9f-7d80984c81ed 2026-07-10 20:00:14,266 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/97578576-70bc-470a-82e0-c823b92be05e 2026-07-10 20:00:14,271 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/97578576-70bc-470a-82e0-c823b92be05e 2026-07-10 20:00:14,277 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c241524c-a34f-44fb-a123-04c43b6b7d76 2026-07-10 20:00:14,288 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70258362:ctest-vn4-43265041', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70258362', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11565061448459897915', 'uuid-lslong': '9988840489795486189'}, 'enable': 'true', 'created': '2026-07-10T20:00:12', 'last-modified': '2026-07-10T20:00:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.709510'} 2026-07-10 20:00:14,293 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-10 20:00:14,294 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43265041 passed 2026-07-10 20:00:14,294 - DEBUG - ====Verifying policy data for ctest-vn4-43265041 in API_Server ====== 2026-07-10 20:00:14,294 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-10 20:00:14,298 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c626fe5f-6b66-4953-b8e0-704f2f70f9dc 2026-07-10 20:00:14,308 - DEBUG - Requesting: http://10.0.0.50:8082/project/ccfc57d8-b759-4511-8c47-937be1ec9c95 2026-07-10 20:00:14,370 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a07f5a1c-f104-4c3b-8a9f-7d80984c81ed 2026-07-10 20:00:14,379 - DEBUG - ==>Verifying data for policy with id: f3bd0f56-07d5-484e-9e18-4bcd3fc3e877, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70258362', 'ctest-policy1-40167433'] 2026-07-10 20:00:14,379 - INFO - VN ctest-vn4-43265041 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-10 20:00:14,379 - DEBUG - Verifying the vn in opserver 2026-07-10 20:00:14,379 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70258362:ctest-vn4-43265041 virtual network link through opserver 10.0.0.50 2026-07-10 20:00:14,379 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-10 20:00:14,701 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-10 20:00:14,756 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70258362:ctest-vn4-43265041', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70258362:ctest-vn4-43265041?flat'} 2026-07-10 20:00:14,756 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70258362:ctest-vn4-43265041 is found in opserver 2026-07-10 20:00:14,767 - DEBUG - Do not have enough data to verify VN in agent 2026-07-10 20:00:14,771 - DEBUG - VRF ids for VN ctest-vn4-43265041: {} 2026-07-10 20:00:14,772 - DEBUG - ====Verifying data for ctest-policy1-40167433 in API_Server ====== 2026-07-10 20:00:14,772 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-10 20:00:14,777 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c626fe5f-6b66-4953-b8e0-704f2f70f9dc 2026-07-10 20:00:14,786 - DEBUG - Requesting: http://10.0.0.50:8082/project/ccfc57d8-b759-4511-8c47-937be1ec9c95 2026-07-10 20:00:14,852 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/f3bd0f56-07d5-484e-9e18-4bcd3fc3e877 2026-07-10 20:00:14,862 - INFO - Verified policy ctest-policy1-40167433 in API Server, Result: True 2026-07-10 20:00:14,862 - INFO - Done with setup and verification, moving onto test .. 2026-07-10 20:00:14,869 - INFO - Deleting VN ctest-vn4-43265041 2026-07-10 20:00:14,988 - DEBUG - Response for deleting network () 2026-07-10 20:00:14,989 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/97578576-70bc-470a-82e0-c823b92be05e 2026-07-10 20:00:14,993 - DEBUG - Response Code: 404 2026-07-10 20:00:14,993 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-10 20:00:14,999 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c626fe5f-6b66-4953-b8e0-704f2f70f9dc 2026-07-10 20:00:15,053 - DEBUG - Requesting: http://10.0.0.50:8082/project/ccfc57d8-b759-4511-8c47-937be1ec9c95 2026-07-10 20:00:15,124 - INFO - Validated that VN ctest-vn4-43265041 is not found in API Server 2026-07-10 20:00:15,133 - DEBUG - VN ctest-vn4-43265041 is not present in Agent 10.0.0.50 2026-07-10 20:00:15,133 - INFO - Validated that VN ctest-vn4-43265041 is not in any agent 2026-07-10 20:00:15,146 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43265041 info 2026-07-10 20:00:15,168 - INFO - Deleted policy ctest-policy1-40167433 2026-07-10 20:00:15,328 - DEBUG - policy ctest-policy1-40167433 is not found in API Server 2026-07-10 20:00:15,587 - DEBUG - No XMPP flaps were noticed during the test 2026-07-10 20:00:15,587 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-07-10 20:00:15,587 - INFO - -------------------------------------------------------------------------------- 2026-07-10 20:00:15,874 - DEBUG - No XMPP flaps were noticed during the test 2026-07-10 20:00:15,874 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-07-10 20:00:15,874 - INFO - -------------------------------------------------------------------------------- 2026-07-10 20:00:16,570 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-70258362, ID : ccfc57d8-b759-4511-8c47-937be1ec9c95