2026-06-19 14:22:11,001 - INFO - Domain Default found not creating 2026-06-19 14:22:11,161 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74150891 not found, creating it 2026-06-19 14:22:11,652 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74150891, ID : 84082837-71b5-45b0-aa16-40c991d224ed 2026-06-19 14:22:13,239 - INFO - ================================================================================ 2026-06-19 14:22:13,239 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 14:22:13,497 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.192': '0'}} with 2026-06-19 14:22:13,497 - INFO - Initial checks done. Running the testcase now 2026-06-19 14:22:13,498 - INFO - 2026-06-19 14:22:13,498 - INFO - ================================================================================ 2026-06-19 14:22:13,498 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 14:22:13,498 - 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-06-19 14:22:13,795 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.192': '0'}} with 2026-06-19 14:22:13,796 - INFO - Initial checks done. Running the testcase now 2026-06-19 14:22:13,796 - INFO - 2026-06-19 14:22:14,199 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74150891:ctest-vn4-39472831, 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-74150891:ctest-vn4-39472831, 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-74150891:ctest-vn4-39472831, 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-74150891:ctest-vn4-39472831, 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-06-19 14:22:14,723 - DEBUG - Response for create_network : {'network': {'id': '3146318f-5f65-4416-b27a-8e78ea8cde0a', 'name': 'ctest-vn4-39472831', 'tenant_id': '8408283771b545b0aa1640c991d224ed', 'project_id': '8408283771b545b0aa1640c991d224ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74150891', 'ctest-vn4-39472831'], 'port_security_enabled': True, 'description': ''}} 2026-06-19 14:22:14,909 - DEBUG - Response for create_subnet : {'subnet': {'id': '48e5dd8b-3877-432a-88e4-5fac64fe2af6', 'name': '', 'tenant_id': '8408283771b545b0aa1640c991d224ed', 'network_id': '3146318f-5f65-4416-b27a-8e78ea8cde0a', 'ip_version': 4, 'cidr': '50.91.213.128/26', 'allocation_pools': [{'start': '50.91.213.130', 'end': '50.91.213.190'}], 'gateway_ip': '50.91.213.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.91.213.130', 'tags': [], 'project_id': '8408283771b545b0aa1640c991d224ed'}} 2026-06-19 14:22:15,068 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2b3005f-a3d3-47cf-9429-40df4607f459', 'name': '', 'tenant_id': '8408283771b545b0aa1640c991d224ed', 'network_id': '3146318f-5f65-4416-b27a-8e78ea8cde0a', 'ip_version': 6, 'cidr': '2795:f5d6:f053:fd7a:391d:e250::/96', 'allocation_pools': [{'start': '2795:f5d6:f053:fd7a:391d:e250:0:2', 'end': '2795:f5d6:f053:fd7a:391d:e250:ffff:fffe'}], 'gateway_ip': '2795:f5d6:f053:fd7a:391d:e250:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2795:f5d6:f053:fd7a:391d:e250:0:2', 'tags': [], 'project_id': '8408283771b545b0aa1640c991d224ed'}} 2026-06-19 14:22:15,101 - INFO - Created VN ctest-vn4-39472831 2026-06-19 14:22:15,155 - DEBUG - VN ctest-vn4-39472831 UUID is 3146318f-5f65-4416-b27a-8e78ea8cde0a 2026-06-19 14:22:15,360 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3146318f-5f65-4416-b27a-8e78ea8cde0a', 'name': 'ctest-vn4-39472831', 'tenant_id': '8408283771b545b0aa1640c991d224ed', 'project_id': '8408283771b545b0aa1640c991d224ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['48e5dd8b-3877-432a-88e4-5fac64fe2af6', 'a2b3005f-a3d3-47cf-9429-40df4607f459'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74150891', 'ctest-vn4-39472831'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74150891', 'ctest-policy1-60907950']], 'subnet_ipam': [{'subnet_cidr': '50.91.213.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2795:f5d6:f053:fd7a:391d:e250::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-19 14:22:15,539 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-19 14:22:15,866 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-19 14:22:15,895 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c744c3b0-69de-4f47-8572-1c2cfc0755d4 2026-06-19 14:22:15,908 - DEBUG - Requesting: http://10.0.0.249:8082/project/84082837-71b5-45b0-aa16-40c991d224ed 2026-06-19 14:22:15,981 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3146318f-5f65-4416-b27a-8e78ea8cde0a 2026-06-19 14:22:15,993 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3146318f-5f65-4416-b27a-8e78ea8cde0a 2026-06-19 14:22:16,002 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c508a2d3-7808-4e59-8574-d1935b574698 2026-06-19 14:22:16,010 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c508a2d3-7808-4e59-8574-d1935b574698 2026-06-19 14:22:16,018 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/de251003-0e7a-46a6-82c0-4daea41bf19d 2026-06-19 14:22:16,025 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 14:22:16,025 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3146318f-5f65-4416-b27a-8e78ea8cde0a 2026-06-19 14:22:16,035 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c508a2d3-7808-4e59-8574-d1935b574698 2026-06-19 14:22:16,050 - INFO - Verified VN network id 11 for VN 3146318f-5f65-4416-b27a-8e78ea8cde0a 2026-06-19 14:22:16,050 - INFO - Verifications in API Server for VN ctest-vn4-39472831 passed 2026-06-19 14:22:16,050 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3146318f-5f65-4416-b27a-8e78ea8cde0a 2026-06-19 14:22:16,061 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c508a2d3-7808-4e59-8574-d1935b574698 2026-06-19 14:22:16,068 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c508a2d3-7808-4e59-8574-d1935b574698 2026-06-19 14:22:16,075 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/de251003-0e7a-46a6-82c0-4daea41bf19d 2026-06-19 14:22:16,086 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74150891:ctest-vn4-39472831', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74150891', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3550579848078771222', 'uuid-lslong': '12860748335892192778'}, 'enable': 'true', 'created': '2026-06-19T14:22:14', 'last-modified': '2026-06-19T14:22:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.768520'} 2026-06-19 14:22:16,092 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 14:22:16,092 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39472831 passed 2026-06-19 14:22:16,092 - DEBUG - ====Verifying policy data for ctest-vn4-39472831 in API_Server ====== 2026-06-19 14:22:16,092 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-19 14:22:16,097 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c744c3b0-69de-4f47-8572-1c2cfc0755d4 2026-06-19 14:22:16,108 - DEBUG - Requesting: http://10.0.0.249:8082/project/84082837-71b5-45b0-aa16-40c991d224ed 2026-06-19 14:22:16,185 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/3146318f-5f65-4416-b27a-8e78ea8cde0a 2026-06-19 14:22:16,196 - DEBUG - ==>Verifying data for policy with id: f6d2bfdc-41bc-445b-9905-1fc37cf80fc3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74150891', 'ctest-policy1-60907950'] 2026-06-19 14:22:16,196 - INFO - VN ctest-vn4-39472831 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-19 14:22:16,196 - DEBUG - Verifying the vn in opserver 2026-06-19 14:22:16,196 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74150891:ctest-vn4-39472831 virtual network link through opserver 10.0.0.249 2026-06-19 14:22:16,196 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-19 14:22:16,543 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-19 14:22:16,602 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74150891:ctest-vn4-39472831', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74150891:ctest-vn4-39472831?flat'} 2026-06-19 14:22:16,602 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74150891:ctest-vn4-39472831 is found in opserver 2026-06-19 14:22:16,611 - DEBUG - Do not have enough data to verify VN in agent 2026-06-19 14:22:16,615 - DEBUG - VRF ids for VN ctest-vn4-39472831: {} 2026-06-19 14:22:16,615 - DEBUG - ====Verifying data for ctest-policy1-60907950 in API_Server ====== 2026-06-19 14:22:16,615 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-19 14:22:16,620 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c744c3b0-69de-4f47-8572-1c2cfc0755d4 2026-06-19 14:22:16,630 - DEBUG - Requesting: http://10.0.0.249:8082/project/84082837-71b5-45b0-aa16-40c991d224ed 2026-06-19 14:22:16,704 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/f6d2bfdc-41bc-445b-9905-1fc37cf80fc3 2026-06-19 14:22:16,714 - INFO - Verified policy ctest-policy1-60907950 in API Server, Result: True 2026-06-19 14:22:16,714 - INFO - Done with setup and verification, moving onto test .. 2026-06-19 14:22:16,722 - INFO - Deleting VN ctest-vn4-39472831 2026-06-19 14:22:16,858 - DEBUG - Response for deleting network () 2026-06-19 14:22:16,858 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c508a2d3-7808-4e59-8574-d1935b574698 2026-06-19 14:22:16,863 - DEBUG - Response Code: 404 2026-06-19 14:22:16,863 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-06-19 14:22:16,870 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c744c3b0-69de-4f47-8572-1c2cfc0755d4 2026-06-19 14:22:16,924 - DEBUG - Requesting: http://10.0.0.249:8082/project/84082837-71b5-45b0-aa16-40c991d224ed 2026-06-19 14:22:17,001 - INFO - Validated that VN ctest-vn4-39472831 is not found in API Server 2026-06-19 14:22:17,010 - DEBUG - VN ctest-vn4-39472831 is not present in Agent 10.0.0.249 2026-06-19 14:22:17,010 - INFO - Validated that VN ctest-vn4-39472831 is not in any agent 2026-06-19 14:22:17,024 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39472831 info 2026-06-19 14:22:17,051 - INFO - Deleted policy ctest-policy1-60907950 2026-06-19 14:22:17,222 - DEBUG - policy ctest-policy1-60907950 is not found in API Server 2026-06-19 14:22:17,480 - DEBUG - No XMPP flaps were noticed during the test 2026-06-19 14:22:17,480 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-19 14:22:17,481 - INFO - -------------------------------------------------------------------------------- 2026-06-19 14:22:17,775 - DEBUG - No XMPP flaps were noticed during the test 2026-06-19 14:22:17,776 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-19 14:22:17,776 - INFO - -------------------------------------------------------------------------------- 2026-06-19 14:22:18,508 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74150891, ID : 84082837-71b5-45b0-aa16-40c991d224ed