2026-03-04 17:58:53,230 - INFO - Domain Default found not creating 2026-03-04 17:58:53,466 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07602875 not found, creating it 2026-03-04 17:58:54,061 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07602875, ID : 527c7c15-8f28-4fda-b652-f3ff9c534ba8 2026-03-04 17:58:56,088 - INFO - ================================================================================ 2026-03-04 17:58:56,088 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-04 17:58:56,377 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-03-04 17:58:56,378 - INFO - Initial checks done. Running the testcase now 2026-03-04 17:58:56,378 - INFO - 2026-03-04 17:58:56,378 - INFO - ================================================================================ 2026-03-04 17:58:56,378 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-04 17:58:56,378 - 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-03-04 17:58:56,706 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-03-04 17:58:56,706 - INFO - Initial checks done. Running the testcase now 2026-03-04 17:58:56,706 - INFO - 2026-03-04 17:58:57,093 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07602875:ctest-vn4-30504651, 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-07602875:ctest-vn4-30504651, 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-07602875:ctest-vn4-30504651, 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-07602875:ctest-vn4-30504651, 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-03-04 17:58:57,833 - DEBUG - Response for create_network : {'network': {'id': 'd43d03f5-c911-46a6-a735-3e0b5185f4f5', 'name': 'ctest-vn4-30504651', 'tenant_id': '527c7c158f284fdab652f3ff9c534ba8', 'project_id': '527c7c158f284fdab652f3ff9c534ba8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07602875', 'ctest-vn4-30504651'], 'port_security_enabled': True, 'description': ''}} 2026-03-04 17:58:58,079 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c4279391-84e0-4016-bdb1-3028a20ca7b8', 'name': '', 'tenant_id': '527c7c158f284fdab652f3ff9c534ba8', 'network_id': 'd43d03f5-c911-46a6-a735-3e0b5185f4f5', 'ip_version': 4, 'cidr': '85.254.22.192/26', 'allocation_pools': [{'start': '85.254.22.194', 'end': '85.254.22.254'}], 'gateway_ip': '85.254.22.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.254.22.194', 'tags': [], 'project_id': '527c7c158f284fdab652f3ff9c534ba8'}} 2026-03-04 17:58:58,298 - DEBUG - Response for create_subnet : {'subnet': {'id': '69a5453d-0216-4469-a2b1-1f99888404c6', 'name': '', 'tenant_id': '527c7c158f284fdab652f3ff9c534ba8', 'network_id': 'd43d03f5-c911-46a6-a735-3e0b5185f4f5', 'ip_version': 6, 'cidr': '2c4f:926b:53c8:ad66:d980:3462::/96', 'allocation_pools': [{'start': '2c4f:926b:53c8:ad66:d980:3462:0:2', 'end': '2c4f:926b:53c8:ad66:d980:3462:ffff:fffe'}], 'gateway_ip': '2c4f:926b:53c8:ad66:d980:3462:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c4f:926b:53c8:ad66:d980:3462:0:2', 'tags': [], 'project_id': '527c7c158f284fdab652f3ff9c534ba8'}} 2026-03-04 17:58:58,326 - INFO - Created VN ctest-vn4-30504651 2026-03-04 17:58:58,386 - DEBUG - VN ctest-vn4-30504651 UUID is d43d03f5-c911-46a6-a735-3e0b5185f4f5 2026-03-04 17:58:58,756 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd43d03f5-c911-46a6-a735-3e0b5185f4f5', 'name': 'ctest-vn4-30504651', 'tenant_id': '527c7c158f284fdab652f3ff9c534ba8', 'project_id': '527c7c158f284fdab652f3ff9c534ba8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c4279391-84e0-4016-bdb1-3028a20ca7b8', '69a5453d-0216-4469-a2b1-1f99888404c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07602875', 'ctest-vn4-30504651'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07602875', 'ctest-policy1-50072083']], 'subnet_ipam': [{'subnet_cidr': '85.254.22.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c4f:926b:53c8:ad66:d980:3462::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-04 17:58:58,935 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-04 17:58:59,275 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-04 17:58:59,349 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c11cb51-7d32-4c13-b931-f6b123b3625a 2026-03-04 17:58:59,374 - DEBUG - Requesting: http://10.0.0.38:8082/project/527c7c15-8f28-4fda-b652-f3ff9c534ba8 2026-03-04 17:58:59,481 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d43d03f5-c911-46a6-a735-3e0b5185f4f5 2026-03-04 17:58:59,504 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d43d03f5-c911-46a6-a735-3e0b5185f4f5 2026-03-04 17:58:59,525 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3b37bf23-7f03-4e66-9f12-3537b1767ae7 2026-03-04 17:58:59,539 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3b37bf23-7f03-4e66-9f12-3537b1767ae7 2026-03-04 17:58:59,554 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1d204389-530d-457f-ad24-6af2b463712f 2026-03-04 17:58:59,569 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-04 17:58:59,569 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d43d03f5-c911-46a6-a735-3e0b5185f4f5 2026-03-04 17:58:59,588 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3b37bf23-7f03-4e66-9f12-3537b1767ae7 2026-03-04 17:58:59,613 - INFO - Verified VN network id 11 for VN d43d03f5-c911-46a6-a735-3e0b5185f4f5 2026-03-04 17:58:59,613 - INFO - Verifications in API Server for VN ctest-vn4-30504651 passed 2026-03-04 17:58:59,614 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d43d03f5-c911-46a6-a735-3e0b5185f4f5 2026-03-04 17:58:59,630 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3b37bf23-7f03-4e66-9f12-3537b1767ae7 2026-03-04 17:58:59,642 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3b37bf23-7f03-4e66-9f12-3537b1767ae7 2026-03-04 17:58:59,656 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1d204389-530d-457f-ad24-6af2b463712f 2026-03-04 17:58:59,683 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07602875:ctest-vn4-30504651', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07602875', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15293384263795295910', 'uuid-lslong': '12048604596432925941'}, 'enable': 'true', 'created': '2026-03-04T17:58:57', 'last-modified': '2026-03-04T17:58:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982162'} 2026-03-04 17:58:59,699 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-04 17:58:59,699 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30504651 passed 2026-03-04 17:58:59,699 - DEBUG - ====Verifying policy data for ctest-vn4-30504651 in API_Server ====== 2026-03-04 17:58:59,699 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-04 17:58:59,710 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c11cb51-7d32-4c13-b931-f6b123b3625a 2026-03-04 17:58:59,738 - DEBUG - Requesting: http://10.0.0.38:8082/project/527c7c15-8f28-4fda-b652-f3ff9c534ba8 2026-03-04 17:58:59,858 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d43d03f5-c911-46a6-a735-3e0b5185f4f5 2026-03-04 17:58:59,884 - DEBUG - ==>Verifying data for policy with id: 75f47b70-f8eb-450b-87db-465aa794e800, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07602875', 'ctest-policy1-50072083'] 2026-03-04 17:58:59,884 - INFO - VN ctest-vn4-30504651 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-04 17:58:59,885 - DEBUG - Verifying the vn in opserver 2026-03-04 17:58:59,885 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07602875:ctest-vn4-30504651 virtual network link through opserver 10.0.0.38 2026-03-04 17:58:59,885 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-04 17:59:00,253 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-04 17:59:00,332 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07602875:ctest-vn4-30504651', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07602875:ctest-vn4-30504651?flat'} 2026-03-04 17:59:00,332 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07602875:ctest-vn4-30504651 is found in opserver 2026-03-04 17:59:00,357 - DEBUG - Do not have enough data to verify VN in agent 2026-03-04 17:59:00,366 - DEBUG - VRF ids for VN ctest-vn4-30504651: {} 2026-03-04 17:59:00,367 - DEBUG - ====Verifying data for ctest-policy1-50072083 in API_Server ====== 2026-03-04 17:59:00,367 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-04 17:59:00,376 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c11cb51-7d32-4c13-b931-f6b123b3625a 2026-03-04 17:59:00,402 - DEBUG - Requesting: http://10.0.0.38:8082/project/527c7c15-8f28-4fda-b652-f3ff9c534ba8 2026-03-04 17:59:00,513 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/75f47b70-f8eb-450b-87db-465aa794e800 2026-03-04 17:59:00,537 - INFO - Verified policy ctest-policy1-50072083 in API Server, Result: True 2026-03-04 17:59:00,537 - INFO - Done with setup and verification, moving onto test .. 2026-03-04 17:59:00,556 - INFO - Deleting VN ctest-vn4-30504651 2026-03-04 17:59:00,748 - DEBUG - Response for deleting network () 2026-03-04 17:59:00,748 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3b37bf23-7f03-4e66-9f12-3537b1767ae7 2026-03-04 17:59:00,752 - DEBUG - Response Code: 404 2026-03-04 17:59:00,752 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-04 17:59:00,758 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2c11cb51-7d32-4c13-b931-f6b123b3625a 2026-03-04 17:59:00,813 - DEBUG - Requesting: http://10.0.0.38:8082/project/527c7c15-8f28-4fda-b652-f3ff9c534ba8 2026-03-04 17:59:00,908 - INFO - Validated that VN ctest-vn4-30504651 is not found in API Server 2026-03-04 17:59:00,925 - DEBUG - VN ctest-vn4-30504651 is not present in Agent 10.0.0.38 2026-03-04 17:59:00,925 - INFO - Validated that VN ctest-vn4-30504651 is not in any agent 2026-03-04 17:59:00,956 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30504651 info 2026-03-04 17:59:00,995 - INFO - Deleted policy ctest-policy1-50072083 2026-03-04 17:59:01,178 - DEBUG - policy ctest-policy1-50072083 is not found in API Server 2026-03-04 17:59:01,504 - DEBUG - No XMPP flaps were noticed during the test