2026-09-04 11:48:26,281 - INFO - Domain Default found not creating 2026-09-04 11:48:26,406 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-00384102 not found, creating it 2026-09-04 11:48:26,845 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-00384102, ID : e845ad98-a9d1-4c93-8cd0-315a9c72a99a 2026-09-04 11:48:28,274 - INFO - ================================================================================ 2026-09-04 11:48:28,275 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-04 11:48:28,539 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-09-04 11:48:28,540 - INFO - Initial checks done. Running the testcase now 2026-09-04 11:48:28,540 - INFO - 2026-09-04 11:48:28,540 - INFO - ================================================================================ 2026-09-04 11:48:28,540 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-04 11:48:28,540 - 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-09-04 11:48:28,830 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-09-04 11:48:28,830 - INFO - Initial checks done. Running the testcase now 2026-09-04 11:48:28,831 - INFO - 2026-09-04 11:48:29,221 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00384102:ctest-vn4-39294099, 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-00384102:ctest-vn4-39294099, 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-00384102:ctest-vn4-39294099, 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-00384102:ctest-vn4-39294099, 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-09-04 11:48:29,729 - DEBUG - Response for create_network : {'network': {'id': '4d5eb697-c108-47ec-806d-9b8b43086090', 'name': 'ctest-vn4-39294099', 'tenant_id': 'e845ad98a9d14c938cd0315a9c72a99a', 'project_id': 'e845ad98a9d14c938cd0315a9c72a99a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00384102', 'ctest-vn4-39294099'], 'port_security_enabled': True, 'description': ''}} 2026-09-04 11:48:29,903 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf65407e-6d6b-4426-81e1-c6fdc7ec9dbf', 'name': '', 'tenant_id': 'e845ad98a9d14c938cd0315a9c72a99a', 'network_id': '4d5eb697-c108-47ec-806d-9b8b43086090', 'ip_version': 4, 'cidr': '195.178.205.64/26', 'allocation_pools': [{'start': '195.178.205.66', 'end': '195.178.205.126'}], 'gateway_ip': '195.178.205.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.178.205.66', 'tags': [], 'project_id': 'e845ad98a9d14c938cd0315a9c72a99a'}} 2026-09-04 11:48:30,061 - DEBUG - Response for create_subnet : {'subnet': {'id': '173b0fdb-a72b-45db-91cc-de995779f188', 'name': '', 'tenant_id': 'e845ad98a9d14c938cd0315a9c72a99a', 'network_id': '4d5eb697-c108-47ec-806d-9b8b43086090', 'ip_version': 6, 'cidr': '3143:f1ea:7a42:4186:c18:9c7e::/96', 'allocation_pools': [{'start': '3143:f1ea:7a42:4186:c18:9c7e:0:2', 'end': '3143:f1ea:7a42:4186:c18:9c7e:ffff:fffe'}], 'gateway_ip': '3143:f1ea:7a42:4186:c18:9c7e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3143:f1ea:7a42:4186:c18:9c7e:0:2', 'tags': [], 'project_id': 'e845ad98a9d14c938cd0315a9c72a99a'}} 2026-09-04 11:48:30,078 - INFO - Created VN ctest-vn4-39294099 2026-09-04 11:48:30,128 - DEBUG - VN ctest-vn4-39294099 UUID is 4d5eb697-c108-47ec-806d-9b8b43086090 2026-09-04 11:48:30,301 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d5eb697-c108-47ec-806d-9b8b43086090', 'name': 'ctest-vn4-39294099', 'tenant_id': 'e845ad98a9d14c938cd0315a9c72a99a', 'project_id': 'e845ad98a9d14c938cd0315a9c72a99a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['cf65407e-6d6b-4426-81e1-c6fdc7ec9dbf', '173b0fdb-a72b-45db-91cc-de995779f188'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00384102', 'ctest-vn4-39294099'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00384102', 'ctest-policy1-88012894']], 'subnet_ipam': [{'subnet_cidr': '195.178.205.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3143:f1ea:7a42:4186:c18:9c7e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-04 11:48:30,464 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-04 11:48:30,790 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-04 11:48:30,816 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d792a2cb-d4da-49a8-b625-6075735d0b96 2026-09-04 11:48:30,827 - DEBUG - Requesting: http://10.0.0.38:8082/project/e845ad98-a9d1-4c93-8cd0-315a9c72a99a 2026-09-04 11:48:30,909 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4d5eb697-c108-47ec-806d-9b8b43086090 2026-09-04 11:48:30,919 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4d5eb697-c108-47ec-806d-9b8b43086090 2026-09-04 11:48:30,927 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e12a3555-5aaa-4d66-80a8-09f25d9c0979 2026-09-04 11:48:30,933 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e12a3555-5aaa-4d66-80a8-09f25d9c0979 2026-09-04 11:48:30,939 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a6e756f5-00ce-4480-a844-2d15f4388a7f 2026-09-04 11:48:30,943 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-04 11:48:30,943 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4d5eb697-c108-47ec-806d-9b8b43086090 2026-09-04 11:48:30,950 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e12a3555-5aaa-4d66-80a8-09f25d9c0979 2026-09-04 11:48:30,960 - INFO - Verified VN network id 12 for VN 4d5eb697-c108-47ec-806d-9b8b43086090 2026-09-04 11:48:30,960 - INFO - Verifications in API Server for VN ctest-vn4-39294099 passed 2026-09-04 11:48:30,960 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4d5eb697-c108-47ec-806d-9b8b43086090 2026-09-04 11:48:30,968 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e12a3555-5aaa-4d66-80a8-09f25d9c0979 2026-09-04 11:48:30,973 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e12a3555-5aaa-4d66-80a8-09f25d9c0979 2026-09-04 11:48:30,978 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a6e756f5-00ce-4480-a844-2d15f4388a7f 2026-09-04 11:48:30,988 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00384102:ctest-vn4-39294099', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-00384102', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5575094151626115052', 'uuid-lslong': '9254223831743619216'}, 'enable': 'true', 'created': '2026-09-04T11:48:29', 'last-modified': '2026-09-04T11:48:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.716572'} 2026-09-04 11:48:30,994 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-04 11:48:30,994 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39294099 passed 2026-09-04 11:48:30,994 - DEBUG - ====Verifying policy data for ctest-vn4-39294099 in API_Server ====== 2026-09-04 11:48:30,994 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-04 11:48:30,999 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d792a2cb-d4da-49a8-b625-6075735d0b96 2026-09-04 11:48:31,009 - DEBUG - Requesting: http://10.0.0.38:8082/project/e845ad98-a9d1-4c93-8cd0-315a9c72a99a 2026-09-04 11:48:31,082 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4d5eb697-c108-47ec-806d-9b8b43086090 2026-09-04 11:48:31,091 - DEBUG - ==>Verifying data for policy with id: 4b5f2f6a-222b-48c8-9c52-5238ff2e894d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00384102', 'ctest-policy1-88012894'] 2026-09-04 11:48:31,091 - INFO - VN ctest-vn4-39294099 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-04 11:48:31,092 - DEBUG - Verifying the vn in opserver 2026-09-04 11:48:31,092 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00384102:ctest-vn4-39294099 virtual network link through opserver 10.0.0.38 2026-09-04 11:48:31,092 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-04 11:48:31,408 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-04 11:48:31,456 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00384102:ctest-vn4-39294099', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00384102:ctest-vn4-39294099?flat'} 2026-09-04 11:48:31,456 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00384102:ctest-vn4-39294099 is found in opserver 2026-09-04 11:48:31,464 - DEBUG - Do not have enough data to verify VN in agent 2026-09-04 11:48:31,469 - DEBUG - VRF ids for VN ctest-vn4-39294099: {} 2026-09-04 11:48:31,469 - DEBUG - ====Verifying data for ctest-policy1-88012894 in API_Server ====== 2026-09-04 11:48:31,469 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-04 11:48:31,474 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d792a2cb-d4da-49a8-b625-6075735d0b96 2026-09-04 11:48:31,483 - DEBUG - Requesting: http://10.0.0.38:8082/project/e845ad98-a9d1-4c93-8cd0-315a9c72a99a 2026-09-04 11:48:31,557 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/4b5f2f6a-222b-48c8-9c52-5238ff2e894d 2026-09-04 11:48:31,566 - INFO - Verified policy ctest-policy1-88012894 in API Server, Result: True 2026-09-04 11:48:31,566 - INFO - Done with setup and verification, moving onto test .. 2026-09-04 11:48:31,574 - INFO - Deleting VN ctest-vn4-39294099 2026-09-04 11:48:31,695 - DEBUG - Response for deleting network () 2026-09-04 11:48:31,695 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e12a3555-5aaa-4d66-80a8-09f25d9c0979 2026-09-04 11:48:31,700 - DEBUG - Response Code: 404 2026-09-04 11:48:31,700 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-04 11:48:31,705 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d792a2cb-d4da-49a8-b625-6075735d0b96 2026-09-04 11:48:31,761 - DEBUG - Requesting: http://10.0.0.38:8082/project/e845ad98-a9d1-4c93-8cd0-315a9c72a99a 2026-09-04 11:48:31,832 - INFO - Validated that VN ctest-vn4-39294099 is not found in API Server 2026-09-04 11:48:31,843 - DEBUG - VN ctest-vn4-39294099 is not present in Agent 10.0.0.38 2026-09-04 11:48:31,843 - INFO - Validated that VN ctest-vn4-39294099 is not in any agent 2026-09-04 11:48:31,858 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39294099 info 2026-09-04 11:48:31,882 - INFO - Deleted policy ctest-policy1-88012894 2026-09-04 11:48:32,044 - DEBUG - policy ctest-policy1-88012894 is not found in API Server 2026-09-04 11:48:32,302 - DEBUG - No XMPP flaps were noticed during the test
2026-09-04 11:48:32,302 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-09-04 11:48:32,302 - INFO - -------------------------------------------------------------------------------- 2026-09-04 11:48:32,590 - DEBUG - No XMPP flaps were noticed during the test
2026-09-04 11:48:32,590 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-09-04 11:48:32,590 - INFO - -------------------------------------------------------------------------------- 2026-09-04 11:48:33,277 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-00384102, ID : e845ad98-a9d1-4c93-8cd0-315a9c72a99a