2026-09-30 07:29:32,150 - INFO - Domain Default found not creating 2026-09-30 07:29:32,357 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-53564465 not found, creating it 2026-09-30 07:29:32,900 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-53564465, ID : b9e4591d-1304-466c-907c-fa45079ed7f3 2026-09-30 07:29:34,762 - INFO - ================================================================================ 2026-09-30 07:29:34,763 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-30 07:29:35,032 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-09-30 07:29:35,032 - INFO - Initial checks done. Running the testcase now 2026-09-30 07:29:35,032 - INFO - 2026-09-30 07:29:35,032 - INFO - ================================================================================ 2026-09-30 07:29:35,032 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-30 07:29:35,032 - 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-30 07:29:35,330 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-09-30 07:29:35,330 - INFO - Initial checks done. Running the testcase now 2026-09-30 07:29:35,330 - INFO - 2026-09-30 07:29:35,784 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53564465:ctest-vn4-45274758, 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-53564465:ctest-vn4-45274758, 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-53564465:ctest-vn4-45274758, 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-53564465:ctest-vn4-45274758, 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-30 07:29:36,340 - DEBUG - Response for create_network : {'network': {'id': 'da9c6acf-1c6a-4c3b-aa1d-3cfa626e2f74', 'name': 'ctest-vn4-45274758', 'tenant_id': 'b9e4591d1304466c907cfa45079ed7f3', 'project_id': 'b9e4591d1304466c907cfa45079ed7f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53564465', 'ctest-vn4-45274758'], 'port_security_enabled': True, 'description': ''}} 2026-09-30 07:29:36,592 - DEBUG - Response for create_subnet : {'subnet': {'id': '418c66d6-2840-4e85-89af-9868f95ebcf8', 'name': '', 'tenant_id': 'b9e4591d1304466c907cfa45079ed7f3', 'network_id': 'da9c6acf-1c6a-4c3b-aa1d-3cfa626e2f74', 'ip_version': 4, 'cidr': '130.1.59.64/26', 'allocation_pools': [{'start': '130.1.59.66', 'end': '130.1.59.126'}], 'gateway_ip': '130.1.59.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.1.59.66', 'tags': [], 'project_id': 'b9e4591d1304466c907cfa45079ed7f3'}} 2026-09-30 07:29:36,795 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d812c14-c43b-4323-a8fc-624423cfa522', 'name': '', 'tenant_id': 'b9e4591d1304466c907cfa45079ed7f3', 'network_id': 'da9c6acf-1c6a-4c3b-aa1d-3cfa626e2f74', 'ip_version': 6, 'cidr': '3a30:dbc0:e5e9:4a45:9bb7:9287::/96', 'allocation_pools': [{'start': '3a30:dbc0:e5e9:4a45:9bb7:9287:0:2', 'end': '3a30:dbc0:e5e9:4a45:9bb7:9287:ffff:fffe'}], 'gateway_ip': '3a30:dbc0:e5e9:4a45:9bb7:9287:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a30:dbc0:e5e9:4a45:9bb7:9287:0:2', 'tags': [], 'project_id': 'b9e4591d1304466c907cfa45079ed7f3'}} 2026-09-30 07:29:36,817 - INFO - Created VN ctest-vn4-45274758 2026-09-30 07:29:36,872 - DEBUG - VN ctest-vn4-45274758 UUID is da9c6acf-1c6a-4c3b-aa1d-3cfa626e2f74 2026-09-30 07:29:37,123 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da9c6acf-1c6a-4c3b-aa1d-3cfa626e2f74', 'name': 'ctest-vn4-45274758', 'tenant_id': 'b9e4591d1304466c907cfa45079ed7f3', 'project_id': 'b9e4591d1304466c907cfa45079ed7f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['418c66d6-2840-4e85-89af-9868f95ebcf8', '9d812c14-c43b-4323-a8fc-624423cfa522'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53564465', 'ctest-vn4-45274758'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53564465', 'ctest-policy1-87591177']], 'subnet_ipam': [{'subnet_cidr': '130.1.59.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a30:dbc0:e5e9:4a45:9bb7:9287::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-30 07:29:37,300 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-30 07:29:37,706 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-30 07:29:37,744 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bc41fe51-6fd7-4bd5-9b10-b81ab74ee310 2026-09-30 07:29:37,763 - DEBUG - Requesting: http://10.0.0.38:8082/project/b9e4591d-1304-466c-907c-fa45079ed7f3 2026-09-30 07:29:37,852 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da9c6acf-1c6a-4c3b-aa1d-3cfa626e2f74 2026-09-30 07:29:37,870 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da9c6acf-1c6a-4c3b-aa1d-3cfa626e2f74 2026-09-30 07:29:37,884 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7bc19c8a-520b-4c0b-914f-93c81fa5b213 2026-09-30 07:29:37,894 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7bc19c8a-520b-4c0b-914f-93c81fa5b213 2026-09-30 07:29:37,905 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/747b0f44-959c-41db-ad74-87519160fe2e 2026-09-30 07:29:37,916 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-30 07:29:37,916 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da9c6acf-1c6a-4c3b-aa1d-3cfa626e2f74 2026-09-30 07:29:37,930 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7bc19c8a-520b-4c0b-914f-93c81fa5b213 2026-09-30 07:29:37,949 - INFO - Verified VN network id 10 for VN da9c6acf-1c6a-4c3b-aa1d-3cfa626e2f74 2026-09-30 07:29:37,949 - INFO - Verifications in API Server for VN ctest-vn4-45274758 passed 2026-09-30 07:29:37,949 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da9c6acf-1c6a-4c3b-aa1d-3cfa626e2f74 2026-09-30 07:29:37,964 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7bc19c8a-520b-4c0b-914f-93c81fa5b213 2026-09-30 07:29:37,975 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7bc19c8a-520b-4c0b-914f-93c81fa5b213 2026-09-30 07:29:37,984 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/747b0f44-959c-41db-ad74-87519160fe2e 2026-09-30 07:29:38,001 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53564465:ctest-vn4-45274758', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-53564465', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15752583034402655291', 'uuid-lslong': '12258020806863236980'}, 'enable': 'true', 'created': '2026-09-30T07:29:36', 'last-modified': '2026-09-30T07:29:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.909750'} 2026-09-30 07:29:38,010 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-30 07:29:38,010 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45274758 passed 2026-09-30 07:29:38,010 - DEBUG - ====Verifying policy data for ctest-vn4-45274758 in API_Server ====== 2026-09-30 07:29:38,010 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-30 07:29:38,018 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bc41fe51-6fd7-4bd5-9b10-b81ab74ee310 2026-09-30 07:29:38,035 - DEBUG - Requesting: http://10.0.0.38:8082/project/b9e4591d-1304-466c-907c-fa45079ed7f3 2026-09-30 07:29:38,124 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da9c6acf-1c6a-4c3b-aa1d-3cfa626e2f74 2026-09-30 07:29:38,138 - DEBUG - ==>Verifying data for policy with id: 16df359d-2cef-48b5-b182-e4a2b5f77428, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53564465', 'ctest-policy1-87591177'] 2026-09-30 07:29:38,138 - INFO - VN ctest-vn4-45274758 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-30 07:29:38,138 - DEBUG - Verifying the vn in opserver 2026-09-30 07:29:38,138 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53564465:ctest-vn4-45274758 virtual network link through opserver 10.0.0.38 2026-09-30 07:29:38,138 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-30 07:29:38,508 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-30 07:29:38,576 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53564465:ctest-vn4-45274758', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53564465:ctest-vn4-45274758?flat'} 2026-09-30 07:29:38,576 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53564465:ctest-vn4-45274758 is found in opserver 2026-09-30 07:29:38,589 - DEBUG - Do not have enough data to verify VN in agent 2026-09-30 07:29:38,597 - DEBUG - VRF ids for VN ctest-vn4-45274758: {} 2026-09-30 07:29:38,598 - DEBUG - ====Verifying data for ctest-policy1-87591177 in API_Server ====== 2026-09-30 07:29:38,598 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-30 07:29:38,605 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bc41fe51-6fd7-4bd5-9b10-b81ab74ee310 2026-09-30 07:29:38,619 - DEBUG - Requesting: http://10.0.0.38:8082/project/b9e4591d-1304-466c-907c-fa45079ed7f3 2026-09-30 07:29:38,700 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/16df359d-2cef-48b5-b182-e4a2b5f77428 2026-09-30 07:29:38,712 - INFO - Verified policy ctest-policy1-87591177 in API Server, Result: True 2026-09-30 07:29:38,713 - INFO - Done with setup and verification, moving onto test .. 2026-09-30 07:29:38,723 - INFO - Deleting VN ctest-vn4-45274758 2026-09-30 07:29:38,886 - DEBUG - Response for deleting network () 2026-09-30 07:29:38,886 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7bc19c8a-520b-4c0b-914f-93c81fa5b213 2026-09-30 07:29:38,898 - DEBUG - Response Code: 404 2026-09-30 07:29:38,898 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-30 07:29:38,909 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bc41fe51-6fd7-4bd5-9b10-b81ab74ee310 2026-09-30 07:29:38,923 - DEBUG - Requesting: http://10.0.0.38:8082/project/b9e4591d-1304-466c-907c-fa45079ed7f3 2026-09-30 07:29:39,009 - INFO - Validated that VN ctest-vn4-45274758 is not found in API Server 2026-09-30 07:29:39,024 - DEBUG - VN ctest-vn4-45274758 is not present in Agent 10.0.0.38 2026-09-30 07:29:39,024 - INFO - Validated that VN ctest-vn4-45274758 is not in any agent 2026-09-30 07:29:39,043 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45274758 info 2026-09-30 07:29:39,090 - INFO - Deleted policy ctest-policy1-87591177 2026-09-30 07:29:39,271 - DEBUG - policy ctest-policy1-87591177 is not found in API Server 2026-09-30 07:29:39,540 - DEBUG - No XMPP flaps were noticed during the test