2026-08-14 17:24:10,956 - INFO - Domain Default found not creating 2026-08-14 17:24:11,162 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67574795 not found, creating it 2026-08-14 17:24:11,692 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67574795, ID : 0cca10c7-9776-41bd-a615-91c4a057f01c 2026-08-14 17:24:13,548 - INFO - ================================================================================ 2026-08-14 17:24:13,548 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-14 17:24:13,825 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.17': '0'}} with 2026-08-14 17:24:13,825 - INFO - Initial checks done. Running the testcase now 2026-08-14 17:24:13,825 - INFO - 2026-08-14 17:24:13,825 - INFO - ================================================================================ 2026-08-14 17:24:13,825 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-14 17:24:13,826 - 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-08-14 17:24:14,129 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.17': '0'}} with 2026-08-14 17:24:14,129 - INFO - Initial checks done. Running the testcase now 2026-08-14 17:24:14,129 - INFO - 2026-08-14 17:24:14,605 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67574795:ctest-vn4-20575665, 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-67574795:ctest-vn4-20575665, 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-67574795:ctest-vn4-20575665, 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-67574795:ctest-vn4-20575665, 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-08-14 17:24:15,198 - DEBUG - Response for create_network : {'network': {'id': '83a8cc1d-2341-4c74-b922-2e55f8ce98d1', 'name': 'ctest-vn4-20575665', 'tenant_id': '0cca10c7977641bda61591c4a057f01c', 'project_id': '0cca10c7977641bda61591c4a057f01c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67574795', 'ctest-vn4-20575665'], 'port_security_enabled': True, 'description': ''}} 2026-08-14 17:24:15,439 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d8dfb1f-eab9-48b7-b073-210a96760277', 'name': '', 'tenant_id': '0cca10c7977641bda61591c4a057f01c', 'network_id': '83a8cc1d-2341-4c74-b922-2e55f8ce98d1', 'ip_version': 4, 'cidr': '221.62.16.64/26', 'allocation_pools': [{'start': '221.62.16.66', 'end': '221.62.16.126'}], 'gateway_ip': '221.62.16.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.62.16.66', 'tags': [], 'project_id': '0cca10c7977641bda61591c4a057f01c'}} 2026-08-14 17:24:15,633 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5e10c0f-64d5-4b67-9de3-42455ee4a4a1', 'name': '', 'tenant_id': '0cca10c7977641bda61591c4a057f01c', 'network_id': '83a8cc1d-2341-4c74-b922-2e55f8ce98d1', 'ip_version': 6, 'cidr': '2e8f:7e0a:f5:af2e:2d2f:cd7c::/96', 'allocation_pools': [{'start': '2e8f:7e0a:f5:af2e:2d2f:cd7c:0:2', 'end': '2e8f:7e0a:f5:af2e:2d2f:cd7c:ffff:fffe'}], 'gateway_ip': '2e8f:7e0a:f5:af2e:2d2f:cd7c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e8f:7e0a:f5:af2e:2d2f:cd7c:0:2', 'tags': [], 'project_id': '0cca10c7977641bda61591c4a057f01c'}} 2026-08-14 17:24:15,654 - INFO - Created VN ctest-vn4-20575665 2026-08-14 17:24:15,711 - DEBUG - VN ctest-vn4-20575665 UUID is 83a8cc1d-2341-4c74-b922-2e55f8ce98d1 2026-08-14 17:24:15,958 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '83a8cc1d-2341-4c74-b922-2e55f8ce98d1', 'name': 'ctest-vn4-20575665', 'tenant_id': '0cca10c7977641bda61591c4a057f01c', 'project_id': '0cca10c7977641bda61591c4a057f01c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d8dfb1f-eab9-48b7-b073-210a96760277', 'c5e10c0f-64d5-4b67-9de3-42455ee4a4a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67574795', 'ctest-vn4-20575665'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67574795', 'ctest-policy1-47679580']], 'subnet_ipam': [{'subnet_cidr': '221.62.16.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e8f:7e0a:f5:af2e:2d2f:cd7c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-14 17:24:16,123 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-14 17:24:16,491 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-14 17:24:16,526 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c6a1433e-a96d-4510-bc4e-5b4db46bda40 2026-08-14 17:24:16,543 - DEBUG - Requesting: http://10.0.0.162:8082/project/0cca10c7-9776-41bd-a615-91c4a057f01c 2026-08-14 17:24:16,630 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/83a8cc1d-2341-4c74-b922-2e55f8ce98d1 2026-08-14 17:24:16,646 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/83a8cc1d-2341-4c74-b922-2e55f8ce98d1 2026-08-14 17:24:16,660 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/d3692512-ad67-452d-a6ab-089291a29ed2 2026-08-14 17:24:16,670 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/d3692512-ad67-452d-a6ab-089291a29ed2 2026-08-14 17:24:16,679 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/4e2792b4-f1ee-464d-9a68-fe5f2908eb62 2026-08-14 17:24:16,687 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-14 17:24:16,687 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/83a8cc1d-2341-4c74-b922-2e55f8ce98d1 2026-08-14 17:24:16,700 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/d3692512-ad67-452d-a6ab-089291a29ed2 2026-08-14 17:24:16,720 - INFO - Verified VN network id 12 for VN 83a8cc1d-2341-4c74-b922-2e55f8ce98d1 2026-08-14 17:24:16,720 - INFO - Verifications in API Server for VN ctest-vn4-20575665 passed 2026-08-14 17:24:16,720 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/83a8cc1d-2341-4c74-b922-2e55f8ce98d1 2026-08-14 17:24:16,733 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/d3692512-ad67-452d-a6ab-089291a29ed2 2026-08-14 17:24:16,743 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/d3692512-ad67-452d-a6ab-089291a29ed2 2026-08-14 17:24:16,752 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/4e2792b4-f1ee-464d-9a68-fe5f2908eb62 2026-08-14 17:24:16,769 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67574795:ctest-vn4-20575665', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67574795', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9487057040573549684', 'uuid-lslong': '13340275993006217425'}, 'enable': 'true', 'created': '2026-08-14T17:24:15', 'last-modified': '2026-08-14T17:24:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.849359'} 2026-08-14 17:24:16,779 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-14 17:24:16,779 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20575665 passed 2026-08-14 17:24:16,779 - DEBUG - ====Verifying policy data for ctest-vn4-20575665 in API_Server ====== 2026-08-14 17:24:16,779 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-14 17:24:16,786 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c6a1433e-a96d-4510-bc4e-5b4db46bda40 2026-08-14 17:24:16,800 - DEBUG - Requesting: http://10.0.0.162:8082/project/0cca10c7-9776-41bd-a615-91c4a057f01c 2026-08-14 17:24:16,878 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/83a8cc1d-2341-4c74-b922-2e55f8ce98d1 2026-08-14 17:24:16,890 - DEBUG - ==>Verifying data for policy with id: 702d622b-900e-444a-b637-5390af3af743, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67574795', 'ctest-policy1-47679580'] 2026-08-14 17:24:16,890 - INFO - VN ctest-vn4-20575665 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-14 17:24:16,890 - DEBUG - Verifying the vn in opserver 2026-08-14 17:24:16,890 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67574795:ctest-vn4-20575665 virtual network link through opserver 10.0.0.162 2026-08-14 17:24:16,891 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-08-14 17:24:17,275 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-08-14 17:24:17,342 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67574795:ctest-vn4-20575665', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67574795:ctest-vn4-20575665?flat'} 2026-08-14 17:24:17,342 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67574795:ctest-vn4-20575665 is found in opserver 2026-08-14 17:24:17,356 - DEBUG - Do not have enough data to verify VN in agent 2026-08-14 17:24:17,361 - DEBUG - VRF ids for VN ctest-vn4-20575665: {} 2026-08-14 17:24:17,362 - DEBUG - ====Verifying data for ctest-policy1-47679580 in API_Server ====== 2026-08-14 17:24:17,362 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-14 17:24:17,368 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c6a1433e-a96d-4510-bc4e-5b4db46bda40 2026-08-14 17:24:17,382 - DEBUG - Requesting: http://10.0.0.162:8082/project/0cca10c7-9776-41bd-a615-91c4a057f01c 2026-08-14 17:24:17,474 - DEBUG - Requesting: http://10.0.0.162:8082/network-policy/702d622b-900e-444a-b637-5390af3af743 2026-08-14 17:24:17,486 - INFO - Verified policy ctest-policy1-47679580 in API Server, Result: True 2026-08-14 17:24:17,486 - INFO - Done with setup and verification, moving onto test .. 2026-08-14 17:24:17,497 - INFO - Deleting VN ctest-vn4-20575665 2026-08-14 17:24:17,654 - DEBUG - Response for deleting network () 2026-08-14 17:24:17,654 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/d3692512-ad67-452d-a6ab-089291a29ed2 2026-08-14 17:24:17,661 - DEBUG - Response Code: 404 2026-08-14 17:24:17,661 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-14 17:24:17,669 - DEBUG - Requesting: http://10.0.0.162:8082/domain/c6a1433e-a96d-4510-bc4e-5b4db46bda40 2026-08-14 17:24:17,725 - DEBUG - Requesting: http://10.0.0.162:8082/project/0cca10c7-9776-41bd-a615-91c4a057f01c 2026-08-14 17:24:17,807 - INFO - Validated that VN ctest-vn4-20575665 is not found in API Server 2026-08-14 17:24:17,821 - DEBUG - VN ctest-vn4-20575665 is not present in Agent 10.0.0.162 2026-08-14 17:24:17,821 - INFO - Validated that VN ctest-vn4-20575665 is not in any agent 2026-08-14 17:24:17,839 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20575665 info 2026-08-14 17:24:17,873 - INFO - Deleted policy ctest-policy1-47679580 2026-08-14 17:24:18,059 - DEBUG - policy ctest-policy1-47679580 is not found in API Server 2026-08-14 17:24:18,337 - DEBUG - No XMPP flaps were noticed during the test