2026-06-03 16:43:47,368 - INFO - Domain Default found not creating 2026-06-03 16:43:47,559 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05874476 not found, creating it 2026-06-03 16:43:48,045 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05874476, ID : 7fa6cf8b-6a9a-49e2-9c42-e0d769393c9a 2026-06-03 16:43:49,551 - INFO - ================================================================================ 2026-06-03 16:43:49,551 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-03 16:43:49,809 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-06-03 16:43:49,809 - INFO - Initial checks done. Running the testcase now 2026-06-03 16:43:49,809 - INFO - 2026-06-03 16:43:49,809 - INFO - ================================================================================ 2026-06-03 16:43:49,809 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-03 16:43:49,809 - 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-03 16:43:50,109 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-06-03 16:43:50,109 - INFO - Initial checks done. Running the testcase now 2026-06-03 16:43:50,109 - INFO - 2026-06-03 16:43:50,482 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05874476:ctest-vn4-55392484, 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-05874476:ctest-vn4-55392484, 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-05874476:ctest-vn4-55392484, 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-05874476:ctest-vn4-55392484, 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-03 16:43:51,010 - DEBUG - Response for create_network : {'network': {'id': '6c7f206f-ae05-4687-a7c6-ac67a2cf6d8c', 'name': 'ctest-vn4-55392484', 'tenant_id': '7fa6cf8b6a9a49e29c42e0d769393c9a', 'project_id': '7fa6cf8b6a9a49e29c42e0d769393c9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05874476', 'ctest-vn4-55392484'], 'port_security_enabled': True, 'description': ''}} 2026-06-03 16:43:51,224 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a6de503-43b3-4639-b83f-3e833b16b425', 'name': '', 'tenant_id': '7fa6cf8b6a9a49e29c42e0d769393c9a', 'network_id': '6c7f206f-ae05-4687-a7c6-ac67a2cf6d8c', 'ip_version': 4, 'cidr': '67.21.165.0/26', 'allocation_pools': [{'start': '67.21.165.2', 'end': '67.21.165.62'}], 'gateway_ip': '67.21.165.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.21.165.2', 'tags': [], 'project_id': '7fa6cf8b6a9a49e29c42e0d769393c9a'}} 2026-06-03 16:43:51,439 - DEBUG - Response for create_subnet : {'subnet': {'id': '16977e14-dd94-45c5-af68-5704395f8b27', 'name': '', 'tenant_id': '7fa6cf8b6a9a49e29c42e0d769393c9a', 'network_id': '6c7f206f-ae05-4687-a7c6-ac67a2cf6d8c', 'ip_version': 6, 'cidr': '3775:e7a9:835e:d3ce:e037:6963::/96', 'allocation_pools': [{'start': '3775:e7a9:835e:d3ce:e037:6963:0:2', 'end': '3775:e7a9:835e:d3ce:e037:6963:ffff:fffe'}], 'gateway_ip': '3775:e7a9:835e:d3ce:e037:6963:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3775:e7a9:835e:d3ce:e037:6963:0:2', 'tags': [], 'project_id': '7fa6cf8b6a9a49e29c42e0d769393c9a'}} 2026-06-03 16:43:51,459 - INFO - Created VN ctest-vn4-55392484 2026-06-03 16:43:51,512 - DEBUG - VN ctest-vn4-55392484 UUID is 6c7f206f-ae05-4687-a7c6-ac67a2cf6d8c 2026-06-03 16:43:51,722 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c7f206f-ae05-4687-a7c6-ac67a2cf6d8c', 'name': 'ctest-vn4-55392484', 'tenant_id': '7fa6cf8b6a9a49e29c42e0d769393c9a', 'project_id': '7fa6cf8b6a9a49e29c42e0d769393c9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a6de503-43b3-4639-b83f-3e833b16b425', '16977e14-dd94-45c5-af68-5704395f8b27'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05874476', 'ctest-vn4-55392484'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05874476', 'ctest-policy1-70645543']], 'subnet_ipam': [{'subnet_cidr': '67.21.165.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3775:e7a9:835e:d3ce:e037:6963::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-03 16:43:51,892 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-03 16:43:52,186 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-03 16:43:52,225 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48f12088-9884-4e7e-a88e-94e33964d033 2026-06-03 16:43:52,238 - DEBUG - Requesting: http://10.0.0.38:8082/project/7fa6cf8b-6a9a-49e2-9c42-e0d769393c9a 2026-06-03 16:43:52,311 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c7f206f-ae05-4687-a7c6-ac67a2cf6d8c 2026-06-03 16:43:52,325 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c7f206f-ae05-4687-a7c6-ac67a2cf6d8c 2026-06-03 16:43:52,335 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d959192c-2c62-498b-91c1-78afc23ca252 2026-06-03 16:43:52,343 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d959192c-2c62-498b-91c1-78afc23ca252 2026-06-03 16:43:52,350 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/589d89fa-e884-4ada-a927-c1a0799ec135 2026-06-03 16:43:52,356 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 16:43:52,356 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c7f206f-ae05-4687-a7c6-ac67a2cf6d8c 2026-06-03 16:43:52,365 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d959192c-2c62-498b-91c1-78afc23ca252 2026-06-03 16:43:52,381 - INFO - Verified VN network id 11 for VN 6c7f206f-ae05-4687-a7c6-ac67a2cf6d8c 2026-06-03 16:43:52,381 - INFO - Verifications in API Server for VN ctest-vn4-55392484 passed 2026-06-03 16:43:52,381 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c7f206f-ae05-4687-a7c6-ac67a2cf6d8c 2026-06-03 16:43:52,393 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d959192c-2c62-498b-91c1-78afc23ca252 2026-06-03 16:43:52,401 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d959192c-2c62-498b-91c1-78afc23ca252 2026-06-03 16:43:52,409 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/589d89fa-e884-4ada-a927-c1a0799ec135 2026-06-03 16:43:52,423 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05874476:ctest-vn4-55392484', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05874476', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7818003142171510407', 'uuid-lslong': '12089539810835787148'}, 'enable': 'true', 'created': '2026-06-03T16:43:50', 'last-modified': '2026-06-03T16:43:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735153'} 2026-06-03 16:43:52,430 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-03 16:43:52,430 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55392484 passed 2026-06-03 16:43:52,431 - DEBUG - ====Verifying policy data for ctest-vn4-55392484 in API_Server ====== 2026-06-03 16:43:52,431 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-03 16:43:52,436 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48f12088-9884-4e7e-a88e-94e33964d033 2026-06-03 16:43:52,448 - DEBUG - Requesting: http://10.0.0.38:8082/project/7fa6cf8b-6a9a-49e2-9c42-e0d769393c9a 2026-06-03 16:43:52,521 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c7f206f-ae05-4687-a7c6-ac67a2cf6d8c 2026-06-03 16:43:52,531 - DEBUG - ==>Verifying data for policy with id: fb4e6ccc-7bd4-4111-8404-37c3a628291e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05874476', 'ctest-policy1-70645543'] 2026-06-03 16:43:52,531 - INFO - VN ctest-vn4-55392484 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-03 16:43:52,531 - DEBUG - Verifying the vn in opserver 2026-06-03 16:43:52,531 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05874476:ctest-vn4-55392484 virtual network link through opserver 10.0.0.38 2026-06-03 16:43:52,531 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-03 16:43:52,823 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-03 16:43:52,886 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05874476:ctest-vn4-55392484', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05874476:ctest-vn4-55392484?flat'} 2026-06-03 16:43:52,886 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05874476:ctest-vn4-55392484 is found in opserver 2026-06-03 16:43:52,897 - DEBUG - Do not have enough data to verify VN in agent 2026-06-03 16:43:52,903 - DEBUG - VRF ids for VN ctest-vn4-55392484: {} 2026-06-03 16:43:52,903 - DEBUG - ====Verifying data for ctest-policy1-70645543 in API_Server ====== 2026-06-03 16:43:52,903 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-03 16:43:52,909 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48f12088-9884-4e7e-a88e-94e33964d033 2026-06-03 16:43:52,924 - DEBUG - Requesting: http://10.0.0.38:8082/project/7fa6cf8b-6a9a-49e2-9c42-e0d769393c9a 2026-06-03 16:43:53,003 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/fb4e6ccc-7bd4-4111-8404-37c3a628291e 2026-06-03 16:43:53,017 - INFO - Verified policy ctest-policy1-70645543 in API Server, Result: True 2026-06-03 16:43:53,017 - INFO - Done with setup and verification, moving onto test .. 2026-06-03 16:43:53,028 - INFO - Deleting VN ctest-vn4-55392484 2026-06-03 16:43:53,188 - DEBUG - Response for deleting network () 2026-06-03 16:43:53,188 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d959192c-2c62-498b-91c1-78afc23ca252 2026-06-03 16:43:53,194 - DEBUG - Response Code: 404 2026-06-03 16:43:53,194 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-03 16:43:53,200 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48f12088-9884-4e7e-a88e-94e33964d033 2026-06-03 16:43:53,253 - DEBUG - Requesting: http://10.0.0.38:8082/project/7fa6cf8b-6a9a-49e2-9c42-e0d769393c9a 2026-06-03 16:43:53,321 - INFO - Validated that VN ctest-vn4-55392484 is not found in API Server 2026-06-03 16:43:53,331 - DEBUG - VN ctest-vn4-55392484 is not present in Agent 10.0.0.38 2026-06-03 16:43:53,331 - INFO - Validated that VN ctest-vn4-55392484 is not in any agent 2026-06-03 16:43:53,345 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55392484 info 2026-06-03 16:43:53,378 - INFO - Deleted policy ctest-policy1-70645543 2026-06-03 16:43:53,536 - DEBUG - policy ctest-policy1-70645543 is not found in API Server 2026-06-03 16:43:53,794 - DEBUG - No XMPP flaps were noticed during the test 2026-06-03 16:43:53,794 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-03 16:43:53,794 - INFO - -------------------------------------------------------------------------------- 2026-06-03 16:43:54,082 - DEBUG - No XMPP flaps were noticed during the test 2026-06-03 16:43:54,082 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-06-03 16:43:54,082 - INFO - -------------------------------------------------------------------------------- 2026-06-03 16:43:54,781 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-05874476, ID : 7fa6cf8b-6a9a-49e2-9c42-e0d769393c9a