2026-02-12 07:00:46,784 - INFO - Domain Default found not creating 2026-02-12 07:00:46,976 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-01260041 not found, creating it 2026-02-12 07:00:47,488 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-01260041, ID : c3284baa-85a5-498a-9cd4-0f4f6670f6c1 2026-02-12 07:00:48,985 - INFO - ================================================================================ 2026-02-12 07:00:48,986 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 07:00:49,247 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-12 07:00:49,247 - INFO - Initial checks done. Running the testcase now 2026-02-12 07:00:49,247 - INFO - 2026-02-12 07:00:49,247 - INFO - ================================================================================ 2026-02-12 07:00:49,247 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 07:00:49,247 - 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-02-12 07:00:49,534 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-12 07:00:49,534 - INFO - Initial checks done. Running the testcase now 2026-02-12 07:00:49,534 - INFO - 2026-02-12 07:00:49,908 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01260041:ctest-vn4-34738022, 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-01260041:ctest-vn4-34738022, 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-01260041:ctest-vn4-34738022, 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-01260041:ctest-vn4-34738022, 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-02-12 07:00:50,453 - DEBUG - Response for create_network : {'network': {'id': '795b42af-3597-4487-8fb3-0c26eebd390e', 'name': 'ctest-vn4-34738022', 'tenant_id': 'c3284baa85a5498a9cd40f4f6670f6c1', 'project_id': 'c3284baa85a5498a9cd40f4f6670f6c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01260041', 'ctest-vn4-34738022'], 'port_security_enabled': True, 'description': ''}} 2026-02-12 07:00:50,659 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8f6d67e-3559-43ee-b90c-ea0a007dec73', 'name': '', 'tenant_id': 'c3284baa85a5498a9cd40f4f6670f6c1', 'network_id': '795b42af-3597-4487-8fb3-0c26eebd390e', 'ip_version': 4, 'cidr': '149.30.95.128/26', 'allocation_pools': [{'start': '149.30.95.130', 'end': '149.30.95.190'}], 'gateway_ip': '149.30.95.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.30.95.130', 'tags': [], 'project_id': 'c3284baa85a5498a9cd40f4f6670f6c1'}} 2026-02-12 07:00:50,860 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff43a2d9-beae-4d51-9759-4b3641182ea5', 'name': '', 'tenant_id': 'c3284baa85a5498a9cd40f4f6670f6c1', 'network_id': '795b42af-3597-4487-8fb3-0c26eebd390e', 'ip_version': 6, 'cidr': '3fe9:792f:bd2b:4fa4:4a7f:eed0::/96', 'allocation_pools': [{'start': '3fe9:792f:bd2b:4fa4:4a7f:eed0:0:2', 'end': '3fe9:792f:bd2b:4fa4:4a7f:eed0:ffff:fffe'}], 'gateway_ip': '3fe9:792f:bd2b:4fa4:4a7f:eed0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fe9:792f:bd2b:4fa4:4a7f:eed0:0:2', 'tags': [], 'project_id': 'c3284baa85a5498a9cd40f4f6670f6c1'}} 2026-02-12 07:00:50,882 - INFO - Created VN ctest-vn4-34738022 2026-02-12 07:00:50,933 - DEBUG - VN ctest-vn4-34738022 UUID is 795b42af-3597-4487-8fb3-0c26eebd390e 2026-02-12 07:00:51,160 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '795b42af-3597-4487-8fb3-0c26eebd390e', 'name': 'ctest-vn4-34738022', 'tenant_id': 'c3284baa85a5498a9cd40f4f6670f6c1', 'project_id': 'c3284baa85a5498a9cd40f4f6670f6c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8f6d67e-3559-43ee-b90c-ea0a007dec73', 'ff43a2d9-beae-4d51-9759-4b3641182ea5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01260041', 'ctest-vn4-34738022'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01260041', 'ctest-policy1-42433825']], 'subnet_ipam': [{'subnet_cidr': '149.30.95.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fe9:792f:bd2b:4fa4:4a7f:eed0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-12 07:00:51,317 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-12 07:00:51,612 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-12 07:00:51,644 - DEBUG - Requesting: http://10.0.0.50:8082/domain/93439f5f-2678-4600-8fc0-96dc3f30f684 2026-02-12 07:00:51,656 - DEBUG - Requesting: http://10.0.0.50:8082/project/c3284baa-85a5-498a-9cd4-0f4f6670f6c1 2026-02-12 07:00:51,734 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/795b42af-3597-4487-8fb3-0c26eebd390e 2026-02-12 07:00:51,750 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/795b42af-3597-4487-8fb3-0c26eebd390e 2026-02-12 07:00:51,763 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5f37659-8402-4c75-bf5b-36a038da3b50 2026-02-12 07:00:51,771 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5f37659-8402-4c75-bf5b-36a038da3b50 2026-02-12 07:00:51,778 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/91db3084-d12b-4905-86a1-b73d22be9163 2026-02-12 07:00:51,784 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 07:00:51,784 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/795b42af-3597-4487-8fb3-0c26eebd390e 2026-02-12 07:00:51,795 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5f37659-8402-4c75-bf5b-36a038da3b50 2026-02-12 07:00:51,809 - INFO - Verified VN network id 12 for VN 795b42af-3597-4487-8fb3-0c26eebd390e 2026-02-12 07:00:51,809 - INFO - Verifications in API Server for VN ctest-vn4-34738022 passed 2026-02-12 07:00:51,809 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/795b42af-3597-4487-8fb3-0c26eebd390e 2026-02-12 07:00:51,819 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5f37659-8402-4c75-bf5b-36a038da3b50 2026-02-12 07:00:51,827 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5f37659-8402-4c75-bf5b-36a038da3b50 2026-02-12 07:00:51,834 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/91db3084-d12b-4905-86a1-b73d22be9163 2026-02-12 07:00:51,845 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01260041:ctest-vn4-34738022', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01260041', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8744656421755765895', 'uuid-lslong': '10354633329608571150'}, 'enable': 'true', 'created': '2026-02-12T07:00:50', 'last-modified': '2026-02-12T07:00:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715337'} 2026-02-12 07:00:51,852 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 07:00:51,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34738022 passed 2026-02-12 07:00:51,852 - DEBUG - ====Verifying policy data for ctest-vn4-34738022 in API_Server ====== 2026-02-12 07:00:51,852 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-12 07:00:51,858 - DEBUG - Requesting: http://10.0.0.50:8082/domain/93439f5f-2678-4600-8fc0-96dc3f30f684 2026-02-12 07:00:51,870 - DEBUG - Requesting: http://10.0.0.50:8082/project/c3284baa-85a5-498a-9cd4-0f4f6670f6c1 2026-02-12 07:00:51,939 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/795b42af-3597-4487-8fb3-0c26eebd390e 2026-02-12 07:00:51,949 - DEBUG - ==>Verifying data for policy with id: 0e744b85-3bfb-4e5b-8856-864bbb980c4a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01260041', 'ctest-policy1-42433825'] 2026-02-12 07:00:51,949 - INFO - VN ctest-vn4-34738022 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-12 07:00:51,949 - DEBUG - Verifying the vn in opserver 2026-02-12 07:00:51,949 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01260041:ctest-vn4-34738022 virtual network link through opserver 10.0.0.50 2026-02-12 07:00:51,949 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-12 07:00:52,248 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-12 07:00:52,313 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01260041:ctest-vn4-34738022', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01260041:ctest-vn4-34738022?flat'} 2026-02-12 07:00:52,313 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01260041:ctest-vn4-34738022 is found in opserver 2026-02-12 07:00:52,323 - DEBUG - Do not have enough data to verify VN in agent 2026-02-12 07:00:52,328 - DEBUG - VRF ids for VN ctest-vn4-34738022: {} 2026-02-12 07:00:52,328 - DEBUG - ====Verifying data for ctest-policy1-42433825 in API_Server ====== 2026-02-12 07:00:52,328 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-12 07:00:52,334 - DEBUG - Requesting: http://10.0.0.50:8082/domain/93439f5f-2678-4600-8fc0-96dc3f30f684 2026-02-12 07:00:52,348 - DEBUG - Requesting: http://10.0.0.50:8082/project/c3284baa-85a5-498a-9cd4-0f4f6670f6c1 2026-02-12 07:00:52,421 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/0e744b85-3bfb-4e5b-8856-864bbb980c4a 2026-02-12 07:00:52,432 - INFO - Verified policy ctest-policy1-42433825 in API Server, Result: True 2026-02-12 07:00:52,432 - INFO - Done with setup and verification, moving onto test .. 2026-02-12 07:00:52,440 - INFO - Deleting VN ctest-vn4-34738022 2026-02-12 07:00:52,562 - DEBUG - Response for deleting network () 2026-02-12 07:00:52,562 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5f37659-8402-4c75-bf5b-36a038da3b50 2026-02-12 07:00:52,567 - DEBUG - Response Code: 404 2026-02-12 07:00:52,567 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-12 07:00:52,572 - DEBUG - Requesting: http://10.0.0.50:8082/domain/93439f5f-2678-4600-8fc0-96dc3f30f684 2026-02-12 07:00:52,630 - DEBUG - Requesting: http://10.0.0.50:8082/project/c3284baa-85a5-498a-9cd4-0f4f6670f6c1 2026-02-12 07:00:52,698 - INFO - Validated that VN ctest-vn4-34738022 is not found in API Server 2026-02-12 07:00:52,708 - DEBUG - VN ctest-vn4-34738022 is not present in Agent 10.0.0.50 2026-02-12 07:00:52,709 - INFO - Validated that VN ctest-vn4-34738022 is not in any agent 2026-02-12 07:00:52,724 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34738022 info 2026-02-12 07:00:52,752 - INFO - Deleted policy ctest-policy1-42433825 2026-02-12 07:00:52,917 - DEBUG - policy ctest-policy1-42433825 is not found in API Server 2026-02-12 07:00:53,173 - DEBUG - No XMPP flaps were noticed during the test 2026-02-12 07:00:53,173 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-12 07:00:53,174 - INFO - -------------------------------------------------------------------------------- 2026-02-12 07:00:53,462 - DEBUG - No XMPP flaps were noticed during the test 2026-02-12 07:00:53,462 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-12 07:00:53,462 - INFO - -------------------------------------------------------------------------------- 2026-02-12 07:00:54,163 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-01260041, ID : c3284baa-85a5-498a-9cd4-0f4f6670f6c1