2026-08-21 13:32:26,698 - INFO - Domain Default found not creating 2026-08-21 13:32:26,882 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-16101600 not found, creating it 2026-08-21 13:32:27,359 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-16101600, ID : 9053b5b7-3d45-4772-abfe-9cc10e0cbc2a 2026-08-21 13:32:29,138 - INFO - ================================================================================ 2026-08-21 13:32:29,139 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 13:32:29,410 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.17': '0'}} with 2026-08-21 13:32:29,410 - INFO - Initial checks done. Running the testcase now 2026-08-21 13:32:29,410 - INFO - 2026-08-21 13:32:29,410 - INFO - ================================================================================ 2026-08-21 13:32:29,410 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 13:32:29,411 - 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-21 13:32:29,697 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.17': '0'}} with 2026-08-21 13:32:29,698 - INFO - Initial checks done. Running the testcase now 2026-08-21 13:32:29,698 - INFO - 2026-08-21 13:32:30,131 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16101600:ctest-vn4-27847386, 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-16101600:ctest-vn4-27847386, 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-16101600:ctest-vn4-27847386, 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-16101600:ctest-vn4-27847386, 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-21 13:32:30,682 - DEBUG - Response for create_network : {'network': {'id': '8c663983-3beb-4faa-a728-7e8e6306abc8', 'name': 'ctest-vn4-27847386', 'tenant_id': '9053b5b73d454772abfe9cc10e0cbc2a', 'project_id': '9053b5b73d454772abfe9cc10e0cbc2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16101600', 'ctest-vn4-27847386'], 'port_security_enabled': True, 'description': ''}} 2026-08-21 13:32:30,847 - DEBUG - Response for create_subnet : {'subnet': {'id': '89b16974-8704-4ce9-ab0a-658b8926adfe', 'name': '', 'tenant_id': '9053b5b73d454772abfe9cc10e0cbc2a', 'network_id': '8c663983-3beb-4faa-a728-7e8e6306abc8', 'ip_version': 4, 'cidr': '128.227.204.128/26', 'allocation_pools': [{'start': '128.227.204.130', 'end': '128.227.204.190'}], 'gateway_ip': '128.227.204.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.227.204.130', 'tags': [], 'project_id': '9053b5b73d454772abfe9cc10e0cbc2a'}} 2026-08-21 13:32:31,075 - DEBUG - Response for create_subnet : {'subnet': {'id': '09e2dd53-d093-42c9-9c53-2235b5a70ca7', 'name': '', 'tenant_id': '9053b5b73d454772abfe9cc10e0cbc2a', 'network_id': '8c663983-3beb-4faa-a728-7e8e6306abc8', 'ip_version': 6, 'cidr': '3e67:cce6:2de9:e57b:5380:3888::/96', 'allocation_pools': [{'start': '3e67:cce6:2de9:e57b:5380:3888:0:2', 'end': '3e67:cce6:2de9:e57b:5380:3888:ffff:fffe'}], 'gateway_ip': '3e67:cce6:2de9:e57b:5380:3888:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e67:cce6:2de9:e57b:5380:3888:0:2', 'tags': [], 'project_id': '9053b5b73d454772abfe9cc10e0cbc2a'}} 2026-08-21 13:32:31,095 - INFO - Created VN ctest-vn4-27847386 2026-08-21 13:32:31,152 - DEBUG - VN ctest-vn4-27847386 UUID is 8c663983-3beb-4faa-a728-7e8e6306abc8 2026-08-21 13:32:31,368 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8c663983-3beb-4faa-a728-7e8e6306abc8', 'name': 'ctest-vn4-27847386', 'tenant_id': '9053b5b73d454772abfe9cc10e0cbc2a', 'project_id': '9053b5b73d454772abfe9cc10e0cbc2a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['89b16974-8704-4ce9-ab0a-658b8926adfe', '09e2dd53-d093-42c9-9c53-2235b5a70ca7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16101600', 'ctest-vn4-27847386'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16101600', 'ctest-policy1-37760171']], 'subnet_ipam': [{'subnet_cidr': '128.227.204.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e67:cce6:2de9:e57b:5380:3888::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-21 13:32:31,536 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-21 13:32:31,909 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-21 13:32:31,940 - DEBUG - Requesting: http://10.0.0.162:8082/domain/4583c65d-bcaa-4340-908a-0dcf61eff8ff 2026-08-21 13:32:31,956 - DEBUG - Requesting: http://10.0.0.162:8082/project/9053b5b7-3d45-4772-abfe-9cc10e0cbc2a 2026-08-21 13:32:32,039 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/8c663983-3beb-4faa-a728-7e8e6306abc8 2026-08-21 13:32:32,052 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/8c663983-3beb-4faa-a728-7e8e6306abc8 2026-08-21 13:32:32,062 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/caaecf05-f1b1-48a7-9eb8-05486996142f 2026-08-21 13:32:32,071 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/caaecf05-f1b1-48a7-9eb8-05486996142f 2026-08-21 13:32:32,078 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/061dabbc-4522-4e20-8ae9-40af422f1a0e 2026-08-21 13:32:32,085 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-21 13:32:32,085 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/8c663983-3beb-4faa-a728-7e8e6306abc8 2026-08-21 13:32:32,095 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/caaecf05-f1b1-48a7-9eb8-05486996142f 2026-08-21 13:32:32,110 - INFO - Verified VN network id 11 for VN 8c663983-3beb-4faa-a728-7e8e6306abc8 2026-08-21 13:32:32,110 - INFO - Verifications in API Server for VN ctest-vn4-27847386 passed 2026-08-21 13:32:32,110 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/8c663983-3beb-4faa-a728-7e8e6306abc8 2026-08-21 13:32:32,120 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/caaecf05-f1b1-48a7-9eb8-05486996142f 2026-08-21 13:32:32,128 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/caaecf05-f1b1-48a7-9eb8-05486996142f 2026-08-21 13:32:32,135 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/061dabbc-4522-4e20-8ae9-40af422f1a0e 2026-08-21 13:32:32,148 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16101600:ctest-vn4-27847386', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16101600', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10116836848743174058', 'uuid-lslong': '12045016353414228936'}, 'enable': 'true', 'created': '2026-08-21T13:32:30', 'last-modified': '2026-08-21T13:32:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.815137'} 2026-08-21 13:32:32,155 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-21 13:32:32,155 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27847386 passed 2026-08-21 13:32:32,155 - DEBUG - ====Verifying policy data for ctest-vn4-27847386 in API_Server ====== 2026-08-21 13:32:32,155 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-21 13:32:32,162 - DEBUG - Requesting: http://10.0.0.162:8082/domain/4583c65d-bcaa-4340-908a-0dcf61eff8ff 2026-08-21 13:32:32,175 - DEBUG - Requesting: http://10.0.0.162:8082/project/9053b5b7-3d45-4772-abfe-9cc10e0cbc2a 2026-08-21 13:32:32,253 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/8c663983-3beb-4faa-a728-7e8e6306abc8 2026-08-21 13:32:32,266 - DEBUG - ==>Verifying data for policy with id: b85f81f3-bfdd-45b2-92c7-55fca109a577, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16101600', 'ctest-policy1-37760171'] 2026-08-21 13:32:32,266 - INFO - VN ctest-vn4-27847386 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-21 13:32:32,266 - DEBUG - Verifying the vn in opserver 2026-08-21 13:32:32,266 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16101600:ctest-vn4-27847386 virtual network link through opserver 10.0.0.162 2026-08-21 13:32:32,266 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-08-21 13:32:32,633 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-08-21 13:32:32,685 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16101600:ctest-vn4-27847386', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16101600:ctest-vn4-27847386?flat'} 2026-08-21 13:32:32,685 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16101600:ctest-vn4-27847386 is found in opserver 2026-08-21 13:32:32,696 - DEBUG - Do not have enough data to verify VN in agent 2026-08-21 13:32:32,702 - DEBUG - VRF ids for VN ctest-vn4-27847386: {} 2026-08-21 13:32:32,702 - DEBUG - ====Verifying data for ctest-policy1-37760171 in API_Server ====== 2026-08-21 13:32:32,703 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-21 13:32:32,710 - DEBUG - Requesting: http://10.0.0.162:8082/domain/4583c65d-bcaa-4340-908a-0dcf61eff8ff 2026-08-21 13:32:32,720 - DEBUG - Requesting: http://10.0.0.162:8082/project/9053b5b7-3d45-4772-abfe-9cc10e0cbc2a 2026-08-21 13:32:32,799 - DEBUG - Requesting: http://10.0.0.162:8082/network-policy/b85f81f3-bfdd-45b2-92c7-55fca109a577 2026-08-21 13:32:32,810 - INFO - Verified policy ctest-policy1-37760171 in API Server, Result: True 2026-08-21 13:32:32,810 - INFO - Done with setup and verification, moving onto test .. 2026-08-21 13:32:32,818 - INFO - Deleting VN ctest-vn4-27847386 2026-08-21 13:32:32,952 - DEBUG - Response for deleting network () 2026-08-21 13:32:32,952 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/caaecf05-f1b1-48a7-9eb8-05486996142f 2026-08-21 13:32:32,958 - DEBUG - Response Code: 404 2026-08-21 13:32:32,958 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-21 13:32:32,964 - DEBUG - Requesting: http://10.0.0.162:8082/domain/4583c65d-bcaa-4340-908a-0dcf61eff8ff 2026-08-21 13:32:33,022 - DEBUG - Requesting: http://10.0.0.162:8082/project/9053b5b7-3d45-4772-abfe-9cc10e0cbc2a 2026-08-21 13:32:33,099 - INFO - Validated that VN ctest-vn4-27847386 is not found in API Server 2026-08-21 13:32:33,111 - DEBUG - VN ctest-vn4-27847386 is not present in Agent 10.0.0.162 2026-08-21 13:32:33,111 - INFO - Validated that VN ctest-vn4-27847386 is not in any agent 2026-08-21 13:32:33,125 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27847386 info 2026-08-21 13:32:33,149 - INFO - Deleted policy ctest-policy1-37760171 2026-08-21 13:32:33,315 - DEBUG - policy ctest-policy1-37760171 is not found in API Server 2026-08-21 13:32:33,584 - DEBUG - No XMPP flaps were noticed during the test