2026-07-29 15:03:37,279 - INFO - Domain Default found not creating 2026-07-29 15:03:37,500 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88224593 not found, creating it 2026-07-29 15:03:38,043 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88224593, ID : 174a2be4-7ec3-4f2b-b4d2-36a0836ac165 2026-07-29 15:03:40,008 - INFO - ================================================================================ 2026-07-29 15:03:40,008 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-29 15:03:40,287 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with 2026-07-29 15:03:40,287 - INFO - Initial checks done. Running the testcase now 2026-07-29 15:03:40,287 - INFO - 2026-07-29 15:03:40,287 - INFO - ================================================================================ 2026-07-29 15:03:40,287 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-29 15:03:40,287 - 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-07-29 15:03:40,591 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0'}} with 2026-07-29 15:03:40,591 - INFO - Initial checks done. Running the testcase now 2026-07-29 15:03:40,592 - INFO - 2026-07-29 15:03:41,098 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88224593:ctest-vn4-96524710, 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-88224593:ctest-vn4-96524710, 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-88224593:ctest-vn4-96524710, 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-88224593:ctest-vn4-96524710, 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-07-29 15:03:41,695 - DEBUG - Response for create_network : {'network': {'id': 'caf26abc-3122-4e51-8241-1dc3f15717f1', 'name': 'ctest-vn4-96524710', 'tenant_id': '174a2be47ec34f2bb4d236a0836ac165', 'project_id': '174a2be47ec34f2bb4d236a0836ac165', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88224593', 'ctest-vn4-96524710'], 'port_security_enabled': True, 'description': ''}} 2026-07-29 15:03:41,900 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a0803ca4-b9ba-4c34-a24a-ab78ea746bbd', 'name': '', 'tenant_id': '174a2be47ec34f2bb4d236a0836ac165', 'network_id': 'caf26abc-3122-4e51-8241-1dc3f15717f1', 'ip_version': 4, 'cidr': '86.191.15.192/26', 'allocation_pools': [{'start': '86.191.15.194', 'end': '86.191.15.254'}], 'gateway_ip': '86.191.15.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.191.15.194', 'tags': [], 'project_id': '174a2be47ec34f2bb4d236a0836ac165'}} 2026-07-29 15:03:42,089 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b735473-7939-4446-981e-e1b62070cfc5', 'name': '', 'tenant_id': '174a2be47ec34f2bb4d236a0836ac165', 'network_id': 'caf26abc-3122-4e51-8241-1dc3f15717f1', 'ip_version': 6, 'cidr': '3ad6:9c6b:a068:e777:2fa4:f588::/96', 'allocation_pools': [{'start': '3ad6:9c6b:a068:e777:2fa4:f588:0:2', 'end': '3ad6:9c6b:a068:e777:2fa4:f588:ffff:fffe'}], 'gateway_ip': '3ad6:9c6b:a068:e777:2fa4:f588:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ad6:9c6b:a068:e777:2fa4:f588:0:2', 'tags': [], 'project_id': '174a2be47ec34f2bb4d236a0836ac165'}} 2026-07-29 15:03:42,115 - INFO - Created VN ctest-vn4-96524710 2026-07-29 15:03:42,172 - DEBUG - VN ctest-vn4-96524710 UUID is caf26abc-3122-4e51-8241-1dc3f15717f1 2026-07-29 15:03:42,428 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'caf26abc-3122-4e51-8241-1dc3f15717f1', 'name': 'ctest-vn4-96524710', 'tenant_id': '174a2be47ec34f2bb4d236a0836ac165', 'project_id': '174a2be47ec34f2bb4d236a0836ac165', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a0803ca4-b9ba-4c34-a24a-ab78ea746bbd', '8b735473-7939-4446-981e-e1b62070cfc5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88224593', 'ctest-vn4-96524710'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88224593', 'ctest-policy1-66515310']], 'subnet_ipam': [{'subnet_cidr': '86.191.15.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ad6:9c6b:a068:e777:2fa4:f588::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-29 15:03:42,600 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-29 15:03:42,997 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-29 15:03:43,038 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f6235a01-974f-4b35-91af-124d5216d0d3 2026-07-29 15:03:43,058 - DEBUG - Requesting: http://10.0.0.22:8082/project/174a2be4-7ec3-4f2b-b4d2-36a0836ac165 2026-07-29 15:03:43,146 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/caf26abc-3122-4e51-8241-1dc3f15717f1 2026-07-29 15:03:43,162 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/caf26abc-3122-4e51-8241-1dc3f15717f1 2026-07-29 15:03:43,175 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3bdd0706-b40d-4fa8-ad8d-9ac29be783c8 2026-07-29 15:03:43,185 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3bdd0706-b40d-4fa8-ad8d-9ac29be783c8 2026-07-29 15:03:43,195 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e4270bff-7988-453b-a3ba-6804eee4107f 2026-07-29 15:03:43,206 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-29 15:03:43,206 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/caf26abc-3122-4e51-8241-1dc3f15717f1 2026-07-29 15:03:43,220 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3bdd0706-b40d-4fa8-ad8d-9ac29be783c8 2026-07-29 15:03:43,240 - INFO - Verified VN network id 11 for VN caf26abc-3122-4e51-8241-1dc3f15717f1 2026-07-29 15:03:43,240 - INFO - Verifications in API Server for VN ctest-vn4-96524710 passed 2026-07-29 15:03:43,240 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/caf26abc-3122-4e51-8241-1dc3f15717f1 2026-07-29 15:03:43,256 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3bdd0706-b40d-4fa8-ad8d-9ac29be783c8 2026-07-29 15:03:43,267 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3bdd0706-b40d-4fa8-ad8d-9ac29be783c8 2026-07-29 15:03:43,277 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e4270bff-7988-453b-a3ba-6804eee4107f 2026-07-29 15:03:43,298 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88224593:ctest-vn4-96524710', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88224593', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14623868296536149585', 'uuid-lslong': '9385815825821669361'}, 'enable': 'true', 'created': '2026-07-29T15:03:41', 'last-modified': '2026-07-29T15:03:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904521'} 2026-07-29 15:03:43,309 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-29 15:03:43,309 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96524710 passed 2026-07-29 15:03:43,310 - DEBUG - ====Verifying policy data for ctest-vn4-96524710 in API_Server ====== 2026-07-29 15:03:43,310 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-29 15:03:43,319 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f6235a01-974f-4b35-91af-124d5216d0d3 2026-07-29 15:03:43,335 - DEBUG - Requesting: http://10.0.0.22:8082/project/174a2be4-7ec3-4f2b-b4d2-36a0836ac165 2026-07-29 15:03:43,423 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/caf26abc-3122-4e51-8241-1dc3f15717f1 2026-07-29 15:03:43,436 - DEBUG - ==>Verifying data for policy with id: ec98e4a3-0149-4cc2-aa20-948ab72d148b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88224593', 'ctest-policy1-66515310'] 2026-07-29 15:03:43,436 - INFO - VN ctest-vn4-96524710 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-29 15:03:43,436 - DEBUG - Verifying the vn in opserver 2026-07-29 15:03:43,436 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88224593:ctest-vn4-96524710 virtual network link through opserver 10.0.0.22 2026-07-29 15:03:43,436 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-07-29 15:03:43,832 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-07-29 15:03:43,909 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88224593:ctest-vn4-96524710', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88224593:ctest-vn4-96524710?flat'} 2026-07-29 15:03:43,909 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88224593:ctest-vn4-96524710 is found in opserver 2026-07-29 15:03:43,922 - DEBUG - Do not have enough data to verify VN in agent 2026-07-29 15:03:43,928 - DEBUG - VRF ids for VN ctest-vn4-96524710: {} 2026-07-29 15:03:43,929 - DEBUG - ====Verifying data for ctest-policy1-66515310 in API_Server ====== 2026-07-29 15:03:43,929 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-29 15:03:43,937 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f6235a01-974f-4b35-91af-124d5216d0d3 2026-07-29 15:03:43,954 - DEBUG - Requesting: http://10.0.0.22:8082/project/174a2be4-7ec3-4f2b-b4d2-36a0836ac165 2026-07-29 15:03:44,038 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/ec98e4a3-0149-4cc2-aa20-948ab72d148b 2026-07-29 15:03:44,052 - INFO - Verified policy ctest-policy1-66515310 in API Server, Result: True 2026-07-29 15:03:44,053 - INFO - Done with setup and verification, moving onto test .. 2026-07-29 15:03:44,063 - INFO - Deleting VN ctest-vn4-96524710 2026-07-29 15:03:44,220 - DEBUG - Response for deleting network () 2026-07-29 15:03:44,220 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3bdd0706-b40d-4fa8-ad8d-9ac29be783c8 2026-07-29 15:03:44,227 - DEBUG - Response Code: 404 2026-07-29 15:03:44,227 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-29 15:03:44,235 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f6235a01-974f-4b35-91af-124d5216d0d3 2026-07-29 15:03:44,290 - DEBUG - Requesting: http://10.0.0.22:8082/project/174a2be4-7ec3-4f2b-b4d2-36a0836ac165 2026-07-29 15:03:44,370 - INFO - Validated that VN ctest-vn4-96524710 is not found in API Server 2026-07-29 15:03:44,384 - DEBUG - VN ctest-vn4-96524710 is not present in Agent 10.0.0.22 2026-07-29 15:03:44,384 - INFO - Validated that VN ctest-vn4-96524710 is not in any agent 2026-07-29 15:03:44,404 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96524710 info 2026-07-29 15:03:44,434 - INFO - Deleted policy ctest-policy1-66515310 2026-07-29 15:03:44,624 - DEBUG - policy ctest-policy1-66515310 is not found in API Server 2026-07-29 15:03:44,899 - DEBUG - No XMPP flaps were noticed during the test
2026-07-29 15:03:44,899 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-07-29 15:03:44,899 - INFO - -------------------------------------------------------------------------------- 2026-07-29 15:03:45,206 - DEBUG - No XMPP flaps were noticed during the test
2026-07-29 15:03:45,206 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-07-29 15:03:45,206 - INFO - -------------------------------------------------------------------------------- 2026-07-29 15:03:46,060 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-88224593, ID : 174a2be4-7ec3-4f2b-b4d2-36a0836ac165