2026-09-16 13:08:39,954 - INFO - Domain Default found not creating 2026-09-16 13:08:40,112 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38199681 not found, creating it 2026-09-16 13:08:40,585 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38199681, ID : 46361ac0-4771-49a7-baf9-2080ad592826 2026-09-16 13:08:43,067 - INFO - ================================================================================ 2026-09-16 13:08:43,068 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 13:08:43,342 - DEBUG - Nothing to compare xmpp stats {'10.0.0.191': {'10.20.0.29': '0'}} with 2026-09-16 13:08:43,342 - INFO - Initial checks done. Running the testcase now 2026-09-16 13:08:43,342 - INFO - 2026-09-16 13:08:43,342 - INFO - ================================================================================ 2026-09-16 13:08:43,342 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 13:08:43,342 - 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-16 13:08:43,643 - DEBUG - Nothing to compare xmpp stats {'10.0.0.191': {'10.20.0.29': '0'}} with 2026-09-16 13:08:43,643 - INFO - Initial checks done. Running the testcase now 2026-09-16 13:08:43,643 - INFO - 2026-09-16 13:08:44,042 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38199681:ctest-vn4-49706413, 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-38199681:ctest-vn4-49706413, 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-38199681:ctest-vn4-49706413, 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-38199681:ctest-vn4-49706413, 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-16 13:08:44,579 - DEBUG - Response for create_network : {'network': {'id': '8261dacf-ab42-4f1a-aef1-7ce16c29820a', 'name': 'ctest-vn4-49706413', 'tenant_id': '46361ac0477149a7baf92080ad592826', 'project_id': '46361ac0477149a7baf92080ad592826', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38199681', 'ctest-vn4-49706413'], 'port_security_enabled': True, 'description': ''}} 2026-09-16 13:08:44,771 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd573ef4a-2ff3-4899-98d2-27ae3bb6bcd5', 'name': '', 'tenant_id': '46361ac0477149a7baf92080ad592826', 'network_id': '8261dacf-ab42-4f1a-aef1-7ce16c29820a', 'ip_version': 4, 'cidr': '97.97.186.64/26', 'allocation_pools': [{'start': '97.97.186.66', 'end': '97.97.186.126'}], 'gateway_ip': '97.97.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.97.186.66', 'tags': [], 'project_id': '46361ac0477149a7baf92080ad592826'}} 2026-09-16 13:08:44,977 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b31aae01-77b4-4333-bd78-24f113923e58', 'name': '', 'tenant_id': '46361ac0477149a7baf92080ad592826', 'network_id': '8261dacf-ab42-4f1a-aef1-7ce16c29820a', 'ip_version': 6, 'cidr': '2bc6:77c2:6756:f023:7c8b:df98::/96', 'allocation_pools': [{'start': '2bc6:77c2:6756:f023:7c8b:df98:0:2', 'end': '2bc6:77c2:6756:f023:7c8b:df98:ffff:fffe'}], 'gateway_ip': '2bc6:77c2:6756:f023:7c8b:df98:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bc6:77c2:6756:f023:7c8b:df98:0:2', 'tags': [], 'project_id': '46361ac0477149a7baf92080ad592826'}} 2026-09-16 13:08:44,998 - INFO - Created VN ctest-vn4-49706413 2026-09-16 13:08:45,053 - DEBUG - VN ctest-vn4-49706413 UUID is 8261dacf-ab42-4f1a-aef1-7ce16c29820a 2026-09-16 13:08:45,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8261dacf-ab42-4f1a-aef1-7ce16c29820a', 'name': 'ctest-vn4-49706413', 'tenant_id': '46361ac0477149a7baf92080ad592826', 'project_id': '46361ac0477149a7baf92080ad592826', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d573ef4a-2ff3-4899-98d2-27ae3bb6bcd5', 'b31aae01-77b4-4333-bd78-24f113923e58'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38199681', 'ctest-vn4-49706413'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38199681', 'ctest-policy1-63359451']], 'subnet_ipam': [{'subnet_cidr': '97.97.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bc6:77c2:6756:f023:7c8b:df98::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-16 13:08:45,433 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-09-16 13:08:45,827 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-09-16 13:08:45,858 - DEBUG - Requesting: http://10.0.0.191:8082/domain/75ab2a26-db34-4e82-bb74-0e6976d0a601 2026-09-16 13:08:45,871 - DEBUG - Requesting: http://10.0.0.191:8082/project/46361ac0-4771-49a7-baf9-2080ad592826 2026-09-16 13:08:45,947 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/8261dacf-ab42-4f1a-aef1-7ce16c29820a 2026-09-16 13:08:45,959 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/8261dacf-ab42-4f1a-aef1-7ce16c29820a 2026-09-16 13:08:45,969 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/58fcd568-1f40-418f-b26a-04af48c75eb6 2026-09-16 13:08:45,975 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/58fcd568-1f40-418f-b26a-04af48c75eb6 2026-09-16 13:08:45,981 - DEBUG - Requesting: http://10.0.0.191:8082/route-target/7aa1cf42-a3d7-4516-a93f-aa67ab05c85e 2026-09-16 13:08:45,986 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 13:08:45,986 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/8261dacf-ab42-4f1a-aef1-7ce16c29820a 2026-09-16 13:08:45,995 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/58fcd568-1f40-418f-b26a-04af48c75eb6 2026-09-16 13:08:46,012 - INFO - Verified VN network id 12 for VN 8261dacf-ab42-4f1a-aef1-7ce16c29820a 2026-09-16 13:08:46,012 - INFO - Verifications in API Server for VN ctest-vn4-49706413 passed 2026-09-16 13:08:46,012 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/8261dacf-ab42-4f1a-aef1-7ce16c29820a 2026-09-16 13:08:46,023 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/58fcd568-1f40-418f-b26a-04af48c75eb6 2026-09-16 13:08:46,030 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/58fcd568-1f40-418f-b26a-04af48c75eb6 2026-09-16 13:08:46,037 - DEBUG - Requesting: http://10.0.0.191:8082/route-target/7aa1cf42-a3d7-4516-a93f-aa67ab05c85e 2026-09-16 13:08:46,050 - DEBUG - Control-node 10.0.0.191 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38199681:ctest-vn4-49706413', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38199681', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9395030883137900314', 'uuid-lslong': '12605994139610874378'}, 'enable': 'true', 'created': '2026-09-16T13:08:44', 'last-modified': '2026-09-16T13:08:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.823712'} 2026-09-16 13:08:46,056 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 13:08:46,057 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49706413 passed 2026-09-16 13:08:46,057 - DEBUG - ====Verifying policy data for ctest-vn4-49706413 in API_Server ====== 2026-09-16 13:08:46,057 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-09-16 13:08:46,063 - DEBUG - Requesting: http://10.0.0.191:8082/domain/75ab2a26-db34-4e82-bb74-0e6976d0a601 2026-09-16 13:08:46,074 - DEBUG - Requesting: http://10.0.0.191:8082/project/46361ac0-4771-49a7-baf9-2080ad592826 2026-09-16 13:08:46,154 - DEBUG - Requesting: http://10.0.0.191:8082/virtual-network/8261dacf-ab42-4f1a-aef1-7ce16c29820a 2026-09-16 13:08:46,164 - DEBUG - ==>Verifying data for policy with id: 7ff675a4-12fc-49eb-9193-2fcdbf0f055d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38199681', 'ctest-policy1-63359451'] 2026-09-16 13:08:46,164 - INFO - VN ctest-vn4-49706413 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-16 13:08:46,164 - DEBUG - Verifying the vn in opserver 2026-09-16 13:08:46,164 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38199681:ctest-vn4-49706413 virtual network link through opserver 10.0.0.191 2026-09-16 13:08:46,165 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-09-16 13:08:46,537 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-09-16 13:08:46,593 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38199681:ctest-vn4-49706413', 'href': 'http://10.0.0.191:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38199681:ctest-vn4-49706413?flat'} 2026-09-16 13:08:46,593 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38199681:ctest-vn4-49706413 is found in opserver 2026-09-16 13:08:46,605 - DEBUG - Do not have enough data to verify VN in agent 2026-09-16 13:08:46,611 - DEBUG - VRF ids for VN ctest-vn4-49706413: {} 2026-09-16 13:08:46,611 - DEBUG - ====Verifying data for ctest-policy1-63359451 in API_Server ====== 2026-09-16 13:08:46,611 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-09-16 13:08:46,619 - DEBUG - Requesting: http://10.0.0.191:8082/domain/75ab2a26-db34-4e82-bb74-0e6976d0a601 2026-09-16 13:08:46,634 - DEBUG - Requesting: http://10.0.0.191:8082/project/46361ac0-4771-49a7-baf9-2080ad592826 2026-09-16 13:08:46,714 - DEBUG - Requesting: http://10.0.0.191:8082/network-policy/7ff675a4-12fc-49eb-9193-2fcdbf0f055d 2026-09-16 13:08:46,725 - INFO - Verified policy ctest-policy1-63359451 in API Server, Result: True 2026-09-16 13:08:46,725 - INFO - Done with setup and verification, moving onto test .. 2026-09-16 13:08:46,739 - INFO - Deleting VN ctest-vn4-49706413 2026-09-16 13:08:46,896 - DEBUG - Response for deleting network () 2026-09-16 13:08:46,896 - DEBUG - Requesting: http://10.0.0.191:8082/routing-instance/58fcd568-1f40-418f-b26a-04af48c75eb6 2026-09-16 13:08:46,902 - DEBUG - Response Code: 404 2026-09-16 13:08:46,902 - DEBUG - Requesting: http://10.0.0.191:8082/domains 2026-09-16 13:08:46,909 - DEBUG - Requesting: http://10.0.0.191:8082/domain/75ab2a26-db34-4e82-bb74-0e6976d0a601 2026-09-16 13:08:46,962 - DEBUG - Requesting: http://10.0.0.191:8082/project/46361ac0-4771-49a7-baf9-2080ad592826 2026-09-16 13:08:47,036 - INFO - Validated that VN ctest-vn4-49706413 is not found in API Server 2026-09-16 13:08:47,047 - DEBUG - VN ctest-vn4-49706413 is not present in Agent 10.0.0.191 2026-09-16 13:08:47,047 - INFO - Validated that VN ctest-vn4-49706413 is not in any agent 2026-09-16 13:08:47,063 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49706413 info 2026-09-16 13:08:47,094 - INFO - Deleted policy ctest-policy1-63359451 2026-09-16 13:08:47,261 - DEBUG - policy ctest-policy1-63359451 is not found in API Server 2026-09-16 13:08:47,539 - DEBUG - No XMPP flaps were noticed during the test 2026-09-16 13:08:47,539 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-16 13:08:47,539 - INFO - -------------------------------------------------------------------------------- 2026-09-16 13:08:47,833 - DEBUG - No XMPP flaps were noticed during the test 2026-09-16 13:08:47,833 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-16 13:08:47,833 - INFO - -------------------------------------------------------------------------------- 2026-09-16 13:08:48,669 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-38199681, ID : 46361ac0-4771-49a7-baf9-2080ad592826