2026-04-09 01:50:40,988 - INFO - Reading existing Domain with UUID 549f21b8-1b18-436e-a6d1-a3af077f9f73 2026-04-09 01:50:41,004 - INFO - Using existing domain ['admin_domain'](549f21b8-1b18-436e-a6d1-a3af077f9f73) 2026-04-09 01:50:41,271 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-57619772 not found, creating it 2026-04-09 01:50:42,027 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-57619772, ID : 945d8c5b-0c02-4fa3-a8bb-dddcf3505912 2026-04-09 01:50:43,878 - INFO - ================================================================================ 2026-04-09 01:50:43,878 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-09 01:50:44,297 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-04-09 01:50:44,297 - INFO - Initial checks done. Running the testcase now 2026-04-09 01:50:44,297 - INFO - 2026-04-09 01:50:44,297 - INFO - ================================================================================ 2026-04-09 01:50:44,297 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-09 01:50:44,297 - 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-04-09 01:50:44,700 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with 2026-04-09 01:50:44,700 - INFO - Initial checks done. Running the testcase now 2026-04-09 01:50:44,700 - INFO - 2026-04-09 01:50:45,087 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57619772:ctest-vn4-06189951, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57619772:ctest-vn4-06189951, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57619772:ctest-vn4-06189951, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57619772:ctest-vn4-06189951, 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-04-09 01:50:45,884 - DEBUG - Response for create_network : {'network': {'id': '316a802e-2525-45db-9f5f-97643fffbfa2', 'name': 'ctest-vn4-06189951', 'tenant_id': '945d8c5b0c024fa3a8bbdddcf3505912', 'project_id': '945d8c5b0c024fa3a8bbdddcf3505912', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57619772', 'ctest-vn4-06189951'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-04-09 01:50:46,160 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb7c635e-0bcd-44d2-b612-5d7681a2d1d8', 'name': '', 'tenant_id': '945d8c5b0c024fa3a8bbdddcf3505912', 'network_id': '316a802e-2525-45db-9f5f-97643fffbfa2', 'ip_version': 4, 'cidr': '159.106.247.128/26', 'allocation_pools': [{'start': '159.106.247.130', 'end': '159.106.247.190'}], 'gateway_ip': '159.106.247.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-04-09T01:50:46.022267', 'updated_at': '2026-04-09T01:50:46.022267', 'dns_server_address': '159.106.247.130', 'tags': [], 'project_id': '945d8c5b0c024fa3a8bbdddcf3505912'}} 2026-04-09 01:50:46,440 - DEBUG - Response for create_subnet : {'subnet': {'id': '3f099e5f-c03b-485c-8095-2301bc8729e5', 'name': '', 'tenant_id': '945d8c5b0c024fa3a8bbdddcf3505912', 'network_id': '316a802e-2525-45db-9f5f-97643fffbfa2', 'ip_version': 6, 'cidr': '3fc9:cc78:3cf3:e959:807f:4cef::/96', 'allocation_pools': [{'start': '3fc9:cc78:3cf3:e959:807f:4cef:0:2', 'end': '3fc9:cc78:3cf3:e959:807f:4cef:ffff:fffe'}], 'gateway_ip': '3fc9:cc78:3cf3:e959:807f:4cef:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-04-09T01:50:46.302144', 'updated_at': '2026-04-09T01:50:46.302144', 'dns_server_address': '3fc9:cc78:3cf3:e959:807f:4cef:0:2', 'tags': [], 'project_id': '945d8c5b0c024fa3a8bbdddcf3505912'}} 2026-04-09 01:50:46,517 - INFO - Created VN ctest-vn4-06189951 2026-04-09 01:50:46,575 - DEBUG - VN ctest-vn4-06189951 UUID is 316a802e-2525-45db-9f5f-97643fffbfa2 2026-04-09 01:50:47,107 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '316a802e-2525-45db-9f5f-97643fffbfa2', 'name': 'ctest-vn4-06189951', 'tenant_id': '945d8c5b0c024fa3a8bbdddcf3505912', 'project_id': '945d8c5b0c024fa3a8bbdddcf3505912', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bb7c635e-0bcd-44d2-b612-5d7681a2d1d8', '3f099e5f-c03b-485c-8095-2301bc8729e5'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57619772', 'ctest-vn4-06189951'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57619772', 'ctest-policy1-37277874']], 'subnet_ipam': [{'subnet_cidr': '159.106.247.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fc9:cc78:3cf3:e959:807f:4cef::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-04-09T01:50:45.805417', 'updated_at': '2026-04-09T01:50:46.321739'}} 2026-04-09 01:50:47,291 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-09 01:50:47,652 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-09 01:50:47,736 - DEBUG - Requesting: https://10.0.0.129:8082/domain/549f21b8-1b18-436e-a6d1-a3af077f9f73 2026-04-09 01:50:47,796 - DEBUG - Requesting: https://10.0.0.129:8082/project/945d8c5b-0c02-4fa3-a8bb-dddcf3505912 2026-04-09 01:50:47,889 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/316a802e-2525-45db-9f5f-97643fffbfa2 2026-04-09 01:50:47,954 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/316a802e-2525-45db-9f5f-97643fffbfa2 2026-04-09 01:50:48,010 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/94669779-f045-4477-b0e1-a2a56a6b5f7b 2026-04-09 01:50:48,072 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/94669779-f045-4477-b0e1-a2a56a6b5f7b 2026-04-09 01:50:48,137 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/6349475f-2071-43f0-965c-d835500e5dbb 2026-04-09 01:50:48,196 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-09 01:50:48,196 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/316a802e-2525-45db-9f5f-97643fffbfa2 2026-04-09 01:50:48,259 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/94669779-f045-4477-b0e1-a2a56a6b5f7b 2026-04-09 01:50:48,324 - INFO - Verified VN network id 11 for VN 316a802e-2525-45db-9f5f-97643fffbfa2 2026-04-09 01:50:48,324 - INFO - Verifications in API Server for VN ctest-vn4-06189951 passed 2026-04-09 01:50:48,324 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/316a802e-2525-45db-9f5f-97643fffbfa2 2026-04-09 01:50:48,381 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/94669779-f045-4477-b0e1-a2a56a6b5f7b 2026-04-09 01:50:48,436 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/94669779-f045-4477-b0e1-a2a56a6b5f7b 2026-04-09 01:50:48,492 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/6349475f-2071-43f0-965c-d835500e5dbb 2026-04-09 01:50:48,596 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57619772:ctest-vn4-06189951', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57619772', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3560799391069849051', 'uuid-lslong': '11484064031644303266'}, 'enable': 'true', 'created': '2026-04-09T01:50:45', 'last-modified': '2026-04-09T01:50:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.556171'} 2026-04-09 01:50:48,654 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-09 01:50:48,654 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06189951 passed 2026-04-09 01:50:48,655 - DEBUG - ====Verifying policy data for ctest-vn4-06189951 in API_Server ====== 2026-04-09 01:50:48,655 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-09 01:50:48,707 - DEBUG - Requesting: https://10.0.0.129:8082/domain/549f21b8-1b18-436e-a6d1-a3af077f9f73 2026-04-09 01:50:48,768 - DEBUG - Requesting: https://10.0.0.129:8082/project/945d8c5b-0c02-4fa3-a8bb-dddcf3505912 2026-04-09 01:50:48,854 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/316a802e-2525-45db-9f5f-97643fffbfa2 2026-04-09 01:50:48,914 - DEBUG - ==>Verifying data for policy with id: 88885b56-09fb-4e0f-bcc9-5cfb5bf2603f, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57619772', 'ctest-policy1-37277874'] 2026-04-09 01:50:48,914 - INFO - VN ctest-vn4-06189951 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-09 01:50:48,914 - DEBUG - Verifying the vn in opserver 2026-04-09 01:50:48,914 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57619772:ctest-vn4-06189951 virtual network link through opserver 10.0.0.129 2026-04-09 01:50:48,915 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-04-09 01:50:49,272 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks 2026-04-09 01:50:49,408 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57619772:ctest-vn4-06189951', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57619772:ctest-vn4-06189951?flat'} 2026-04-09 01:50:49,408 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-57619772:ctest-vn4-06189951 is found in opserver 2026-04-09 01:50:49,508 - DEBUG - Do not have enough data to verify VN in agent 2026-04-09 01:50:49,560 - DEBUG - VRF ids for VN ctest-vn4-06189951: {} 2026-04-09 01:50:49,561 - DEBUG - ====Verifying data for ctest-policy1-37277874 in API_Server ====== 2026-04-09 01:50:49,561 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-09 01:50:49,620 - DEBUG - Requesting: https://10.0.0.129:8082/domain/549f21b8-1b18-436e-a6d1-a3af077f9f73 2026-04-09 01:50:49,680 - DEBUG - Requesting: https://10.0.0.129:8082/project/945d8c5b-0c02-4fa3-a8bb-dddcf3505912 2026-04-09 01:50:49,757 - DEBUG - Requesting: https://10.0.0.129:8082/network-policy/88885b56-09fb-4e0f-bcc9-5cfb5bf2603f 2026-04-09 01:50:49,823 - INFO - Verified policy ctest-policy1-37277874 in API Server, Result: True 2026-04-09 01:50:49,824 - INFO - Done with setup and verification, moving onto test .. 2026-04-09 01:50:49,835 - INFO - Deleting VN ctest-vn4-06189951 2026-04-09 01:50:50,051 - DEBUG - Response for deleting network () 2026-04-09 01:50:50,051 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/94669779-f045-4477-b0e1-a2a56a6b5f7b 2026-04-09 01:50:50,107 - DEBUG - Response Code: 404 2026-04-09 01:50:50,107 - DEBUG - Requesting: https://10.0.0.129:8082/domains 2026-04-09 01:50:50,159 - DEBUG - Requesting: https://10.0.0.129:8082/domain/549f21b8-1b18-436e-a6d1-a3af077f9f73 2026-04-09 01:50:50,220 - DEBUG - Requesting: https://10.0.0.129:8082/project/945d8c5b-0c02-4fa3-a8bb-dddcf3505912 2026-04-09 01:50:50,308 - INFO - Validated that VN ctest-vn4-06189951 is not found in API Server 2026-04-09 01:50:50,411 - DEBUG - VN ctest-vn4-06189951 is not present in Agent 10.0.0.129 2026-04-09 01:50:50,411 - INFO - Validated that VN ctest-vn4-06189951 is not in any agent 2026-04-09 01:50:50,564 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06189951 info 2026-04-09 01:50:50,592 - INFO - Deleted policy ctest-policy1-37277874 2026-04-09 01:50:50,779 - DEBUG - policy ctest-policy1-37277874 is not found in API Server 2026-04-09 01:50:51,192 - DEBUG - No XMPP flaps were noticed during the test
2026-04-09 01:50:51,192 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-04-09 01:50:51,192 - INFO - -------------------------------------------------------------------------------- 2026-04-09 01:50:51,608 - DEBUG - No XMPP flaps were noticed during the test
2026-04-09 01:50:51,608 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2026-04-09 01:50:51,608 - INFO - -------------------------------------------------------------------------------- 2026-04-09 01:50:52,494 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-57619772, ID : 945d8c5b-0c02-4fa3-a8bb-dddcf3505912