2026-10-30 01:09:13,716 - INFO - Domain Default found not creating 2026-10-30 01:09:13,846 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-12135261 not found, creating it 2026-10-30 01:09:14,317 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-12135261, ID : 9527413b-2903-4bda-8bfd-b60a0d640bf7 2026-10-30 01:09:15,719 - INFO - ================================================================================ 2026-10-30 01:09:15,719 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-30 01:09:15,977 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.25': '0'}} with 2026-10-30 01:09:15,977 - INFO - Initial checks done. Running the testcase now 2026-10-30 01:09:15,977 - INFO - 2026-10-30 01:09:15,977 - INFO - ================================================================================ 2026-10-30 01:09:15,977 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-30 01:09:15,977 - 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-10-30 01:09:16,265 - DEBUG - Nothing to compare xmpp stats {'10.0.0.251': {'10.20.0.25': '0'}} with 2026-10-30 01:09:16,265 - INFO - Initial checks done. Running the testcase now 2026-10-30 01:09:16,265 - INFO - 2026-10-30 01:09:16,622 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12135261:ctest-vn4-40369186, 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-12135261:ctest-vn4-40369186, 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-12135261:ctest-vn4-40369186, 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-12135261:ctest-vn4-40369186, 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-10-30 01:09:17,102 - DEBUG - Response for create_network : {'network': {'id': '3ec4d8eb-011e-4b75-87b9-e1b0fb4b00ca', 'name': 'ctest-vn4-40369186', 'tenant_id': '9527413b29034bda8bfdb60a0d640bf7', 'project_id': '9527413b29034bda8bfdb60a0d640bf7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12135261', 'ctest-vn4-40369186'], 'port_security_enabled': True, 'description': ''}} 2026-10-30 01:09:17,295 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e3c7434-6d4f-42d1-8d03-5c66c42fc8c9', 'name': '', 'tenant_id': '9527413b29034bda8bfdb60a0d640bf7', 'network_id': '3ec4d8eb-011e-4b75-87b9-e1b0fb4b00ca', 'ip_version': 4, 'cidr': '157.158.85.128/26', 'allocation_pools': [{'start': '157.158.85.130', 'end': '157.158.85.190'}], 'gateway_ip': '157.158.85.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.158.85.130', 'tags': [], 'project_id': '9527413b29034bda8bfdb60a0d640bf7'}} 2026-10-30 01:09:17,466 - DEBUG - Response for create_subnet : {'subnet': {'id': '103691bb-eac4-42b2-b275-d985c0c03911', 'name': '', 'tenant_id': '9527413b29034bda8bfdb60a0d640bf7', 'network_id': '3ec4d8eb-011e-4b75-87b9-e1b0fb4b00ca', 'ip_version': 6, 'cidr': '3a4b:cdc9:ee93:95b4:2818:9744::/96', 'allocation_pools': [{'start': '3a4b:cdc9:ee93:95b4:2818:9744:0:2', 'end': '3a4b:cdc9:ee93:95b4:2818:9744:ffff:fffe'}], 'gateway_ip': '3a4b:cdc9:ee93:95b4:2818:9744:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a4b:cdc9:ee93:95b4:2818:9744:0:2', 'tags': [], 'project_id': '9527413b29034bda8bfdb60a0d640bf7'}} 2026-10-30 01:09:17,479 - INFO - Created VN ctest-vn4-40369186 2026-10-30 01:09:17,529 - DEBUG - VN ctest-vn4-40369186 UUID is 3ec4d8eb-011e-4b75-87b9-e1b0fb4b00ca 2026-10-30 01:09:17,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ec4d8eb-011e-4b75-87b9-e1b0fb4b00ca', 'name': 'ctest-vn4-40369186', 'tenant_id': '9527413b29034bda8bfdb60a0d640bf7', 'project_id': '9527413b29034bda8bfdb60a0d640bf7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5e3c7434-6d4f-42d1-8d03-5c66c42fc8c9', '103691bb-eac4-42b2-b275-d985c0c03911'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12135261', 'ctest-vn4-40369186'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12135261', 'ctest-policy1-70053034']], 'subnet_ipam': [{'subnet_cidr': '157.158.85.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a4b:cdc9:ee93:95b4:2818:9744::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-30 01:09:17,845 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-10-30 01:09:18,154 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-10-30 01:09:18,174 - DEBUG - Requesting: http://10.0.0.251:8082/domain/db05f4d7-5d38-46b6-be83-619bd0868f27 2026-10-30 01:09:18,183 - DEBUG - Requesting: http://10.0.0.251:8082/project/9527413b-2903-4bda-8bfd-b60a0d640bf7 2026-10-30 01:09:18,251 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/3ec4d8eb-011e-4b75-87b9-e1b0fb4b00ca 2026-10-30 01:09:18,261 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/3ec4d8eb-011e-4b75-87b9-e1b0fb4b00ca 2026-10-30 01:09:18,269 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/f967167f-7fac-4fee-81da-25edfdad6651 2026-10-30 01:09:18,274 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/f967167f-7fac-4fee-81da-25edfdad6651 2026-10-30 01:09:18,279 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/0851f540-3415-4652-9d7a-50b65171e424 2026-10-30 01:09:18,283 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-30 01:09:18,283 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/3ec4d8eb-011e-4b75-87b9-e1b0fb4b00ca 2026-10-30 01:09:18,290 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/f967167f-7fac-4fee-81da-25edfdad6651 2026-10-30 01:09:18,300 - INFO - Verified VN network id 11 for VN 3ec4d8eb-011e-4b75-87b9-e1b0fb4b00ca 2026-10-30 01:09:18,300 - INFO - Verifications in API Server for VN ctest-vn4-40369186 passed 2026-10-30 01:09:18,301 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/3ec4d8eb-011e-4b75-87b9-e1b0fb4b00ca 2026-10-30 01:09:18,308 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/f967167f-7fac-4fee-81da-25edfdad6651 2026-10-30 01:09:18,313 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/f967167f-7fac-4fee-81da-25edfdad6651 2026-10-30 01:09:18,317 - DEBUG - Requesting: http://10.0.0.251:8082/route-target/0851f540-3415-4652-9d7a-50b65171e424 2026-10-30 01:09:18,327 - DEBUG - Control-node 10.0.0.251 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12135261:ctest-vn4-40369186', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-12135261', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4522978429634497397', 'uuid-lslong': '9780096216058233034'}, 'enable': 'true', 'created': '2026-10-30T01:09:17', 'last-modified': '2026-10-30T01:09:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.645960'} 2026-10-30 01:09:18,333 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-30 01:09:18,333 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40369186 passed 2026-10-30 01:09:18,333 - DEBUG - ====Verifying policy data for ctest-vn4-40369186 in API_Server ====== 2026-10-30 01:09:18,333 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-10-30 01:09:18,337 - DEBUG - Requesting: http://10.0.0.251:8082/domain/db05f4d7-5d38-46b6-be83-619bd0868f27 2026-10-30 01:09:18,346 - DEBUG - Requesting: http://10.0.0.251:8082/project/9527413b-2903-4bda-8bfd-b60a0d640bf7 2026-10-30 01:09:18,412 - DEBUG - Requesting: http://10.0.0.251:8082/virtual-network/3ec4d8eb-011e-4b75-87b9-e1b0fb4b00ca 2026-10-30 01:09:18,419 - DEBUG - ==>Verifying data for policy with id: 99d5ac00-f1ae-44aa-ba88-9f069af0a5ef, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12135261', 'ctest-policy1-70053034'] 2026-10-30 01:09:18,420 - INFO - VN ctest-vn4-40369186 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-30 01:09:18,420 - DEBUG - Verifying the vn in opserver 2026-10-30 01:09:18,420 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12135261:ctest-vn4-40369186 virtual network link through opserver 10.0.0.251 2026-10-30 01:09:18,420 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks 2026-10-30 01:09:18,731 - DEBUG - Requesting: http://10.0.0.251:8081/analytics/uves/virtual-networks 2026-10-30 01:09:18,772 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12135261:ctest-vn4-40369186', 'href': 'http://10.0.0.251:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12135261:ctest-vn4-40369186?flat'} 2026-10-30 01:09:18,772 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12135261:ctest-vn4-40369186 is found in opserver 2026-10-30 01:09:18,780 - DEBUG - Do not have enough data to verify VN in agent 2026-10-30 01:09:18,785 - DEBUG - VRF ids for VN ctest-vn4-40369186: {} 2026-10-30 01:09:18,786 - DEBUG - ====Verifying data for ctest-policy1-70053034 in API_Server ====== 2026-10-30 01:09:18,786 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-10-30 01:09:18,790 - DEBUG - Requesting: http://10.0.0.251:8082/domain/db05f4d7-5d38-46b6-be83-619bd0868f27 2026-10-30 01:09:18,798 - DEBUG - Requesting: http://10.0.0.251:8082/project/9527413b-2903-4bda-8bfd-b60a0d640bf7 2026-10-30 01:09:18,864 - DEBUG - Requesting: http://10.0.0.251:8082/network-policy/99d5ac00-f1ae-44aa-ba88-9f069af0a5ef 2026-10-30 01:09:18,872 - INFO - Verified policy ctest-policy1-70053034 in API Server, Result: True 2026-10-30 01:09:18,872 - INFO - Done with setup and verification, moving onto test .. 2026-10-30 01:09:18,878 - INFO - Deleting VN ctest-vn4-40369186 2026-10-30 01:09:18,975 - DEBUG - Response for deleting network () 2026-10-30 01:09:18,975 - DEBUG - Requesting: http://10.0.0.251:8082/routing-instance/f967167f-7fac-4fee-81da-25edfdad6651 2026-10-30 01:09:18,979 - DEBUG - Response Code: 404 2026-10-30 01:09:18,979 - DEBUG - Requesting: http://10.0.0.251:8082/domains 2026-10-30 01:09:18,983 - DEBUG - Requesting: http://10.0.0.251:8082/domain/db05f4d7-5d38-46b6-be83-619bd0868f27 2026-10-30 01:09:19,032 - DEBUG - Requesting: http://10.0.0.251:8082/project/9527413b-2903-4bda-8bfd-b60a0d640bf7 2026-10-30 01:09:19,096 - INFO - Validated that VN ctest-vn4-40369186 is not found in API Server 2026-10-30 01:09:19,104 - DEBUG - VN ctest-vn4-40369186 is not present in Agent 10.0.0.251 2026-10-30 01:09:19,104 - INFO - Validated that VN ctest-vn4-40369186 is not in any agent 2026-10-30 01:09:19,117 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40369186 info 2026-10-30 01:09:19,134 - INFO - Deleted policy ctest-policy1-70053034 2026-10-30 01:09:19,300 - DEBUG - policy ctest-policy1-70053034 is not found in API Server 2026-10-30 01:09:19,553 - DEBUG - No XMPP flaps were noticed during the test