2026-09-01 21:28:28,515 - INFO - Domain Default found not creating 2026-09-01 21:28:28,692 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-75777067 not found, creating it 2026-09-01 21:28:29,198 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-75777067, ID : a73cab44-ce73-4897-aa0c-fa8ca58eeff6 2026-09-01 21:28:30,961 - INFO - ================================================================================ 2026-09-01 21:28:30,961 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-01 21:28:31,230 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-09-01 21:28:31,230 - INFO - Initial checks done. Running the testcase now 2026-09-01 21:28:31,230 - INFO - 2026-09-01 21:28:31,230 - INFO - ================================================================================ 2026-09-01 21:28:31,230 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-01 21:28:31,230 - 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-01 21:28:31,516 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-09-01 21:28:31,516 - INFO - Initial checks done. Running the testcase now 2026-09-01 21:28:31,516 - INFO - 2026-09-01 21:28:31,947 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75777067:ctest-vn4-82380408, 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-75777067:ctest-vn4-82380408, 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-75777067:ctest-vn4-82380408, 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-75777067:ctest-vn4-82380408, 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-01 21:28:32,488 - DEBUG - Response for create_network : {'network': {'id': 'fe3ea84b-cfa7-4418-8821-7e95c849a7d0', 'name': 'ctest-vn4-82380408', 'tenant_id': 'a73cab44ce734897aa0cfa8ca58eeff6', 'project_id': 'a73cab44ce734897aa0cfa8ca58eeff6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75777067', 'ctest-vn4-82380408'], 'port_security_enabled': True, 'description': ''}} 2026-09-01 21:28:32,694 - DEBUG - Response for create_subnet : {'subnet': {'id': '48225e57-d3bd-4b70-9010-e381a50bfe68', 'name': '', 'tenant_id': 'a73cab44ce734897aa0cfa8ca58eeff6', 'network_id': 'fe3ea84b-cfa7-4418-8821-7e95c849a7d0', 'ip_version': 4, 'cidr': '105.170.146.64/26', 'allocation_pools': [{'start': '105.170.146.66', 'end': '105.170.146.126'}], 'gateway_ip': '105.170.146.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.170.146.66', 'tags': [], 'project_id': 'a73cab44ce734897aa0cfa8ca58eeff6'}} 2026-09-01 21:28:32,858 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f053948-f89c-4b7e-81cb-6fb2b2a3421c', 'name': '', 'tenant_id': 'a73cab44ce734897aa0cfa8ca58eeff6', 'network_id': 'fe3ea84b-cfa7-4418-8821-7e95c849a7d0', 'ip_version': 6, 'cidr': '3a29:f0e8:c2cd:8eeb:dbe6:51ff::/96', 'allocation_pools': [{'start': '3a29:f0e8:c2cd:8eeb:dbe6:51ff:0:2', 'end': '3a29:f0e8:c2cd:8eeb:dbe6:51ff:ffff:fffe'}], 'gateway_ip': '3a29:f0e8:c2cd:8eeb:dbe6:51ff:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a29:f0e8:c2cd:8eeb:dbe6:51ff:0:2', 'tags': [], 'project_id': 'a73cab44ce734897aa0cfa8ca58eeff6'}} 2026-09-01 21:28:32,877 - INFO - Created VN ctest-vn4-82380408 2026-09-01 21:28:32,930 - DEBUG - VN ctest-vn4-82380408 UUID is fe3ea84b-cfa7-4418-8821-7e95c849a7d0 2026-09-01 21:28:33,153 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fe3ea84b-cfa7-4418-8821-7e95c849a7d0', 'name': 'ctest-vn4-82380408', 'tenant_id': 'a73cab44ce734897aa0cfa8ca58eeff6', 'project_id': 'a73cab44ce734897aa0cfa8ca58eeff6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['48225e57-d3bd-4b70-9010-e381a50bfe68', '0f053948-f89c-4b7e-81cb-6fb2b2a3421c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75777067', 'ctest-vn4-82380408'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75777067', 'ctest-policy1-78386106']], 'subnet_ipam': [{'subnet_cidr': '105.170.146.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a29:f0e8:c2cd:8eeb:dbe6:51ff::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-01 21:28:33,318 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-01 21:28:33,687 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-01 21:28:33,718 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7cb0c5bf-a2e3-48eb-8736-e100863ca599 2026-09-01 21:28:33,731 - DEBUG - Requesting: http://10.0.0.50:8082/project/a73cab44-ce73-4897-aa0c-fa8ca58eeff6 2026-09-01 21:28:33,807 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe3ea84b-cfa7-4418-8821-7e95c849a7d0 2026-09-01 21:28:33,821 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe3ea84b-cfa7-4418-8821-7e95c849a7d0 2026-09-01 21:28:33,832 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/88391738-4bf1-42e6-82a2-fae5170bb089 2026-09-01 21:28:33,842 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/88391738-4bf1-42e6-82a2-fae5170bb089 2026-09-01 21:28:33,850 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8b5c9b5b-f1e4-4097-b356-0130baa504b6 2026-09-01 21:28:33,858 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-01 21:28:33,858 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe3ea84b-cfa7-4418-8821-7e95c849a7d0 2026-09-01 21:28:33,870 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/88391738-4bf1-42e6-82a2-fae5170bb089 2026-09-01 21:28:33,887 - INFO - Verified VN network id 12 for VN fe3ea84b-cfa7-4418-8821-7e95c849a7d0 2026-09-01 21:28:33,888 - INFO - Verifications in API Server for VN ctest-vn4-82380408 passed 2026-09-01 21:28:33,888 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe3ea84b-cfa7-4418-8821-7e95c849a7d0 2026-09-01 21:28:33,898 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/88391738-4bf1-42e6-82a2-fae5170bb089 2026-09-01 21:28:33,907 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/88391738-4bf1-42e6-82a2-fae5170bb089 2026-09-01 21:28:33,915 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8b5c9b5b-f1e4-4097-b356-0130baa504b6 2026-09-01 21:28:33,929 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75777067:ctest-vn4-82380408', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75777067', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18320265377749615640', 'uuid-lslong': '9809260645165148112'}, 'enable': 'true', 'created': '2026-09-01T21:28:32', 'last-modified': '2026-09-01T21:28:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.809769'} 2026-09-01 21:28:33,937 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-01 21:28:33,937 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82380408 passed 2026-09-01 21:28:33,938 - DEBUG - ====Verifying policy data for ctest-vn4-82380408 in API_Server ====== 2026-09-01 21:28:33,938 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-01 21:28:33,945 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7cb0c5bf-a2e3-48eb-8736-e100863ca599 2026-09-01 21:28:33,960 - DEBUG - Requesting: http://10.0.0.50:8082/project/a73cab44-ce73-4897-aa0c-fa8ca58eeff6 2026-09-01 21:28:34,037 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fe3ea84b-cfa7-4418-8821-7e95c849a7d0 2026-09-01 21:28:34,048 - DEBUG - ==>Verifying data for policy with id: dcca81d2-9274-471f-8e62-1201007d411a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75777067', 'ctest-policy1-78386106'] 2026-09-01 21:28:34,048 - INFO - VN ctest-vn4-82380408 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-01 21:28:34,048 - DEBUG - Verifying the vn in opserver 2026-09-01 21:28:34,048 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75777067:ctest-vn4-82380408 virtual network link through opserver 10.0.0.50 2026-09-01 21:28:34,048 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-09-01 21:28:34,421 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-09-01 21:28:34,486 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75777067:ctest-vn4-82380408', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75777067:ctest-vn4-82380408?flat'} 2026-09-01 21:28:34,486 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75777067:ctest-vn4-82380408 is found in opserver 2026-09-01 21:28:34,499 - DEBUG - Do not have enough data to verify VN in agent 2026-09-01 21:28:34,505 - DEBUG - VRF ids for VN ctest-vn4-82380408: {} 2026-09-01 21:28:34,506 - DEBUG - ====Verifying data for ctest-policy1-78386106 in API_Server ====== 2026-09-01 21:28:34,506 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-01 21:28:34,513 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7cb0c5bf-a2e3-48eb-8736-e100863ca599 2026-09-01 21:28:34,526 - DEBUG - Requesting: http://10.0.0.50:8082/project/a73cab44-ce73-4897-aa0c-fa8ca58eeff6 2026-09-01 21:28:34,607 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/dcca81d2-9274-471f-8e62-1201007d411a 2026-09-01 21:28:34,618 - INFO - Verified policy ctest-policy1-78386106 in API Server, Result: True 2026-09-01 21:28:34,618 - INFO - Done with setup and verification, moving onto test .. 2026-09-01 21:28:34,628 - INFO - Deleting VN ctest-vn4-82380408 2026-09-01 21:28:34,793 - DEBUG - Response for deleting network () 2026-09-01 21:28:34,794 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/88391738-4bf1-42e6-82a2-fae5170bb089 2026-09-01 21:28:34,800 - DEBUG - Response Code: 404 2026-09-01 21:28:34,801 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-09-01 21:28:34,807 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7cb0c5bf-a2e3-48eb-8736-e100863ca599 2026-09-01 21:28:34,864 - DEBUG - Requesting: http://10.0.0.50:8082/project/a73cab44-ce73-4897-aa0c-fa8ca58eeff6 2026-09-01 21:28:34,952 - INFO - Validated that VN ctest-vn4-82380408 is not found in API Server 2026-09-01 21:28:34,965 - DEBUG - VN ctest-vn4-82380408 is not present in Agent 10.0.0.50 2026-09-01 21:28:34,965 - INFO - Validated that VN ctest-vn4-82380408 is not in any agent 2026-09-01 21:28:34,982 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82380408 info 2026-09-01 21:28:35,011 - INFO - Deleted policy ctest-policy1-78386106 2026-09-01 21:28:35,178 - DEBUG - policy ctest-policy1-78386106 is not found in API Server 2026-09-01 21:28:35,452 - DEBUG - No XMPP flaps were noticed during the test