2026-11-04 10:44:55,703 - INFO - Domain Default found not creating 2026-11-04 10:44:55,901 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-54494743 not found, creating it 2026-11-04 10:44:56,388 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-54494743, ID : e59bfb27-c813-47ad-83b4-0a0aa47b2429 2026-11-04 10:44:58,051 - INFO - ================================================================================ 2026-11-04 10:44:58,051 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-04 10:44:58,305 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.29': '0'}} with 2026-11-04 10:44:58,305 - INFO - Initial checks done. Running the testcase now 2026-11-04 10:44:58,305 - INFO - 2026-11-04 10:44:58,305 - INFO - ================================================================================ 2026-11-04 10:44:58,306 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-04 10:44:58,306 - 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-11-04 10:44:58,592 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.29': '0'}} with 2026-11-04 10:44:58,592 - INFO - Initial checks done. Running the testcase now 2026-11-04 10:44:58,592 - INFO - 2026-11-04 10:44:58,976 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54494743:ctest-vn4-96231404, 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-54494743:ctest-vn4-96231404, 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-54494743:ctest-vn4-96231404, 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-54494743:ctest-vn4-96231404, 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-11-04 10:44:59,491 - DEBUG - Response for create_network : {'network': {'id': '48e62488-89fc-4204-9811-0315f3d1dc04', 'name': 'ctest-vn4-96231404', 'tenant_id': 'e59bfb27c81347ad83b40a0aa47b2429', 'project_id': 'e59bfb27c81347ad83b40a0aa47b2429', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54494743', 'ctest-vn4-96231404'], 'port_security_enabled': True, 'description': ''}} 2026-11-04 10:44:59,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '964797b4-cdd5-493f-ba7a-c53d115bb1de', 'name': '', 'tenant_id': 'e59bfb27c81347ad83b40a0aa47b2429', 'network_id': '48e62488-89fc-4204-9811-0315f3d1dc04', 'ip_version': 4, 'cidr': '99.123.215.0/26', 'allocation_pools': [{'start': '99.123.215.2', 'end': '99.123.215.62'}], 'gateway_ip': '99.123.215.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.123.215.2', 'tags': [], 'project_id': 'e59bfb27c81347ad83b40a0aa47b2429'}} 2026-11-04 10:44:59,793 - DEBUG - Response for create_subnet : {'subnet': {'id': '23f8fc1b-c25c-43fb-a6f9-c9bd3b688f70', 'name': '', 'tenant_id': 'e59bfb27c81347ad83b40a0aa47b2429', 'network_id': '48e62488-89fc-4204-9811-0315f3d1dc04', 'ip_version': 6, 'cidr': '36a4:ab63:9922:b499:ca42:f145::/96', 'allocation_pools': [{'start': '36a4:ab63:9922:b499:ca42:f145:0:2', 'end': '36a4:ab63:9922:b499:ca42:f145:ffff:fffe'}], 'gateway_ip': '36a4:ab63:9922:b499:ca42:f145:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36a4:ab63:9922:b499:ca42:f145:0:2', 'tags': [], 'project_id': 'e59bfb27c81347ad83b40a0aa47b2429'}} 2026-11-04 10:44:59,811 - INFO - Created VN ctest-vn4-96231404 2026-11-04 10:44:59,863 - DEBUG - VN ctest-vn4-96231404 UUID is 48e62488-89fc-4204-9811-0315f3d1dc04 2026-11-04 10:45:00,073 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48e62488-89fc-4204-9811-0315f3d1dc04', 'name': 'ctest-vn4-96231404', 'tenant_id': 'e59bfb27c81347ad83b40a0aa47b2429', 'project_id': 'e59bfb27c81347ad83b40a0aa47b2429', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['964797b4-cdd5-493f-ba7a-c53d115bb1de', '23f8fc1b-c25c-43fb-a6f9-c9bd3b688f70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54494743', 'ctest-vn4-96231404'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54494743', 'ctest-policy1-03954583']], 'subnet_ipam': [{'subnet_cidr': '99.123.215.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36a4:ab63:9922:b499:ca42:f145::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-04 10:45:00,231 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-04 10:45:00,562 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-04 10:45:00,591 - DEBUG - Requesting: http://10.0.0.50:8082/domain/987ed006-4b4b-4491-9e33-ef684fd9b8eb 2026-11-04 10:45:00,605 - DEBUG - Requesting: http://10.0.0.50:8082/project/e59bfb27-c813-47ad-83b4-0a0aa47b2429 2026-11-04 10:45:00,681 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/48e62488-89fc-4204-9811-0315f3d1dc04 2026-11-04 10:45:00,694 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/48e62488-89fc-4204-9811-0315f3d1dc04 2026-11-04 10:45:00,706 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a143033d-ba70-4686-9f52-d8676bcc693e 2026-11-04 10:45:00,713 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a143033d-ba70-4686-9f52-d8676bcc693e 2026-11-04 10:45:00,720 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ce282f80-f75b-4457-bd67-c98e4e2118ba 2026-11-04 10:45:00,727 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-04 10:45:00,727 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/48e62488-89fc-4204-9811-0315f3d1dc04 2026-11-04 10:45:00,736 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a143033d-ba70-4686-9f52-d8676bcc693e 2026-11-04 10:45:00,751 - INFO - Verified VN network id 10 for VN 48e62488-89fc-4204-9811-0315f3d1dc04 2026-11-04 10:45:00,751 - INFO - Verifications in API Server for VN ctest-vn4-96231404 passed 2026-11-04 10:45:00,751 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/48e62488-89fc-4204-9811-0315f3d1dc04 2026-11-04 10:45:00,761 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a143033d-ba70-4686-9f52-d8676bcc693e 2026-11-04 10:45:00,768 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a143033d-ba70-4686-9f52-d8676bcc693e 2026-11-04 10:45:00,775 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ce282f80-f75b-4457-bd67-c98e4e2118ba 2026-11-04 10:45:00,788 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54494743:ctest-vn4-96231404', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-54494743', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5252926184223425028', 'uuid-lslong': '10957542761188940804'}, 'enable': 'true', 'created': '2026-11-04T10:44:59', 'last-modified': '2026-11-04T10:45:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.744597'} 2026-11-04 10:45:00,796 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-04 10:45:00,796 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96231404 passed 2026-11-04 10:45:00,797 - DEBUG - ====Verifying policy data for ctest-vn4-96231404 in API_Server ====== 2026-11-04 10:45:00,797 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-04 10:45:00,803 - DEBUG - Requesting: http://10.0.0.50:8082/domain/987ed006-4b4b-4491-9e33-ef684fd9b8eb 2026-11-04 10:45:00,813 - DEBUG - Requesting: http://10.0.0.50:8082/project/e59bfb27-c813-47ad-83b4-0a0aa47b2429 2026-11-04 10:45:00,890 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/48e62488-89fc-4204-9811-0315f3d1dc04 2026-11-04 10:45:00,900 - DEBUG - ==>Verifying data for policy with id: cf555ef6-6adb-4b0c-94ee-44de68c17a66, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-54494743', 'ctest-policy1-03954583'] 2026-11-04 10:45:00,900 - INFO - VN ctest-vn4-96231404 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-04 10:45:00,900 - DEBUG - Verifying the vn in opserver 2026-11-04 10:45:00,900 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54494743:ctest-vn4-96231404 virtual network link through opserver 10.0.0.50 2026-11-04 10:45:00,900 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-11-04 10:45:01,225 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-11-04 10:45:01,289 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54494743:ctest-vn4-96231404', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54494743:ctest-vn4-96231404?flat'} 2026-11-04 10:45:01,289 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-54494743:ctest-vn4-96231404 is found in opserver 2026-11-04 10:45:01,303 - DEBUG - Do not have enough data to verify VN in agent 2026-11-04 10:45:01,311 - DEBUG - VRF ids for VN ctest-vn4-96231404: {} 2026-11-04 10:45:01,311 - DEBUG - ====Verifying data for ctest-policy1-03954583 in API_Server ====== 2026-11-04 10:45:01,312 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-04 10:45:01,320 - DEBUG - Requesting: http://10.0.0.50:8082/domain/987ed006-4b4b-4491-9e33-ef684fd9b8eb 2026-11-04 10:45:01,333 - DEBUG - Requesting: http://10.0.0.50:8082/project/e59bfb27-c813-47ad-83b4-0a0aa47b2429 2026-11-04 10:45:01,406 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/cf555ef6-6adb-4b0c-94ee-44de68c17a66 2026-11-04 10:45:01,416 - INFO - Verified policy ctest-policy1-03954583 in API Server, Result: True 2026-11-04 10:45:01,416 - INFO - Done with setup and verification, moving onto test .. 2026-11-04 10:45:01,427 - INFO - Deleting VN ctest-vn4-96231404 2026-11-04 10:45:01,561 - DEBUG - Response for deleting network () 2026-11-04 10:45:01,562 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a143033d-ba70-4686-9f52-d8676bcc693e 2026-11-04 10:45:01,567 - DEBUG - Response Code: 404 2026-11-04 10:45:01,567 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-04 10:45:01,573 - DEBUG - Requesting: http://10.0.0.50:8082/domain/987ed006-4b4b-4491-9e33-ef684fd9b8eb 2026-11-04 10:45:01,632 - DEBUG - Requesting: http://10.0.0.50:8082/project/e59bfb27-c813-47ad-83b4-0a0aa47b2429 2026-11-04 10:45:01,705 - INFO - Validated that VN ctest-vn4-96231404 is not found in API Server 2026-11-04 10:45:01,718 - DEBUG - VN ctest-vn4-96231404 is not present in Agent 10.0.0.50 2026-11-04 10:45:01,718 - INFO - Validated that VN ctest-vn4-96231404 is not in any agent 2026-11-04 10:45:01,736 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96231404 info 2026-11-04 10:45:01,771 - INFO - Deleted policy ctest-policy1-03954583 2026-11-04 10:45:01,943 - DEBUG - policy ctest-policy1-03954583 is not found in API Server 2026-11-04 10:45:02,209 - DEBUG - No XMPP flaps were noticed during the test 2026-11-04 10:45:02,209 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-04 10:45:02,209 - INFO - -------------------------------------------------------------------------------- 2026-11-04 10:45:02,497 - DEBUG - No XMPP flaps were noticed during the test 2026-11-04 10:45:02,498 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-04 10:45:02,498 - INFO - -------------------------------------------------------------------------------- 2026-11-04 10:45:03,261 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-54494743, ID : e59bfb27-c813-47ad-83b4-0a0aa47b2429