2026-06-18 03:19:00,163 - INFO - Domain Default found not creating 2026-06-18 03:19:00,352 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51036471 not found, creating it 2026-06-18 03:19:00,836 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51036471, ID : 6bac07b1-b24f-47dd-bda9-09da443b0de1 2026-06-18 03:19:02,614 - INFO - ================================================================================ 2026-06-18 03:19:02,614 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 03:19:02,885 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-06-18 03:19:02,885 - INFO - Initial checks done. Running the testcase now 2026-06-18 03:19:02,885 - INFO - 2026-06-18 03:19:02,885 - INFO - ================================================================================ 2026-06-18 03:19:02,885 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 03:19:02,885 - 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-06-18 03:19:03,168 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-06-18 03:19:03,168 - INFO - Initial checks done. Running the testcase now 2026-06-18 03:19:03,168 - INFO - 2026-06-18 03:19:03,643 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51036471:ctest-vn4-15729830, 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-51036471:ctest-vn4-15729830, 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-51036471:ctest-vn4-15729830, 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-51036471:ctest-vn4-15729830, 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-06-18 03:19:04,176 - DEBUG - Response for create_network : {'network': {'id': '0aae849d-65a5-4a92-9188-487c914f437d', 'name': 'ctest-vn4-15729830', 'tenant_id': '6bac07b1b24f47ddbda909da443b0de1', 'project_id': '6bac07b1b24f47ddbda909da443b0de1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51036471', 'ctest-vn4-15729830'], 'port_security_enabled': True, 'description': ''}} 2026-06-18 03:19:04,369 - DEBUG - Response for create_subnet : {'subnet': {'id': '7da7034e-60b7-49b3-9c41-7f98d4bbeff2', 'name': '', 'tenant_id': '6bac07b1b24f47ddbda909da443b0de1', 'network_id': '0aae849d-65a5-4a92-9188-487c914f437d', 'ip_version': 4, 'cidr': '14.88.2.64/26', 'allocation_pools': [{'start': '14.88.2.66', 'end': '14.88.2.126'}], 'gateway_ip': '14.88.2.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.88.2.66', 'tags': [], 'project_id': '6bac07b1b24f47ddbda909da443b0de1'}} 2026-06-18 03:19:04,541 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fdd2496a-5905-439c-ab59-0b8017a7f83c', 'name': '', 'tenant_id': '6bac07b1b24f47ddbda909da443b0de1', 'network_id': '0aae849d-65a5-4a92-9188-487c914f437d', 'ip_version': 6, 'cidr': '26bd:968b:5c42:8444:8b32:b772::/96', 'allocation_pools': [{'start': '26bd:968b:5c42:8444:8b32:b772:0:2', 'end': '26bd:968b:5c42:8444:8b32:b772:ffff:fffe'}], 'gateway_ip': '26bd:968b:5c42:8444:8b32:b772:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '26bd:968b:5c42:8444:8b32:b772:0:2', 'tags': [], 'project_id': '6bac07b1b24f47ddbda909da443b0de1'}} 2026-06-18 03:19:04,628 - INFO - Created VN ctest-vn4-15729830 2026-06-18 03:19:04,680 - DEBUG - VN ctest-vn4-15729830 UUID is 0aae849d-65a5-4a92-9188-487c914f437d 2026-06-18 03:19:04,924 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0aae849d-65a5-4a92-9188-487c914f437d', 'name': 'ctest-vn4-15729830', 'tenant_id': '6bac07b1b24f47ddbda909da443b0de1', 'project_id': '6bac07b1b24f47ddbda909da443b0de1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7da7034e-60b7-49b3-9c41-7f98d4bbeff2', 'fdd2496a-5905-439c-ab59-0b8017a7f83c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51036471', 'ctest-vn4-15729830'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51036471', 'ctest-policy1-10598366']], 'subnet_ipam': [{'subnet_cidr': '14.88.2.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '26bd:968b:5c42:8444:8b32:b772::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-18 03:19:05,095 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-18 03:19:05,464 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-18 03:19:05,500 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9369bf0e-5631-4873-8f80-d9800c422993 2026-06-18 03:19:05,515 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bac07b1-b24f-47dd-bda9-09da443b0de1 2026-06-18 03:19:05,594 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0aae849d-65a5-4a92-9188-487c914f437d 2026-06-18 03:19:05,608 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0aae849d-65a5-4a92-9188-487c914f437d 2026-06-18 03:19:05,619 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4b3dc8b2-8a95-4d08-ad1d-0f4b3adbc0ff 2026-06-18 03:19:05,626 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4b3dc8b2-8a95-4d08-ad1d-0f4b3adbc0ff 2026-06-18 03:19:05,634 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/08ef5716-ea67-40fa-b1bc-8730481b874e 2026-06-18 03:19:05,641 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 03:19:05,641 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0aae849d-65a5-4a92-9188-487c914f437d 2026-06-18 03:19:05,651 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4b3dc8b2-8a95-4d08-ad1d-0f4b3adbc0ff 2026-06-18 03:19:05,664 - INFO - Verified VN network id 10 for VN 0aae849d-65a5-4a92-9188-487c914f437d 2026-06-18 03:19:05,664 - INFO - Verifications in API Server for VN ctest-vn4-15729830 passed 2026-06-18 03:19:05,664 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0aae849d-65a5-4a92-9188-487c914f437d 2026-06-18 03:19:05,674 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4b3dc8b2-8a95-4d08-ad1d-0f4b3adbc0ff 2026-06-18 03:19:05,681 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4b3dc8b2-8a95-4d08-ad1d-0f4b3adbc0ff 2026-06-18 03:19:05,690 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/08ef5716-ea67-40fa-b1bc-8730481b874e 2026-06-18 03:19:05,703 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51036471:ctest-vn4-15729830', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51036471', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '769698397876996754', 'uuid-lslong': '10486711432183235453'}, 'enable': 'true', 'created': '2026-06-18T03:19:04', 'last-modified': '2026-06-18T03:19:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.813580'} 2026-06-18 03:19:05,711 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 03:19:05,711 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15729830 passed 2026-06-18 03:19:05,711 - DEBUG - ====Verifying policy data for ctest-vn4-15729830 in API_Server ====== 2026-06-18 03:19:05,711 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-18 03:19:05,719 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9369bf0e-5631-4873-8f80-d9800c422993 2026-06-18 03:19:05,732 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bac07b1-b24f-47dd-bda9-09da443b0de1 2026-06-18 03:19:05,807 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/0aae849d-65a5-4a92-9188-487c914f437d 2026-06-18 03:19:05,818 - DEBUG - ==>Verifying data for policy with id: d7a85aac-c082-4bc4-967c-ac6894e6ccdd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51036471', 'ctest-policy1-10598366'] 2026-06-18 03:19:05,818 - INFO - VN ctest-vn4-15729830 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-18 03:19:05,818 - DEBUG - Verifying the vn in opserver 2026-06-18 03:19:05,818 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51036471:ctest-vn4-15729830 virtual network link through opserver 10.0.0.22 2026-06-18 03:19:05,818 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-06-18 03:19:06,196 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-06-18 03:19:06,254 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51036471:ctest-vn4-15729830', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51036471:ctest-vn4-15729830?flat'} 2026-06-18 03:19:06,254 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51036471:ctest-vn4-15729830 is found in opserver 2026-06-18 03:19:06,264 - DEBUG - Do not have enough data to verify VN in agent 2026-06-18 03:19:06,269 - DEBUG - VRF ids for VN ctest-vn4-15729830: {} 2026-06-18 03:19:06,270 - DEBUG - ====Verifying data for ctest-policy1-10598366 in API_Server ====== 2026-06-18 03:19:06,270 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-18 03:19:06,275 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9369bf0e-5631-4873-8f80-d9800c422993 2026-06-18 03:19:06,286 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bac07b1-b24f-47dd-bda9-09da443b0de1 2026-06-18 03:19:06,359 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/d7a85aac-c082-4bc4-967c-ac6894e6ccdd 2026-06-18 03:19:06,371 - INFO - Verified policy ctest-policy1-10598366 in API Server, Result: True 2026-06-18 03:19:06,371 - INFO - Done with setup and verification, moving onto test .. 2026-06-18 03:19:06,381 - INFO - Deleting VN ctest-vn4-15729830 2026-06-18 03:19:06,513 - DEBUG - Response for deleting network () 2026-06-18 03:19:06,513 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4b3dc8b2-8a95-4d08-ad1d-0f4b3adbc0ff 2026-06-18 03:19:06,519 - DEBUG - Response Code: 404 2026-06-18 03:19:06,519 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-18 03:19:06,525 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9369bf0e-5631-4873-8f80-d9800c422993 2026-06-18 03:19:06,581 - DEBUG - Requesting: http://10.0.0.22:8082/project/6bac07b1-b24f-47dd-bda9-09da443b0de1 2026-06-18 03:19:06,656 - INFO - Validated that VN ctest-vn4-15729830 is not found in API Server 2026-06-18 03:19:06,667 - DEBUG - VN ctest-vn4-15729830 is not present in Agent 10.0.0.22 2026-06-18 03:19:06,667 - INFO - Validated that VN ctest-vn4-15729830 is not in any agent 2026-06-18 03:19:06,682 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15729830 info 2026-06-18 03:19:06,714 - INFO - Deleted policy ctest-policy1-10598366 2026-06-18 03:19:06,891 - DEBUG - policy ctest-policy1-10598366 is not found in API Server 2026-06-18 03:19:07,158 - DEBUG - No XMPP flaps were noticed during the test
2026-06-18 03:19:07,158 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-06-18 03:19:07,158 - INFO - -------------------------------------------------------------------------------- 2026-06-18 03:19:07,444 - DEBUG - No XMPP flaps were noticed during the test
2026-06-18 03:19:07,444 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-06-18 03:19:07,444 - INFO - -------------------------------------------------------------------------------- 2026-06-18 03:19:08,222 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-51036471, ID : 6bac07b1-b24f-47dd-bda9-09da443b0de1