2026-05-29 17:37:13,410 - INFO - Domain Default found not creating 2026-05-29 17:37:13,579 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-90494239 not found, creating it 2026-05-29 17:37:14,080 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-90494239, ID : 3201d429-31c5-4291-9457-1b95613b5513 2026-05-29 17:37:15,612 - INFO - ================================================================================ 2026-05-29 17:37:15,612 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-29 17:37:15,874 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-29 17:37:15,874 - INFO - Initial checks done. Running the testcase now 2026-05-29 17:37:15,874 - INFO - 2026-05-29 17:37:15,875 - INFO - ================================================================================ 2026-05-29 17:37:15,875 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-29 17:37:15,875 - 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-05-29 17:37:16,170 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-29 17:37:16,170 - INFO - Initial checks done. Running the testcase now 2026-05-29 17:37:16,171 - INFO - 2026-05-29 17:37:16,539 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90494239:ctest-vn4-27635708, 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-90494239:ctest-vn4-27635708, 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-90494239:ctest-vn4-27635708, 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-90494239:ctest-vn4-27635708, 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-05-29 17:37:17,077 - DEBUG - Response for create_network : {'network': {'id': '5dbd72bd-4b4f-4c8f-a3b7-8663c8f8ee4e', 'name': 'ctest-vn4-27635708', 'tenant_id': '3201d42931c5429194571b95613b5513', 'project_id': '3201d42931c5429194571b95613b5513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90494239', 'ctest-vn4-27635708'], 'port_security_enabled': True, 'description': ''}} 2026-05-29 17:37:17,290 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba120aa4-ef7c-4336-bdd5-044ba5c6a7e9', 'name': '', 'tenant_id': '3201d42931c5429194571b95613b5513', 'network_id': '5dbd72bd-4b4f-4c8f-a3b7-8663c8f8ee4e', 'ip_version': 4, 'cidr': '45.247.59.128/26', 'allocation_pools': [{'start': '45.247.59.130', 'end': '45.247.59.190'}], 'gateway_ip': '45.247.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.247.59.130', 'tags': [], 'project_id': '3201d42931c5429194571b95613b5513'}} 2026-05-29 17:37:17,486 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f380f4c7-eca5-46e7-b157-5da755c9f581', 'name': '', 'tenant_id': '3201d42931c5429194571b95613b5513', 'network_id': '5dbd72bd-4b4f-4c8f-a3b7-8663c8f8ee4e', 'ip_version': 6, 'cidr': '2296:ff56:c9e8:b75c:4b87:3eea::/96', 'allocation_pools': [{'start': '2296:ff56:c9e8:b75c:4b87:3eea:0:2', 'end': '2296:ff56:c9e8:b75c:4b87:3eea:ffff:fffe'}], 'gateway_ip': '2296:ff56:c9e8:b75c:4b87:3eea:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2296:ff56:c9e8:b75c:4b87:3eea:0:2', 'tags': [], 'project_id': '3201d42931c5429194571b95613b5513'}} 2026-05-29 17:37:17,507 - INFO - Created VN ctest-vn4-27635708 2026-05-29 17:37:17,561 - DEBUG - VN ctest-vn4-27635708 UUID is 5dbd72bd-4b4f-4c8f-a3b7-8663c8f8ee4e 2026-05-29 17:37:17,775 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5dbd72bd-4b4f-4c8f-a3b7-8663c8f8ee4e', 'name': 'ctest-vn4-27635708', 'tenant_id': '3201d42931c5429194571b95613b5513', 'project_id': '3201d42931c5429194571b95613b5513', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba120aa4-ef7c-4336-bdd5-044ba5c6a7e9', 'f380f4c7-eca5-46e7-b157-5da755c9f581'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90494239', 'ctest-vn4-27635708'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90494239', 'ctest-policy1-94237713']], 'subnet_ipam': [{'subnet_cidr': '45.247.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2296:ff56:c9e8:b75c:4b87:3eea::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-29 17:37:17,933 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-29 17:37:18,230 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-29 17:37:18,262 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3a0f1d13-475c-4e43-a4c1-701be370f3b8 2026-05-29 17:37:18,274 - DEBUG - Requesting: http://10.0.0.50:8082/project/3201d429-31c5-4291-9457-1b95613b5513 2026-05-29 17:37:18,347 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5dbd72bd-4b4f-4c8f-a3b7-8663c8f8ee4e 2026-05-29 17:37:18,358 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5dbd72bd-4b4f-4c8f-a3b7-8663c8f8ee4e 2026-05-29 17:37:18,368 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c5d884b2-38b7-45c0-837c-d1d2ab51c41a 2026-05-29 17:37:18,375 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c5d884b2-38b7-45c0-837c-d1d2ab51c41a 2026-05-29 17:37:18,382 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e8fdc2fa-216a-4b01-8569-1f364ba750fe 2026-05-29 17:37:18,389 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-29 17:37:18,389 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5dbd72bd-4b4f-4c8f-a3b7-8663c8f8ee4e 2026-05-29 17:37:18,399 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c5d884b2-38b7-45c0-837c-d1d2ab51c41a 2026-05-29 17:37:18,414 - INFO - Verified VN network id 11 for VN 5dbd72bd-4b4f-4c8f-a3b7-8663c8f8ee4e 2026-05-29 17:37:18,414 - INFO - Verifications in API Server for VN ctest-vn4-27635708 passed 2026-05-29 17:37:18,414 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5dbd72bd-4b4f-4c8f-a3b7-8663c8f8ee4e 2026-05-29 17:37:18,423 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c5d884b2-38b7-45c0-837c-d1d2ab51c41a 2026-05-29 17:37:18,430 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c5d884b2-38b7-45c0-837c-d1d2ab51c41a 2026-05-29 17:37:18,437 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e8fdc2fa-216a-4b01-8569-1f364ba750fe 2026-05-29 17:37:18,450 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90494239:ctest-vn4-27635708', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90494239', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6754681173463485583', 'uuid-lslong': '11797045512051945038'}, 'enable': 'true', 'created': '2026-05-29T17:37:17', 'last-modified': '2026-05-29T17:37:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.709891'} 2026-05-29 17:37:18,457 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-29 17:37:18,457 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27635708 passed 2026-05-29 17:37:18,457 - DEBUG - ====Verifying policy data for ctest-vn4-27635708 in API_Server ====== 2026-05-29 17:37:18,457 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-29 17:37:18,464 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3a0f1d13-475c-4e43-a4c1-701be370f3b8 2026-05-29 17:37:18,477 - DEBUG - Requesting: http://10.0.0.50:8082/project/3201d429-31c5-4291-9457-1b95613b5513 2026-05-29 17:37:18,546 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5dbd72bd-4b4f-4c8f-a3b7-8663c8f8ee4e 2026-05-29 17:37:18,556 - DEBUG - ==>Verifying data for policy with id: a91b2eed-c6d2-4ea6-abf7-1785ceb0d25f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90494239', 'ctest-policy1-94237713'] 2026-05-29 17:37:18,556 - INFO - VN ctest-vn4-27635708 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-29 17:37:18,556 - DEBUG - Verifying the vn in opserver 2026-05-29 17:37:18,556 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90494239:ctest-vn4-27635708 virtual network link through opserver 10.0.0.50 2026-05-29 17:37:18,556 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-29 17:37:18,850 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-29 17:37:18,915 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90494239:ctest-vn4-27635708', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90494239:ctest-vn4-27635708?flat'} 2026-05-29 17:37:18,915 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-90494239:ctest-vn4-27635708 is found in opserver 2026-05-29 17:37:18,926 - DEBUG - Do not have enough data to verify VN in agent 2026-05-29 17:37:18,931 - DEBUG - VRF ids for VN ctest-vn4-27635708: {} 2026-05-29 17:37:18,931 - DEBUG - ====Verifying data for ctest-policy1-94237713 in API_Server ====== 2026-05-29 17:37:18,931 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-29 17:37:18,937 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3a0f1d13-475c-4e43-a4c1-701be370f3b8 2026-05-29 17:37:18,949 - DEBUG - Requesting: http://10.0.0.50:8082/project/3201d429-31c5-4291-9457-1b95613b5513 2026-05-29 17:37:19,017 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/a91b2eed-c6d2-4ea6-abf7-1785ceb0d25f 2026-05-29 17:37:19,027 - INFO - Verified policy ctest-policy1-94237713 in API Server, Result: True 2026-05-29 17:37:19,027 - INFO - Done with setup and verification, moving onto test .. 2026-05-29 17:37:19,035 - INFO - Deleting VN ctest-vn4-27635708 2026-05-29 17:37:19,155 - DEBUG - Response for deleting network () 2026-05-29 17:37:19,155 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c5d884b2-38b7-45c0-837c-d1d2ab51c41a 2026-05-29 17:37:19,162 - DEBUG - Response Code: 404 2026-05-29 17:37:19,162 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-29 17:37:19,168 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3a0f1d13-475c-4e43-a4c1-701be370f3b8 2026-05-29 17:37:19,222 - DEBUG - Requesting: http://10.0.0.50:8082/project/3201d429-31c5-4291-9457-1b95613b5513 2026-05-29 17:37:19,300 - INFO - Validated that VN ctest-vn4-27635708 is not found in API Server 2026-05-29 17:37:19,311 - DEBUG - VN ctest-vn4-27635708 is not present in Agent 10.0.0.50 2026-05-29 17:37:19,311 - INFO - Validated that VN ctest-vn4-27635708 is not in any agent 2026-05-29 17:37:19,329 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27635708 info 2026-05-29 17:37:19,355 - INFO - Deleted policy ctest-policy1-94237713 2026-05-29 17:37:19,525 - DEBUG - policy ctest-policy1-94237713 is not found in API Server 2026-05-29 17:37:19,780 - DEBUG - No XMPP flaps were noticed during the test 2026-05-29 17:37:19,780 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-29 17:37:19,780 - INFO - -------------------------------------------------------------------------------- 2026-05-29 17:37:20,071 - DEBUG - No XMPP flaps were noticed during the test 2026-05-29 17:37:20,071 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-05-29 17:37:20,072 - INFO - -------------------------------------------------------------------------------- 2026-05-29 17:37:20,778 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-90494239, ID : 3201d429-31c5-4291-9457-1b95613b5513