2026-02-19 14:28:21,798 - INFO - Domain Default found not creating 2026-02-19 14:28:22,098 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87592965 not found, creating it 2026-02-19 14:28:22,718 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87592965, ID : f4c03eca-a563-4aa3-a1be-ab9776cb7e6d 2026-02-19 14:28:24,941 - INFO - ================================================================================ 2026-02-19 14:28:24,942 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 14:28:25,257 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-19 14:28:25,257 - INFO - Initial checks done. Running the testcase now 2026-02-19 14:28:25,257 - INFO - 2026-02-19 14:28:25,257 - INFO - ================================================================================ 2026-02-19 14:28:25,257 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-19 14:28:25,257 - 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-19 14:28:25,584 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-19 14:28:25,585 - INFO - Initial checks done. Running the testcase now 2026-02-19 14:28:25,585 - INFO - 2026-02-19 14:28:26,037 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87592965:ctest-vn4-89078193, 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-87592965:ctest-vn4-89078193, 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-87592965:ctest-vn4-89078193, 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-87592965:ctest-vn4-89078193, 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-19 14:28:26,780 - DEBUG - Response for create_network : {'network': {'id': '6fccc8e8-ce57-44b7-83db-42beffc5d159', 'name': 'ctest-vn4-89078193', 'tenant_id': 'f4c03ecaa5634aa3a1beab9776cb7e6d', 'project_id': 'f4c03ecaa5634aa3a1beab9776cb7e6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87592965', 'ctest-vn4-89078193'], 'port_security_enabled': True, 'description': ''}} 2026-02-19 14:28:26,996 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d6a01db-b16a-4b47-9d87-09323693fd82', 'name': '', 'tenant_id': 'f4c03ecaa5634aa3a1beab9776cb7e6d', 'network_id': '6fccc8e8-ce57-44b7-83db-42beffc5d159', 'ip_version': 4, 'cidr': '160.247.234.64/26', 'allocation_pools': [{'start': '160.247.234.66', 'end': '160.247.234.126'}], 'gateway_ip': '160.247.234.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.247.234.66', 'tags': [], 'project_id': 'f4c03ecaa5634aa3a1beab9776cb7e6d'}} 2026-02-19 14:28:27,221 - DEBUG - Response for create_subnet : {'subnet': {'id': '8af6b133-cfa6-4128-8e28-0500c4588f6b', 'name': '', 'tenant_id': 'f4c03ecaa5634aa3a1beab9776cb7e6d', 'network_id': '6fccc8e8-ce57-44b7-83db-42beffc5d159', 'ip_version': 6, 'cidr': '2b12:89db:94c5:345c:e293:e833::/96', 'allocation_pools': [{'start': '2b12:89db:94c5:345c:e293:e833:0:2', 'end': '2b12:89db:94c5:345c:e293:e833:ffff:fffe'}], 'gateway_ip': '2b12:89db:94c5:345c:e293:e833:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b12:89db:94c5:345c:e293:e833:0:2', 'tags': [], 'project_id': 'f4c03ecaa5634aa3a1beab9776cb7e6d'}} 2026-02-19 14:28:27,261 - INFO - Created VN ctest-vn4-89078193 2026-02-19 14:28:27,324 - DEBUG - VN ctest-vn4-89078193 UUID is 6fccc8e8-ce57-44b7-83db-42beffc5d159 2026-02-19 14:28:27,583 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6fccc8e8-ce57-44b7-83db-42beffc5d159', 'name': 'ctest-vn4-89078193', 'tenant_id': 'f4c03ecaa5634aa3a1beab9776cb7e6d', 'project_id': 'f4c03ecaa5634aa3a1beab9776cb7e6d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d6a01db-b16a-4b47-9d87-09323693fd82', '8af6b133-cfa6-4128-8e28-0500c4588f6b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87592965', 'ctest-vn4-89078193'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87592965', 'ctest-policy1-66756060']], 'subnet_ipam': [{'subnet_cidr': '160.247.234.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b12:89db:94c5:345c:e293:e833::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-19 14:28:27,743 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-19 14:28:28,068 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-19 14:28:28,145 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ce0b2ed-bae1-43be-b959-f3f3b1e018d4 2026-02-19 14:28:28,166 - DEBUG - Requesting: http://10.0.0.38:8082/project/f4c03eca-a563-4aa3-a1be-ab9776cb7e6d 2026-02-19 14:28:28,248 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6fccc8e8-ce57-44b7-83db-42beffc5d159 2026-02-19 14:28:28,262 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6fccc8e8-ce57-44b7-83db-42beffc5d159 2026-02-19 14:28:28,276 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/531ddb57-abb1-4575-998a-1f0c88c7d894 2026-02-19 14:28:28,285 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/531ddb57-abb1-4575-998a-1f0c88c7d894 2026-02-19 14:28:28,294 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/070858d1-23f6-4bfa-99ca-c148b9026f05 2026-02-19 14:28:28,302 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 14:28:28,302 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6fccc8e8-ce57-44b7-83db-42beffc5d159 2026-02-19 14:28:28,313 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/531ddb57-abb1-4575-998a-1f0c88c7d894 2026-02-19 14:28:28,331 - INFO - Verified VN network id 11 for VN 6fccc8e8-ce57-44b7-83db-42beffc5d159 2026-02-19 14:28:28,331 - INFO - Verifications in API Server for VN ctest-vn4-89078193 passed 2026-02-19 14:28:28,332 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6fccc8e8-ce57-44b7-83db-42beffc5d159 2026-02-19 14:28:28,348 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/531ddb57-abb1-4575-998a-1f0c88c7d894 2026-02-19 14:28:28,360 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/531ddb57-abb1-4575-998a-1f0c88c7d894 2026-02-19 14:28:28,372 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/070858d1-23f6-4bfa-99ca-c148b9026f05 2026-02-19 14:28:28,390 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87592965:ctest-vn4-89078193', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87592965', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8056034735678768311', 'uuid-lslong': '9501261226970567001'}, 'enable': 'true', 'created': '2026-02-19T14:28:26', 'last-modified': '2026-02-19T14:28:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.837292'} 2026-02-19 14:28:28,403 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-19 14:28:28,403 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89078193 passed 2026-02-19 14:28:28,403 - DEBUG - ====Verifying policy data for ctest-vn4-89078193 in API_Server ====== 2026-02-19 14:28:28,404 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-19 14:28:28,413 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ce0b2ed-bae1-43be-b959-f3f3b1e018d4 2026-02-19 14:28:28,425 - DEBUG - Requesting: http://10.0.0.38:8082/project/f4c03eca-a563-4aa3-a1be-ab9776cb7e6d 2026-02-19 14:28:28,509 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6fccc8e8-ce57-44b7-83db-42beffc5d159 2026-02-19 14:28:28,518 - DEBUG - ==>Verifying data for policy with id: ed5d3ced-a842-491c-9024-385f601aca66, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87592965', 'ctest-policy1-66756060'] 2026-02-19 14:28:28,518 - INFO - VN ctest-vn4-89078193 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-19 14:28:28,519 - DEBUG - Verifying the vn in opserver 2026-02-19 14:28:28,519 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87592965:ctest-vn4-89078193 virtual network link through opserver 10.0.0.38 2026-02-19 14:28:28,519 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-19 14:28:28,820 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-19 14:28:28,949 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87592965:ctest-vn4-89078193', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87592965:ctest-vn4-89078193?flat'} 2026-02-19 14:28:28,950 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87592965:ctest-vn4-89078193 is found in opserver 2026-02-19 14:28:28,970 - DEBUG - Do not have enough data to verify VN in agent 2026-02-19 14:28:28,978 - DEBUG - VRF ids for VN ctest-vn4-89078193: {} 2026-02-19 14:28:28,979 - DEBUG - ====Verifying data for ctest-policy1-66756060 in API_Server ====== 2026-02-19 14:28:28,979 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-19 14:28:28,990 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ce0b2ed-bae1-43be-b959-f3f3b1e018d4 2026-02-19 14:28:29,016 - DEBUG - Requesting: http://10.0.0.38:8082/project/f4c03eca-a563-4aa3-a1be-ab9776cb7e6d 2026-02-19 14:28:29,121 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/ed5d3ced-a842-491c-9024-385f601aca66 2026-02-19 14:28:29,142 - INFO - Verified policy ctest-policy1-66756060 in API Server, Result: True 2026-02-19 14:28:29,142 - INFO - Done with setup and verification, moving onto test .. 2026-02-19 14:28:29,160 - INFO - Deleting VN ctest-vn4-89078193 2026-02-19 14:28:29,344 - DEBUG - Response for deleting network () 2026-02-19 14:28:29,345 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/531ddb57-abb1-4575-998a-1f0c88c7d894 2026-02-19 14:28:29,351 - DEBUG - Response Code: 404 2026-02-19 14:28:29,351 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-19 14:28:29,359 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ce0b2ed-bae1-43be-b959-f3f3b1e018d4 2026-02-19 14:28:29,425 - DEBUG - Requesting: http://10.0.0.38:8082/project/f4c03eca-a563-4aa3-a1be-ab9776cb7e6d 2026-02-19 14:28:29,494 - INFO - Validated that VN ctest-vn4-89078193 is not found in API Server 2026-02-19 14:28:29,508 - DEBUG - VN ctest-vn4-89078193 is not present in Agent 10.0.0.38 2026-02-19 14:28:29,508 - INFO - Validated that VN ctest-vn4-89078193 is not in any agent 2026-02-19 14:28:29,526 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89078193 info 2026-02-19 14:28:29,550 - INFO - Deleted policy ctest-policy1-66756060 2026-02-19 14:28:29,731 - DEBUG - policy ctest-policy1-66756060 is not found in API Server 2026-02-19 14:28:30,016 - DEBUG - No XMPP flaps were noticed during the test