2026-06-22 02:23:43,068 - INFO - Domain Default found not creating 2026-06-22 02:23:43,229 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17712797 not found, creating it 2026-06-22 02:23:43,663 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17712797, ID : cc99dfc4-10b3-4826-b443-00340e4b1c49 2026-06-22 02:23:45,128 - INFO - ================================================================================ 2026-06-22 02:23:45,128 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 02:23:45,384 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-06-22 02:23:45,384 - INFO - Initial checks done. Running the testcase now 2026-06-22 02:23:45,384 - INFO - 2026-06-22 02:23:45,385 - INFO - ================================================================================ 2026-06-22 02:23:45,385 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-22 02:23:45,385 - 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-06-22 02:23:45,672 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-06-22 02:23:45,672 - INFO - Initial checks done. Running the testcase now 2026-06-22 02:23:45,672 - INFO - 2026-06-22 02:23:46,038 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17712797:ctest-vn4-43373041, 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-17712797:ctest-vn4-43373041, 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-17712797:ctest-vn4-43373041, 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-17712797:ctest-vn4-43373041, 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-06-22 02:23:46,518 - DEBUG - Response for create_network : {'network': {'id': '2742ee0a-9a2c-4429-bf95-84463a8adfa1', 'name': 'ctest-vn4-43373041', 'tenant_id': 'cc99dfc410b34826b44300340e4b1c49', 'project_id': 'cc99dfc410b34826b44300340e4b1c49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17712797', 'ctest-vn4-43373041'], 'port_security_enabled': True, 'description': ''}} 2026-06-22 02:23:46,712 - DEBUG - Response for create_subnet : {'subnet': {'id': '394dd2f4-ccbf-4b9a-ad9f-bf5d9ce80fcf', 'name': '', 'tenant_id': 'cc99dfc410b34826b44300340e4b1c49', 'network_id': '2742ee0a-9a2c-4429-bf95-84463a8adfa1', 'ip_version': 4, 'cidr': '72.195.155.128/26', 'allocation_pools': [{'start': '72.195.155.130', 'end': '72.195.155.190'}], 'gateway_ip': '72.195.155.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.195.155.130', 'tags': [], 'project_id': 'cc99dfc410b34826b44300340e4b1c49'}} 2026-06-22 02:23:46,867 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd39333ab-3b73-4ffb-9cc7-ff6f7b36c006', 'name': '', 'tenant_id': 'cc99dfc410b34826b44300340e4b1c49', 'network_id': '2742ee0a-9a2c-4429-bf95-84463a8adfa1', 'ip_version': 6, 'cidr': '3bd7:6f13:36ab:43b9:ef18:dd9b::/96', 'allocation_pools': [{'start': '3bd7:6f13:36ab:43b9:ef18:dd9b:0:2', 'end': '3bd7:6f13:36ab:43b9:ef18:dd9b:ffff:fffe'}], 'gateway_ip': '3bd7:6f13:36ab:43b9:ef18:dd9b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3bd7:6f13:36ab:43b9:ef18:dd9b:0:2', 'tags': [], 'project_id': 'cc99dfc410b34826b44300340e4b1c49'}} 2026-06-22 02:23:46,886 - INFO - Created VN ctest-vn4-43373041 2026-06-22 02:23:46,936 - DEBUG - VN ctest-vn4-43373041 UUID is 2742ee0a-9a2c-4429-bf95-84463a8adfa1 2026-06-22 02:23:47,114 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2742ee0a-9a2c-4429-bf95-84463a8adfa1', 'name': 'ctest-vn4-43373041', 'tenant_id': 'cc99dfc410b34826b44300340e4b1c49', 'project_id': 'cc99dfc410b34826b44300340e4b1c49', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['394dd2f4-ccbf-4b9a-ad9f-bf5d9ce80fcf', 'd39333ab-3b73-4ffb-9cc7-ff6f7b36c006'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17712797', 'ctest-vn4-43373041'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17712797', 'ctest-policy1-38195810']], 'subnet_ipam': [{'subnet_cidr': '72.195.155.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3bd7:6f13:36ab:43b9:ef18:dd9b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-22 02:23:47,284 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-22 02:23:47,610 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-22 02:23:47,632 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ff98a3e8-93bd-42aa-b9d2-63f4bd374238 2026-06-22 02:23:47,643 - DEBUG - Requesting: http://10.0.0.50:8082/project/cc99dfc4-10b3-4826-b443-00340e4b1c49 2026-06-22 02:23:47,715 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2742ee0a-9a2c-4429-bf95-84463a8adfa1 2026-06-22 02:23:47,726 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2742ee0a-9a2c-4429-bf95-84463a8adfa1 2026-06-22 02:23:47,734 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/971ddb5f-192b-4acc-b926-3f48677e1225 2026-06-22 02:23:47,741 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/971ddb5f-192b-4acc-b926-3f48677e1225 2026-06-22 02:23:47,753 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/931cae77-3b74-49e7-a0b3-272034c1971a 2026-06-22 02:23:47,761 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 02:23:47,761 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2742ee0a-9a2c-4429-bf95-84463a8adfa1 2026-06-22 02:23:47,770 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/971ddb5f-192b-4acc-b926-3f48677e1225 2026-06-22 02:23:47,784 - INFO - Verified VN network id 12 for VN 2742ee0a-9a2c-4429-bf95-84463a8adfa1 2026-06-22 02:23:47,784 - INFO - Verifications in API Server for VN ctest-vn4-43373041 passed 2026-06-22 02:23:47,784 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2742ee0a-9a2c-4429-bf95-84463a8adfa1 2026-06-22 02:23:47,798 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/971ddb5f-192b-4acc-b926-3f48677e1225 2026-06-22 02:23:47,805 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/971ddb5f-192b-4acc-b926-3f48677e1225 2026-06-22 02:23:47,813 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/931cae77-3b74-49e7-a0b3-272034c1971a 2026-06-22 02:23:47,827 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17712797:ctest-vn4-43373041', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17712797', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2829085245245768745', 'uuid-lslong': '13805085669938880417'}, 'enable': 'true', 'created': '2026-06-22T02:23:46', 'last-modified': '2026-06-22T02:23:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741219'} 2026-06-22 02:23:47,833 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-22 02:23:47,833 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43373041 passed 2026-06-22 02:23:47,833 - DEBUG - ====Verifying policy data for ctest-vn4-43373041 in API_Server ====== 2026-06-22 02:23:47,833 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-22 02:23:47,840 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ff98a3e8-93bd-42aa-b9d2-63f4bd374238 2026-06-22 02:23:47,850 - DEBUG - Requesting: http://10.0.0.50:8082/project/cc99dfc4-10b3-4826-b443-00340e4b1c49 2026-06-22 02:23:47,920 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2742ee0a-9a2c-4429-bf95-84463a8adfa1 2026-06-22 02:23:47,931 - DEBUG - ==>Verifying data for policy with id: 5a3eb0ac-0363-420a-b60f-8469a0d2dd69, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17712797', 'ctest-policy1-38195810'] 2026-06-22 02:23:47,931 - INFO - VN ctest-vn4-43373041 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-22 02:23:47,931 - DEBUG - Verifying the vn in opserver 2026-06-22 02:23:47,931 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17712797:ctest-vn4-43373041 virtual network link through opserver 10.0.0.50 2026-06-22 02:23:47,931 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-22 02:23:48,248 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-22 02:23:48,297 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17712797:ctest-vn4-43373041', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17712797:ctest-vn4-43373041?flat'} 2026-06-22 02:23:48,297 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17712797:ctest-vn4-43373041 is found in opserver 2026-06-22 02:23:48,306 - DEBUG - Do not have enough data to verify VN in agent 2026-06-22 02:23:48,310 - DEBUG - VRF ids for VN ctest-vn4-43373041: {} 2026-06-22 02:23:48,310 - DEBUG - ====Verifying data for ctest-policy1-38195810 in API_Server ====== 2026-06-22 02:23:48,310 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-22 02:23:48,314 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ff98a3e8-93bd-42aa-b9d2-63f4bd374238 2026-06-22 02:23:48,324 - DEBUG - Requesting: http://10.0.0.50:8082/project/cc99dfc4-10b3-4826-b443-00340e4b1c49 2026-06-22 02:23:48,404 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/5a3eb0ac-0363-420a-b60f-8469a0d2dd69 2026-06-22 02:23:48,413 - INFO - Verified policy ctest-policy1-38195810 in API Server, Result: True 2026-06-22 02:23:48,413 - INFO - Done with setup and verification, moving onto test .. 2026-06-22 02:23:48,419 - INFO - Deleting VN ctest-vn4-43373041 2026-06-22 02:23:48,527 - DEBUG - Response for deleting network () 2026-06-22 02:23:48,528 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/971ddb5f-192b-4acc-b926-3f48677e1225 2026-06-22 02:23:48,532 - DEBUG - Response Code: 404 2026-06-22 02:23:48,532 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-22 02:23:48,536 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ff98a3e8-93bd-42aa-b9d2-63f4bd374238 2026-06-22 02:23:48,588 - DEBUG - Requesting: http://10.0.0.50:8082/project/cc99dfc4-10b3-4826-b443-00340e4b1c49 2026-06-22 02:23:48,653 - INFO - Validated that VN ctest-vn4-43373041 is not found in API Server 2026-06-22 02:23:48,662 - DEBUG - VN ctest-vn4-43373041 is not present in Agent 10.0.0.50 2026-06-22 02:23:48,662 - INFO - Validated that VN ctest-vn4-43373041 is not in any agent 2026-06-22 02:23:48,675 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43373041 info 2026-06-22 02:23:48,697 - INFO - Deleted policy ctest-policy1-38195810 2026-06-22 02:23:48,856 - DEBUG - policy ctest-policy1-38195810 is not found in API Server 2026-06-22 02:23:49,127 - DEBUG - No XMPP flaps were noticed during the test 2026-06-22 02:23:49,127 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-22 02:23:49,127 - INFO - -------------------------------------------------------------------------------- 2026-06-22 02:23:49,421 - DEBUG - No XMPP flaps were noticed during the test 2026-06-22 02:23:49,421 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-22 02:23:49,421 - INFO - -------------------------------------------------------------------------------- 2026-06-22 02:23:50,125 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-17712797, ID : cc99dfc4-10b3-4826-b443-00340e4b1c49