2026-02-11 17:39:32,391 - INFO - Domain Default found not creating 2026-02-11 17:39:32,560 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38355139 not found, creating it 2026-02-11 17:39:33,062 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38355139, ID : 3c26b0b5-5cc7-459b-8c0e-3d2d67bacc21 2026-02-11 17:39:34,601 - INFO - ================================================================================ 2026-02-11 17:39:34,601 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 17:39:34,858 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-11 17:39:34,858 - INFO - Initial checks done. Running the testcase now 2026-02-11 17:39:34,858 - INFO - 2026-02-11 17:39:34,858 - INFO - ================================================================================ 2026-02-11 17:39:34,858 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-11 17:39:34,858 - 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-11 17:39:35,154 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-11 17:39:35,154 - INFO - Initial checks done. Running the testcase now 2026-02-11 17:39:35,154 - INFO - 2026-02-11 17:39:35,524 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38355139:ctest-vn4-93034413, 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-38355139:ctest-vn4-93034413, 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-38355139:ctest-vn4-93034413, 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-38355139:ctest-vn4-93034413, 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-11 17:39:36,042 - DEBUG - Response for create_network : {'network': {'id': 'd9ae8003-d302-46fb-862b-472ddcc2f332', 'name': 'ctest-vn4-93034413', 'tenant_id': '3c26b0b55cc7459b8c0e3d2d67bacc21', 'project_id': '3c26b0b55cc7459b8c0e3d2d67bacc21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38355139', 'ctest-vn4-93034413'], 'port_security_enabled': True, 'description': ''}} 2026-02-11 17:39:36,241 - DEBUG - Response for create_subnet : {'subnet': {'id': '542df38c-04af-45e3-a327-02b4c3dc7c21', 'name': '', 'tenant_id': '3c26b0b55cc7459b8c0e3d2d67bacc21', 'network_id': 'd9ae8003-d302-46fb-862b-472ddcc2f332', 'ip_version': 4, 'cidr': '22.1.138.128/26', 'allocation_pools': [{'start': '22.1.138.130', 'end': '22.1.138.190'}], 'gateway_ip': '22.1.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.1.138.130', 'tags': [], 'project_id': '3c26b0b55cc7459b8c0e3d2d67bacc21'}} 2026-02-11 17:39:36,399 - DEBUG - Response for create_subnet : {'subnet': {'id': '8886b34c-1519-45b2-b543-e2b777aa4390', 'name': '', 'tenant_id': '3c26b0b55cc7459b8c0e3d2d67bacc21', 'network_id': 'd9ae8003-d302-46fb-862b-472ddcc2f332', 'ip_version': 6, 'cidr': '3f23:a2a6:1108:c3f9:e5a9:a8c8::/96', 'allocation_pools': [{'start': '3f23:a2a6:1108:c3f9:e5a9:a8c8:0:2', 'end': '3f23:a2a6:1108:c3f9:e5a9:a8c8:ffff:fffe'}], 'gateway_ip': '3f23:a2a6:1108:c3f9:e5a9:a8c8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f23:a2a6:1108:c3f9:e5a9:a8c8:0:2', 'tags': [], 'project_id': '3c26b0b55cc7459b8c0e3d2d67bacc21'}} 2026-02-11 17:39:36,421 - INFO - Created VN ctest-vn4-93034413 2026-02-11 17:39:36,475 - DEBUG - VN ctest-vn4-93034413 UUID is d9ae8003-d302-46fb-862b-472ddcc2f332 2026-02-11 17:39:36,710 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9ae8003-d302-46fb-862b-472ddcc2f332', 'name': 'ctest-vn4-93034413', 'tenant_id': '3c26b0b55cc7459b8c0e3d2d67bacc21', 'project_id': '3c26b0b55cc7459b8c0e3d2d67bacc21', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['542df38c-04af-45e3-a327-02b4c3dc7c21', '8886b34c-1519-45b2-b543-e2b777aa4390'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38355139', 'ctest-vn4-93034413'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38355139', 'ctest-policy1-69971023']], 'subnet_ipam': [{'subnet_cidr': '22.1.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f23:a2a6:1108:c3f9:e5a9:a8c8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-11 17:39:36,867 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-11 17:39:37,168 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-11 17:39:37,206 - DEBUG - Requesting: http://10.0.0.50:8082/domain/555009cd-daff-485d-aa32-2035c124d5c9 2026-02-11 17:39:37,219 - DEBUG - Requesting: http://10.0.0.50:8082/project/3c26b0b5-5cc7-459b-8c0e-3d2d67bacc21 2026-02-11 17:39:37,291 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9ae8003-d302-46fb-862b-472ddcc2f332 2026-02-11 17:39:37,305 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9ae8003-d302-46fb-862b-472ddcc2f332 2026-02-11 17:39:37,319 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/69643fe6-22be-4eac-a504-8d5ad404175a 2026-02-11 17:39:37,327 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/69643fe6-22be-4eac-a504-8d5ad404175a 2026-02-11 17:39:37,335 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b338bef-7943-40b0-8253-ef30c06a5552 2026-02-11 17:39:37,342 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 17:39:37,342 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9ae8003-d302-46fb-862b-472ddcc2f332 2026-02-11 17:39:37,353 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/69643fe6-22be-4eac-a504-8d5ad404175a 2026-02-11 17:39:37,369 - INFO - Verified VN network id 9 for VN d9ae8003-d302-46fb-862b-472ddcc2f332 2026-02-11 17:39:37,369 - INFO - Verifications in API Server for VN ctest-vn4-93034413 passed 2026-02-11 17:39:37,369 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9ae8003-d302-46fb-862b-472ddcc2f332 2026-02-11 17:39:37,381 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/69643fe6-22be-4eac-a504-8d5ad404175a 2026-02-11 17:39:37,388 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/69643fe6-22be-4eac-a504-8d5ad404175a 2026-02-11 17:39:37,396 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2b338bef-7943-40b0-8253-ef30c06a5552 2026-02-11 17:39:37,408 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38355139:ctest-vn4-93034413', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38355139', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15685615306091415291', 'uuid-lslong': '9667899287383765810'}, 'enable': 'true', 'created': '2026-02-11T17:39:36', 'last-modified': '2026-02-11T17:39:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741360'} 2026-02-11 17:39:37,415 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-11 17:39:37,415 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-93034413 passed 2026-02-11 17:39:37,415 - DEBUG - ====Verifying policy data for ctest-vn4-93034413 in API_Server ====== 2026-02-11 17:39:37,415 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-11 17:39:37,421 - DEBUG - Requesting: http://10.0.0.50:8082/domain/555009cd-daff-485d-aa32-2035c124d5c9 2026-02-11 17:39:37,433 - DEBUG - Requesting: http://10.0.0.50:8082/project/3c26b0b5-5cc7-459b-8c0e-3d2d67bacc21 2026-02-11 17:39:37,505 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9ae8003-d302-46fb-862b-472ddcc2f332 2026-02-11 17:39:37,515 - DEBUG - ==>Verifying data for policy with id: 3440f971-cc37-41b8-be07-8025732e6b89, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38355139', 'ctest-policy1-69971023'] 2026-02-11 17:39:37,515 - INFO - VN ctest-vn4-93034413 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-11 17:39:37,515 - DEBUG - Verifying the vn in opserver 2026-02-11 17:39:37,515 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38355139:ctest-vn4-93034413 virtual network link through opserver 10.0.0.50 2026-02-11 17:39:37,516 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-11 17:39:37,811 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-11 17:39:37,880 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38355139:ctest-vn4-93034413', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38355139:ctest-vn4-93034413?flat'} 2026-02-11 17:39:37,880 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38355139:ctest-vn4-93034413 is found in opserver 2026-02-11 17:39:37,890 - DEBUG - Do not have enough data to verify VN in agent 2026-02-11 17:39:37,895 - DEBUG - VRF ids for VN ctest-vn4-93034413: {} 2026-02-11 17:39:37,896 - DEBUG - ====Verifying data for ctest-policy1-69971023 in API_Server ====== 2026-02-11 17:39:37,896 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-11 17:39:37,903 - DEBUG - Requesting: http://10.0.0.50:8082/domain/555009cd-daff-485d-aa32-2035c124d5c9 2026-02-11 17:39:37,915 - DEBUG - Requesting: http://10.0.0.50:8082/project/3c26b0b5-5cc7-459b-8c0e-3d2d67bacc21 2026-02-11 17:39:37,988 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/3440f971-cc37-41b8-be07-8025732e6b89 2026-02-11 17:39:38,000 - INFO - Verified policy ctest-policy1-69971023 in API Server, Result: True 2026-02-11 17:39:38,000 - INFO - Done with setup and verification, moving onto test .. 2026-02-11 17:39:38,009 - INFO - Deleting VN ctest-vn4-93034413 2026-02-11 17:39:38,128 - DEBUG - Response for deleting network () 2026-02-11 17:39:38,128 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/69643fe6-22be-4eac-a504-8d5ad404175a 2026-02-11 17:39:38,134 - DEBUG - Response Code: 404 2026-02-11 17:39:38,134 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-11 17:39:38,141 - DEBUG - Requesting: http://10.0.0.50:8082/domain/555009cd-daff-485d-aa32-2035c124d5c9 2026-02-11 17:39:38,193 - DEBUG - Requesting: http://10.0.0.50:8082/project/3c26b0b5-5cc7-459b-8c0e-3d2d67bacc21 2026-02-11 17:39:38,265 - INFO - Validated that VN ctest-vn4-93034413 is not found in API Server 2026-02-11 17:39:38,275 - DEBUG - VN ctest-vn4-93034413 is not present in Agent 10.0.0.50 2026-02-11 17:39:38,275 - INFO - Validated that VN ctest-vn4-93034413 is not in any agent 2026-02-11 17:39:38,290 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-93034413 info 2026-02-11 17:39:38,315 - INFO - Deleted policy ctest-policy1-69971023 2026-02-11 17:39:38,483 - DEBUG - policy ctest-policy1-69971023 is not found in API Server 2026-02-11 17:39:38,743 - DEBUG - No XMPP flaps were noticed during the test