2026-01-19 02:04:47,069 - INFO - Domain Default found not creating 2026-01-19 02:04:47,265 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70974483 not found, creating it 2026-01-19 02:04:47,726 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70974483, ID : a56256ab-d446-4fc6-a208-4a2bf96128db 2026-01-19 02:04:49,313 - INFO - ================================================================================ 2026-01-19 02:04:49,313 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 02:04:49,570 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2026-01-19 02:04:49,571 - INFO - Initial checks done. Running the testcase now 2026-01-19 02:04:49,571 - INFO - 2026-01-19 02:04:49,571 - INFO - ================================================================================ 2026-01-19 02:04:49,571 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 02:04:49,571 - 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-01-19 02:04:49,869 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2026-01-19 02:04:49,869 - INFO - Initial checks done. Running the testcase now 2026-01-19 02:04:49,869 - INFO - 2026-01-19 02:04:50,249 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70974483:ctest-vn4-14580937, 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-70974483:ctest-vn4-14580937, 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-70974483:ctest-vn4-14580937, 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-70974483:ctest-vn4-14580937, 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-01-19 02:04:50,792 - DEBUG - Response for create_network : {'network': {'id': '487dbef2-c2d7-48e6-8da7-0d3e0cb88d80', 'name': 'ctest-vn4-14580937', 'tenant_id': 'a56256abd4464fc6a2084a2bf96128db', 'project_id': 'a56256abd4464fc6a2084a2bf96128db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70974483', 'ctest-vn4-14580937'], 'port_security_enabled': True, 'description': ''}} 2026-01-19 02:04:51,024 - DEBUG - Response for create_subnet : {'subnet': {'id': '97cc39c0-4118-4595-93b7-588775731242', 'name': '', 'tenant_id': 'a56256abd4464fc6a2084a2bf96128db', 'network_id': '487dbef2-c2d7-48e6-8da7-0d3e0cb88d80', 'ip_version': 4, 'cidr': '151.26.111.128/26', 'allocation_pools': [{'start': '151.26.111.130', 'end': '151.26.111.190'}], 'gateway_ip': '151.26.111.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.26.111.130', 'tags': [], 'project_id': 'a56256abd4464fc6a2084a2bf96128db'}} 2026-01-19 02:04:51,238 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ccd7d52-3c07-41e9-8448-7979c518d529', 'name': '', 'tenant_id': 'a56256abd4464fc6a2084a2bf96128db', 'network_id': '487dbef2-c2d7-48e6-8da7-0d3e0cb88d80', 'ip_version': 6, 'cidr': '328c:2776:dede:a6e9:5807:8151::/96', 'allocation_pools': [{'start': '328c:2776:dede:a6e9:5807:8151:0:2', 'end': '328c:2776:dede:a6e9:5807:8151:ffff:fffe'}], 'gateway_ip': '328c:2776:dede:a6e9:5807:8151:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '328c:2776:dede:a6e9:5807:8151:0:2', 'tags': [], 'project_id': 'a56256abd4464fc6a2084a2bf96128db'}} 2026-01-19 02:04:51,260 - INFO - Created VN ctest-vn4-14580937 2026-01-19 02:04:51,313 - DEBUG - VN ctest-vn4-14580937 UUID is 487dbef2-c2d7-48e6-8da7-0d3e0cb88d80 2026-01-19 02:04:51,526 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '487dbef2-c2d7-48e6-8da7-0d3e0cb88d80', 'name': 'ctest-vn4-14580937', 'tenant_id': 'a56256abd4464fc6a2084a2bf96128db', 'project_id': 'a56256abd4464fc6a2084a2bf96128db', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['97cc39c0-4118-4595-93b7-588775731242', '9ccd7d52-3c07-41e9-8448-7979c518d529'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70974483', 'ctest-vn4-14580937'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70974483', 'ctest-policy1-57663231']], 'subnet_ipam': [{'subnet_cidr': '151.26.111.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '328c:2776:dede:a6e9:5807:8151::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-19 02:04:51,685 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-19 02:04:51,992 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-19 02:04:52,028 - DEBUG - Requesting: http://10.0.0.141:8082/domain/842248eb-4371-401b-be9c-56527aaba4af 2026-01-19 02:04:52,041 - DEBUG - Requesting: http://10.0.0.141:8082/project/a56256ab-d446-4fc6-a208-4a2bf96128db 2026-01-19 02:04:52,115 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/487dbef2-c2d7-48e6-8da7-0d3e0cb88d80 2026-01-19 02:04:52,128 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/487dbef2-c2d7-48e6-8da7-0d3e0cb88d80 2026-01-19 02:04:52,138 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/31f439f6-53ff-4b01-b53b-e721a11b8c1c 2026-01-19 02:04:52,145 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/31f439f6-53ff-4b01-b53b-e721a11b8c1c 2026-01-19 02:04:52,152 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/13be6d4f-4358-41f9-b9b5-ccaa1a7e0c56 2026-01-19 02:04:52,159 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:04:52,159 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/487dbef2-c2d7-48e6-8da7-0d3e0cb88d80 2026-01-19 02:04:52,170 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/31f439f6-53ff-4b01-b53b-e721a11b8c1c 2026-01-19 02:04:52,187 - INFO - Verified VN network id 11 for VN 487dbef2-c2d7-48e6-8da7-0d3e0cb88d80 2026-01-19 02:04:52,187 - INFO - Verifications in API Server for VN ctest-vn4-14580937 passed 2026-01-19 02:04:52,187 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/487dbef2-c2d7-48e6-8da7-0d3e0cb88d80 2026-01-19 02:04:52,198 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/31f439f6-53ff-4b01-b53b-e721a11b8c1c 2026-01-19 02:04:52,204 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/31f439f6-53ff-4b01-b53b-e721a11b8c1c 2026-01-19 02:04:52,211 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/13be6d4f-4358-41f9-b9b5-ccaa1a7e0c56 2026-01-19 02:04:52,224 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70974483:ctest-vn4-14580937', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70974483', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5223541092679895270', 'uuid-lslong': '10207141640611073408'}, 'enable': 'true', 'created': '2026-01-19T02:04:50', 'last-modified': '2026-01-19T02:04:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.731879'} 2026-01-19 02:04:52,230 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:04:52,231 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14580937 passed 2026-01-19 02:04:52,231 - DEBUG - ====Verifying policy data for ctest-vn4-14580937 in API_Server ====== 2026-01-19 02:04:52,231 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-19 02:04:52,237 - DEBUG - Requesting: http://10.0.0.141:8082/domain/842248eb-4371-401b-be9c-56527aaba4af 2026-01-19 02:04:52,249 - DEBUG - Requesting: http://10.0.0.141:8082/project/a56256ab-d446-4fc6-a208-4a2bf96128db 2026-01-19 02:04:52,320 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/487dbef2-c2d7-48e6-8da7-0d3e0cb88d80 2026-01-19 02:04:52,329 - DEBUG - ==>Verifying data for policy with id: 6c225cde-4942-45d6-b85f-7fa1edc8c49f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70974483', 'ctest-policy1-57663231'] 2026-01-19 02:04:52,329 - INFO - VN ctest-vn4-14580937 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-19 02:04:52,329 - DEBUG - Verifying the vn in opserver 2026-01-19 02:04:52,329 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70974483:ctest-vn4-14580937 virtual network link through opserver 10.0.0.141 2026-01-19 02:04:52,330 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-19 02:04:52,655 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-19 02:04:52,724 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70974483:ctest-vn4-14580937', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70974483:ctest-vn4-14580937?flat'} 2026-01-19 02:04:52,724 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70974483:ctest-vn4-14580937 is found in opserver 2026-01-19 02:04:52,735 - DEBUG - Do not have enough data to verify VN in agent 2026-01-19 02:04:52,740 - DEBUG - VRF ids for VN ctest-vn4-14580937: {} 2026-01-19 02:04:52,741 - DEBUG - ====Verifying data for ctest-policy1-57663231 in API_Server ====== 2026-01-19 02:04:52,741 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-19 02:04:52,747 - DEBUG - Requesting: http://10.0.0.141:8082/domain/842248eb-4371-401b-be9c-56527aaba4af 2026-01-19 02:04:52,760 - DEBUG - Requesting: http://10.0.0.141:8082/project/a56256ab-d446-4fc6-a208-4a2bf96128db 2026-01-19 02:04:52,832 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/6c225cde-4942-45d6-b85f-7fa1edc8c49f 2026-01-19 02:04:52,841 - INFO - Verified policy ctest-policy1-57663231 in API Server, Result: True 2026-01-19 02:04:52,841 - INFO - Done with setup and verification, moving onto test .. 2026-01-19 02:04:52,849 - INFO - Deleting VN ctest-vn4-14580937 2026-01-19 02:04:52,964 - DEBUG - Response for deleting network () 2026-01-19 02:04:52,964 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/31f439f6-53ff-4b01-b53b-e721a11b8c1c 2026-01-19 02:04:52,969 - DEBUG - Response Code: 404 2026-01-19 02:04:52,969 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-19 02:04:52,975 - DEBUG - Requesting: http://10.0.0.141:8082/domain/842248eb-4371-401b-be9c-56527aaba4af 2026-01-19 02:04:53,026 - DEBUG - Requesting: http://10.0.0.141:8082/project/a56256ab-d446-4fc6-a208-4a2bf96128db 2026-01-19 02:04:53,095 - INFO - Validated that VN ctest-vn4-14580937 is not found in API Server 2026-01-19 02:04:53,106 - DEBUG - VN ctest-vn4-14580937 is not present in Agent 10.0.0.141 2026-01-19 02:04:53,106 - INFO - Validated that VN ctest-vn4-14580937 is not in any agent 2026-01-19 02:04:53,121 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14580937 info 2026-01-19 02:04:53,145 - INFO - Deleted policy ctest-policy1-57663231 2026-01-19 02:04:53,313 - DEBUG - policy ctest-policy1-57663231 is not found in API Server 2026-01-19 02:04:53,571 - DEBUG - No XMPP flaps were noticed during the test