2026-09-16 13:48:50,082 - INFO - Domain Default found not creating 2026-09-16 13:48:50,239 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04443200 not found, creating it 2026-09-16 13:48:50,705 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04443200, ID : 6fb4e30a-6a6b-400c-a605-f66bec22ff80 2026-09-16 13:48:52,376 - INFO - ================================================================================ 2026-09-16 13:48:52,376 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 13:48:52,650 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-09-16 13:48:52,650 - INFO - Initial checks done. Running the testcase now 2026-09-16 13:48:52,650 - INFO - 2026-09-16 13:48:52,650 - INFO - ================================================================================ 2026-09-16 13:48:52,651 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 13:48:52,651 - 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:48:52,941 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-09-16 13:48:52,941 - INFO - Initial checks done. Running the testcase now 2026-09-16 13:48:52,941 - INFO - 2026-09-16 13:48:53,375 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04443200:ctest-vn4-86185414, 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-04443200:ctest-vn4-86185414, 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-04443200:ctest-vn4-86185414, 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-04443200:ctest-vn4-86185414, 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:48:53,917 - DEBUG - Response for create_network : {'network': {'id': '6423541e-af94-4aaf-8dc3-677e238adec6', 'name': 'ctest-vn4-86185414', 'tenant_id': '6fb4e30a6a6b400ca605f66bec22ff80', 'project_id': '6fb4e30a6a6b400ca605f66bec22ff80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04443200', 'ctest-vn4-86185414'], 'port_security_enabled': True, 'description': ''}} 2026-09-16 13:48:54,105 - DEBUG - Response for create_subnet : {'subnet': {'id': '67992fa5-12d4-4776-a4c6-ef5f482f9fbc', 'name': '', 'tenant_id': '6fb4e30a6a6b400ca605f66bec22ff80', 'network_id': '6423541e-af94-4aaf-8dc3-677e238adec6', 'ip_version': 4, 'cidr': '137.210.9.0/26', 'allocation_pools': [{'start': '137.210.9.2', 'end': '137.210.9.62'}], 'gateway_ip': '137.210.9.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.210.9.2', 'tags': [], 'project_id': '6fb4e30a6a6b400ca605f66bec22ff80'}} 2026-09-16 13:48:54,312 - DEBUG - Response for create_subnet : {'subnet': {'id': '59c655ea-b8c2-4302-8a33-22350ffdc34f', 'name': '', 'tenant_id': '6fb4e30a6a6b400ca605f66bec22ff80', 'network_id': '6423541e-af94-4aaf-8dc3-677e238adec6', 'ip_version': 6, 'cidr': '30a6:3383:b352:ff03:8556:5a5c::/96', 'allocation_pools': [{'start': '30a6:3383:b352:ff03:8556:5a5c:0:2', 'end': '30a6:3383:b352:ff03:8556:5a5c:ffff:fffe'}], 'gateway_ip': '30a6:3383:b352:ff03:8556:5a5c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30a6:3383:b352:ff03:8556:5a5c:0:2', 'tags': [], 'project_id': '6fb4e30a6a6b400ca605f66bec22ff80'}} 2026-09-16 13:48:54,332 - INFO - Created VN ctest-vn4-86185414 2026-09-16 13:48:54,385 - DEBUG - VN ctest-vn4-86185414 UUID is 6423541e-af94-4aaf-8dc3-677e238adec6 2026-09-16 13:48:54,606 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6423541e-af94-4aaf-8dc3-677e238adec6', 'name': 'ctest-vn4-86185414', 'tenant_id': '6fb4e30a6a6b400ca605f66bec22ff80', 'project_id': '6fb4e30a6a6b400ca605f66bec22ff80', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['67992fa5-12d4-4776-a4c6-ef5f482f9fbc', '59c655ea-b8c2-4302-8a33-22350ffdc34f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04443200', 'ctest-vn4-86185414'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04443200', 'ctest-policy1-03356105']], 'subnet_ipam': [{'subnet_cidr': '137.210.9.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30a6:3383:b352:ff03:8556:5a5c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-16 13:48:54,781 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-16 13:48:55,154 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-16 13:48:55,182 - DEBUG - Requesting: http://10.0.0.177:8082/domain/bbb654c8-6af1-4af3-bd16-6ed059a899ed 2026-09-16 13:48:55,195 - DEBUG - Requesting: http://10.0.0.177:8082/project/6fb4e30a-6a6b-400c-a605-f66bec22ff80 2026-09-16 13:48:55,270 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6423541e-af94-4aaf-8dc3-677e238adec6 2026-09-16 13:48:55,284 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6423541e-af94-4aaf-8dc3-677e238adec6 2026-09-16 13:48:55,295 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/eb8cfa63-4122-4a4d-b41c-561a85e7d891 2026-09-16 13:48:55,305 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/eb8cfa63-4122-4a4d-b41c-561a85e7d891 2026-09-16 13:48:55,313 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/c66d3b83-06cd-41c7-b05c-74861c313df7 2026-09-16 13:48:55,319 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 13:48:55,319 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6423541e-af94-4aaf-8dc3-677e238adec6 2026-09-16 13:48:55,329 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/eb8cfa63-4122-4a4d-b41c-561a85e7d891 2026-09-16 13:48:55,346 - INFO - Verified VN network id 12 for VN 6423541e-af94-4aaf-8dc3-677e238adec6 2026-09-16 13:48:55,346 - INFO - Verifications in API Server for VN ctest-vn4-86185414 passed 2026-09-16 13:48:55,346 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6423541e-af94-4aaf-8dc3-677e238adec6 2026-09-16 13:48:55,357 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/eb8cfa63-4122-4a4d-b41c-561a85e7d891 2026-09-16 13:48:55,364 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/eb8cfa63-4122-4a4d-b41c-561a85e7d891 2026-09-16 13:48:55,371 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/c66d3b83-06cd-41c7-b05c-74861c313df7 2026-09-16 13:48:55,383 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04443200:ctest-vn4-86185414', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04443200', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7215703518749149871', 'uuid-lslong': '10215122171266260678'}, 'enable': 'true', 'created': '2026-09-16T13:48:53', 'last-modified': '2026-09-16T13:48:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.809900'} 2026-09-16 13:48:55,391 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 13:48:55,392 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-86185414 passed 2026-09-16 13:48:55,392 - DEBUG - ====Verifying policy data for ctest-vn4-86185414 in API_Server ====== 2026-09-16 13:48:55,392 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-16 13:48:55,399 - DEBUG - Requesting: http://10.0.0.177:8082/domain/bbb654c8-6af1-4af3-bd16-6ed059a899ed 2026-09-16 13:48:55,412 - DEBUG - Requesting: http://10.0.0.177:8082/project/6fb4e30a-6a6b-400c-a605-f66bec22ff80 2026-09-16 13:48:55,495 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6423541e-af94-4aaf-8dc3-677e238adec6 2026-09-16 13:48:55,507 - DEBUG - ==>Verifying data for policy with id: 8d542580-fe08-4356-a679-7fb39c3d1446, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04443200', 'ctest-policy1-03356105'] 2026-09-16 13:48:55,507 - INFO - VN ctest-vn4-86185414 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-16 13:48:55,507 - DEBUG - Verifying the vn in opserver 2026-09-16 13:48:55,507 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04443200:ctest-vn4-86185414 virtual network link through opserver 10.0.0.177 2026-09-16 13:48:55,507 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-09-16 13:48:55,882 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-09-16 13:48:55,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04443200:ctest-vn4-86185414', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04443200:ctest-vn4-86185414?flat'} 2026-09-16 13:48:55,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04443200:ctest-vn4-86185414 is found in opserver 2026-09-16 13:48:55,956 - DEBUG - Do not have enough data to verify VN in agent 2026-09-16 13:48:55,961 - DEBUG - VRF ids for VN ctest-vn4-86185414: {} 2026-09-16 13:48:55,962 - DEBUG - ====Verifying data for ctest-policy1-03356105 in API_Server ====== 2026-09-16 13:48:55,962 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-16 13:48:55,968 - DEBUG - Requesting: http://10.0.0.177:8082/domain/bbb654c8-6af1-4af3-bd16-6ed059a899ed 2026-09-16 13:48:55,979 - DEBUG - Requesting: http://10.0.0.177:8082/project/6fb4e30a-6a6b-400c-a605-f66bec22ff80 2026-09-16 13:48:56,060 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/8d542580-fe08-4356-a679-7fb39c3d1446 2026-09-16 13:48:56,073 - INFO - Verified policy ctest-policy1-03356105 in API Server, Result: True 2026-09-16 13:48:56,073 - INFO - Done with setup and verification, moving onto test .. 2026-09-16 13:48:56,083 - INFO - Deleting VN ctest-vn4-86185414 2026-09-16 13:48:56,216 - DEBUG - Response for deleting network () 2026-09-16 13:48:56,216 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/eb8cfa63-4122-4a4d-b41c-561a85e7d891 2026-09-16 13:48:56,221 - DEBUG - Response Code: 404 2026-09-16 13:48:56,221 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-09-16 13:48:56,227 - DEBUG - Requesting: http://10.0.0.177:8082/domain/bbb654c8-6af1-4af3-bd16-6ed059a899ed 2026-09-16 13:48:56,283 - DEBUG - Requesting: http://10.0.0.177:8082/project/6fb4e30a-6a6b-400c-a605-f66bec22ff80 2026-09-16 13:48:56,356 - INFO - Validated that VN ctest-vn4-86185414 is not found in API Server 2026-09-16 13:48:56,366 - DEBUG - VN ctest-vn4-86185414 is not present in Agent 10.0.0.177 2026-09-16 13:48:56,366 - INFO - Validated that VN ctest-vn4-86185414 is not in any agent 2026-09-16 13:48:56,381 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-86185414 info 2026-09-16 13:48:56,417 - INFO - Deleted policy ctest-policy1-03356105 2026-09-16 13:48:56,589 - DEBUG - policy ctest-policy1-03356105 is not found in API Server 2026-09-16 13:48:56,858 - DEBUG - No XMPP flaps were noticed during the test
2026-09-16 13:48:56,858 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-09-16 13:48:56,858 - INFO - -------------------------------------------------------------------------------- 2026-09-16 13:48:57,144 - DEBUG - No XMPP flaps were noticed during the test
2026-09-16 13:48:57,144 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-16 13:48:57,144 - INFO - -------------------------------------------------------------------------------- 2026-09-16 13:48:57,893 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-04443200, ID : 6fb4e30a-6a6b-400c-a605-f66bec22ff80